Version: 6.3.1

src/VISUGUI/VisuGUI_Module.h

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //  VISU VISUGUI : GUI of VISU component
00024 //  File   : VisuGUI_Module.h
00025 //  Author : 
00026 //  Module : VISU
00027 //
00028 #ifndef VisuGUI_Module_HeaderFile
00029 #define VisuGUI_Module_HeaderFile
00030 
00031 #include "VisuGUI.h"
00032 #include "STD_Application.h"
00033 #include "SALOMEDSClient_SObject.hxx"
00034 
00035 class SUIT_ViewManager;
00036 class SVTK_ViewManager;
00037 class SVTK_ViewWindow;
00038 
00039 #include "MED_SharedPtr.hxx"
00040 
00042 
00043 class VisuGUI_Module: public VisuGUI
00044 {
00045   Q_OBJECT;
00046 
00047 public:
00048   VisuGUI_Module();
00049 
00050   virtual
00051   ~VisuGUI_Module();
00052 
00053   //  virtual
00054   //  bool
00055   //  eventFilter( QObject * theWatched, QEvent * theEvent );
00056 
00058   virtual
00059   void
00060   initialize( CAM_Application* );
00061 
00063   virtual 
00064   void 
00065   createPreferences();
00066 
00067   virtual
00068   void
00069   preferencesChanged( const QString&, const QString& );
00070 
00071   virtual
00072   SUIT_ViewManager*
00073   getViewManager(const QString& theType, 
00074                  const bool theIsCreate);
00075 
00076   virtual 
00077   void
00078   storeVisualParameters(int savePoint);
00079   
00080   virtual
00081   void
00082   restoreVisualParameters(int savePoint);
00083 
00084   //public slots:
00086   //  virtual bool deactivateModule( SUIT_Study* );
00087 
00089   //  virtual bool activateModule( SUIT_Study* );
00090 
00091 protected:
00093   virtual 
00094   void 
00095   createGaussPointsPreferences();
00096 
00098   virtual 
00099   void 
00100   createInsideCursorPreferences();
00101 
00102   virtual 
00103   void 
00104   createOutsideCursorPreferences();
00105 
00107   virtual 
00108   void 
00109   createPickingPreferences();
00110 
00112   virtual 
00113   void 
00114   createSpaceMousePreferences();
00115 
00117   virtual 
00118   void 
00119   createRecorderPreferences();
00120 
00121 protected slots:
00122   //  SUIT_ViewManager*
00123   //  onCreateViewManager();
00124 
00125   void
00126   OnCreateGaussPoints();
00127 
00128   void
00129   OnViewCreated(SUIT_ViewWindow*);
00130 
00131   //  void 
00132   //OnViewManagerAdded(SUIT_ViewManager*);
00133 
00135   virtual
00136   void
00137   OnEditGaussPoints();
00138 
00140   //  virtual
00141   //  void
00142   //  OnSaveConfiguration();
00143 
00145   //  virtual
00146   //  void
00147   //  OnOverwriteConfiguration();
00148 
00150   //  virtual
00151   //  void
00152   //  OnRestoreConfiguration();
00153 
00154 protected:
00155   _PTR(SObject) myConfigSObject;
00156 
00157   void setProperty( SVTK_ViewWindow*, const QString& );  // set a property (speed_increment, etc ) for SVTK ViewWindow
00158   void setProperty( SVTK_ViewManager*, const QString& ); // set a property for SVTK ViewWindow // set only 1 property for all ViewWindows of given view manager
00159 
00160 };
00161 
00162 #endif
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS