Go to the documentation of this file.
92 #ifndef vtkInteractorStyle_h
93 #define vtkInteractorStyle_h
95 #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 // perform a pick at the last location
115 #define VTKIS_LOAD_CAMERA_POSE 13 // iterate through saved camera poses
116 #define VTKIS_POSITION_PROP 14 // adjust the position, orientation of a prop
117 #define VTKIS_EXIT 15 // call exit callback
118 #define VTKIS_TOGGLE_DRAW_CONTROLS 16 // draw device controls helpers
119 #define VTKIS_MENU 17 // invoke an application menu
121 #define VTKIS_ANIM_OFF 0
122 #define VTKIS_ANIM_ON 1
172 vtkSetClampMacro(AutoAdjustCameraClippingRange,
vtkTypeBool, 0, 1 );
173 vtkGetMacro(AutoAdjustCameraClippingRange,
vtkTypeBool );
174 vtkBooleanMacro(AutoAdjustCameraClippingRange,
vtkTypeBool );
182 void FindPokedRenderer(
int,
int);
188 vtkGetMacro(State,
int);
207 vtkSetClampMacro(TimerDuration,
unsigned long,1,100000);
208 vtkGetMacro(TimerDuration,
unsigned long);
282 virtual void OnTimer();
311 virtual void StartState(
int newstate);
312 virtual void StopState();
319 virtual void StartAnimate();
320 virtual void StopAnimate();
321 virtual void StartRotate();
322 virtual void EndRotate();
323 virtual void StartZoom();
324 virtual void EndZoom();
325 virtual void StartPan();
326 virtual void EndPan();
327 virtual void StartSpin();
328 virtual void EndSpin();
329 virtual void StartDolly();
330 virtual void EndDolly();
331 virtual void StartUniformScale();
332 virtual void EndUniformScale();
333 virtual void StartTimer();
334 virtual void EndTimer();
335 virtual void StartTwoPointer();
336 virtual void EndTwoPointer();
346 virtual void HighlightProp(
vtkProp *prop);
347 virtual void HighlightActor2D(
vtkActor2D *actor2D);
348 virtual void HighlightProp3D(
vtkProp3D *prop3D);
356 vtkSetVector3Macro(PickColor,
double);
357 vtkGetVectorMacro(PickColor,
double, 3);
366 vtkSetMacro(MouseWheelMotionFactor,
double);
367 vtkGetMacro(MouseWheelMotionFactor,
double);
382 void DelegateTDxEvent(
unsigned long event,
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 OnFifthButtonDown()
virtual void OnChar()
Sets up the keypress-i event.
vtkTypeBool AutoAdjustCameraClippingRange
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
abstract base class for most VTK objects
an abstract superclass for classes observing events invoked by vtkRenderWindowInteractor
virtual void OnPinch()
gesture based events
virtual void OnButton3D(vtkEventData *)
virtual void OnMiddleButtonUp()
virtual void OnMouseMove()
Generic event bindings can be overridden in subclasses.
virtual void OnFourthButtonUp()
vtkTypeBool HandleObservers
vtkOutlineSource * Outline
virtual void OnMiddleButtonDown()
static void ProcessEvents(vtkObject *object, unsigned long event, void *clientdata, void *calldata)
Handles the char widget activation event.
virtual void OnRightButtonDown()
virtual void OnMouseWheelForward()
vtkRenderer * PickedRenderer
virtual void OnLeftButtonDown()
represents an object (geometry & properties) in a rendered scene
virtual void SetEnabled(int)
Methods for turning the interactor observer on and off, and determining its state.
a simple class to control print indentation
vtkTDxInteractorStyle * TDxStyle
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.
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()
virtual void OnFourthButtonDown()
abstract superclass for all actors, volumes and annotations
virtual void SetInteractor(vtkRenderWindowInteractor *iren)
This method is used to associate the widget with the render window interactor.
a actor that draws 2D data
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
provide 3DConnexion device event-driven interface to the rendering window
virtual void OnRightButtonUp()
double MouseWheelMotionFactor
a simple event forwarder command
vtkPolyDataMapper * OutlineMapper
vtkActor2D * PickedActor2D
virtual void OnMove3D(vtkEventData *)
Generic 3D event bindings can be overridden in subclasses.
virtual void OnFifthButtonUp()