 |
VTK
9.1.0
|
Go to the documentation of this file.
70 #ifndef vtkInteractorObserver_h
71 #define vtkInteractorObserver_h
74 #include "vtkRenderingCoreModule.h"
102 void On() { this->SetEnabled(1); }
103 void Off() { this->SetEnabled(0); }
129 vtkSetClampMacro(Priority,
float, 0.0f, 1.0f);
130 vtkGetMacro(Priority,
float);
138 vtkBooleanMacro(PickingManaged,
bool);
140 vtkGetMacro(PickingManaged,
bool);
163 vtkSetMacro(KeyPressActivationValue,
char);
164 vtkGetMacro(KeyPressActivationValue,
char);
207 vtkRenderer* ren,
double x,
double y,
double z,
double worldPt[4]);
209 vtkRenderer* ren,
double x,
double y,
double z,
double displayPt[3]);
245 vtkObject*
object,
unsigned long event,
void* clientdata,
void* calldata);
superclass for callback/observer methods
char KeyPressActivationValue
vtkCallbackCommand * EventCallbackCommand
void ComputeDisplayToWorld(double x, double y, double z, double worldPt[4])
Helper method for subclasses.
unsigned long DeleteObserverTag
void GrabFocus(vtkCommand *mouseEvents, vtkCommand *keypressEvents=nullptr)
These methods enable an interactor observer to exclusively grab all events invoked by its associated ...
virtual void OnChar()
Sets up the keypress-i event.
virtual void SetDefaultRenderer(vtkRenderer *)
Set/Get the default renderer to use when activating the interactor observer.
void ReleaseFocus()
These methods enable an interactor observer to exclusively grab all events invoked by its associated ...
abstract base class for most VTK objects
unsigned long CharObserverTag
a list of nodes that form an assembly path
an abstract superclass for classes observing events invoked by vtkRenderWindowInteractor
virtual void SetPickingManaged(bool managed)
Enable/Disable the use of a manager to process the picking.
static void ProcessEvents(vtkObject *object, unsigned long event, void *clientdata, void *calldata)
Handles the char widget activation event.
virtual void SetEnabled(int)
Methods for turning the interactor observer on and off, and determining its state.
a simple class to control print indentation
static void ComputeDisplayToWorld(vtkRenderer *ren, double x, double y, double z, double worldPt[4])
Convenience methods for outside classes.
void UnRegisterPickers()
Unregister internal pickers from the Picking Manager.
vtkAssemblyPath * GetAssemblyPath(double X, double Y, double Z, vtkAbstractPropPicker *picker)
Proceed to a pick, whether through the PickingManager if the picking is managed or directly using the...
vtkRenderer * CurrentRenderer
vtkPickingManager * GetPickingManager()
Return the picking manager associated on the context on which the observer currently belong.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
platform-independent render window interaction including picking and frame rate control.
int RequestCursorShape(int requestedShape)
abstract API for pickers that can pick an instance of vtkProp
vtkRenderer * DefaultRenderer
virtual void RegisterPickers()
Register internal Pickers in the Picking Manager.
vtkTypeBool KeyPressActivation
void ComputeWorldToDisplay(double x, double y, double z, double displayPt[3])
Helper method for subclasses.
virtual void SetInteractor(vtkRenderWindowInteractor *iren)
This method is used to associate the widget with the render window interactor.
vtkRenderWindowInteractor * Interactor
static void ComputeWorldToDisplay(vtkRenderer *ren, double x, double y, double z, double displayPt[3])
Convenience methods for outside classes.
abstract specification for renderers
supports function callbacks
vtkCallbackCommand * KeyPressCallbackCommand
vtkObserverMediator * ObserverMediator
virtual void StartInteraction()
Utility routines used to start and end interaction.
virtual void SetCurrentRenderer(vtkRenderer *)
Set/Get the current renderer.
Class defines API to manage the picking process.
~vtkInteractorObserver() override
virtual void EndInteraction()
Utility routines used to start and end interaction.