Salome HOME
Edit curve properties functionality
[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   virtual void  studyActivated();
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
74   void OnCreateMesh();
75   void OnCreateScalarMap();
76   void OnCreateDeformedShape();
77   void OnCreateVectors();
78   void OnCreateIsoSurfaces();
79   void OnCreateCutPlanes();
80   void OnCreateCutLines();
81   void OnCreateStreamLines();
82   void OnCreateManyMesh();
83   void OnCreatePlot2dView();
84
85   void OnEditPrs();
86   void OnDeletePrs();
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 OnDeleteObject();
108   void OnPlotData();
109   void OnCurveProperties();
110   void OnClearContainer();
111   void OnEditContainer();
112
113   void OnSaveViewParams();
114   void OnRestoreViewParams();
115   void OnDeleteViewParams();
116
117   void OnRename();
118   void OnSweep();
119   void OnTimeAnimation();
120
121   void OnCopyPresentation();
122
123   void OnSelectionInfo();
124
125   void OnScaling();
126
127
128 protected:
129   virtual SalomeApp_Selection* createSelection() const;
130
131   void ErasePrs (CORBA::Object_ptr theObject, bool theUpdate = true);
132   void ChangeRepresentation (VISU::PresentationType theType);
133   void CreateMesh (const Handle(SALOME_InteractiveObject)& theIO);
134
135 private:
136   void                         createActions();
137   void                         createMenus();
138   void                         createToolBars();
139   void                         createPopupMenus();
140 };
141
142 #endif