Salome HOME
To make possible to introduce new type of viewer
[modules/visu.git] / src / VISUGUI / VisuGUI.h
1 //  VISU VISUGUI : GUI of VISU component
2 //
3 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
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.
10 //
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.
15 //
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
19 //
20 //  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
21 //
22 //
23 //
24 //  File   : VisuGUI.h
25 //  Author : Laurent CORNABE & Hubert ROLLAND
26 //  Module : VISU
27 //  $Header$
28
29 #ifndef VisuGUI_HeaderFile
30 #define VisuGUI_HeaderFile
31
32 #include "SalomeApp_Module.h"
33
34 class SUIT_ViewManager;
35
36 class VisuGUI: public SalomeApp_Module
37 {
38   Q_OBJECT;
39
40 public:
41
42   VisuGUI();
43   virtual ~VisuGUI();
44
45   virtual void initialize( CAM_Application* );
46   virtual void windows( QMap<int, int>& ) const;
47   virtual void viewManagers( QStringList& ) const;
48
49   virtual QString engineIOR() const;
50
51   virtual void  studyActivated();
52
53   virtual void  contextMenuPopup( const QString& theClient, QPopupMenu* theMenu, QString& theTitle );
54
55   virtual void createPreferences();
56   virtual void preferencesChanged( const QString&, const QString& );
57
58   virtual
59   SUIT_ViewManager*
60   getViewManager(const QString& theType, 
61                  const bool theIsCreate);
62
63 public slots:
64   virtual bool deactivateModule( SUIT_Study* );
65   virtual bool activateModule( SUIT_Study* );
66
67 protected slots:
68   void OnImportFromFile();
69   void OnExploreMEDFile();
70   void OnImportTableFromFile();
71   void OnExportTableToFile();
72   void OnImportMedField();
73
74   void OnCreateMesh();
75   void OnCreateScalarMap();
76   void OnCreateDeformedShape();
77   void OnCreateVectors();
78   void OnCreateIsoSurfaces();
79   void OnCreateCutPlanes();
80   void OnCreateCutLines();
81   void OnCreateStreamLines();
82   void OnCreatePlot3D();
83   void OnCreateManyMesh();
84   void OnCreatePlot2dView();
85
86   void OnEditScalarMap();
87   void OnEditDeformedShape();
88   void OnEditCutPlanes();
89   void OnEditCutLines();
90   void OnEditIsoSurfaces();
91   void OnEditVectors();
92   void OnEditStreamLines();
93   void OnEditPlot3D();
94
95   void OnDisplayPrs();
96   void OnDisplayOnlyPrs();
97   void OnErasePrs();
98   void OnEraseAll();
99
100   void OnMakeSurfaceframe();
101   void OnMakeInsideframe();
102   void OnMakeWireframe();
103   void OnMakeSurface();
104   void OnMakePoints();
105   void OnMakeShrink();
106
107   void OnChangeColor();
108   void OnChangeWireframeColor();
109   void OnChangeOpacity();
110   void OnChangeLines();
111
112   void OnShowTable();
113   void OnCreateTable();
114   void OnDeleteObjects();
115   void OnPlotData();
116   void OnCurveProperties();
117   void OnClearContainer();
118   void OnEditContainer();
119
120   void OnMergeScalarBars();
121   void OnFreeScalarBars();
122
123   void OnSaveViewParams();
124   void OnRestoreViewParams();
125
126   void OnRename();
127   void OnClippingPlanes();
128   void OnSweep();
129   void OnTimeAnimation();
130   void OnShowAnimation();
131
132   void OnCopyPresentation();
133
134   void OnSelectionInfo();
135
136   void OnTranslatePrs();
137   void OnArrangeActors();
138
139   void OnScaling();
140   void OnCubeAxes();
141
142 protected:
143   virtual SalomeApp_Selection* createSelection() const;
144
145 private:
146   void createActions();
147   void createMenus();
148   void createToolBars();
149   void createPopupMenus();
150 };
151
152 #endif