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"
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 OnImportTableFromFile();
85 void OnExportTableToFile();
86 void OnImportMedField();
89 void OnCreateScalarMap();
90 void OnCreateDeformedShape();
91 void OnCreateVectors();
92 void OnCreateIsoSurfaces();
93 void OnCreateCutPlanes();
94 void OnCreateCutLines();
95 void OnCreateStreamLines();
96 void OnCreatePlot3D();
97 void OnCreateManyMesh();
98 void OnCreatePlot2dView();
99 void OnCreateScalarMapOnDeformedShape();
101 void OnEditScalarMap();
102 void OnEditDeformedShape();
103 void OnEditCutPlanes();
104 void OnEditCutLines();
105 void OnEditIsoSurfaces();
106 void OnEditVectors();
107 void OnEditStreamLines();
109 void OnEditScalarMapOnDeformedShape();
111 virtual void OnDisplayPrs();
112 virtual void OnDisplayOnlyPrs();
113 virtual void OnErasePrs();
114 virtual void OnEraseAll();
116 void OnMakeSurfaceframe();
117 void OnMakeInsideframe();
118 void OnMakeWireframe();
119 void OnMakeSurface();
123 void OnSetShadingOn();
124 void OnSetShadingOff();
126 void OnChangeColor();
127 void OnChangeWireframeColor();
128 void OnChangeOpacity();
129 void OnChangeLines();
132 void OnCreateTable();
133 void OnDeleteObjects();
135 void OnCurveProperties();
136 void OnClearContainer();
137 void OnEditContainer();
139 void OnMergeScalarBars();
140 void OnFreeScalarBars();
142 virtual void OnSaveViewParams();
143 virtual void OnRestoreViewParams();
146 void OnClippingPlanes();
148 void OnTimeAnimation();
149 void OnShowAnimation();
151 void OnCopyPresentation();
153 void OnSelectionInfo();
155 void OnTranslatePrs();
156 void OnArrangeActors();
157 void OnPlot3dFromCutPlane();
160 virtual LightApp_Selection* createSelection() const;
163 void createActions();
165 void createToolBars();
166 void createPopupMenus();
169 LightApp_Displayer* myDisplayer;