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 #include "SALOME_InteractiveObject.hxx"
36 #include "VISUConfig.hh"
38 #include "SALOMEconfig.h"
39 #include CORBA_SERVER_HEADER(SALOMEDS)
40 #include CORBA_SERVER_HEADER(VISU_Gen)
41 #include CORBA_SERVER_HEADER(MED_Gen)
49 class VisuGUI: public SalomeApp_Module
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;
62 virtual void studyActivated();
64 virtual void contextMenuPopup( const QString& theClient, QPopupMenu* theMenu, QString& theTitle );
67 virtual bool deactivateModule( SUIT_Study* );
68 virtual bool activateModule( SUIT_Study* );
71 void OnImportFromFile();
72 void OnExploreMEDFile();
73 void OnImportTableFromFile();
74 void OnExportTableToFile();
77 void OnCreateScalarMap();
78 void OnCreateDeformedShape();
79 void OnCreateVectors();
80 void OnCreateIsoSurfaces();
81 void OnCreateCutPlanes();
82 void OnCreateCutLines();
83 void OnCreateStreamLines();
84 void OnCreateManyMesh();
85 void OnCreatePlot2dView();
91 void OnDisplayOnlyPrs();
95 void OnMakeSurfaceframe();
96 void OnMakeInsideframe();
97 void OnMakeWireframe();
102 void OnChangeColor();
103 void OnChangeWireframeColor();
104 void OnChangeOpacity();
105 void OnChangeLines();
108 void OnCreateTable();
109 void OnDeleteObject();
111 void OnCurveProperties();
112 void OnClearContainer();
113 void OnEditContainer();
115 void OnSaveViewParams();
116 void OnRestoreViewParams();
117 void OnDeleteViewParams();
121 void OnTimeAnimation();
123 void OnCopyPresentation();
125 void OnSelectionInfo();
131 virtual SalomeApp_Selection* createSelection() const;
133 void ErasePrs (CORBA::Object_ptr theObject, bool theUpdate = true);
134 void ChangeRepresentation (VISU::PresentationType theType);
135 void CreateMesh (const Handle(SALOME_InteractiveObject)& theIO);
138 void createActions();
140 void createToolBars();
141 void createPopupMenus();