Go to the documentation of this file.
73 #ifndef vtkPickingManager_h
74 #define vtkPickingManager_h
77 #include "vtkRenderingCoreModule.h"
98 vtkBooleanMacro(Enabled,
bool);
99 vtkSetMacro(Enabled,
bool);
100 vtkGetMacro(Enabled,
bool);
114 vtkGetMacro(OptimizeOnInteractorEvents,
bool);
208 vtkInternal* Internal;
int GetNumberOfPickers()
Return the number of pickers registered.
vtkAssemblyPath * GetAssemblyPath(double X, double Y, double Z, vtkAbstractPropPicker *picker, vtkRenderer *renderer, vtkObject *obj)
If the picking manager is enabled, it runs the picking selection process and return the assembly path...
void SetOptimizeOnInteractorEvents(bool optimize)
Enable/Disable optimization depending on the renderWindowInteractor events.
bool Pick(vtkAbstractPicker *picker, vtkObject *object)
Run the picking selection process and return true if the object is associated with the given picker i...
void RemoveObject(vtkObject *object)
Remove all occurrence of the object from the registered list.
abstract base class for most VTK objects
define API for picking subclasses
a list of nodes that form an assembly path
void AddPicker(vtkAbstractPicker *picker, vtkObject *object=nullptr)
Register a picker into the picking manager.
void SetInteractor(vtkRenderWindowInteractor *iren)
Set the window interactor associated with the manager.
bool OptimizeOnInteractorEvents
a simple class to control print indentation
bool Pick(vtkAbstractPicker *picker)
Run the picking selection process and return if picker is the one selected.
platform-independent render window interaction including picking and frame rate control.
static vtkPickingManager * New()
vtkRenderWindowInteractor * Interactor
abstract API for pickers that can pick an instance of vtkProp
bool Pick(vtkObject *object)
Run the picking selection process and return true if the object is associated with the best picker.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract specification for renderers
~vtkPickingManager() override
void RemovePicker(vtkAbstractPicker *picker, vtkObject *object=nullptr)
Unregister the picker from the picking manager.
int GetNumberOfObjectsLinked(vtkAbstractPicker *picker)
Return the number of objects linked with a given picker.