Salome HOME
384d587d1968972c53d4b2e63337732ea389fc2a
[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 ScalarMap_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   virtual QString engineIOR() const;
61
62 public slots:
63   virtual bool deactivateModule( SUIT_Study* );
64   virtual bool activateModule( SUIT_Study* );
65
66 protected slots:
67   void OnImportFromFile();
68   void OnExploreMEDFile();
69   void OnImportTableFromFile();
70   void OnExportTableToFile();
71
72   void OnCreateMesh();
73   void OnCreateScalarMap();
74   void OnCreateDeformedShape();
75   void OnCreateVectors();
76   void OnCreateIsoSurfaces();
77   void OnCreateCutPlanes();
78   void OnCreateCutLines();
79   void OnCreateStreamLines();
80   void OnCreateManyMesh();
81   void OnCreatePlot2dView();
82
83   void OnDisplayPrs();
84   void OnDisplayOnlyPrs();
85   void OnErasePrs();
86   void OnEditPrs();
87   void OnDeletePrs();
88   void OnDisplayManyPrs();
89   void OnEraseManyPrs();
90   void OnDisplayOnlyManyPrs();
91   
92   void OnMakeSurfaceframe();
93   void OnMakeInsideframe();
94   void OnMakeWireframe();
95   void OnMakeSurface();
96   void OnMakePoints();
97   void OnMakeShrink();
98   
99   void OnChangeColor();
100   void OnChangeWireframeColor();
101   void OnChangeOpacity();
102   void OnChangeLines();
103   
104   void OnShowTable();
105   void OnCreateTable();
106   void OnDeleteObject();
107   void OnPlotData();
108   void OnCurveProperties();
109   void OnClearContainer();
110   void OnEditContainer();
111   
112   void OnSaveViewParams();
113   void OnRestoreViewParams();
114   void OnDeleteViewParams();
115
116   void OnRename();
117   //void OnRenameTable();
118   //void OnRenameContainer();
119   void OnSweep();
120   void OnTimeAnimation();
121   
122   void OnCopyPresentation();
123
124   void OnSelectionInfo();
125
126
127 protected:
128   virtual SalomeApp_Selection* createSelection() const;
129
130   void ErasePrs (CORBA::Object_ptr theObject);
131
132 private:
133   void                         createActions();
134   void                         createMenus();
135   void                         createToolBars();
136   void                         createPopupMenus();
137 };
138
139 #endif