Salome HOME
PAL9391
[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 SalomeApp_Displayer*    displayer();
46   virtual void initialize( CAM_Application* );
47   virtual void windows( QMap<int, int>& ) const;
48   virtual void viewManagers( QStringList& ) const;
49
50   virtual QString engineIOR() const;
51
52   virtual void  studyActivated();
53
54   virtual void  contextMenuPopup( const QString& theClient, QPopupMenu* theMenu, QString& theTitle );
55
56   virtual void createPreferences();
57   virtual void preferencesChanged( const QString&, const QString& );
58
59   virtual
60   SUIT_ViewManager*
61   getViewManager(const QString& theType, 
62                  const bool theIsCreate);
63
64 public slots:
65   virtual bool deactivateModule( SUIT_Study* );
66   virtual bool activateModule( SUIT_Study* );
67
68 protected slots:
69   void OnImportFromFile();
70   void OnExploreMEDFile();
71   void OnImportTableFromFile();
72   void OnExportTableToFile();
73   void OnImportMedField();
74
75   void OnCreateMesh();
76   void OnCreateScalarMap();
77   void OnCreateDeformedShape();
78   void OnCreateVectors();
79   void OnCreateIsoSurfaces();
80   void OnCreateCutPlanes();
81   void OnCreateCutLines();
82   void OnCreateStreamLines();
83   void OnCreatePlot3D();
84   void OnCreateManyMesh();
85   void OnCreatePlot2dView();
86
87   void OnEditScalarMap();
88   void OnEditDeformedShape();
89   void OnEditCutPlanes();
90   void OnEditCutLines();
91   void OnEditIsoSurfaces();
92   void OnEditVectors();
93   void OnEditStreamLines();
94   void OnEditPlot3D();
95
96   virtual void OnDisplayPrs();
97   virtual void OnDisplayOnlyPrs();
98   virtual void OnErasePrs();
99   virtual void OnEraseAll();
100
101   void OnMakeSurfaceframe();
102   void OnMakeInsideframe();
103   void OnMakeWireframe();
104   void OnMakeSurface();
105   void OnMakePoints();
106   void OnMakeShrink();
107
108   void OnChangeColor();
109   void OnChangeWireframeColor();
110   void OnChangeOpacity();
111   void OnChangeLines();
112
113   void OnShowTable();
114   void OnCreateTable();
115   void OnDeleteObjects();
116   void OnPlotData();
117   void OnCurveProperties();
118   void OnClearContainer();
119   void OnEditContainer();
120
121   void OnMergeScalarBars();
122   void OnFreeScalarBars();
123
124   void OnSaveViewParams();
125   void OnRestoreViewParams();
126
127   void OnRename();
128   void OnClippingPlanes();
129   void OnSweep();
130   void OnTimeAnimation();
131   void OnShowAnimation();
132
133   void OnCopyPresentation();
134
135   void OnSelectionInfo();
136
137   void OnTranslatePrs();
138   void OnArrangeActors();
139
140   void OnScaling();
141   void OnCubeAxes();
142
143 protected:
144   virtual SalomeApp_Selection* createSelection() const;
145
146 private:
147   void createActions();
148   void createMenus();
149   void createToolBars();
150   void createPopupMenus();
151
152 private:
153   SalomeApp_Displayer*  myDisplayer;
154 };
155
156 #endif