#include <vtkInteractorStyle.h>
Inheritance diagram for vtkInteractorStyle:
Public Methods | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | OnTimer () |
virtual void | SetInteractor (vtkRenderWindowInteractor *interactor) |
virtual vtkRenderWindowInteractor * | GetInteractor () |
virtual void | SetAutoAdjustCameraClippingRange (int) |
virtual int | GetAutoAdjustCameraClippingRange () |
virtual void | AutoAdjustCameraClippingRangeOn () |
virtual void | AutoAdjustCameraClippingRangeOff () |
void | FindPokedCamera (int, int) |
void | FindPokedRenderer (int, int) |
virtual void | HighlightProp (vtkProp *prop) |
virtual void | HighlightActor2D (vtkActor2D *actor2D) |
virtual void | HighlightProp3D (vtkProp3D *prop3D) |
virtual void | SetPickColor (float, float, float) |
virtual void | SetPickColor (float[3]) |
virtual float * | GetPickColor () |
virtual void | GetPickColor (float data[3]) |
virtual void | OnMouseMove (int ctrl, int shift, int X, int Y) |
virtual void | OnLeftButtonDown (int ctrl, int shift, int X, int Y) |
virtual void | OnLeftButtonUp (int ctrl, int shift, int X, int Y) |
virtual void | OnMiddleButtonDown (int ctrl, int shift, int X, int Y) |
virtual void | OnMiddleButtonUp (int ctrl, int shift, int X, int Y) |
virtual void | OnRightButtonDown (int ctrl, int shift, int X, int Y) |
virtual void | OnRightButtonUp (int ctrl, int shift, int X, int Y) |
virtual void | OnChar (int ctrl, int shift, char keycode, int repeatcount) |
virtual void | OnKeyDown (int ctrl, int shift, char keycode, int repeatcount) |
virtual void | OnKeyUp (int ctrl, int shift, char keycode, int repeatcount) |
virtual void | OnKeyPress (int ctrl, int shift, char keycode, char *keysym, int repeatcount) |
virtual void | OnKeyRelease (int ctrl, int shift, char keycode, char *keysym, int repeatcount) |
virtual void | OnConfigure (int width, int height) |
virtual void | OnEnter (int ctrl, int shift, int x, int y) |
virtual void | OnLeave (int ctrl, int shift, int x, int y) |
void | SetLeftButtonPressMethod (void(*f)(void *), void *arg) |
void | SetLeftButtonPressMethodArgDelete (void(*f)(void *)) |
void | SetLeftButtonReleaseMethod (void(*f)(void *), void *arg) |
void | SetLeftButtonReleaseMethodArgDelete (void(*f)(void *)) |
void | SetMiddleButtonPressMethod (void(*f)(void *), void *arg) |
void | SetMiddleButtonPressMethodArgDelete (void(*f)(void *)) |
void | SetMiddleButtonReleaseMethod (void(*f)(void *), void *arg) |
void | SetMiddleButtonReleaseMethodArgDelete (void(*f)(void *)) |
void | SetRightButtonPressMethod (void(*f)(void *), void *arg) |
void | SetRightButtonPressMethodArgDelete (void(*f)(void *)) |
void | SetRightButtonReleaseMethod (void(*f)(void *), void *arg) |
void | SetRightButtonReleaseMethodArgDelete (void(*f)(void *)) |
Static Public Methods | |
vtkInteractorStyle * | New () |
int | IsTypeOf (const char *type) |
vtkInteractorStyle * | SafeDownCast (vtkObject *o) |
Protected Methods | |
vtkInteractorStyle () | |
~vtkInteractorStyle () | |
void | ResetCameraClippingRange () |
virtual void | ComputeDisplayToWorld (double x, double y, double z, double *worldPt) |
virtual void | ComputeWorldToDisplay (double x, double y, double z, double *displayPt) |
virtual void | ComputeDisplayToWorld (double x, double y, double z, float *worldPt) |
virtual void | ComputeWorldToDisplay (double x, double y, double z, float *displayPt) |
virtual void | UpdateInternalState (int ctrl, int shift, int X, int Y) |
virtual void | RotateCamera (int x, int y) |
virtual void | SpinCamera (int x, int y) |
virtual void | PanCamera (int x, int y) |
virtual void | DollyCamera (int x, int y) |
virtual void | StartState (int newstate) |
virtual void | StopState () |
virtual void | StartAnimate () |
virtual void | StopAnimate () |
virtual void | StartRotate () |
virtual void | EndRotate () |
virtual void | StartZoom () |
virtual void | EndZoom () |
virtual void | StartPan () |
virtual void | EndPan () |
virtual void | StartSpin () |
virtual void | EndSpin () |
virtual void | StartDolly () |
virtual void | EndDolly () |
virtual void | StartUniformScale () |
virtual void | EndUniformScale () |
virtual void | StartTimer () |
virtual void | EndTimer () |
Protected Attributes | |
int | AutoAdjustCameraClippingRange |
vtkRenderWindowInteractor * | Interactor |
vtkCamera * | CurrentCamera |
vtkLight * | CurrentLight |
vtkRenderer * | CurrentRenderer |
float | Center [2] |
float | DeltaAzimuth |
float | DeltaElevation |
int | CtrlKey |
int | ShiftKey |
int | LastPos [2] |
int | State |
int | AnimState |
float | FocalDepth |
vtkOutlineSource * | Outline |
vtkPolyDataMapper * | OutlineMapper |
vtkActor * | OutlineActor |
vtkRenderer * | PickedRenderer |
vtkProp * | CurrentProp |
int | PropPicked |
float | PickColor [3] |
vtkActor2D * | PickedActor2D |
unsigned long | LeftButtonPressTag |
unsigned long | LeftButtonReleaseTag |
unsigned long | MiddleButtonPressTag |
unsigned long | MiddleButtonReleaseTag |
unsigned long | RightButtonPressTag |
unsigned long | RightButtonReleaseTag |
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:
Definition at line 132 of file vtkInteractorStyle.h.
|
|
|
|
|
This class must be supplied with a vtkRenderWindowInteractor wrapper or parent. This class should not normally be instantiated by application programmers. Reimplemented from vtkObject. Reimplemented in vtkInteractorStyleFlight, vtkInteractorStyleImage, vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleSwitch, vtkInteractorStyleTrackball, vtkInteractorStyleTrackballActor, vtkInteractorStyleTrackballCamera, vtkInteractorStyleUnicam, and vtkInteractorStyleUser. |
|
Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkInteractorStyleFlight, vtkInteractorStyleImage, vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleSwitch, vtkInteractorStyleTrackball, vtkInteractorStyleTrackballActor, vtkInteractorStyleTrackballCamera, vtkInteractorStyleUnicam, and vtkInteractorStyleUser. |
|
Return 1 if this class type 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 vtkObject. Reimplemented in vtkInteractorStyleFlight, vtkInteractorStyleImage, vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleSwitch, vtkInteractorStyleTrackball, vtkInteractorStyleTrackballActor, vtkInteractorStyleTrackballCamera, vtkInteractorStyleUnicam, and vtkInteractorStyleUser. |
|
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 vtkObject. Reimplemented in vtkInteractorStyleFlight, vtkInteractorStyleImage, vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleSwitch, vtkInteractorStyleTrackball, vtkInteractorStyleTrackballActor, vtkInteractorStyleTrackballCamera, vtkInteractorStyleUnicam, and vtkInteractorStyleUser. |
|
Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkInteractorStyleFlight, vtkInteractorStyleImage, vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleSwitch, vtkInteractorStyleTrackball, vtkInteractorStyleTrackballActor, vtkInteractorStyleTrackballCamera, vtkInteractorStyleUnicam, and vtkInteractorStyleUser. |
|
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 vtkObject. Reimplemented in vtkInteractorStyleFlight, vtkInteractorStyleImage, vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleTrackball, vtkInteractorStyleTrackballActor, vtkInteractorStyleTrackballCamera, vtkInteractorStyleUnicam, and vtkInteractorStyleUser. |
|
Set/Get the Interactor wrapper being controlled by this object. Reimplemented in vtkInteractorStyleSwitch. |
|
Set/Get the Interactor wrapper being controlled by this object. |
|
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. |
|
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. |
|
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. |
|
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. |
|
When an event occurs, we must determine which Renderer the event occurred within, since one RenderWindow may contain multiple renderers. We also need to know what camera to operate on. This is just the ActiveCamera of the poked renderer. |
|
When an event occurs, we must determine which Renderer the event occurred within, since one RenderWindow may contain multiple renderers. We also need to know what camera to operate on. This is just the ActiveCamera of the poked renderer. |
|
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. |
|
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. |
|
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. |
|
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). |
|
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). |
|
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). |
|
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). |
|
Generic event bindings must be overridden in subclasses Reimplemented in vtkInteractorStyleFlight, vtkInteractorStyleImage, vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleSwitch, vtkInteractorStyleTrackballActor, vtkInteractorStyleTrackballCamera, vtkInteractorStyleUnicam, and vtkInteractorStyleUser. |
|
Generic event bindings must be overridden in subclasses Reimplemented in vtkInteractorStyleFlight, vtkInteractorStyleImage, vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleSwitch, vtkInteractorStyleTrackball, vtkInteractorStyleTrackballActor, vtkInteractorStyleTrackballCamera, vtkInteractorStyleUnicam, and vtkInteractorStyleUser. |
|
Generic event bindings must be overridden in subclasses Reimplemented in vtkInteractorStyleFlight, vtkInteractorStyleImage, vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleSwitch, vtkInteractorStyleTrackball, vtkInteractorStyleTrackballActor, vtkInteractorStyleTrackballCamera, vtkInteractorStyleUnicam, and vtkInteractorStyleUser. |
|
Generic event bindings must be overridden in subclasses Reimplemented in vtkInteractorStyleFlight, vtkInteractorStyleImage, vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleSwitch, vtkInteractorStyleTrackball, vtkInteractorStyleTrackballActor, vtkInteractorStyleTrackballCamera, and vtkInteractorStyleUser. |
|
Generic event bindings must be overridden in subclasses Reimplemented in vtkInteractorStyleFlight, vtkInteractorStyleImage, vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleSwitch, vtkInteractorStyleTrackball, vtkInteractorStyleTrackballActor, vtkInteractorStyleTrackballCamera, and vtkInteractorStyleUser. |
|
Generic event bindings must be overridden in subclasses Reimplemented in vtkInteractorStyleFlight, vtkInteractorStyleImage, vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleSwitch, vtkInteractorStyleTrackball, vtkInteractorStyleTrackballActor, vtkInteractorStyleTrackballCamera, and vtkInteractorStyleUser. |
|
Generic event bindings must be overridden in subclasses Reimplemented in vtkInteractorStyleFlight, vtkInteractorStyleImage, vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleSwitch, vtkInteractorStyleTrackball, vtkInteractorStyleTrackballActor, vtkInteractorStyleTrackballCamera, and vtkInteractorStyleUser. |
|
OnChar implements keyboard functions, but subclasses can override this behavior Reimplemented in vtkInteractorStyleFlight, vtkInteractorStyleSwitch, vtkInteractorStyleTrackball, and vtkInteractorStyleUser. |
|
OnChar implements keyboard functions, but subclasses can override this behavior Reimplemented in vtkInteractorStyleFlight. |
|
OnChar implements keyboard functions, but subclasses can override this behavior Reimplemented in vtkInteractorStyleFlight. |
|
OnChar implements keyboard functions, but subclasses can override this behavior Reimplemented in vtkInteractorStyleUser. |
|
OnChar implements keyboard functions, but subclasses can override this behavior Reimplemented in vtkInteractorStyleUser. |
|
These are more esoteric events, but are useful in some cases. Reimplemented in vtkInteractorStyleUser. |
|
These are more esoteric events, but are useful in some cases. Reimplemented in vtkInteractorStyleUser. |
|
These are more esoteric events, but are useful in some cases. Reimplemented in vtkInteractorStyleUser. |
|
OnTimer calls RotateCamera, RotateActor etc which should be overridden by style subclasses. Reimplemented in vtkInteractorStyleFlight, vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleSwitch, vtkInteractorStyleTrackball, vtkInteractorStyleUnicam, and vtkInteractorStyleUser. |
|
Callbacks so that the application can override the default behaviour. |
|
Callbacks so that the application can override the default behaviour. |
|
Callbacks so that the application can override the default behaviour. |
|
Callbacks so that the application can override the default behaviour. |
|
Callbacks so that the application can override the default behaviour. |
|
Callbacks so that the application can override the default behaviour. |
|
Callbacks so that the application can override the default behaviour. |
|
Callbacks so that the application can override the default behaviour. |
|
Callbacks so that the application can override the default behaviour. |
|
Callbacks so that the application can override the default behaviour. |
|
Callbacks so that the application can override the default behaviour. |
|
Callbacks so that the application can override the default behaviour. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 242 of file vtkInteractorStyle.h. |
|
Definition at line 289 of file vtkInteractorStyle.h. |
|
Definition at line 291 of file vtkInteractorStyle.h. |
|
Definition at line 292 of file vtkInteractorStyle.h. |
|
Definition at line 293 of file vtkInteractorStyle.h. |
|
Reimplemented in vtkInteractorStyleUnicam. Definition at line 295 of file vtkInteractorStyle.h. |
|
Definition at line 296 of file vtkInteractorStyle.h. |
|
Definition at line 297 of file vtkInteractorStyle.h. |
|
Definition at line 298 of file vtkInteractorStyle.h. |
|
Definition at line 299 of file vtkInteractorStyle.h. |
|
Reimplemented in vtkInteractorStyleUnicam. Definition at line 300 of file vtkInteractorStyle.h. |
|
Reimplemented in vtkInteractorStyleImage, vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleTrackballActor, and vtkInteractorStyleTrackballCamera. Definition at line 301 of file vtkInteractorStyle.h. |
|
Definition at line 302 of file vtkInteractorStyle.h. |
|
Definition at line 303 of file vtkInteractorStyle.h. |
|
Definition at line 306 of file vtkInteractorStyle.h. |
|
Definition at line 307 of file vtkInteractorStyle.h. |
|
Definition at line 308 of file vtkInteractorStyle.h. |
|
Definition at line 309 of file vtkInteractorStyle.h. |
|
Definition at line 310 of file vtkInteractorStyle.h. |
|
Reimplemented in vtkInteractorStyleTrackball. Definition at line 311 of file vtkInteractorStyle.h. |
|
Definition at line 312 of file vtkInteractorStyle.h. |
|
Definition at line 313 of file vtkInteractorStyle.h. |
|
Definition at line 315 of file vtkInteractorStyle.h. |
|
Definition at line 316 of file vtkInteractorStyle.h. |
|
Definition at line 317 of file vtkInteractorStyle.h. |
|
Definition at line 318 of file vtkInteractorStyle.h. |
|
Definition at line 319 of file vtkInteractorStyle.h. |
|
Definition at line 320 of file vtkInteractorStyle.h. |