Salome HOME
Fix for bug PAL9160 ( No shading on visualizations ).
[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 OnSetShadingOn();
109   void OnSetShadingOff();
110
111   void OnChangeColor();
112   void OnChangeWireframeColor();
113   void OnChangeOpacity();
114   void OnChangeLines();
115
116   void OnShowTable();
117   void OnCreateTable();
118   void OnDeleteObjects();
119   void OnPlotData();
120   void OnCurveProperties();
121   void OnClearContainer();
122   void OnEditContainer();
123
124   void OnMergeScalarBars();
125   void OnFreeScalarBars();
126
127   void OnSaveViewParams();
128   void OnRestoreViewParams();
129
130   void OnRename();
131   void OnClippingPlanes();
132   void OnSweep();
133   void OnTimeAnimation();
134   void OnShowAnimation();
135
136   void OnCopyPresentation();
137
138   void OnSelectionInfo();
139
140   void OnTranslatePrs();
141   void OnArrangeActors();
142
143   void OnScaling();
144   void OnCubeAxes();
145
146 protected:
147   virtual SalomeApp_Selection* createSelection() const;
148
149 private:
150   void createActions();
151   void createMenus();
152   void createToolBars();
153   void createPopupMenus();
154
155 private:
156   SalomeApp_Displayer*  myDisplayer;
157 };
158
159 #endif