1 // Copyright (C) 2007-2008 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
22 // VISU VISUGUI : GUI of VISU component
23 // File : VisuGUI_Module.h
27 #ifndef VisuGUI_Module_HeaderFile
28 #define VisuGUI_Module_HeaderFile
31 #include "STD_Application.h"
32 #include "SALOMEDSClient_SObject.hxx"
34 class SUIT_ViewManager;
35 class SVTK_ViewManager;
36 class SVTK_ViewWindow;
38 #include "MED_SharedPtr.hxx"
40 //! This class inherits base VisuGUI.
41 /*! Used to display, erase end edit presentations in the VVTK viewer. */
42 class VisuGUI_Module: public VisuGUI
54 // eventFilter( QObject * theWatched, QEvent * theEvent );
56 //! Redifined method of the module initializing.
59 initialize( CAM_Application* );
61 //! Redefined method of creating prefernces.
68 preferencesChanged( const QString&, const QString& );
72 getViewManager(const QString& theType,
73 const bool theIsCreate);
77 storeVisualParameters(int savePoint);
81 restoreVisualParameters(int savePoint);
84 //! Reimplemented method of the module deactivation.
85 // virtual bool deactivateModule( SUIT_Study* );
87 //! Reimplemented method of the module activation.
88 // virtual bool activateModule( SUIT_Study* );
91 //! Create preferences for Gauss Points presentation.
94 createGaussPointsPreferences();
96 //! Create preferences for Outside Cursor Gauss Points presentations.
99 createInsideCursorPreferences();
103 createOutsideCursorPreferences();
105 //! Create preferences for Picking.
108 createPickingPreferences();
110 //! Create preferences for Space Mouse.
113 createSpaceMousePreferences();
115 //! Create preferences for Recorder.
118 createRecorderPreferences();
122 // onCreateViewManager();
125 OnCreateGaussPoints();
128 OnViewCreated(SUIT_ViewWindow*);
131 //OnViewManagerAdded(SUIT_ViewManager*);
133 //! Reimplemented method of the Gauss Points edition.
138 //! Virtual method of saving configuration.
141 // OnSaveConfiguration();
143 //! Virtual method of overwriting configuration.
146 // OnOverwriteConfiguration();
148 //! Virtual method of restoring configuration.
151 // OnRestoreConfiguration();
154 _PTR(SObject) myConfigSObject;
156 void setProperty( SVTK_ViewWindow*, const QString& ); // set a property (speed_increment, etc ) for SVTK ViewWindow
157 void setProperty( SVTK_ViewManager*, const QString& ); // set a property for SVTK ViewWindow // set only 1 property for all ViewWindows of given view manager