27 #ifndef SVTK_SELECTORDEF_H
28 #define SVTK_SELECTORDEF_H
35 #include <TColStd_IndexedMapOfInteger.hxx>
36 #include <TColStd_MapOfInteger.hxx>
37 #include <vtkSmartPointer.h>
115 bool theIsModeShift);
120 bool theIsModeShift);
125 bool theIsModeShift);
152 bool theIsModeShift);
158 bool theIsModeShift);
195 const bool theIsNode =
false)
const;
252 return strcmp(theRightIO->getEntry(),theLeftIO->getEntry()) < 0;
273 vtkSmartPointer<SALOME_Actor>,
Selection_Mode
Definition: SALOME_Selection.h:27
NCollection_Map< vtkIdType, svtkIdHasher > SVTK_TVtkIDsMap
Definition: SVTK_Hash.h:151
NCollection_IndexedMap< SVTK_ListOfVtk, SVTK_vtkHasher > SVTK_IndexedMapOfVtkIds
Definition: SVTK_Hash.h:150
std::vector< vtkIdType > SVTK_ListOfVtk
Definition: SVTK_Hash.h:40
NCollection_IndexedMap< vtkIdType, svtkIdHasher > SVTK_TIndexedMapOfVtkId
Definition: SVTK_Hash.h:153
The class is a basic one for all SALOME VTK presentation.
Definition: SALOME_Actor.h:73
Definition: SALOME_ListIO.hxx:29
Definition: SVTK_SelectorDef.h:49
TMapIOSubIndex myMapIOSubIndex
Definition: SVTK_SelectorDef.h:280
virtual void StartPickCallback()
Definition: SVTK_Selector.cxx:83
std::map< Handle(SALOME_InteractiveObject), TIndexedMapOfInteger, TIOLessThan > TMapIOSubIndex
Definition: SVTK_SelectorDef.h:279
virtual bool IsSelected(const Handle(SALOME_InteractiveObject)&theIO) const
Definition: SVTK_Selector.cxx:131
TMapIOSubCompositeIndex myMapIOSubCompositeIndex
Definition: SVTK_SelectorDef.h:285
virtual void SetPreSelectionEnabled(bool theEnabled)
Definition: SVTK_Selector.cxx:747
TIO2Actors myIO2Actors
Definition: SVTK_SelectorDef.h:275
vtkSmartPointer< vtkCellPicker > myCellPicker
Definition: SVTK_SelectorDef.h:292
virtual void SetFilter(const Handle(VTKViewer_Filter)&theFilter)
Definition: SVTK_Selector.cxx:631
virtual bool IsPreSelectionEnabled() const
Definition: SVTK_Selector.cxx:754
virtual void GetCompositeIndex(const Handle(SALOME_InteractiveObject)&theIO, SVTK_IndexedMapOfVtkIds &theIds)
Definition: SVTK_Selector.cxx:501
virtual void ClearIndex()
Definition: SVTK_Selector.cxx:479
virtual bool IsIndexSelected(const Handle(SALOME_InteractiveObject)&theIO, int theIndex) const
Definition: SVTK_Selector.cxx:292
virtual const SALOME_ListIO & StoredIObjects() const
Definition: SVTK_Selector.cxx:237
virtual bool GetDynamicPreSelection() const
Definition: SVTK_Selector.cxx:740
bool mySelectionEnabled
Definition: SVTK_SelectorDef.h:244
vtkSmartPointer< vtkPicker > myPicker
Definition: SVTK_SelectorDef.h:291
virtual void RemoveCompositeIndex(const Handle(SALOME_InteractiveObject)&theIO, SVTK_ListOfVtk theIds)
Definition: SVTK_Selector.cxx:586
virtual Handle(VTKViewer_Filter) GetFilter(const TFilterID theId) const
To get a section filter by its number.
virtual bool AddOrRemoveCompositeIndex(const Handle(SALOME_InteractiveObject)&theIO, const SVTK_IndexedMapOfVtkIds &theIds, bool theIsModeShift)
Definition: SVTK_Selector.cxx:519
virtual void SetSelectionMode(Selection_Mode theMode)
Definition: SVTK_Selector.cxx:103
SVTK_SelectorDef()
Definition: SVTK_Selector.cxx:57
int mySelectionMode
Definition: SVTK_SelectorDef.h:240
TFilters myFilters
Definition: SVTK_SelectorDef.h:289
virtual bool RemoveIObject(const Handle(SALOME_InteractiveObject)&theIO)
Definition: SVTK_Selector.cxx:203
virtual bool IsValid(SALOME_Actor *theActor, const TFilterID theId, const bool theIsNode=false) const
Definition: SVTK_Selector.cxx:667
virtual bool IsSelectionEnabled() const
Definition: SVTK_Selector.cxx:768
virtual SALOME_Actor * GetActor(const Handle(SALOME_InteractiveObject)&theIO) const
Definition: SVTK_Selector.cxx:153
virtual bool AddOrRemoveIndex(const Handle(SALOME_InteractiveObject)&theIO, const SVTK_TIndexedMapOfVtkId &theIndices, bool theIsModeShift)
Definition: SVTK_Selector.cxx:357
virtual vtkActorCollection * Pick(const SVTK_SelectionEvent *theEvent, vtkRenderer *theRenderer) const
virtual void GetIndex(const Handle(SALOME_InteractiveObject)&theIO, SVTK_TIndexedMapOfVtkId &theIndex)
Definition: SVTK_Selector.cxx:275
virtual bool IsCompositeIndexSelected(const Handle(SALOME_InteractiveObject)&theIO, SVTK_ListOfVtk theIds) const
Definition: SVTK_Selector.cxx:603
virtual void SetSelectionEnabled(bool theEnabled)
Definition: SVTK_Selector.cxx:761
bool myDynamicPreselection
Definition: SVTK_SelectorDef.h:242
bool myPreselectionEnabled
Definition: SVTK_SelectorDef.h:243
virtual void EndPickCallback()
Definition: SVTK_Selector.cxx:93
virtual void ClearCompositeIndex()
Definition: SVTK_Selector.cxx:619
virtual void RemoveFilter(const int theId)
Definition: SVTK_Selector.cxx:653
virtual void ClearIObjects()
Definition: SVTK_Selector.cxx:118
SALOME_ListIO myIObjectList
Definition: SVTK_SelectorDef.h:267
virtual Selection_Mode SelectionMode() const
Get current Selection_Mode.
Definition: SVTK_SelectorDef.h:60
virtual bool AddIObject(const Handle(SALOME_InteractiveObject)&theIO)
Definition: SVTK_Selector.cxx:167
virtual ~SVTK_SelectorDef()
Definition: SVTK_Selector.cxx:74
virtual bool HasIndex(const Handle(SALOME_InteractiveObject)&theIO) const
Definition: SVTK_Selector.cxx:264
std::map< Handle(SALOME_InteractiveObject), SVTK_IndexedMapOfVtkIds, TIOLessThan > TMapIOSubCompositeIndex
Definition: SVTK_SelectorDef.h:284
virtual int IObjectCount() const
Definition: SVTK_Selector.cxx:253
virtual bool HasCompositeIndex(const Handle(SALOME_InteractiveObject)&theIO) const
! Composite indexes
Definition: SVTK_Selector.cxx:490
std::set< Handle(SALOME_InteractiveObject), TIOLessThan > TIObjects
Definition: SVTK_SelectorDef.h:269
virtual void SetDynamicPreSelection(bool theIsDynPreselect)
Definition: SVTK_Selector.cxx:733
TIObjects myIObjects
Definition: SVTK_SelectorDef.h:270
std::map< Handle(SALOME_InteractiveObject), vtkSmartPointer< SALOME_Actor >, TIOLessThan > TIO2Actors
Definition: SVTK_SelectorDef.h:274
virtual void SetTolerance(const double &theTolerance)
virtual bool IsFilterPresent(const TFilterID theId) const
Definition: SVTK_Selector.cxx:642
std::map< TFilterID, Handle(VTKViewer_Filter)> TFilters
Definition: SVTK_SelectorDef.h:288
virtual void RemoveIndex(const Handle(SALOME_InteractiveObject)&theIO, int theIndex)
Definition: SVTK_Selector.cxx:464
Define an abstract interface for selection in SVTK package.
Definition: SVTK_Selector.h:58
int TFilterID
Definition: SVTK_Selector.h:216
Define a container for SALOME VTK view window.
Definition: SVTK_ViewWindow.h:86
Extends two interfaces SVTK_ViewModelBase and SALOME_View.
Definition: SVTK_ViewModel.h:46
Definition: VTKViewer_Filter.cxx:29
The structure is used for passing all infromation necessary for claculation of the selection.
Definition: SVTK_SelectionEvent.h:41
Definition: SVTK_SelectorDef.h:247
bool operator()(const Handle(SALOME_InteractiveObject)&theRightIO, const Handle(SALOME_InteractiveObject)&theLeftIO) const
Definition: SVTK_SelectorDef.h:249
Definition: SVTK_SelectorDef.h:257
TIndexedMapOfInteger()
Definition: SVTK_SelectorDef.h:259
TIndexedMapOfInteger(const TIndexedMapOfInteger &theIndexedMapOfInteger)
Definition: SVTK_SelectorDef.h:261
SVTK_TIndexedMapOfVtkId myMap
Definition: SVTK_SelectorDef.h:258