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