#include <SVTK_SelectorDef.h>
Classes | |
struct | TIndexedMapOfInteger |
struct | TIOLessThan |
Public Member Functions | |
SVTK_SelectorDef () | |
virtual | ~SVTK_SelectorDef () |
virtual void | SetSelectionMode (Selection_Mode theMode) |
virtual Selection_Mode | SelectionMode () const |
Get current Selection_Mode. More... | |
virtual void | ClearIObjects () |
virtual SALOME_Actor * | GetActor (const Handle(SALOME_InteractiveObject)&theIO) const |
virtual bool | IsSelected (const Handle(SALOME_InteractiveObject)&theIO) const |
virtual bool | IsSelected (SALOME_Actor *theActor) const |
virtual bool | AddIObject (const Handle(SALOME_InteractiveObject)&theIO) |
virtual bool | AddIObject (SALOME_Actor *theActor) |
virtual bool | RemoveIObject (const Handle(SALOME_InteractiveObject)&theIO) |
virtual bool | RemoveIObject (SALOME_Actor *theActor) |
virtual const SALOME_ListIO & | StoredIObjects () const |
virtual int | IObjectCount () const |
virtual bool | HasIndex (const Handle(SALOME_InteractiveObject)&theIO) const |
virtual void | GetIndex (const Handle(SALOME_InteractiveObject)&theIO, TColStd_IndexedMapOfInteger &theIndex) |
virtual bool | AddOrRemoveIndex (const Handle(SALOME_InteractiveObject)&theIO, const TColStd_IndexedMapOfInteger &theIndices, bool theIsModeShift) |
virtual bool | AddOrRemoveIndex (const Handle(SALOME_InteractiveObject)&theIO, const TColStd_MapOfInteger &theIndices, bool theIsModeShift) |
virtual bool | AddOrRemoveIndex (const Handle(SALOME_InteractiveObject)&theIO, int theIndex, bool theIsModeShift) |
virtual void | RemoveIndex (const Handle(SALOME_InteractiveObject)&theIO, int theIndex) |
virtual bool | IsIndexSelected (const Handle(SALOME_InteractiveObject)&theIO, int theIndex) const |
virtual void | ClearIndex () |
virtual void | SetFilter (const Handle(VTKViewer_Filter)&theFilter) |
virtual | Handle (VTKViewer_Filter) GetFilter(const TFilterID theId) const |
To get a section filter by its number. More... | |
virtual bool | IsFilterPresent (const TFilterID theId) const |
virtual void | RemoveFilter (const int theId) |
virtual bool | IsValid (SALOME_Actor *theActor, const TFilterID theId, const bool theIsNode=false) const |
virtual void | StartPickCallback () |
virtual void | EndPickCallback () |
virtual vtkActorCollection * | Pick (const SVTK_SelectionEvent *theEvent, vtkRenderer *theRenderer) const |
virtual void | SetTolerance (const double &theTolerance) |
virtual void | SetDynamicPreSelection (bool theIsDynPreselect) |
virtual bool | GetDynamicPreSelection () const |
virtual void | SetPreSelectionEnabled (bool theEnabled) |
virtual bool | IsPreSelectionEnabled () const |
virtual void | SetSelectionEnabled (bool theEnabled) |
virtual bool | IsSelectionEnabled () const |
Public Member Functions inherited from SVTK_Selector | |
vtkTypeMacro (SVTK_Selector, vtkObject) | |
Private Types | |
typedef std::set< Handle(SALOME_InteractiveObject), TIOLessThan > | TIObjects |
typedef std::map< Handle(SALOME_InteractiveObject), vtkSmartPointer< SALOME_Actor > , TIOLessThan > | TIO2Actors |
typedef std::map< Handle(SALOME_InteractiveObject), TIndexedMapOfInteger, TIOLessThan > | TMapIOSubIndex |
typedef std::map< TFilterID, Handle(VTKViewer_Filter)> | TFilters |
Private Attributes | |
int | mySelectionMode |
bool | myDynamicPreselection |
bool | myPreselectionEnabled |
bool | mySelectionEnabled |
SALOME_ListIO | myIObjectList |
TIObjects | myIObjects |
TIO2Actors | myIO2Actors |
TMapIOSubIndex | myMapIOSubIndex |
TFilters | myFilters |
vtkSmartPointer< vtkPicker > | myPicker |
vtkSmartPointer< vtkCellPicker > | myCellPicker |
Additional Inherited Members | |
Public Types inherited from SVTK_Selector | |
typedef int | TFilterID |
Static Public Member Functions inherited from SVTK_Selector | |
static SVTK_Selector * | New () |
|
private |
|
private |
|
private |
|
private |
SVTK_SelectorDef::SVTK_SelectorDef | ( | ) |
Default constructor
References ActorSelection.
|
virtual |
Destructor
|
virtual |
Adds SALOME_InteractiveObject into selection
theIO | - SALOME_InteractiveObject |
Implements SVTK_Selector.
|
virtual |
Adds SALOME_Actor into selection
theActor | - SALOME_Actor |
Implements SVTK_Selector.
References Handle().
|
virtual |
Changes indices of subselection for SALOME_InteractiveObject
theIO | - SALOME_InteractiveObject |
theIndices | - indices |
theIsModeShift | - if it is false, then map will be cleared before indices are added |
Implements SVTK_Selector.
References SVTK_SelectorDef::TIndexedMapOfInteger::myMap.
|
virtual |
Changes indices of subselection for SALOME_InteractiveObject
theIO | - SALOME_InteractiveObject |
theIndices | - indices |
theIsModeShift | - if it is false, then map will be cleared before indices are added |
Implements SVTK_Selector.
References SVTK_SelectorDef::TIndexedMapOfInteger::myMap.
|
virtual |
Changes indices of subselection for SALOME_InteractiveObject
theIO | - SALOME_InteractiveObject |
theIndex | - index |
theIsModeShift | - if it is false, then map will be cleared before indices are added |
Implements SVTK_Selector.
References SVTK_SelectorDef::TIndexedMapOfInteger::myMap, and removeIndex().
|
virtual |
Clears all indices of subselection
Implements SVTK_Selector.
|
virtual |
Clear selection
Implements SVTK_Selector.
|
virtual |
To invoke selectionChanged signals
Implements SVTK_Selector.
|
virtual |
theIO | - SALOME_InteractiveObject |
Implements SVTK_Selector.
|
virtual |
Implements SVTK_Selector.
|
virtual |
Gets indices of subselection for SALOME_InteractiveObject
theIO | - SALOME_InteractiveObject |
Implements SVTK_Selector.
|
virtual |
Implements SVTK_Selector.
|
virtual |
theIO | - SALOME_InteractiveObject |
Implements SVTK_Selector.
|
virtual |
Implements SVTK_Selector.
theId | - filter id |
Implements SVTK_Selector.
|
virtual |
theIO | - SALOME_InteractiveObject |
theIndex | - index |
Implements SVTK_Selector.
|
virtual |
Implements SVTK_Selector.
|
virtual |
Implements SVTK_Selector.
|
virtual |
Implements SVTK_Selector.
References Handle().
|
virtual |
Implements SVTK_Selector.
|
virtual |
theActor | - actor |
theId | - filter id |
theIsNode | - whether it is node |
Implements SVTK_Selector.
References Handle().
|
virtual |
Implements SVTK_Selector.
References SVTK_SelectionEvent::myX, and SVTK_SelectionEvent::myY.
|
virtual |
|
virtual |
Removes index of subselection for SALOME_InteractiveObject
theIO | - SALOME_InteractiveObject |
theIndex | - index |
Implements SVTK_Selector.
References removeIndex().
|
virtual |
Removes SALOME_InteractiveObject from selection
theIO | - SALOME_InteractiveObject |
Implements SVTK_Selector.
|
virtual |
Removes SALOME_Actor from selection
theActor | - SALOME_Actor |
Implements SVTK_Selector.
References Handle().
|
inlinevirtual |
Implements SVTK_Selector.
References mySelectionMode.
|
virtual |
Implements SVTK_Selector.
|
virtual |
To apply a filter on the selection
theFilter | - new filter |
Implements SVTK_Selector.
References VTKViewer_Filter::GetId().
|
virtual |
Implements SVTK_Selector.
|
virtual |
Implements SVTK_Selector.
|
virtual |
To change current Selection_Mode (as outside effect, it invokes selectionChange signal)
Implements SVTK_Selector.
|
virtual |
Implements SVTK_Selector.
|
virtual |
To invoke selectionChanged signals
Implements SVTK_Selector.
|
virtual |
Implements SVTK_Selector.
|
private |
|
private |
|
private |
|
private |
|
mutableprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |