VTK
9.1.0
|
provide event-driven interface to the rendering window (defines trackball mode) More...
#include <vtkInteractorStyle.h>
Public Types | |
typedef vtkInteractorObserver | Superclass |
Public Types inherited from vtkInteractorObserver | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual vtkTypeBool | IsA (const char *type) |
Return 1 if this class is the same type of (or a subclass of) the named class. More... | |
vtkInteractorStyle * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) override |
Methods invoked by print to print information about the object including superclasses. More... | |
void | SetInteractor (vtkRenderWindowInteractor *interactor) override |
Set/Get the Interactor wrapper being controlled by this object. More... | |
void | SetEnabled (int) override |
Turn on/off this interactor. More... | |
void | FindPokedRenderer (int, int) |
When an event occurs, we must determine which Renderer the event occurred within, since one RenderWindow may contain multiple renderers. More... | |
virtual void | OnMouseMove () |
Generic event bindings can be overridden in subclasses. More... | |
virtual void | OnLeftButtonDown () |
virtual void | OnLeftButtonUp () |
virtual void | OnMiddleButtonDown () |
virtual void | OnMiddleButtonUp () |
virtual void | OnRightButtonDown () |
virtual void | OnRightButtonUp () |
virtual void | OnLeftButtonDoubleClick () |
virtual void | OnMiddleButtonDoubleClick () |
virtual void | OnRightButtonDoubleClick () |
virtual void | OnMouseWheelForward () |
virtual void | OnMouseWheelBackward () |
virtual void | OnMouseWheelLeft () |
virtual void | OnMouseWheelRight () |
virtual void | OnFourthButtonDown () |
virtual void | OnFourthButtonUp () |
virtual void | OnFifthButtonDown () |
virtual void | OnFifthButtonUp () |
virtual void | OnMove3D (vtkEventData *) |
Generic 3D event bindings can be overridden in subclasses. More... | |
virtual void | OnButton3D (vtkEventData *) |
virtual void | OnPick3D (vtkEventData *) |
virtual void | OnClip3D (vtkEventData *) |
virtual void | OnSelect3D (vtkEventData *) |
virtual void | OnMenu3D (vtkEventData *) |
virtual void | OnNextPose3D (vtkEventData *) |
virtual void | OnPositionProp3D (vtkEventData *) |
virtual void | OnViewerMovement3D (vtkEventData *) |
void | OnChar () override |
OnChar is triggered when an ASCII key is pressed. More... | |
virtual void | OnKeyDown () |
virtual void | OnKeyUp () |
virtual void | OnKeyPress () |
virtual void | OnKeyRelease () |
virtual void | OnExpose () |
These are more esoteric events, but are useful in some cases. More... | |
virtual void | OnConfigure () |
virtual void | OnEnter () |
virtual void | OnLeave () |
virtual void | OnTimer () |
OnTimer calls Rotate, Rotate etc which should be overridden by style subclasses. More... | |
virtual void | Rotate () |
These methods for the different interactions in different modes are overridden in subclasses to perform the correct motion. More... | |
virtual void | Spin () |
virtual void | Pan () |
virtual void | Dolly () |
virtual void | Zoom () |
virtual void | UniformScale () |
virtual void | EnvironmentRotate () |
virtual void | OnStartSwipe () |
gesture based events More... | |
virtual void | OnSwipe () |
virtual void | OnEndSwipe () |
virtual void | OnStartPinch () |
virtual void | OnPinch () |
virtual void | OnEndPinch () |
virtual void | OnStartRotate () |
virtual void | OnRotate () |
virtual void | OnEndRotate () |
virtual void | OnStartPan () |
virtual void | OnPan () |
virtual void | OnEndPan () |
virtual void | OnTap () |
virtual void | OnLongTap () |
virtual void | OnDropLocation (double *vtkNotUsed(position)) |
When the mouse location is updated while dragging files. More... | |
virtual void | OnDropFiles (vtkStringArray *vtkNotUsed(filePaths)) |
When files are dropped on the render window. More... | |
void | DelegateTDxEvent (unsigned long event, void *calldata) |
Called by the callback to process 3DConnexion device events. More... | |
virtual void | SetAutoAdjustCameraClippingRange (vtkTypeBool) |
If AutoAdjustCameraClippingRange is on, then before each render the camera clipping range will be adjusted to "fit" the whole scene. More... | |
virtual vtkTypeBool | GetAutoAdjustCameraClippingRange () |
If AutoAdjustCameraClippingRange is on, then before each render the camera clipping range will be adjusted to "fit" the whole scene. More... | |
virtual void | AutoAdjustCameraClippingRangeOn () |
If AutoAdjustCameraClippingRange is on, then before each render the camera clipping range will be adjusted to "fit" the whole scene. More... | |
virtual void | AutoAdjustCameraClippingRangeOff () |
If AutoAdjustCameraClippingRange is on, then before each render the camera clipping range will be adjusted to "fit" the whole scene. More... | |
virtual int | GetState () |
Some useful information for interaction. More... | |
virtual vtkTypeBool | GetUseTimers () |
Set/Get timer hint. More... | |
virtual void | SetUseTimers (vtkTypeBool) |
Set/Get timer hint. More... | |
virtual void | UseTimersOn () |
Set/Get timer hint. More... | |
virtual void | UseTimersOff () |
Set/Get timer hint. More... | |
virtual void | SetTimerDuration (unsigned long) |
If using timers, specify the default timer interval (in milliseconds). More... | |
virtual unsigned long | GetTimerDuration () |
If using timers, specify the default timer interval (in milliseconds). More... | |
virtual void | SetHandleObservers (vtkTypeBool) |
Does ProcessEvents handle observers on this class or not. More... | |
virtual vtkTypeBool | GetHandleObservers () |
Does ProcessEvents handle observers on this class or not. More... | |
virtual void | HandleObserversOn () |
Does ProcessEvents handle observers on this class or not. More... | |
virtual void | HandleObserversOff () |
Does ProcessEvents handle observers on this class or not. More... | |
virtual void | StartState (int newstate) |
utility routines used by state changes More... | |
virtual void | StopState () |
utility routines used by state changes More... | |
virtual void | StartAnimate () |
Interaction mode entry points used internally. More... | |
virtual void | StopAnimate () |
Interaction mode entry points used internally. More... | |
virtual void | StartRotate () |
Interaction mode entry points used internally. More... | |
virtual void | EndRotate () |
Interaction mode entry points used internally. More... | |
virtual void | StartZoom () |
Interaction mode entry points used internally. More... | |
virtual void | EndZoom () |
Interaction mode entry points used internally. More... | |
virtual void | StartPan () |
Interaction mode entry points used internally. More... | |
virtual void | EndPan () |
Interaction mode entry points used internally. More... | |
virtual void | StartSpin () |
Interaction mode entry points used internally. More... | |
virtual void | EndSpin () |
Interaction mode entry points used internally. More... | |
virtual void | StartDolly () |
Interaction mode entry points used internally. More... | |
virtual void | EndDolly () |
Interaction mode entry points used internally. More... | |
virtual void | StartUniformScale () |
Interaction mode entry points used internally. More... | |
virtual void | EndUniformScale () |
Interaction mode entry points used internally. More... | |
virtual void | StartTimer () |
Interaction mode entry points used internally. More... | |
virtual void | EndTimer () |
Interaction mode entry points used internally. More... | |
virtual void | StartTwoPointer () |
Interaction mode entry points used internally. More... | |
virtual void | EndTwoPointer () |
Interaction mode entry points used internally. More... | |
virtual void | StartGesture () |
Interaction mode entry points used internally. More... | |
virtual void | EndGesture () |
Interaction mode entry points used internally. More... | |
virtual void | StartEnvRotate () |
Interaction mode entry points used internally. More... | |
virtual void | EndEnvRotate () |
Interaction mode entry points used internally. More... | |
virtual void | HighlightProp (vtkProp *prop) |
When picking successfully selects an actor, this method highlights the picked prop appropriately. More... | |
virtual void | HighlightActor2D (vtkActor2D *actor2D) |
When picking successfully selects an actor, this method highlights the picked prop appropriately. More... | |
virtual void | HighlightProp3D (vtkProp3D *prop3D) |
When picking successfully selects an actor, this method highlights the picked prop appropriately. More... | |
virtual void | SetPickColor (double, double, double) |
Set/Get the pick color (used by default to color vtkActor2D's). More... | |
virtual void | SetPickColor (double[3]) |
Set/Get the pick color (used by default to color vtkActor2D's). More... | |
virtual double * | GetPickColor () |
Set/Get the pick color (used by default to color vtkActor2D's). More... | |
virtual void | GetPickColor (double data[3]) |
Set/Get the pick color (used by default to color vtkActor2D's). More... | |
virtual void | SetMouseWheelMotionFactor (double) |
Set/Get the mouse wheel motion factor. More... | |
virtual double | GetMouseWheelMotionFactor () |
Set/Get the mouse wheel motion factor. More... | |
virtual vtkTDxInteractorStyle * | GetTDxStyle () |
3Dconnexion device interactor style. More... | |
virtual void | SetTDxStyle (vtkTDxInteractorStyle *tdxStyle) |
3Dconnexion device interactor style. More... | |
Public Member Functions inherited from vtkInteractorObserver | |
virtual vtkTypeBool | IsA (const char *type) |
Return 1 if this class is the same type of (or a subclass of) the named class. More... | |
vtkInteractorObserver * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) override |
Methods invoked by print to print information about the object including superclasses. More... | |
virtual void | SetEnabled (int) |
Methods for turning the interactor observer on and off, and determining its state. More... | |
int | GetEnabled () |
void | EnabledOn () |
void | EnabledOff () |
void | On () |
void | Off () |
virtual void | OnChar () |
Sets up the keypress-i event. More... | |
virtual vtkRenderWindowInteractor * | GetInteractor () |
This method is used to associate the widget with the render window interactor. More... | |
virtual void | SetPriority (float) |
Set/Get the priority at which events are processed. More... | |
virtual float | GetPriority () |
Set/Get the priority at which events are processed. More... | |
virtual void | PickingManagedOn () |
Enable/Disable the use of a manager to process the picking. More... | |
virtual void | PickingManagedOff () |
Enable/Disable the use of a manager to process the picking. More... | |
virtual void | SetPickingManaged (bool managed) |
Enable/Disable the use of a manager to process the picking. More... | |
virtual bool | GetPickingManaged () |
Enable/Disable the use of a manager to process the picking. More... | |
virtual void | SetKeyPressActivation (vtkTypeBool) |
Enable/Disable of the use of a keypress to turn on and off the interactor observer. More... | |
virtual vtkTypeBool | GetKeyPressActivation () |
Enable/Disable of the use of a keypress to turn on and off the interactor observer. More... | |
virtual void | KeyPressActivationOn () |
Enable/Disable of the use of a keypress to turn on and off the interactor observer. More... | |
virtual void | KeyPressActivationOff () |
Enable/Disable of the use of a keypress to turn on and off the interactor observer. More... | |
virtual void | SetKeyPressActivationValue (char) |
Specify which key press value to use to activate the interactor observer (if key press activation is enabled). More... | |
virtual char | GetKeyPressActivationValue () |
Specify which key press value to use to activate the interactor observer (if key press activation is enabled). More... | |
virtual vtkRenderer * | GetDefaultRenderer () |
Set/Get the default renderer to use when activating the interactor observer. More... | |
virtual void | SetDefaultRenderer (vtkRenderer *) |
Set/Get the default renderer to use when activating the interactor observer. More... | |
virtual vtkRenderer * | GetCurrentRenderer () |
Set/Get the current renderer. More... | |
virtual void | SetCurrentRenderer (vtkRenderer *) |
Set/Get the current renderer. More... | |
void | GrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=nullptr) |
These methods enable an interactor observer to exclusively grab all events invoked by its associated vtkRenderWindowInteractor. More... | |
void | ReleaseFocus () |
These methods enable an interactor observer to exclusively grab all events invoked by its associated vtkRenderWindowInteractor. More... | |
Public Member Functions inherited from vtkObject | |
vtkBaseTypeMacro (vtkObject, vtkObjectBase) | |
virtual void | DebugOn () |
Turn debugging output on. More... | |
virtual void | DebugOff () |
Turn debugging output off. More... | |
bool | GetDebug () |
Get the value of the debug flag. More... | |
void | SetDebug (bool debugFlag) |
Set the value of the debug flag. More... | |
virtual void | Modified () |
Update the modification time for this object. More... | |
virtual vtkMTimeType | GetMTime () |
Return this object's modified time. More... | |
void | PrintSelf (ostream &os, vtkIndent indent) override |
Methods invoked by print to print information about the object including superclasses. More... | |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
vtkTypeBool | HasObserver (unsigned long event) |
vtkTypeBool | HasObserver (const char *event) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
vtkCommand * | GetCommand (unsigned long tag) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
void | RemoveObserver (vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
void | RemoveObservers (unsigned long event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
void | RemoveObservers (const char *event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
vtkTypeBool | HasObserver (unsigned long event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
vtkTypeBool | HasObserver (const char *event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More... | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More... | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
Allow user to set the AbortFlagOn() with the return value of the callback method. More... | |
int | InvokeEvent (unsigned long event, void *callData) |
This method invokes an event and return whether the event was aborted or not. More... | |
int | InvokeEvent (const char *event, void *callData) |
This method invokes an event and return whether the event was aborted or not. More... | |
Public Member Functions inherited from vtkObjectBase | |
const char * | GetClassName () const |
Return the class name as a string. More... | |
virtual vtkTypeBool | IsA (const char *name) |
Return 1 if this class is the same type of (or a subclass of) the named class. More... | |
virtual vtkIdType | GetNumberOfGenerationsFromBase (const char *name) |
Given the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class). More... | |
virtual void | Delete () |
Delete a VTK object. More... | |
virtual void | FastDelete () |
Delete a reference to this object. More... | |
void | InitializeObjectBase () |
void | Print (ostream &os) |
Print an object to an ostream. More... | |
virtual void | Register (vtkObjectBase *o) |
Increase the reference count (mark as used by another object). More... | |
virtual void | UnRegister (vtkObjectBase *o) |
Decrease the reference count (release by another object). More... | |
int | GetReferenceCount () |
Return the current reference count of this object. More... | |
void | SetReferenceCount (int) |
Sets the reference count. More... | |
bool | GetIsInMemkind () const |
A local state flag that remembers whether this object lives in the normal or extended memory space. More... | |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
Methods invoked by print to print information about the object including superclasses. More... | |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
Methods invoked by print to print information about the object including superclasses. More... | |
Static Public Member Functions | |
static vtkInteractorStyle * | New () |
This class must be supplied with a vtkRenderWindowInteractor wrapper or parent. More... | |
static vtkTypeBool | IsTypeOf (const char *type) |
static vtkInteractorStyle * | SafeDownCast (vtkObjectBase *o) |
Static Public Member Functions inherited from vtkInteractorObserver | |
static vtkTypeBool | IsTypeOf (const char *type) |
static vtkInteractorObserver * | SafeDownCast (vtkObjectBase *o) |
static void | ComputeDisplayToWorld (vtkRenderer *ren, double x, double y, double z, double worldPt[4]) |
Convenience methods for outside classes. More... | |
static void | ComputeWorldToDisplay (vtkRenderer *ren, double x, double y, double z, double displayPt[3]) |
Convenience methods for outside classes. More... | |
Static Public Member Functions inherited from vtkObject | |
static vtkObject * | New () |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More... | |
static void | BreakOnError () |
This method is called when vtkErrorMacro executes. More... | |
static void | SetGlobalWarningDisplay (int val) |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
static void | GlobalWarningDisplayOn () |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
static void | GlobalWarningDisplayOff () |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
static int | GetGlobalWarningDisplay () |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
Static Public Member Functions inherited from vtkObjectBase | |
static vtkTypeBool | IsTypeOf (const char *name) |
Return 1 if this class type is the same type of (or a subclass of) the named class. More... | |
static vtkIdType | GetNumberOfGenerationsFromBaseType (const char *name) |
Given a the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class). More... | |
static vtkObjectBase * | New () |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More... | |
static void | SetMemkindDirectory (const char *directoryname) |
The name of a directory, ideally mounted -o dax, to memory map an extended memory space within. More... | |
static bool | GetUsingMemkind () |
A global state flag that controls whether vtkObjects are constructed in the usual way (the default) or within the extended memory space. More... | |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkInteractorStyle () | |
~vtkInteractorStyle () override | |
Protected Member Functions inherited from vtkInteractorObserver | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkInteractorObserver () | |
~vtkInteractorObserver () override | |
virtual void | RegisterPickers () |
Register internal Pickers in the Picking Manager. More... | |
void | UnRegisterPickers () |
Unregister internal pickers from the Picking Manager. More... | |
vtkPickingManager * | GetPickingManager () |
Return the picking manager associated on the context on which the observer currently belong. More... | |
vtkAssemblyPath * | GetAssemblyPath (double X, double Y, double Z, vtkAbstractPropPicker *picker) |
Proceed to a pick, whether through the PickingManager if the picking is managed or directly using the picker, and return the assembly path. More... | |
int | RequestCursorShape (int requestedShape) |
virtual void | StartInteraction () |
Utility routines used to start and end interaction. More... | |
virtual void | EndInteraction () |
Utility routines used to start and end interaction. More... | |
void | ComputeDisplayToWorld (double x, double y, double z, double worldPt[4]) |
Helper method for subclasses. More... | |
void | ComputeWorldToDisplay (double x, double y, double z, double displayPt[3]) |
Helper method for subclasses. More... | |
Protected Member Functions inherited from vtkObject | |
vtkObject () | |
~vtkObject () override | |
void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) override |
void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) override |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=nullptr) |
These methods allow a command to exclusively grab all events. More... | |
void | InternalReleaseFocus () |
These methods allow a command to exclusively grab all events. More... | |
Protected Member Functions inherited from vtkObjectBase | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) |
virtual void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Static Protected Member Functions | |
static void | ProcessEvents (vtkObject *object, unsigned long event, void *clientdata, void *calldata) |
Main process event method. More... | |
Static Protected Member Functions inherited from vtkInteractorObserver | |
static void | ProcessEvents (vtkObject *object, unsigned long event, void *clientdata, void *calldata) |
Handles the char widget activation event. More... | |
Static Protected Member Functions inherited from vtkObjectBase | |
static vtkMallocingFunction | GetCurrentMallocFunction () |
static vtkReallocingFunction | GetCurrentReallocFunction () |
static vtkFreeingFunction | GetCurrentFreeFunction () |
static vtkFreeingFunction | GetAlternateFreeFunction () |
provide event-driven interface to the rendering window (defines trackball mode)
vtkInteractorStyle is a base class implementing the majority of motion control routines and defines an event driven interface to support vtkRenderWindowInteractor. vtkRenderWindowInteractor implements platform dependent key/mouse routing and timer control, which forwards events in a neutral form to vtkInteractorStyle.
vtkInteractorStyle implements the "joystick" style of interaction. That is, holding down the mouse keys generates a stream of events that cause continuous actions (e.g., rotate, translate, pan, zoom). (The class vtkInteractorStyleTrackball implements a grab and move style.) The event bindings for this class include the following:
vtkInteractorStyle can be subclassed to provide new interaction styles and a facility to override any of the default mouse/key operations which currently handle trackball or joystick styles is provided. Note that this class will fire a variety of events that can be watched using an observer, such as LeftButtonPressEvent, LeftButtonReleaseEvent, MiddleButtonPressEvent, MiddleButtonReleaseEvent, RightButtonPressEvent, RightButtonReleaseEvent, EnterEvent, LeaveEvent, KeyPressEvent, KeyReleaseEvent, CharEvent, ExposeEvent, ConfigureEvent, TimerEvent, MouseMoveEvent,
Definition at line 197 of file vtkInteractorStyle.h.
Definition at line 207 of file vtkInteractorStyle.h.
|
protected |
|
overrideprotected |
|
static |
This class must be supplied with a vtkRenderWindowInteractor wrapper or parent.
This class should not normally be instantiated by application programmers.
|
static |
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class.
Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkInteractorObserver.
Reimplemented in vtkInteractorStyleDrawPolygon, vtkInteractorStyleFlight, vtkInteractorStyleImage, vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleMultiTouchCamera, vtkInteractorStyleRubberBand2D, vtkInteractorStyleRubberBand3D, vtkInteractorStyleRubberBandPick, vtkInteractorStyleRubberBandZoom, vtkInteractorStyleSwitch, vtkInteractorStyleTerrain, vtkInteractorStyleTrackball, vtkInteractorStyleTrackballActor, vtkInteractorStyleTrackballCamera, vtkInteractorStyleUnicam, vtkInteractorStyleUser, vtkParallelCoordinatesInteractorStyle, vtkInteractorStyle3D, vtkInteractorStyleSwitchBase, vtkOpenVRInteractorStyle, vtkOSPRayTestInteractor, vtkContextInteractorStyle, vtkInteractorStyleAreaSelectHover, and vtkInteractorStyleTreeMapHover.
|
static |
|
protectedvirtual |
Reimplemented from vtkInteractorObserver.
Reimplemented in vtkInteractorStyleDrawPolygon, vtkInteractorStyleFlight, vtkInteractorStyleImage, vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleMultiTouchCamera, vtkInteractorStyleRubberBand2D, vtkInteractorStyleRubberBand3D, vtkInteractorStyleRubberBandPick, vtkInteractorStyleRubberBandZoom, vtkInteractorStyleSwitch, vtkInteractorStyleTerrain, vtkInteractorStyleTrackball, vtkInteractorStyleTrackballActor, vtkInteractorStyleTrackballCamera, vtkInteractorStyleUnicam, vtkInteractorStyleUser, vtkParallelCoordinatesInteractorStyle, vtkInteractorStyle3D, vtkInteractorStyleSwitchBase, vtkOpenVRInteractorStyle, vtkOSPRayTestInteractor, vtkContextInteractorStyle, vtkInteractorStyleAreaSelectHover, and vtkInteractorStyleTreeMapHover.
vtkInteractorStyle * vtkInteractorStyle::NewInstance | ( | ) | const |
|
overridevirtual |
Methods invoked by print to print information about the object including superclasses.
Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkInteractorObserver.
Reimplemented in vtkInteractorStyle3D, vtkInteractorStyleSwitchBase, vtkOpenVRInteractorStyle, vtkContextInteractorStyle, vtkInteractorStyleAreaSelectHover, and vtkInteractorStyleTreeMapHover.
|
overridevirtual |
Set/Get the Interactor wrapper being controlled by this object.
(Satisfy superclass API.)
Reimplemented from vtkInteractorObserver.
Reimplemented in vtkOpenVRInteractorStyle, vtkInteractorStyleAreaSelectHover, and vtkInteractorStyleTreeMapHover.
|
overridevirtual |
Turn on/off this interactor.
Interactor styles operate a little bit differently than other types of interactor observers. When the SetInteractor() method is invoked, the automatically enable themselves. This is a legacy requirement, and convenient for the user.
Reimplemented from vtkInteractorObserver.
|
virtual |
If AutoAdjustCameraClippingRange is on, then before each render the camera clipping range will be adjusted to "fit" the whole scene.
Clipping will still occur if objects in the scene are behind the camera or come very close. If AutoAdjustCameraClippingRange is off, no adjustment will be made per render, but the camera clipping range will still be reset when the camera is reset.
Reimplemented in vtkInteractorStyleSwitch.
|
virtual |
If AutoAdjustCameraClippingRange is on, then before each render the camera clipping range will be adjusted to "fit" the whole scene.
Clipping will still occur if objects in the scene are behind the camera or come very close. If AutoAdjustCameraClippingRange is off, no adjustment will be made per render, but the camera clipping range will still be reset when the camera is reset.
|
virtual |
If AutoAdjustCameraClippingRange is on, then before each render the camera clipping range will be adjusted to "fit" the whole scene.
Clipping will still occur if objects in the scene are behind the camera or come very close. If AutoAdjustCameraClippingRange is off, no adjustment will be made per render, but the camera clipping range will still be reset when the camera is reset.
|
virtual |
If AutoAdjustCameraClippingRange is on, then before each render the camera clipping range will be adjusted to "fit" the whole scene.
Clipping will still occur if objects in the scene are behind the camera or come very close. If AutoAdjustCameraClippingRange is off, no adjustment will be made per render, but the camera clipping range will still be reset when the camera is reset.
void vtkInteractorStyle::FindPokedRenderer | ( | int | , |
int | |||
) |
When an event occurs, we must determine which Renderer the event occurred within, since one RenderWindow may contain multiple renderers.
|
virtual |
Some useful information for interaction.
|
virtual |
Set/Get timer hint.
|
virtual |
Set/Get timer hint.
|
virtual |
Set/Get timer hint.
|
virtual |
Set/Get timer hint.
|
virtual |
If using timers, specify the default timer interval (in milliseconds).
Care must be taken when adjusting the timer interval from the default value of 10 milliseconds–it may adversely affect the interactors.
|
virtual |
If using timers, specify the default timer interval (in milliseconds).
Care must be taken when adjusting the timer interval from the default value of 10 milliseconds–it may adversely affect the interactors.
|
virtual |
Does ProcessEvents handle observers on this class or not.
|
virtual |
Does ProcessEvents handle observers on this class or not.
|
virtual |
Does ProcessEvents handle observers on this class or not.
|
virtual |
Does ProcessEvents handle observers on this class or not.
|
inlinevirtual |
Generic event bindings can be overridden in subclasses.
Reimplemented in vtkInteractorStyleDrawPolygon, vtkInteractorStyleFlight, vtkInteractorStyleImage, vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleRubberBand2D, vtkInteractorStyleRubberBand3D, vtkInteractorStyleRubberBandPick, vtkInteractorStyleRubberBandZoom, vtkInteractorStyleTerrain, vtkInteractorStyleTrackballActor, vtkInteractorStyleTrackballCamera, vtkInteractorStyleUnicam, vtkInteractorStyleUser, vtkParallelCoordinatesInteractorStyle, vtkContextInteractorStyle, vtkInteractorStyleAreaSelectHover, and vtkInteractorStyleTreeMapHover.
Definition at line 285 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleDrawPolygon, vtkInteractorStyleFlight, vtkInteractorStyleImage, vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleRubberBand2D, vtkInteractorStyleRubberBand3D, vtkInteractorStyleRubberBandPick, vtkInteractorStyleRubberBandZoom, vtkInteractorStyleTerrain, vtkInteractorStyleTrackballActor, vtkInteractorStyleTrackballCamera, vtkInteractorStyleUnicam, vtkInteractorStyleUser, vtkParallelCoordinatesInteractorStyle, and vtkContextInteractorStyle.
Definition at line 286 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleDrawPolygon, vtkInteractorStyleFlight, vtkInteractorStyleImage, vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleRubberBand2D, vtkInteractorStyleRubberBand3D, vtkInteractorStyleRubberBandPick, vtkInteractorStyleRubberBandZoom, vtkInteractorStyleTerrain, vtkInteractorStyleTrackballActor, vtkInteractorStyleTrackballCamera, vtkInteractorStyleUnicam, vtkInteractorStyleUser, vtkParallelCoordinatesInteractorStyle, vtkContextInteractorStyle, and vtkInteractorStyleTreeMapHover.
Definition at line 287 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleFlight, vtkInteractorStyleImage, vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleRubberBand2D, vtkInteractorStyleRubberBand3D, vtkInteractorStyleTerrain, vtkInteractorStyleTrackballActor, vtkInteractorStyleTrackballCamera, vtkInteractorStyleUser, vtkParallelCoordinatesInteractorStyle, and vtkContextInteractorStyle.
Definition at line 288 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleFlight, vtkInteractorStyleImage, vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleRubberBand2D, vtkInteractorStyleRubberBand3D, vtkInteractorStyleTerrain, vtkInteractorStyleTrackballActor, vtkInteractorStyleTrackballCamera, vtkInteractorStyleUser, vtkParallelCoordinatesInteractorStyle, and vtkContextInteractorStyle.
Definition at line 289 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleFlight, vtkInteractorStyleImage, vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleRubberBand2D, vtkInteractorStyleRubberBand3D, vtkInteractorStyleTerrain, vtkInteractorStyleTrackballActor, vtkInteractorStyleTrackballCamera, vtkInteractorStyleUser, vtkParallelCoordinatesInteractorStyle, and vtkContextInteractorStyle.
Definition at line 290 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleFlight, vtkInteractorStyleImage, vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleRubberBand2D, vtkInteractorStyleRubberBand3D, vtkInteractorStyleTerrain, vtkInteractorStyleTrackballActor, vtkInteractorStyleTrackballCamera, vtkInteractorStyleUser, vtkParallelCoordinatesInteractorStyle, and vtkContextInteractorStyle.
Definition at line 291 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkContextInteractorStyle.
Definition at line 292 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkContextInteractorStyle.
Definition at line 293 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkContextInteractorStyle.
Definition at line 294 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleJoystickCamera, vtkInteractorStyleRubberBand2D, vtkInteractorStyleRubberBand3D, vtkInteractorStyleTrackballCamera, vtkInteractorStyleUser, and vtkContextInteractorStyle.
Definition at line 295 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleJoystickCamera, vtkInteractorStyleRubberBand2D, vtkInteractorStyleRubberBand3D, vtkInteractorStyleTrackballCamera, vtkInteractorStyleUser, and vtkContextInteractorStyle.
Definition at line 296 of file vtkInteractorStyle.h.
|
inlinevirtual |
Definition at line 297 of file vtkInteractorStyle.h.
|
inlinevirtual |
Definition at line 298 of file vtkInteractorStyle.h.
|
inlinevirtual |
Definition at line 299 of file vtkInteractorStyle.h.
|
inlinevirtual |
Definition at line 300 of file vtkInteractorStyle.h.
|
inlinevirtual |
Definition at line 301 of file vtkInteractorStyle.h.
|
inlinevirtual |
Definition at line 302 of file vtkInteractorStyle.h.
|
inlinevirtual |
Generic 3D event bindings can be overridden in subclasses.
Reimplemented in vtkOpenVRInteractorStyle.
Definition at line 307 of file vtkInteractorStyle.h.
|
inlinevirtual |
Definition at line 308 of file vtkInteractorStyle.h.
|
inlinevirtual |
Definition at line 309 of file vtkInteractorStyle.h.
|
inlinevirtual |
Definition at line 310 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkOpenVRInteractorStyle.
Definition at line 311 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkOpenVRInteractorStyle.
Definition at line 312 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkOpenVRInteractorStyle.
Definition at line 313 of file vtkInteractorStyle.h.
|
inlinevirtual |
Definition at line 314 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkOpenVRInteractorStyle.
Definition at line 315 of file vtkInteractorStyle.h.
|
overridevirtual |
OnChar is triggered when an ASCII key is pressed.
Some basic key presses are handled here ('q' for Quit, 'p' for Pick, etc)
Reimplemented from vtkInteractorObserver.
Reimplemented in vtkContextInteractorStyle.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleFlight.
Definition at line 326 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleFlight.
Definition at line 331 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleUser, vtkOSPRayTestInteractor, and vtkContextInteractorStyle.
Definition at line 336 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleUser, and vtkContextInteractorStyle.
Definition at line 341 of file vtkInteractorStyle.h.
|
inlinevirtual |
These are more esoteric events, but are useful in some cases.
Reimplemented in vtkInteractorStyleUser.
Definition at line 346 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleUser.
Definition at line 347 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleUser.
Definition at line 348 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleUser, and vtkParallelCoordinatesInteractorStyle.
Definition at line 349 of file vtkInteractorStyle.h.
|
virtual |
OnTimer calls Rotate, Rotate etc which should be overridden by style subclasses.
Reimplemented in vtkInteractorStyleFlight, vtkInteractorStyleUnicam, and vtkInteractorStyleUser.
|
inlinevirtual |
These methods for the different interactions in different modes are overridden in subclasses to perform the correct motion.
Since they might be called from OnTimer, they do not have mouse coord parameters (use interactor's GetEventPosition and GetLastEventPosition)
Reimplemented in vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleTerrain, vtkInteractorStyleTrackballActor, and vtkInteractorStyleTrackballCamera.
Definition at line 363 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleTrackballActor, and vtkInteractorStyleTrackballCamera.
Definition at line 364 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleTerrain, vtkInteractorStyleTrackballActor, vtkInteractorStyleTrackballCamera, and vtkParallelCoordinatesInteractorStyle.
Definition at line 365 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleTerrain, vtkInteractorStyleTrackballActor, and vtkInteractorStyleTrackballCamera.
Definition at line 366 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleRubberBandZoom, and vtkParallelCoordinatesInteractorStyle.
Definition at line 367 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleJoystickActor, and vtkInteractorStyleTrackballActor.
Definition at line 368 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleTrackballCamera.
Definition at line 369 of file vtkInteractorStyle.h.
|
inlinevirtual |
gesture based events
Definition at line 374 of file vtkInteractorStyle.h.
|
inlinevirtual |
Definition at line 375 of file vtkInteractorStyle.h.
|
inlinevirtual |
Definition at line 376 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleMultiTouchCamera.
Definition at line 377 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleMultiTouchCamera, and vtkOpenVRInteractorStyle.
Definition at line 378 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleMultiTouchCamera.
Definition at line 379 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleMultiTouchCamera.
Definition at line 380 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleMultiTouchCamera, and vtkOpenVRInteractorStyle.
Definition at line 381 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleMultiTouchCamera.
Definition at line 382 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleMultiTouchCamera.
Definition at line 383 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleMultiTouchCamera, and vtkOpenVRInteractorStyle.
Definition at line 384 of file vtkInteractorStyle.h.
|
inlinevirtual |
Reimplemented in vtkInteractorStyleMultiTouchCamera.
Definition at line 385 of file vtkInteractorStyle.h.
|
inlinevirtual |
Definition at line 386 of file vtkInteractorStyle.h.
|
inlinevirtual |
Definition at line 387 of file vtkInteractorStyle.h.
|
virtual |
utility routines used by state changes
|
virtual |
utility routines used by state changes
|
virtual |
Interaction mode entry points used internally.
|
virtual |
Interaction mode entry points used internally.
|
virtual |
Interaction mode entry points used internally.
|
virtual |
Interaction mode entry points used internally.
|
virtual |
Interaction mode entry points used internally.
Reimplemented in vtkParallelCoordinatesInteractorStyle.
|
virtual |
Interaction mode entry points used internally.
Reimplemented in vtkParallelCoordinatesInteractorStyle.
|
virtual |
Interaction mode entry points used internally.
Reimplemented in vtkParallelCoordinatesInteractorStyle.
|
virtual |
Interaction mode entry points used internally.
Reimplemented in vtkParallelCoordinatesInteractorStyle.
|
virtual |
Interaction mode entry points used internally.
|
virtual |
Interaction mode entry points used internally.
|
virtual |
Interaction mode entry points used internally.
|
virtual |
Interaction mode entry points used internally.
|
virtual |
Interaction mode entry points used internally.
|
virtual |
Interaction mode entry points used internally.
|
virtual |
Interaction mode entry points used internally.
|
virtual |
Interaction mode entry points used internally.
|
virtual |
Interaction mode entry points used internally.
|
virtual |
Interaction mode entry points used internally.
|
virtual |
Interaction mode entry points used internally.
|
virtual |
Interaction mode entry points used internally.
|
virtual |
Interaction mode entry points used internally.
|
virtual |
Interaction mode entry points used internally.
|
inlinevirtual |
When the mouse location is updated while dragging files.
The argument contains the position relative to the window of the mouse where the files are dropped. It is called before OnDropFiles.
Definition at line 431 of file vtkInteractorStyle.h.
|
inlinevirtual |
When files are dropped on the render window.
The argument contains the list of file paths dropped. It is called after OnDropLocation.
Definition at line 438 of file vtkInteractorStyle.h.
|
virtual |
When picking successfully selects an actor, this method highlights the picked prop appropriately.
Currently this is done by placing a bounding box around a picked vtkProp3D, and using the PickColor to highlight a vtkProp2D.
|
virtual |
When picking successfully selects an actor, this method highlights the picked prop appropriately.
Currently this is done by placing a bounding box around a picked vtkProp3D, and using the PickColor to highlight a vtkProp2D.
|
virtual |
When picking successfully selects an actor, this method highlights the picked prop appropriately.
Currently this is done by placing a bounding box around a picked vtkProp3D, and using the PickColor to highlight a vtkProp2D.
|
virtual |
Set/Get the pick color (used by default to color vtkActor2D's).
The color is expressed as red/green/blue values between (0.0,1.0).
|
virtual |
Set/Get the pick color (used by default to color vtkActor2D's).
The color is expressed as red/green/blue values between (0.0,1.0).
|
virtual |
Set/Get the pick color (used by default to color vtkActor2D's).
The color is expressed as red/green/blue values between (0.0,1.0).
|
virtual |
Set/Get the pick color (used by default to color vtkActor2D's).
The color is expressed as red/green/blue values between (0.0,1.0).
|
virtual |
Set/Get the mouse wheel motion factor.
Default to 1.0. Set it to a different value to emphasize or de-emphasize the action triggered by mouse wheel motion.
|
virtual |
Set/Get the mouse wheel motion factor.
Default to 1.0. Set it to a different value to emphasize or de-emphasize the action triggered by mouse wheel motion.
|
virtual |
3Dconnexion device interactor style.
Initial value is a pointer to an object of class vtkTdxInteractorStyleCamera.
|
virtual |
3Dconnexion device interactor style.
Initial value is a pointer to an object of class vtkTdxInteractorStyleCamera.
void vtkInteractorStyle::DelegateTDxEvent | ( | unsigned long | event, |
void * | calldata | ||
) |
Called by the callback to process 3DConnexion device events.
|
staticprotected |
Main process event method.
|
protected |
Definition at line 496 of file vtkInteractorStyle.h.
|
protected |
Definition at line 497 of file vtkInteractorStyle.h.
|
protected |
Definition at line 500 of file vtkInteractorStyle.h.
|
protected |
Definition at line 501 of file vtkInteractorStyle.h.
|
protected |
Definition at line 502 of file vtkInteractorStyle.h.
|
protected |
Definition at line 504 of file vtkInteractorStyle.h.
|
protected |
Definition at line 507 of file vtkInteractorStyle.h.
|
protected |
Definition at line 508 of file vtkInteractorStyle.h.
|
protected |
Definition at line 509 of file vtkInteractorStyle.h.
|
protected |
Definition at line 510 of file vtkInteractorStyle.h.
|
protected |
Definition at line 511 of file vtkInteractorStyle.h.
|
protected |
Definition at line 512 of file vtkInteractorStyle.h.
|
protected |
Definition at line 513 of file vtkInteractorStyle.h.
|
protected |
Definition at line 514 of file vtkInteractorStyle.h.
|
protected |
Definition at line 515 of file vtkInteractorStyle.h.
|
protected |
Definition at line 518 of file vtkInteractorStyle.h.
|
protected |
Definition at line 521 of file vtkInteractorStyle.h.
|
protected |
Definition at line 523 of file vtkInteractorStyle.h.