1 // VISU VISUGUI : GUI of VISU component
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
25 // Author : Laurent CORNABE & Hubert ROLLAND
29 #ifndef VisuGUI_HeaderFile
30 #define VisuGUI_HeaderFile
32 #include "SalomeApp_Module.h"
37 class SUIT_ViewManager;
38 class SVTK_ViewWindow;
42 typedef std::pair<Prs3d_i*,int> TPrs3dToInd; // prs pointer and default index of scalar bar placement
43 typedef std::set<TPrs3dToInd> TSetPrs3d;
44 typedef std::map<SVTK_ViewWindow*,TSetPrs3d> TViewToPrs3d;
47 class VisuGUI: public SalomeApp_Module
56 virtual LightApp_Displayer* displayer();
57 virtual void initialize( CAM_Application* );
58 virtual void windows( QMap<int, int>& ) const;
59 virtual void viewManagers( QStringList& ) const;
61 virtual QString engineIOR() const;
63 virtual void studyActivated();
65 virtual void contextMenuPopup( const QString& theClient, QPopupMenu* theMenu, QString& theTitle );
67 virtual void createPreferences();
68 virtual void preferencesChanged( const QString&, const QString& );
72 getViewManager(const QString& theType,
73 const bool theIsCreate);
75 VISU::TViewToPrs3d getScalarBarsMap();
76 VISU::TViewToPrs3d myScalarBarsMap;
79 virtual bool deactivateModule( SUIT_Study* );
80 virtual bool activateModule( SUIT_Study* );
83 void OnImportFromFile();
84 void OnExploreMEDFile();
85 void OnImportTableFromFile();
86 void OnExportTableToFile();
87 void OnImportMedField();
90 void OnCreateScalarMap();
91 void OnCreateDeformedShape();
92 void OnCreateVectors();
93 void OnCreateIsoSurfaces();
94 void OnCreateCutPlanes();
95 void OnCreateCutLines();
96 void OnCreateStreamLines();
97 void OnCreatePlot3D();
98 void OnCreateManyMesh();
99 void OnCreatePlot2dView();
100 void OnCreateScalarMapOnDeformedShape();
102 void OnEditScalarMap();
103 void OnEditDeformedShape();
104 void OnEditCutPlanes();
105 void OnEditCutLines();
106 void OnEditIsoSurfaces();
107 void OnEditVectors();
108 void OnEditStreamLines();
110 void OnEditScalarMapOnDeformedShape();
112 virtual void OnDisplayPrs();
113 virtual void OnDisplayOnlyPrs();
114 virtual void OnErasePrs();
115 virtual void OnEraseAll();
117 void OnMakeSurfaceframe();
118 void OnMakeInsideframe();
119 void OnMakeWireframe();
120 void OnMakeSurface();
124 void OnSetShadingOn();
125 void OnSetShadingOff();
127 void OnChangeColor();
128 void OnChangeWireframeColor();
129 void OnChangeOpacity();
130 void OnChangeLines();
133 void OnCreateTable();
134 void OnDeleteObjects();
136 void OnCurveProperties();
137 void OnClearContainer();
138 void OnEditContainer();
140 void OnMergeScalarBars();
141 void OnFreeScalarBars();
143 virtual void OnSaveViewParams();
144 virtual void OnRestoreViewParams();
147 void OnClippingPlanes();
149 void OnTimeAnimation();
150 void OnShowAnimation();
152 void OnCopyPresentation();
154 void OnSelectionInfo();
156 void OnTranslatePrs();
157 void OnArrangeActors();
160 virtual LightApp_Selection* createSelection() const;
163 void createActions();
165 void createToolBars();
166 void createPopupMenus();
169 LightApp_Displayer* myDisplayer;