Go to the documentation of this file.
98 #ifndef vtkInteractorStyle_h
99 #define vtkInteractorStyle_h
101 #include "vtkRenderingCoreModule.h"
106 #define VTKIS_START 0
109 #define VTKIS_ROTATE 1
112 #define VTKIS_DOLLY 4
114 #define VTKIS_USCALE 6
115 #define VTKIS_TIMER 7
116 #define VTKIS_FORWARDFLY 8
117 #define VTKIS_REVERSEFLY 9
118 #define VTKIS_TWO_POINTER 10
120 #define VTKIS_ANIM_OFF 0
121 #define VTKIS_ANIM_ON 1
170 vtkSetClampMacro(AutoAdjustCameraClippingRange,
int, 0, 1 );
171 vtkGetMacro(AutoAdjustCameraClippingRange,
int );
186 vtkGetMacro(State,
int);
193 vtkGetMacro(UseTimers,
int);
205 vtkSetClampMacro(TimerDuration,
unsigned long,1,100000);
206 vtkGetMacro(TimerDuration,
unsigned long);
214 vtkGetMacro(HandleObservers,
int);
343 vtkSetVector3Macro(PickColor,
double);
344 vtkGetVectorMacro(PickColor,
double, 3);
354 vtkGetMacro(MouseWheelMotionFactor,
double);
map vtkPolyData to graphics primitives
create wireframe outline around bounding box
virtual void OnKeyRelease()
virtual void OnKeyPress()
represents an 3D object for placement in a rendered scene
virtual void HighlightProp3D(vtkProp3D *prop3D)
abstract base class for most VTK objects
virtual void StartUniformScale()
static void ProcessEvents(vtkObject *object, unsigned long event, void *clientdata, void *calldata)
Main process event method.
an abstract superclass for classes observing events invoked by vtkRenderWindowInteractor
virtual void OnPinch()
gesture based events
void FindPokedRenderer(int, int)
When an event occurs, we must determine which Renderer the event occurred within, since one RenderWin...
virtual void OnMiddleButtonUp()
virtual void OnMouseMove()
Generic event bindings can be overridden in subclasses.
virtual void StartTimer()
vtkOutlineSource * Outline
void DelegateTDxEvent(unsigned long event, void *calldata)
Called by the callback to process 3DConnexion device events.
virtual void SetTDxStyle(vtkTDxInteractorStyle *tdxStyle)
virtual void StartAnimate()
Interaction mode entry points used internally.
virtual void OnMiddleButtonDown()
virtual void OnRightButtonDown()
virtual void OnMouseWheelForward()
virtual void StartState(int newstate)
utility routines used by state changes
vtkRenderer * PickedRenderer
virtual void StartTwoPointer()
virtual void OnLeftButtonDown()
represents an object (geometry & properties) in a rendered scene
a simple class to control print indentation
vtkTDxInteractorStyle * TDxStyle
virtual void HighlightProp(vtkProp *prop)
When picking successfully selects an actor, this method highlights the picked prop appropriately.
platform-independent render window interaction including picking and frame rate control.
virtual void OnConfigure()
vtkEventForwarderCommand * EventForwarder
virtual void OnExpose()
These are more esoteric events, but are useful in some cases.
provide event-driven interface to the rendering window (defines trackball mode)
virtual void OnMouseWheelBackward()
unsigned long TimerDuration
virtual void OnLeftButtonUp()
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
abstract superclass for all actors, volumes and annotations
int AutoAdjustCameraClippingRange
a actor that draws 2D data
virtual void EndUniformScale()
static vtkInteractorStyle * New()
This class must be supplied with a vtkRenderWindowInteractor wrapper or parent.
virtual void UniformScale()
abstract specification for renderers
virtual void Rotate()
These methods for the different interactions in different modes are overridden in subclasses to perfo...
supports function callbacks
virtual void StopAnimate()
provide 3DConnexion device event-driven interface to the rendering window
virtual void OnRightButtonUp()
virtual void SetInteractor(vtkRenderWindowInteractor *interactor)
Set/Get the Interactor wrapper being controlled by this object.
double MouseWheelMotionFactor
virtual void StartDolly()
virtual void HighlightActor2D(vtkActor2D *actor2D)
virtual void EndTwoPointer()
virtual void OnChar()
OnChar is triggered when an ASCII key is pressed.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
a simple event forwarder command
virtual void SetEnabled(int)
Turn on/off this interactor.
vtkPolyDataMapper * OutlineMapper
virtual void OnTimer()
OnTimer calls Rotate, Rotate etc which should be overridden by style subclasses.
vtkActor2D * PickedActor2D
virtual void StartRotate()