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 );
180 void FindPokedRenderer(
int,
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);
269 virtual void OnTimer();
298 virtual void StartState(
int newstate);
299 virtual void StopState();
306 virtual void StartAnimate();
307 virtual void StopAnimate();
308 virtual void StartRotate();
309 virtual void EndRotate();
310 virtual void StartZoom();
311 virtual void EndZoom();
312 virtual void StartPan();
313 virtual void EndPan();
314 virtual void StartSpin();
315 virtual void EndSpin();
316 virtual void StartDolly();
317 virtual void EndDolly();
318 virtual void StartUniformScale();
319 virtual void EndUniformScale();
320 virtual void StartTimer();
321 virtual void EndTimer();
322 virtual void StartTwoPointer();
323 virtual void EndTwoPointer();
333 virtual void HighlightProp(
vtkProp *prop);
334 virtual void HighlightActor2D(
vtkActor2D *actor2D);
335 virtual void HighlightProp3D(
vtkProp3D *prop3D);
343 vtkSetVector3Macro(PickColor,
double);
344 vtkGetVectorMacro(PickColor,
double, 3);
354 vtkGetMacro(MouseWheelMotionFactor,
double);
369 void DelegateTDxEvent(
unsigned long event,
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 OnMiddleButtonDown()
double MouseWheelMotionFactor
virtual void OnRightButtonDown()
represents an object (geometry & properties) in a rendered scene
abstract base class for most VTK objects
virtual void OnLeftButtonUp()
static void ProcessEvents(vtkObject *object, unsigned long event, void *clientdata, void *calldata)
Handles the char widget activation event.
virtual void OnMiddleButtonUp()
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()
abstract specification for renderers
virtual void OnMouseWheelForward()
represents an 3D object for placement in a rendered scene
virtual void OnKeyRelease()
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 OnConfigure()
a simple class to control print indentation
virtual void OnMouseWheelBackward()
unsigned long TimerDuration
int AutoAdjustCameraClippingRange
create wireframe outline around bounding box
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
vtkRenderer * PickedRenderer
provide 3DConnexion device event-driven interface to the rendering window
map vtkPolyData to graphics primitives
provide event-driven interface to the rendering window (defines trackball mode)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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 OnPinch()
gesture based events
virtual void OnMouseMove()
Generic event bindings can be overridden in subclasses.
vtkOutlineSource * Outline
vtkTDxInteractorStyle * TDxStyle