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.salome-platform.org/ or email : webmaster.salome@opencascade.com
25 // Author : Laurent CORNABE & Hubert ROLLAND
29 #ifndef VisuGUI_HeaderFile
30 #define VisuGUI_HeaderFile
32 #include "SalomeApp_Module.h"
34 #include "SALOME_ListIO.hxx"
35 #include "VISU_Prs3d_i.hh"
36 #include "SVTK_ViewWindow.h"
41 class SUIT_ViewManager;
42 class SVTK_ViewWindow;
47 typedef std::pair<Prs3d_i*,int> TPrs3dToInd; // prs pointer and default index of scalar bar placement
48 typedef std::set<TPrs3dToInd> TSetPrs3d;
49 typedef std::map<SVTK_ViewWindow*,TSetPrs3d> TViewToPrs3d;
52 class VisuGUI: public SalomeApp_Module
61 virtual LightApp_Displayer* displayer();
62 virtual void initialize( CAM_Application* );
63 virtual void windows( QMap<int, int>& ) const;
64 virtual void viewManagers( QStringList& ) const;
66 virtual QString engineIOR() const;
68 virtual void studyActivated();
70 virtual void contextMenuPopup( const QString& theClient, QPopupMenu* theMenu, QString& theTitle );
72 virtual void createPreferences();
73 virtual void preferencesChanged( const QString&, const QString& );
77 getViewManager(const QString& theType,
78 const bool theIsCreate);
84 virtual bool deactivateModule( SUIT_Study* );
85 virtual bool activateModule( SUIT_Study* );
86 virtual void OnEraseAll();
89 void OnImportFromFile();
90 void OnImportTableFromFile();
91 void OnExportTableToFile();
92 void OnImportMedField();
94 void OnLoadComponentData();
97 void OnCreateScalarMap();
98 void OnCreateDeformedShape();
99 void OnCreateVectors();
100 void OnCreateIsoSurfaces();
101 void OnCreateCutPlanes();
102 void OnCreateCutLines();
103 void OnCreateStreamLines();
104 void OnCreatePlot3D();
105 void OnCreateManyMesh();
106 void OnCreatePlot2dView();
107 void OnCreateScalarMapOnDeformedShape();
109 void OnEditScalarMap();
110 void OnEditDeformedShape();
111 void OnEditCutPlanes();
112 void OnEditCutLines();
113 void OnEditIsoSurfaces();
114 void OnEditVectors();
115 void OnEditStreamLines();
117 void OnEditScalarMapOnDeformedShape();
119 virtual void OnDisplayPrs();
120 virtual void OnDisplayOnlyPrs();
121 virtual void OnErasePrs();
122 // virtual void OnEraseAll();
124 void OnMakeSurfaceframe();
125 void OnMakeInsideframe();
126 void OnMakeWireframe();
127 void OnMakeSurface();
131 void OnSetShadingOn();
132 void OnSetShadingOff();
134 void OnChangeColor();
135 void OnChangeWireframeColor();
136 void OnChangeOpacity();
137 void OnChangeLines();
140 void OnCreateTable();
141 void OnDeleteObjects();
143 void OnCurveProperties();
144 void OnClearContainer();
145 void OnEditContainer();
147 void OnMergeScalarBars();
148 void OnFreeScalarBars();
150 virtual void OnSaveViewParams();
151 virtual void OnRestoreViewParams();
154 void OnClippingPlanes();
156 void OnParallelTimeAnimation();
157 void OnSucccessiveTimeAnimation();
158 void OnShowAnimation();
160 void OnCopyPresentation();
162 void OnSelectionInfo();
164 void OnTranslatePrs();
165 void OnArrangeActors();
166 void OnPlot3dFromCutPlane();
168 void OnCacheProperties();
171 void OnMultiprViewFullRes();
172 void OnMultiprViewMediumRes();
173 void OnMultiprViewLowRes();
174 void OnMultiprViewHide();
175 void OnMultiprChangeRes(VISU::Result::Resolution theResolution);
178 virtual LightApp_Selection* createSelection() const;
180 void OnTimeAnimation(VISU::Animation::AnimationMode theMode);
183 void createActions();
185 void createToolBars();
186 void createPopupMenus();
189 LightApp_Displayer* myDisplayer;
190 VISU::TViewToPrs3d myScalarBarsMap;