1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // VISU VISUGUI : GUI of VISU component
23 // File : VisuGUI_ViewExtender.h
24 // Author : Vitaly Smetannikov
27 #ifndef VisuGUI_ViewExtender_HeaderFile
28 #define VisuGUI_ViewExtender_HeaderFile
30 #include <CAM_ViewExtender.h>
31 #include <SALOME_ListIO.hxx>
39 class VisuGUI_SegmentationMgr;
41 class SVTK_ViewWindow;
42 class SUIT_ViewWindow;
43 class VTKViewer_Actor;
46 class VisuGUI_ViewExtender: public QObject, public CAM_ViewExtender
51 VisuGUI_ViewExtender(VisuGUI* theModule);
53 virtual ~VisuGUI_ViewExtender();
55 virtual int createToolbar(SUIT_ViewWindow* theView);
56 virtual void contextMenuPopup(QMenu* theMenu);
58 virtual void activate(SUIT_ViewModel*);
59 virtual void deactivate(SUIT_ViewModel*);
61 VisuGUI_SegmentationMgr* getSegmentationMgr(SVTK_ViewWindow* theWindow);
65 // void onPlanesMgr();
66 // void onDialogDestroy();
67 // void onShowPlanes(bool);
68 // void onDeactivatePlanes(bool);
69 void onViewDeleted(SUIT_ViewWindow* theWindow);
70 void onAddActor(SVTK_ViewWindow* theWindow, VTKViewer_Actor* theActor);
74 //enum { ClippingPlaneMgrId, ShowClippingPlanesId, DeactivateClippingPlanesId };
76 //QMap<int, QtxAction*> myActionsMap;
79 //QDialog* myNonModalDlg;
81 //VisuGUI_SegmentationMgr* mySegmentationMgr;
82 QMap<SVTK_ViewWindow*, VisuGUI_SegmentationMgr*> myViewMgrMap;
84 QList<SVTK_Viewer*> myViewers;
86 //SALOME_ListIO myListIO;