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 115 #define VTKIS_ANIM_OFF 0 116 #define VTKIS_ANIM_ON 1 165 vtkSetClampMacro(AutoAdjustCameraClippingRange,
int, 0, 1 );
166 vtkGetMacro(AutoAdjustCameraClippingRange,
int );
175 void FindPokedRenderer(
int,
int);
181 vtkGetMacro(State,
int);
188 vtkGetMacro(UseTimers,
int);
200 vtkSetClampMacro(TimerDuration,
unsigned long,1,100000);
201 vtkGetMacro(TimerDuration,
unsigned long);
209 vtkGetMacro(HandleObservers,
int);
234 void OnChar() VTK_OVERRIDE;
239 virtual
void OnKeyDown() {}
268 virtual void OnTimer();
297 virtual void StartState(
int newstate);
298 virtual void StopState();
305 virtual void StartAnimate();
306 virtual void StopAnimate();
307 virtual void StartRotate();
308 virtual void EndRotate();
309 virtual void StartZoom();
310 virtual void EndZoom();
311 virtual void StartPan();
312 virtual void EndPan();
313 virtual void StartSpin();
314 virtual void EndSpin();
315 virtual void StartDolly();
316 virtual void EndDolly();
317 virtual void StartUniformScale();
318 virtual void EndUniformScale();
319 virtual void StartTimer();
320 virtual void EndTimer();
321 virtual void StartTwoPointer();
322 virtual void EndTwoPointer();
332 virtual void HighlightProp(
vtkProp *prop);
333 virtual void HighlightActor2D(
vtkActor2D *actor2D);
334 virtual void HighlightProp3D(
vtkProp3D *prop3D);
342 vtkSetVector3Macro(PickColor,
double);
343 vtkGetVectorMacro(PickColor,
double, 3);
353 vtkGetMacro(MouseWheelMotionFactor,
double);
368 void DelegateTDxEvent(
unsigned long event,
378 static
void ProcessEvents(
vtkObject*
object,
392 int AutoAdjustCameraClippingRange;
403 double MouseWheelMotionFactor;
406 unsigned long TimerDuration;
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()
virtual void OnRightButtonDown()
represents an object (geometry & properties) in a rendered scene
abstract base class for most VTK objects
virtual void OnLeftButtonUp()
virtual void OnMiddleButtonUp()
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()
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 ...
virtual void OnRightButtonUp()
platform-independent render window interaction including picking and frame rate control.
virtual void OnExpose()
These are more esoteric events, but are useful in some cases.
supports function callbacks
virtual void OnConfigure()
a simple class to control print indentation
virtual void OnMouseWheelBackward()
create wireframe outline around bounding box
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
provide 3DConnexion device event-driven interface to the rendering window
virtual void OnFifthButtonDown()
map vtkPolyData to graphics primitives
provide event-driven interface to the rendering window (defines trackball mode)
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 OnFourthButtonDown()
virtual void OnPinch()
gesture based events
virtual void OnMouseMove()
Generic event bindings can be overridden in subclasses.
virtual void OnFourthButtonUp()