1 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 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
23 // VISU VISUGUI : GUI of VISU component
24 // File : VisuGUI_Module.h
28 #ifndef VisuGUI_Module_HeaderFile
29 #define VisuGUI_Module_HeaderFile
32 #include "STD_Application.h"
33 #include "SALOMEDSClient_SObject.hxx"
35 class SUIT_ViewManager;
36 class SVTK_ViewManager;
37 class SVTK_ViewWindow;
39 #include "MED_SharedPtr.hxx"
41 //! This class inherits base VisuGUI.
42 /*! Used to display, erase end edit presentations in the VVTK viewer. */
43 class VisuGUI_Module: public VisuGUI
55 // eventFilter( QObject * theWatched, QEvent * theEvent );
57 //! Redifined method of the module initializing.
60 initialize( CAM_Application* );
62 //! Redefined method of creating prefernces.
69 preferencesChanged( const QString&, const QString& );
73 getViewManager(const QString& theType,
74 const bool theIsCreate);
78 storeVisualParameters(int savePoint);
82 restoreVisualParameters(int savePoint);
85 //! Reimplemented method of the module deactivation.
86 // virtual bool deactivateModule( SUIT_Study* );
88 //! Reimplemented method of the module activation.
89 // virtual bool activateModule( SUIT_Study* );
92 //! Create preferences for Gauss Points presentation.
95 createGaussPointsPreferences();
97 //! Create preferences for Outside Cursor Gauss Points presentations.
100 createInsideCursorPreferences();
104 createOutsideCursorPreferences();
106 //! Create preferences for Picking.
109 createPickingPreferences();
111 //! Create preferences for Space Mouse.
114 createSpaceMousePreferences();
116 //! Create preferences for Recorder.
119 createRecorderPreferences();
123 // onCreateViewManager();
126 OnCreateGaussPoints();
129 OnViewCreated(SUIT_ViewWindow*);
132 //OnViewManagerAdded(SUIT_ViewManager*);
134 //! Reimplemented method of the Gauss Points edition.
139 //! Virtual method of saving configuration.
142 // OnSaveConfiguration();
144 //! Virtual method of overwriting configuration.
147 // OnOverwriteConfiguration();
149 //! Virtual method of restoring configuration.
152 // OnRestoreConfiguration();
155 _PTR(SObject) myConfigSObject;
157 void setProperty( SVTK_ViewWindow*, const QString& ); // set a property (speed_increment, etc ) for SVTK ViewWindow
158 void setProperty( SVTK_ViewManager*, const QString& ); // set a property for SVTK ViewWindow // set only 1 property for all ViewWindows of given view manager