1 #ifndef SALOMEAPP_VTKSELECTOR_H
2 #define SALOMEAPP_VTKSELECTOR_H
6 #include <vtkSmartPointer.h>
8 #include <TColStd_IndexedMapOfInteger.hxx>
10 #include "SUIT_Selector.h"
12 #include "SalomeApp.h"
13 #include "SalomeApp_DataOwner.h"
15 #include "SVTK_Selection.h"
16 #include "SALOME_InteractiveObject.hxx"
21 class SalomeApp_SVTKDataOwner : public SalomeApp_DataOwner
24 SalomeApp_SVTKDataOwner( const Handle(SALOME_InteractiveObject)& theIO,
25 const TColStd_IndexedMapOfInteger& theIds,
26 Selection_Mode theMode = ActorSelection,
27 SALOME_Actor* theActor = NULL);
28 virtual ~SalomeApp_SVTKDataOwner();
30 const Handle(SALOME_InteractiveObject)& GetIO() const
35 const TColStd_IndexedMapOfInteger& GetIds() const
40 Selection_Mode GetMode() const
42 return mySelectionMode;
45 SALOME_Actor* GetActor() const;
48 Handle(SALOME_InteractiveObject) myIO;
49 TColStd_IndexedMapOfInteger myIds;
50 Selection_Mode mySelectionMode;
51 vtkSmartPointer<SALOME_Actor> myActor;
55 class SALOMEAPP_EXPORT SalomeApp_VTKSelector : public QObject, public SUIT_Selector
60 SalomeApp_VTKSelector( SVTK_Viewer*, SUIT_SelectionMgr* );
61 virtual ~SalomeApp_VTKSelector();
63 SVTK_Viewer* viewer() const;
65 virtual QString type() const;
68 void onSelectionChanged();
71 virtual void getSelection( SUIT_DataOwnerPtrList& ) const;
72 virtual void setSelection( const SUIT_DataOwnerPtrList& );
75 SVTK_Viewer* myViewer;