95 #ifndef vtkInteractorStyle_h 96 #define vtkInteractorStyle_h 99 #include "vtkRenderingCoreModule.h" 103 #define VTKIS_START 0 106 #define VTKIS_ROTATE 1 109 #define VTKIS_DOLLY 4 111 #define VTKIS_USCALE 6 112 #define VTKIS_TIMER 7 113 #define VTKIS_FORWARDFLY 8 114 #define VTKIS_REVERSEFLY 9 115 #define VTKIS_TWO_POINTER 10 116 #define VTKIS_CLIP 11 117 #define VTKIS_PICK 12 // perform a pick at the last location 118 #define VTKIS_LOAD_CAMERA_POSE 13 // iterate through saved camera poses 119 #define VTKIS_POSITION_PROP 14 // adjust the position, orientation of a prop 120 #define VTKIS_EXIT 15 // call exit callback 121 #define VTKIS_TOGGLE_DRAW_CONTROLS 16 // draw device controls helpers 122 #define VTKIS_MENU 17 // invoke an application menu 123 #define VTKIS_GESTURE 18 // touch interaction in progress 124 #define VTKIS_ENV_ROTATE 19 // rotate the renderer environment texture 126 #define VTKIS_ANIM_OFF 0 127 #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);
287 virtual void OnTimer();
325 virtual void StartState(
int newstate);
326 virtual void StopState();
333 virtual void StartAnimate();
334 virtual void StopAnimate();
335 virtual void StartRotate();
336 virtual void EndRotate();
337 virtual void StartZoom();
338 virtual void EndZoom();
339 virtual void StartPan();
340 virtual void EndPan();
341 virtual void StartSpin();
342 virtual void EndSpin();
343 virtual void StartDolly();
344 virtual void EndDolly();
345 virtual void StartUniformScale();
346 virtual void EndUniformScale();
347 virtual void StartTimer();
348 virtual void EndTimer();
349 virtual void StartTwoPointer();
350 virtual void EndTwoPointer();
351 virtual void StartGesture();
352 virtual void EndGesture();
353 virtual void StartEnvRotate();
354 virtual void EndEnvRotate();
379 virtual void HighlightProp(
vtkProp* prop);
380 virtual void HighlightActor2D(
vtkActor2D* actor2D);
381 virtual void HighlightProp3D(
vtkProp3D* prop3D);
389 vtkSetVector3Macro(PickColor,
double);
390 vtkGetVectorMacro(PickColor,
double, 3);
399 vtkSetMacro(MouseWheelMotionFactor,
double);
400 vtkGetMacro(MouseWheelMotionFactor,
double);
415 void DelegateTDxEvent(
unsigned long event,
void* calldata);
425 vtkObject*
object,
unsigned long event,
void* clientdata,
void* calldata);
a simple event forwarder command
virtual void OnLeftButtonDown()
virtual void Rotate()
These methods for the different interactions in different modes are overridden in subclasses to perfo...
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.
virtual void OnDropFiles(vtkStringArray *vtkNotUsed(filePaths))
When files are dropped on the render window.
virtual void OnMiddleButtonDown()
double MouseWheelMotionFactor
virtual void OnRightButtonDown()
represents an object (geometry & properties) in a rendered scene
abstract base class for most VTK objects
virtual void OnButton3D(vtkEventData *)
virtual void OnLeftButtonUp()
static void ProcessEvents(vtkObject *object, unsigned long event, void *clientdata, void *calldata)
Handles the char widget activation event.
virtual void OnMiddleButtonUp()
virtual void OnEndPinch()
virtual void OnFifthButtonUp()
a actor that draws 2D data
virtual void SetEnabled(int)
Methods for turning the interactor observer on and off, and determining its state.
virtual void UniformScale()
a vtkAbstractArray subclass for strings
abstract specification for renderers
virtual void OnMouseWheelForward()
represents an 3D object for placement in a rendered scene
virtual void OnKeyRelease()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void OnKeyPress()
an abstract superclass for classes observing events invoked by vtkRenderWindowInteractor ...
vtkPolyDataMapper * OutlineMapper
virtual void OnRightButtonUp()
platform-independent render window interaction including picking and frame rate control.
vtkEventForwarderCommand * EventForwarder
virtual void OnExpose()
These are more esoteric events, but are useful in some cases.
supports function callbacks
vtkActor2D * PickedActor2D
virtual void OnMove3D(vtkEventData *)
Generic 3D event bindings can be overridden in subclasses.
virtual void OnConfigure()
a simple class to control print indentation
virtual void OnMouseWheelBackward()
unsigned long TimerDuration
virtual void OnStartPinch()
create wireframe outline around bounding box
vtkTypeBool HandleObservers
virtual void OnEndSwipe()
virtual void OnDropLocation(double *vtkNotUsed(position))
When the mouse location is updated while dragging files.
vtkTypeBool AutoAdjustCameraClippingRange
virtual void OnStartPan()
vtkRenderer * PickedRenderer
provide 3DConnexion device event-driven interface to the rendering window
virtual void OnFifthButtonDown()
map vtkPolyData to graphics primitives
virtual void OnStartSwipe()
gesture based events
virtual void OnStartRotate()
provide event-driven interface to the rendering window (defines trackball mode)
virtual void OnChar()
Sets up the keypress-i event.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
virtual void OnEndRotate()
virtual void OnFourthButtonDown()
virtual void EnvironmentRotate()
virtual void OnMouseMove()
Generic event bindings can be overridden in subclasses.
virtual void OnFourthButtonUp()
vtkOutlineSource * Outline
vtkTDxInteractorStyle * TDxStyle