 |
VTK
9.1.0
|
Go to the documentation of this file.
160 #ifndef vtkInteractorStyle_h
161 #define vtkInteractorStyle_h
164 #include "vtkRenderingCoreModule.h"
168 #define VTKIS_START 0
171 #define VTKIS_ROTATE 1
174 #define VTKIS_DOLLY 4
176 #define VTKIS_USCALE 6
177 #define VTKIS_TIMER 7
178 #define VTKIS_FORWARDFLY 8
179 #define VTKIS_REVERSEFLY 9
180 #define VTKIS_TWO_POINTER 10
181 #define VTKIS_CLIP 11
182 #define VTKIS_PICK 12 // perform a pick at the last location
183 #define VTKIS_LOAD_CAMERA_POSE 13 // iterate through saved camera poses
184 #define VTKIS_POSITION_PROP 14 // adjust the position, orientation of a prop
185 #define VTKIS_EXIT 15 // call exit callback
186 #define VTKIS_TOGGLE_DRAW_CONTROLS 16 // draw device controls helpers
187 #define VTKIS_MENU 17 // invoke an application menu
188 #define VTKIS_GESTURE 18 // touch interaction in progress
189 #define VTKIS_ENV_ROTATE 19 // rotate the renderer environment texture
191 #define VTKIS_ANIM_OFF 0
192 #define VTKIS_ANIM_ON 1
243 vtkSetClampMacro(AutoAdjustCameraClippingRange,
vtkTypeBool, 0, 1);
259 vtkGetMacro(State,
int);
278 vtkSetClampMacro(TimerDuration,
unsigned long, 1, 100000);
279 vtkGetMacro(TimerDuration,
unsigned long);
466 vtkSetVector3Macro(PickColor,
double);
467 vtkGetVectorMacro(PickColor,
double, 3);
476 vtkSetMacro(MouseWheelMotionFactor,
double);
477 vtkGetMacro(MouseWheelMotionFactor,
double);
502 vtkObject*
object,
unsigned long event,
void* clientdata,
void* calldata);
map vtkPolyData to graphics primitives
virtual void OnRightButtonDoubleClick()
virtual void OnPositionProp3D(vtkEventData *)
virtual void EndEnvRotate()
Interaction mode entry points used internally.
create wireframe outline around bounding box
virtual void OnKeyRelease()
virtual void OnKeyPress()
virtual void OnStartSwipe()
gesture based events
represents an 3D object for placement in a rendered scene
virtual void EndTimer()
Interaction mode entry points used internally.
virtual void HighlightProp3D(vtkProp3D *prop3D)
When picking successfully selects an actor, this method highlights the picked prop appropriately.
virtual void OnDropLocation(double *vtkNotUsed(position))
When the mouse location is updated while dragging files.
virtual void OnFifthButtonDown()
vtkTypeBool AutoAdjustCameraClippingRange
virtual void OnStartPan()
virtual void StartEnvRotate()
Interaction mode entry points used internally.
abstract base class for most VTK objects
virtual void StartUniformScale()
Interaction mode entry points used internally.
static void ProcessEvents(vtkObject *object, unsigned long event, void *clientdata, void *calldata)
Main process event method.
virtual void OnSelect3D(vtkEventData *)
an abstract superclass for classes observing events invoked by vtkRenderWindowInteractor
void SetInteractor(vtkRenderWindowInteractor *interactor) override
Set/Get the Interactor wrapper being controlled by this object.
virtual void EndDolly()
Interaction mode entry points used internally.
void OnChar() override
OnChar is triggered when an ASCII key is pressed.
void FindPokedRenderer(int, int)
When an event occurs, we must determine which Renderer the event occurred within, since one RenderWin...
virtual void OnButton3D(vtkEventData *)
virtual void OnMiddleButtonUp()
virtual void OnEndPinch()
virtual void EndGesture()
Interaction mode entry points used internally.
virtual void OnMouseMove()
Generic event bindings can be overridden in subclasses.
virtual void OnFourthButtonUp()
virtual void OnStartPinch()
vtkTypeBool HandleObservers
virtual void OnEndSwipe()
virtual void StartTimer()
Interaction mode entry points used internally.
vtkOutlineSource * Outline
virtual void OnMenu3D(vtkEventData *)
void DelegateTDxEvent(unsigned long event, void *calldata)
Called by the callback to process 3DConnexion device events.
virtual void SetTDxStyle(vtkTDxInteractorStyle *tdxStyle)
3Dconnexion device interactor style.
virtual void StartAnimate()
Interaction mode entry points used internally.
virtual void EnvironmentRotate()
virtual void OnMiddleButtonDown()
virtual void OnLeftButtonDoubleClick()
virtual void OnRightButtonDown()
virtual void EndRotate()
Interaction mode entry points used internally.
virtual void OnMouseWheelForward()
virtual void StartState(int newstate)
utility routines used by state changes
vtkRenderer * PickedRenderer
virtual void StartTwoPointer()
Interaction mode entry points used internally.
virtual void OnStartRotate()
virtual void OnLeftButtonDown()
represents an object (geometry & properties) in a rendered scene
virtual void OnMouseWheelRight()
a simple class to control print indentation
virtual void StartPan()
Interaction mode entry points used internally.
vtkTDxInteractorStyle * TDxStyle
virtual void OnPick3D(vtkEventData *)
~vtkInteractorStyle() override
virtual void OnDropFiles(vtkStringArray *vtkNotUsed(filePaths))
When files are dropped on the render window.
virtual void HighlightProp(vtkProp *prop)
When picking successfully selects an actor, this method highlights the picked prop appropriately.
virtual void OnClip3D(vtkEventData *)
platform-independent render window interaction including picking and frame rate control.
virtual void OnConfigure()
virtual void EndSpin()
Interaction mode entry points used internally.
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()
virtual void StopState()
utility routines used by state changes
abstract superclass for all actors, volumes and annotations
a actor that draws 2D data
virtual void StartGesture()
Interaction mode entry points used internally.
virtual void EndUniformScale()
Interaction mode entry points used internally.
virtual void OnEndRotate()
static vtkInteractorStyle * New()
This class must be supplied with a vtkRenderWindowInteractor wrapper or parent.
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
virtual void OnMouseWheelLeft()
a vtkAbstractArray subclass for strings
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void StopAnimate()
Interaction mode entry points used internally.
virtual void EndPan()
Interaction mode entry points used internally.
virtual void StartZoom()
Interaction mode entry points used internally.
provide 3DConnexion device event-driven interface to the rendering window
virtual void OnRightButtonUp()
double MouseWheelMotionFactor
virtual void EndZoom()
Interaction mode entry points used internally.
virtual void StartDolly()
Interaction mode entry points used internally.
virtual void OnNextPose3D(vtkEventData *)
void SetEnabled(int) override
Turn on/off this interactor.
virtual void HighlightActor2D(vtkActor2D *actor2D)
When picking successfully selects an actor, this method highlights the picked prop appropriately.
virtual void EndTwoPointer()
Interaction mode entry points used internally.
virtual void StartSpin()
Interaction mode entry points used internally.
a simple event forwarder command
vtkPolyDataMapper * OutlineMapper
virtual void OnTimer()
OnTimer calls Rotate, Rotate etc which should be overridden by style subclasses.
vtkActor2D * PickedActor2D
virtual void StartRotate()
Interaction mode entry points used internally.
virtual void OnViewerMovement3D(vtkEventData *)
virtual void OnMiddleButtonDoubleClick()
virtual void OnMove3D(vtkEventData *)
Generic 3D event bindings can be overridden in subclasses.
virtual void OnFifthButtonUp()