|
virtual vtkTypeBool | IsA (const char *type) |
| Return 1 if this class is the same type of (or a subclass of) the named class. More...
|
|
vtkInteractorStyleUnicam * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) override |
| Methods invoked by print to print information about the object including superclasses. More...
|
|
void | SetWorldUpVector (double a[3]) |
|
void | SetWorldUpVector (double x, double y, double z) |
|
virtual double * | GetWorldUpVector () |
|
virtual void | GetWorldUpVector (double data[3]) |
|
void | OnTimer () override |
| OnTimer calls RotateCamera, RotateActor etc which should be overridden by style subclasses. More...
|
|
|
void | OnMouseMove () override |
| Concrete implementation of event bindings. More...
|
|
void | OnLeftButtonDown () override |
| Concrete implementation of event bindings. More...
|
|
void | OnLeftButtonUp () override |
| Concrete implementation of event bindings. More...
|
|
virtual void | OnLeftButtonMove () |
| Concrete implementation of event bindings. 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 | OnMiddleButtonDown () |
|
virtual void | OnMiddleButtonUp () |
|
virtual void | OnRightButtonDown () |
|
virtual void | OnRightButtonUp () |
|
virtual void | OnMouseWheelForward () |
|
virtual void | OnMouseWheelBackward () |
|
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 *) |
|
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 | 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 | OnPinch () |
| gesture based events More...
|
|
virtual void | OnRotate () |
|
virtual void | OnPan () |
|
virtual void | OnTap () |
|
virtual void | OnLongTap () |
|
virtual void | OnSwipe () |
|
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 | 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...
|
|
vtkInteractorObserver * | NewInstance () const |
|
int | GetEnabled () |
|
void | EnabledOn () |
|
void | EnabledOff () |
|
void | On () |
|
void | Off () |
|
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...
|
|
| 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 | 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...
|
|
const char * | GetClassName () const |
| Return the class name as a string. 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...
|
|
void | PrintRevisions (ostream &) |
| Legacy. 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...
|
|
provides Unicam navigation style
UniCam is a camera interactor. Here, just the primary features of the UniCam technique are implemented. UniCam requires just one mouse button and supports context sensitive dollying, panning, and rotation. (In this implementation, it uses the right mouse button, leaving the middle and left available for other functions.) For more information, see the paper at:
ftp://ftp.cs.brown.edu/pub/papers/graphics/research/unicam.pdf
The following is a brief description of the UniCam Camera Controls. You can perform 3 operations on the camera: rotate, pan, and dolly the camera. All operations are reached through the right mouse button & mouse movements.
IMPORTANT: UniCam assumes there is an axis that makes sense as a "up" vector for the world. By default, this axis is defined to be the vector <0,0,1>. You can set it explicitly for the data you are viewing with the 'SetWorldUpVector(..)' method.
- ROTATE:
Position the cursor over the point you wish to rotate around and press and release the left mouse button. A 'focus dot' appears indicating the point that will be the center of rotation. To rotate, press and hold the left mouse button and drag the mouse.. release the button to complete the rotation.
Rotations can be done without placing a focus dot first by moving the mouse cursor to within 10% of the window border & pressing and holding the left button followed by dragging the mouse. The last focus dot position will be re-used.
- PAN:
Click and hold the left mouse button, and initially move the mouse left or right. The point under the initial pick will pick correlate w/ the mouse tip– (i.e., direct manipulation).
- DOLLY (+ PAN):
Click and hold the left mouse button, and initially move the mouse up or down. Moving the mouse down will dolly towards the picked point, and moving the mouse up will dolly away from it. Dollying occurs relative to the picked point which simplifies the task of dollying towards a region of interest. Left and right mouse movements will pan the camera left and right.
- Warning
- (NOTE: This implementation of Unicam assumes a perspective camera. It could be modified relatively easily to also support an orthographic projection.)
Definition at line 108 of file vtkInteractorStyleUnicam.h.