|  | VTK
    9.0.1
    | 
 
 
 
Go to the documentation of this file.
  101 #ifndef vtkInteractorStyle_h 
  102 #define vtkInteractorStyle_h 
  105 #include "vtkRenderingCoreModule.h"  
  109 #define VTKIS_START 0 
  112 #define VTKIS_ROTATE 1 
  115 #define VTKIS_DOLLY 4 
  117 #define VTKIS_USCALE 6 
  118 #define VTKIS_TIMER 7 
  119 #define VTKIS_FORWARDFLY 8 
  120 #define VTKIS_REVERSEFLY 9 
  121 #define VTKIS_TWO_POINTER 10 
  122 #define VTKIS_CLIP 11 
  123 #define VTKIS_PICK 12                 // perform a pick at the last location 
  124 #define VTKIS_LOAD_CAMERA_POSE 13     // iterate through saved camera poses 
  125 #define VTKIS_POSITION_PROP 14        // adjust the position, orientation of a prop 
  126 #define VTKIS_EXIT 15                 // call exit callback 
  127 #define VTKIS_TOGGLE_DRAW_CONTROLS 16 // draw device controls helpers 
  128 #define VTKIS_MENU 17                 // invoke an application menu 
  129 #define VTKIS_GESTURE 18              // touch interaction in progress 
  130 #define VTKIS_ENV_ROTATE 19           // rotate the renderer environment texture 
  132 #define VTKIS_ANIM_OFF 0 
  133 #define VTKIS_ANIM_ON 1 
  184   vtkSetClampMacro(AutoAdjustCameraClippingRange, 
vtkTypeBool, 0, 1);
 
  185   vtkGetMacro(AutoAdjustCameraClippingRange, 
vtkTypeBool);
 
  186   vtkBooleanMacro(AutoAdjustCameraClippingRange, 
vtkTypeBool);
 
  194   void FindPokedRenderer(
int, 
int);
 
  200   vtkGetMacro(State, 
int);
 
  219   vtkSetClampMacro(TimerDuration, 
unsigned long, 1, 100000);
 
  220   vtkGetMacro(TimerDuration, 
unsigned long);
 
  293   virtual void OnTimer();
 
  331   virtual void StartState(
int newstate);
 
  332   virtual void StopState();
 
  339   virtual void StartAnimate();
 
  340   virtual void StopAnimate();
 
  341   virtual void StartRotate();
 
  342   virtual void EndRotate();
 
  343   virtual void StartZoom();
 
  344   virtual void EndZoom();
 
  345   virtual void StartPan();
 
  346   virtual void EndPan();
 
  347   virtual void StartSpin();
 
  348   virtual void EndSpin();
 
  349   virtual void StartDolly();
 
  350   virtual void EndDolly();
 
  351   virtual void StartUniformScale();
 
  352   virtual void EndUniformScale();
 
  353   virtual void StartTimer();
 
  354   virtual void EndTimer();
 
  355   virtual void StartTwoPointer();
 
  356   virtual void EndTwoPointer();
 
  357   virtual void StartGesture();
 
  358   virtual void EndGesture();
 
  359   virtual void StartEnvRotate();
 
  360   virtual void EndEnvRotate();
 
  385   virtual void HighlightProp(
vtkProp* prop);
 
  386   virtual void HighlightActor2D(
vtkActor2D* actor2D);
 
  387   virtual void HighlightProp3D(
vtkProp3D* prop3D);
 
  395   vtkSetVector3Macro(PickColor, 
double);
 
  396   vtkGetVectorMacro(PickColor, 
double, 3);
 
  405   vtkSetMacro(MouseWheelMotionFactor, 
double);
 
  406   vtkGetMacro(MouseWheelMotionFactor, 
double);
 
  421   void DelegateTDxEvent(
unsigned long event, 
void* calldata);
 
  431     vtkObject* 
object, 
unsigned long event, 
void* clientdata, 
void* calldata);
 
  
map vtkPolyData to graphics primitives
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 OnDropLocation(double *vtkNotUsed(position))
When the mouse location is updated while dragging files.
virtual void OnFifthButtonDown()
virtual void OnChar()
Sets up the keypress-i event.
vtkTypeBool AutoAdjustCameraClippingRange
virtual void OnStartPan()
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 OnButton3D(vtkEventData *)
virtual void OnMiddleButtonUp()
virtual void OnEndPinch()
virtual void OnMouseMove()
Generic event bindings can be overridden in subclasses.
virtual void OnFourthButtonUp()
virtual void OnStartPinch()
vtkTypeBool HandleObservers
virtual void OnEndSwipe()
vtkOutlineSource * Outline
virtual void EnvironmentRotate()
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 OnStartRotate()
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
virtual void OnDropFiles(vtkStringArray *vtkNotUsed(filePaths))
When files are dropped on the render window.
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 OnEndRotate()
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
a vtkAbstractArray subclass for strings
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()