Salome HOME
Merge with branch V2_2_0_VISU_improvement
[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 #include "SALOME_InteractiveObject.hxx"
35
36 #include "VISUConfig.hh"
37
38 #include "SALOMEconfig.h"
39 #include CORBA_SERVER_HEADER(SALOMEDS)
40 #include CORBA_SERVER_HEADER(VISU_Gen)
41 #include CORBA_SERVER_HEADER(MED_Gen)
42
43 class SUIT_Desktop;
44
45 namespace VISU {
46   class Prs3d_i;
47 }
48
49 class VisuGUI: public SalomeApp_Module
50 {
51   Q_OBJECT;
52 public:
53
54   VisuGUI();
55   virtual ~VisuGUI();
56
57   virtual void initialize( CAM_Application* );
58   virtual void windows( QMap<int, int>& ) const;
59   virtual void viewManagers( QStringList& ) const;
60
61   virtual QString engineIOR() const;
62
63   virtual void  studyActivated();
64
65   virtual void  contextMenuPopup( const QString& theClient, QPopupMenu* theMenu, QString& theTitle );
66
67 public slots:
68   virtual bool deactivateModule( SUIT_Study* );
69   virtual bool activateModule( SUIT_Study* );
70
71 protected slots:
72   void OnImportFromFile();
73   void OnExploreMEDFile();
74   void OnImportTableFromFile();
75   void OnExportTableToFile();
76   void OnImportMedField();
77
78   void OnCreateMesh();
79   void OnCreateScalarMap();
80   void OnCreateDeformedShape();
81   void OnCreateVectors();
82   void OnCreateIsoSurfaces();
83   void OnCreateCutPlanes();
84   void OnCreateCutLines();
85   void OnCreateStreamLines();
86   void OnCreatePlot3D();
87   void OnCreateManyMesh();
88   void OnCreatePlot2dView();
89
90   void OnEditPrs();
91   void OnDeletePrs();
92
93   void OnDisplayPrs();
94   void OnDisplayOnlyPrs();
95   void OnErasePrs();
96   void OnEraseAll();
97
98   void OnMakeSurfaceframe();
99   void OnMakeInsideframe();
100   void OnMakeWireframe();
101   void OnMakeSurface();
102   void OnMakePoints();
103   void OnMakeShrink();
104
105   void OnChangeColor();
106   void OnChangeWireframeColor();
107   void OnChangeOpacity();
108   void OnChangeLines();
109
110   void OnShowTable();
111   void OnCreateTable();
112   void OnDeleteObject();
113   void OnDeleteObjects();
114   void OnPlotData();
115   void OnCurveProperties();
116   void OnClearContainer();
117   void OnEditContainer();
118
119   void OnMergeScalarBars();
120   void OnFreeScalarBars();
121
122   void OnSaveViewParams();
123   void OnRestoreViewParams();
124   void OnDeleteViewParams();
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