From: apo Date: Tue, 16 Aug 2005 13:25:13 +0000 (+0000) Subject: To provide possibility to customize SVTK package X-Git-Tag: BR-D5-38-2003_D2005-12-09~52 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e29db30f1c8217cc344191f815472d1bf3daea28;p=modules%2Fgui.git To provide possibility to customize SVTK package --- diff --git a/src/SalomeApp/SalomeApp_VTKSelector.cxx b/src/SalomeApp/SalomeApp_VTKSelector.cxx index c3d53c11d..72233d39d 100644 --- a/src/SalomeApp/SalomeApp_VTKSelector.cxx +++ b/src/SalomeApp/SalomeApp_VTKSelector.cxx @@ -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(); } /*! diff --git a/src/SalomeApp/SalomeApp_VTKSelector.h b/src/SalomeApp/SalomeApp_VTKSelector.h index 1834c979f..bb3123a8f 100644 --- a/src/SalomeApp/SalomeApp_VTKSelector.h +++ b/src/SalomeApp/SalomeApp_VTKSelector.h @@ -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