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
119 #define VTKIS_CLIP 11
120 #define VTKIS_PICK 12 // perform a pick at the last location
121 #define VTKIS_LOAD_CAMERA_POSE 13 // iterate through saved camera poses
122 #define VTKIS_POSITION_PROP 14 // adjust the position, orientation of a prop
123 #define VTKIS_EXIT 15 // call exit callback
124 #define VTKIS_TOGGLE_DRAW_CONTROLS 16 // draw device controls helpers
125 #define VTKIS_MENU 17 // invoke an application menu
127 #define VTKIS_ANIM_OFF 0
128 #define VTKIS_ANIM_ON 1
178 vtkSetClampMacro(AutoAdjustCameraClippingRange,
vtkTypeBool, 0, 1 );
179 vtkGetMacro(AutoAdjustCameraClippingRange,
vtkTypeBool );
180 vtkBooleanMacro(AutoAdjustCameraClippingRange,
vtkTypeBool );
188 void FindPokedRenderer(
int,
int);
194 vtkGetMacro(State,
int);
213 vtkSetClampMacro(TimerDuration,
unsigned long,1,100000);
214 vtkGetMacro(TimerDuration,
unsigned long);
288 virtual void OnTimer();
317 virtual void StartState(
int newstate);
318 virtual void StopState();
325 virtual void StartAnimate();
326 virtual void StopAnimate();
327 virtual void StartRotate();
328 virtual void EndRotate();
329 virtual void StartZoom();
330 virtual void EndZoom();
331 virtual void StartPan();
332 virtual void EndPan();
333 virtual void StartSpin();
334 virtual void EndSpin();
335 virtual void StartDolly();
336 virtual void EndDolly();
337 virtual void StartUniformScale();
338 virtual void EndUniformScale();
339 virtual void StartTimer();
340 virtual void EndTimer();
341 virtual void StartTwoPointer();
342 virtual void EndTwoPointer();
352 virtual void HighlightProp(
vtkProp *prop);
353 virtual void HighlightActor2D(
vtkActor2D *actor2D);
354 virtual void HighlightProp3D(
vtkProp3D *prop3D);
362 vtkSetVector3Macro(PickColor,
double);
363 vtkGetVectorMacro(PickColor,
double, 3);
372 vtkSetMacro(MouseWheelMotionFactor,
double);
373 vtkGetMacro(MouseWheelMotionFactor,
double);
388 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()