92 #ifndef vtkInteractorStyle_h
93 #define vtkInteractorStyle_h
96 #include "vtkRenderingCoreModule.h"
100 #define VTKIS_START 0
103 #define VTKIS_ROTATE 1
106 #define VTKIS_DOLLY 4
108 #define VTKIS_USCALE 6
109 #define VTKIS_TIMER 7
110 #define VTKIS_FORWARDFLY 8
111 #define VTKIS_REVERSEFLY 9
112 #define VTKIS_TWO_POINTER 10
113 #define VTKIS_CLIP 11
114 #define VTKIS_PICK 12
115 #define VTKIS_LOAD_CAMERA_POSE 13
116 #define VTKIS_POSITION_PROP 14
117 #define VTKIS_EXIT 15
118 #define VTKIS_TOGGLE_DRAW_CONTROLS 16
119 #define VTKIS_MENU 17
120 #define VTKIS_GESTURE 18
121 #define VTKIS_ENV_ROTATE 19
123 #define VTKIS_ANIM_OFF 0
124 #define VTKIS_ANIM_ON 1
175 vtkSetClampMacro(AutoAdjustCameraClippingRange,
vtkTypeBool, 0, 1);
191 vtkGetMacro(State,
int);
210 vtkSetClampMacro(TimerDuration,
unsigned long, 1, 100000);
211 vtkGetMacro(TimerDuration,
unsigned long);
386 vtkSetVector3Macro(PickColor,
double);
387 vtkGetVectorMacro(PickColor,
double, 3);
396 vtkSetMacro(MouseWheelMotionFactor,
double);
397 vtkGetMacro(MouseWheelMotionFactor,
double);
422 vtkObject*
object,
unsigned long event,
void* clientdata,
void* calldata);
a actor that draws 2D data
represents an object (geometry & properties) in a rendered scene
supports function callbacks
a simple event forwarder command
a simple class to control print indentation
an abstract superclass for classes observing events invoked by vtkRenderWindowInteractor
provide event-driven interface to the rendering window (defines trackball mode)
virtual void StopAnimate()
vtkPolyDataMapper * OutlineMapper
virtual void OnFifthButtonUp()
virtual void OnMove3D(vtkEventData *)
Generic 3D event bindings can be overridden in subclasses.
virtual void OnMouseWheelBackward()
virtual void OnMiddleButtonDown()
void SetEnabled(int) override
Turn on/off this interactor.
virtual void StartEnvRotate()
virtual void HighlightProp(vtkProp *prop)
When picking successfully selects an actor, this method highlights the picked prop appropriately.
virtual void EndUniformScale()
virtual void OnStartSwipe()
gesture based events
vtkEventForwarderCommand * EventForwarder
virtual void StartTimer()
virtual void OnRightButtonDown()
virtual void OnDropLocation(double *vtkNotUsed(position))
When the mouse location is updated while dragging files.
virtual void Rotate()
These methods for the different interactions in different modes are overridden in subclasses to perfo...
void DelegateTDxEvent(unsigned long event, void *calldata)
Called by the callback to process 3DConnexion device events.
virtual void OnKeyPress()
virtual void HighlightProp3D(vtkProp3D *prop3D)
virtual void UniformScale()
virtual void OnExpose()
These are more esoteric events, but are useful in some cases.
virtual void OnRightButtonUp()
virtual void OnStartPinch()
virtual void StartGesture()
virtual void OnEndPinch()
virtual void OnStartRotate()
virtual void OnConfigure()
virtual void OnLeftButtonDown()
unsigned long TimerDuration
virtual void OnMouseWheelForward()
virtual void OnDropFiles(vtkStringArray *vtkNotUsed(filePaths))
When files are dropped on the render window.
static void ProcessEvents(vtkObject *object, unsigned long event, void *clientdata, void *calldata)
Main process event method.
virtual void OnFourthButtonUp()
virtual void HighlightActor2D(vtkActor2D *actor2D)
virtual void OnMiddleButtonUp()
virtual void EndGesture()
void SetInteractor(vtkRenderWindowInteractor *interactor) override
Set/Get the Interactor wrapper being controlled by this object.
virtual void StartState(int newstate)
utility routines used by state changes
virtual void EnvironmentRotate()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void OnFifthButtonDown()
virtual void EndTwoPointer()
virtual void OnTimer()
OnTimer calls Rotate, Rotate etc which should be overridden by style subclasses.
virtual void StartUniformScale()
static vtkInteractorStyle * New()
This class must be supplied with a vtkRenderWindowInteractor wrapper or parent.
virtual void OnStartPan()
vtkOutlineSource * Outline
virtual void SetTDxStyle(vtkTDxInteractorStyle *tdxStyle)
virtual void OnEndSwipe()
vtkRenderer * PickedRenderer
virtual void OnEndRotate()
virtual void OnMouseMove()
Generic event bindings can be overridden in subclasses.
virtual void EndEnvRotate()
virtual void OnKeyRelease()
void FindPokedRenderer(int, int)
When an event occurs, we must determine which Renderer the event occurred within, since one RenderWin...
vtkTypeBool HandleObservers
virtual void OnLeftButtonUp()
virtual void StartTwoPointer()
virtual void OnButton3D(vtkEventData *)
vtkActor2D * PickedActor2D
double MouseWheelMotionFactor
virtual void StartDolly()
~vtkInteractorStyle() override
virtual void StartRotate()
virtual void StartAnimate()
Interaction mode entry points used internally.
vtkTDxInteractorStyle * TDxStyle
virtual void OnFourthButtonDown()
void OnChar() override
OnChar is triggered when an ASCII key is pressed.
vtkTypeBool AutoAdjustCameraClippingRange
abstract base class for most VTK objects
create wireframe outline around bounding box
map vtkPolyData to graphics primitives
represents an 3D object for placement in a rendered scene
abstract superclass for all actors, volumes and annotations
platform-independent render window interaction including picking and frame rate control.
abstract specification for renderers
a vtkAbstractArray subclass for strings
provide 3DConnexion device event-driven interface to the rendering window