]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
To provide possibility to customize SVTK package
authorapo <apo@opencascade.com>
Tue, 16 Aug 2005 13:25:13 +0000 (13:25 +0000)
committerapo <apo@opencascade.com>
Tue, 16 Aug 2005 13:25:13 +0000 (13:25 +0000)
src/SalomeApp/SalomeApp_VTKSelector.cxx
src/SalomeApp/SalomeApp_VTKSelector.h

index c3d53c11dcb1987bf90ad93259489a066bf380f7..72233d39dda6b202798813f9e213f46278bbf162 100644 (file)
@@ -1,7 +1,7 @@
 #include "SalomeApp_VTKSelector.h"
 #include "SalomeApp_DataOwner.h"
 
-#include "SVTK_ViewModel.h"
+#include "SVTK_ViewModelBase.h"
 #include "SVTK_Selector.h"
 #include "SVTK_ViewWindow.h"
 #include "SVTK_Functor.h"
@@ -58,7 +58,7 @@ SalomeApp_SVTKDataOwner
   Constructor.
 */
 SalomeApp_VTKSelector
-::SalomeApp_VTKSelector( SVTK_Viewer* viewer, 
+::SalomeApp_VTKSelector( SVTK_ViewModelBase* viewer, 
                         SUIT_SelectionMgr* mgr ): 
   SUIT_Selector( mgr, viewer ),
   myViewer( viewer )
@@ -78,7 +78,7 @@ SalomeApp_VTKSelector
 /*!
   Gets viewer.
 */
-SVTK_Viewer
+SVTK_ViewModelBase
 SalomeApp_VTKSelector
 ::viewer() const
 {
@@ -92,7 +92,7 @@ QString
 SalomeApp_VTKSelector
 ::type() const
 { 
-  return SVTK_Viewer::Type(); 
+  return myViewer->getType(); 
 }
 
 /*!
index 1834c979fa27248d96df0135857e29c9860bcccf..bb3123a8ffccbccbe785a5240ac3737e87d84691 100644 (file)
@@ -14,7 +14,7 @@
 #include "SALOME_InteractiveObject.hxx"
 
 class SALOME_Actor;
-class SVTK_Viewer;
+class SVTK_ViewModelBase;
 
 /*!
   Provide salome vtk data owner list.
@@ -57,10 +57,10 @@ class SALOMEAPP_EXPORT SalomeApp_VTKSelector : public SUIT_Selector
   Q_OBJECT;
 
 public:
-  SalomeApp_VTKSelector( SVTK_Viewer*, SUIT_SelectionMgr* );
+  SalomeApp_VTKSelector( SVTK_ViewModelBase*, SUIT_SelectionMgr* );
   virtual ~SalomeApp_VTKSelector();
 
-  SVTK_Viewer* viewer() const;
+  SVTK_ViewModelBase* viewer() const;
 
   virtual QString type() const;
 
@@ -72,7 +72,7 @@ protected:
   virtual void      setSelection( const SUIT_DataOwnerPtrList& );
 
 private:
-  SVTK_Viewer* myViewer;
+  SVTK_ViewModelBase* myViewer;
 };
 
 #endif