Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef VisuGUI_ViewExtender_HeaderFile
00026 #define VisuGUI_ViewExtender_HeaderFile
00027
00028 #include <CAM_ViewExtender.h>
00029 #include <SALOME_ListIO.hxx>
00030 #include <QObject>
00031 #include <QMap>
00032
00033 class VisuGUI;
00034
00035
00036
00037 class VisuGUI_SegmentationMgr;
00038 class SVTK_Viewer;
00039 class SVTK_ViewWindow;
00040 class SUIT_ViewWindow;
00041 class VTKViewer_Actor;
00042
00043
00044 class VisuGUI_ViewExtender: public QObject, public CAM_ViewExtender
00045 {
00046 Q_OBJECT
00047
00048 public:
00049 VisuGUI_ViewExtender(VisuGUI* theModule);
00050
00051 virtual ~VisuGUI_ViewExtender();
00052
00053 virtual int createToolbar(SUIT_ViewWindow* theView);
00054 virtual void contextMenuPopup(QMenu* theMenu);
00055
00056 virtual void activate(SUIT_ViewModel*);
00057 virtual void deactivate(SUIT_ViewModel*);
00058
00059 VisuGUI_SegmentationMgr* getSegmentationMgr(SVTK_ViewWindow* theWindow);
00060
00061
00062 private slots:
00063
00064
00065
00066
00067 void onViewDeleted(SUIT_ViewWindow* theWindow);
00068 void onAddActor(SVTK_ViewWindow* theWindow, VTKViewer_Actor* theActor);
00069
00070 private:
00071
00072
00073
00074
00075 VisuGUI* myModule;
00076
00077
00078
00079
00080 QMap<SVTK_ViewWindow*, VisuGUI_SegmentationMgr*> myViewMgrMap;
00081
00082 QList<SVTK_Viewer*> myViewers;
00083
00084
00085
00086 };
00087
00088
00089 #endif