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"
34 class SUIT_ViewManager;
36 class VisuGUI: public SalomeApp_Module
45 virtual LightApp_Displayer* displayer();
46 virtual void initialize( CAM_Application* );
47 virtual void windows( QMap<int, int>& ) const;
48 virtual void viewManagers( QStringList& ) const;
50 virtual QString engineIOR() const;
52 virtual void studyActivated();
54 virtual void contextMenuPopup( const QString& theClient, QPopupMenu* theMenu, QString& theTitle );
56 virtual void createPreferences();
57 virtual void preferencesChanged( const QString&, const QString& );
61 getViewManager(const QString& theType,
62 const bool theIsCreate);
65 virtual bool deactivateModule( SUIT_Study* );
66 virtual bool activateModule( SUIT_Study* );
69 void OnImportFromFile();
70 void OnExploreMEDFile();
71 void OnImportTableFromFile();
72 void OnExportTableToFile();
73 void OnImportMedField();
76 void OnCreateScalarMap();
77 void OnCreateDeformedShape();
78 void OnCreateVectors();
79 void OnCreateIsoSurfaces();
80 void OnCreateCutPlanes();
81 void OnCreateCutLines();
82 void OnCreateStreamLines();
83 void OnCreatePlot3D();
84 void OnCreateManyMesh();
85 void OnCreatePlot2dView();
87 void OnEditScalarMap();
88 void OnEditDeformedShape();
89 void OnEditCutPlanes();
90 void OnEditCutLines();
91 void OnEditIsoSurfaces();
93 void OnEditStreamLines();
96 virtual void OnDisplayPrs();
97 virtual void OnDisplayOnlyPrs();
98 virtual void OnErasePrs();
99 virtual void OnEraseAll();
101 void OnMakeSurfaceframe();
102 void OnMakeInsideframe();
103 void OnMakeWireframe();
104 void OnMakeSurface();
108 void OnSetShadingOn();
109 void OnSetShadingOff();
111 void OnChangeColor();
112 void OnChangeWireframeColor();
113 void OnChangeOpacity();
114 void OnChangeLines();
117 void OnCreateTable();
118 void OnDeleteObjects();
120 void OnCurveProperties();
121 void OnClearContainer();
122 void OnEditContainer();
124 void OnMergeScalarBars();
125 void OnFreeScalarBars();
127 void OnSaveViewParams();
128 void OnRestoreViewParams();
131 void OnClippingPlanes();
133 void OnTimeAnimation();
134 void OnShowAnimation();
136 void OnCopyPresentation();
138 void OnSelectionInfo();
140 void OnTranslatePrs();
141 void OnArrangeActors();
147 virtual LightApp_Selection* createSelection() const;
150 void createActions();
152 void createToolBars();
153 void createPopupMenus();
156 LightApp_Displayer* myDisplayer;