1 #ifndef VVTK_VIEWWINDOW_H
2 #define VVTK_VIEWWINDOW_H
5 #pragma warning( disable:4251 )
9 #include "SVTK_ViewWindow.h"
13 class VVTK_MainWindow1;
14 class VVTK_MainWindow2;
17 //----------------------------------------------------------------------------
18 //! Customize the SVTK_ViewWindow in order to manage two SVTK_View (base and segmented one)
19 class VVTK_EXPORT VVTK_ViewWindow : public SVTK_ViewWindow
24 //! To construct the class
25 VVTK_ViewWindow(SUIT_Desktop* theDesktop);
34 Initialize(SVTK_ViewModelBase* theModel);
36 //----------------------------------------------------------------------------
37 //! Get access to base SVTK_MainWindow
41 //! Get access to segmented SVTK_MainWindow
45 //----------------------------------------------------------------------------
46 //! Redefine SVTK_ViewWindow::AddActor method
48 This is an entry point for publication the presentation into the viewer.
49 Pointed actor published into the basic MainWindow. If the actor is
50 a Gauss Points one second actor is created from initial actor and
51 is put into segemented MainWindow.
55 AddActor(VTKViewer_Actor* theActor,
56 bool theIsUpdate = false);
58 //! Redefine SVTK_ViewWindow::RemoveActor method
61 RemoveActor(VTKViewer_Actor* theActor,
62 bool theIsUpdate = false);
64 //! Redefine SVTK_ViewWindow::Repaint method
67 Repaint(bool theUpdateTrihedron = true);
69 //----------------------------------------------------------------------------
70 /* interactive object management */
71 //! Redefine SVTK_ViewWindow::highlight method
74 highlight(const Handle(SALOME_InteractiveObject)& theIO,
75 bool theIsHighlight = true,
76 bool theIsUpdate = true);
78 //! Redefine SVTK_ViewWindow::unHighlightAll method
83 //! Redefine SVTK_ViewWindow::setBackgroundColor method
86 setBackgroundColor( const QColor& );
88 //----------------------------------------------------------------------------
90 //! Redefine SVTK_ViewWindow::onSelectionChanged method
95 //! Redefine SVTK_ViewWindow::onResetView method
100 //! Redefine SVTK_ViewWindow::onFitAll method
105 //----------------------------------------------------------------------------
111 virtual QImage dumpView();
113 VVTK_MainWindow1* myMainWindow1; //!< The manage base view
114 SVTK_View* myView1; //!< The manage base view
116 VVTK_MainWindow2* myMainWindow2; //!< The manage segmented view
117 SVTK_View* myView2; //!< The manage segmented view
121 #pragma warning( default:4251 )