|
virtual vtkTypeBool | IsA (const char *type) |
| Return 1 if this class is the same type of (or a subclass of) the named class.
|
|
vtkInteractorStyleTerrain * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) override |
| Methods invoked by print to print information about the object including superclasses.
|
|
void | OnChar () override |
| Override the "fly-to" (f keypress) for images.
|
|
void | Rotate () override |
| These methods for the different interactions in different modes are overridden in subclasses to perform the correct motion.
|
|
void | Pan () override |
|
void | Dolly () override |
|
|
void | OnMouseMove () override |
| Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
|
|
void | OnLeftButtonDown () override |
| Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
|
|
void | OnLeftButtonUp () override |
| Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
|
|
void | OnMiddleButtonDown () override |
| Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
|
|
void | OnMiddleButtonUp () override |
| Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
|
|
void | OnRightButtonDown () override |
| Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
|
|
void | OnRightButtonUp () override |
| Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
|
|
|
virtual void | SetLatLongLines (vtkTypeBool) |
| Turn on/off the latitude/longitude lines.
|
|
virtual vtkTypeBool | GetLatLongLines () |
| Turn on/off the latitude/longitude lines.
|
|
virtual void | LatLongLinesOn () |
| Turn on/off the latitude/longitude lines.
|
|
virtual void | LatLongLinesOff () |
| Turn on/off the latitude/longitude lines.
|
|
virtual vtkTypeBool | IsA (const char *type) |
| Return 1 if this class is the same type of (or a subclass of) the named class.
|
|
vtkInteractorStyle * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) override |
| Methods invoked by print to print information about the object including superclasses.
|
|
void | SetInteractor (vtkRenderWindowInteractor *interactor) override |
| Set/Get the Interactor wrapper being controlled by this object.
|
|
void | SetEnabled (int) override |
| Turn on/off this interactor.
|
|
void | FindPokedRenderer (int, int) |
| When an event occurs, we must determine which Renderer the event occurred within, since one RenderWindow may contain multiple renderers.
|
|
virtual void | OnMouseMove () |
| Generic event bindings can be overridden in subclasses.
|
|
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.
|
|
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.
|
|
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.
|
|
virtual void | OnConfigure () |
|
virtual void | OnEnter () |
|
virtual void | OnLeave () |
|
virtual void | OnTimer () |
| OnTimer calls Rotate, Rotate etc which should be overridden by style subclasses.
|
|
virtual void | Rotate () |
| These methods for the different interactions in different modes are overridden in subclasses to perform the correct motion.
|
|
virtual void | Spin () |
|
virtual void | Pan () |
|
virtual void | Dolly () |
|
virtual void | Zoom () |
|
virtual void | UniformScale () |
|
virtual void | EnvironmentRotate () |
|
virtual void | OnStartSwipe () |
| gesture based events
|
|
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.
|
|
virtual void | OnDropFiles (vtkStringArray *vtkNotUsed(filePaths)) |
| When files are dropped on the render window.
|
|
void | DelegateTDxEvent (unsigned long event, void *calldata) |
| Called by the callback to process 3DConnexion device events.
|
|
virtual void | SetAutoAdjustCameraClippingRange (vtkTypeBool) |
| If AutoAdjustCameraClippingRange is on, then before each render the camera clipping range will be adjusted to "fit" the whole scene.
|
|
virtual vtkTypeBool | GetAutoAdjustCameraClippingRange () |
| If AutoAdjustCameraClippingRange is on, then before each render the camera clipping range will be adjusted to "fit" the whole scene.
|
|
virtual void | AutoAdjustCameraClippingRangeOn () |
| If AutoAdjustCameraClippingRange is on, then before each render the camera clipping range will be adjusted to "fit" the whole scene.
|
|
virtual void | AutoAdjustCameraClippingRangeOff () |
| If AutoAdjustCameraClippingRange is on, then before each render the camera clipping range will be adjusted to "fit" the whole scene.
|
|
virtual int | GetState () |
| Some useful information for interaction.
|
|
virtual vtkTypeBool | GetUseTimers () |
| Set/Get timer hint.
|
|
virtual void | SetUseTimers (vtkTypeBool) |
| Set/Get timer hint.
|
|
virtual void | UseTimersOn () |
| Set/Get timer hint.
|
|
virtual void | UseTimersOff () |
| Set/Get timer hint.
|
|
virtual void | SetTimerDuration (unsigned long) |
| If using timers, specify the default timer interval (in milliseconds).
|
|
virtual unsigned long | GetTimerDuration () |
| If using timers, specify the default timer interval (in milliseconds).
|
|
virtual void | SetHandleObservers (vtkTypeBool) |
| Does ProcessEvents handle observers on this class or not.
|
|
virtual vtkTypeBool | GetHandleObservers () |
| Does ProcessEvents handle observers on this class or not.
|
|
virtual void | HandleObserversOn () |
| Does ProcessEvents handle observers on this class or not.
|
|
virtual void | HandleObserversOff () |
| Does ProcessEvents handle observers on this class or not.
|
|
virtual void | StartState (int newstate) |
| utility routines used by state changes
|
|
virtual void | StopState () |
| utility routines used by state changes
|
|
virtual void | StartAnimate () |
| Interaction mode entry points used internally.
|
|
virtual void | StopAnimate () |
| Interaction mode entry points used internally.
|
|
virtual void | StartRotate () |
| Interaction mode entry points used internally.
|
|
virtual void | EndRotate () |
| Interaction mode entry points used internally.
|
|
virtual void | StartZoom () |
| Interaction mode entry points used internally.
|
|
virtual void | EndZoom () |
| Interaction mode entry points used internally.
|
|
virtual void | StartPan () |
| Interaction mode entry points used internally.
|
|
virtual void | EndPan () |
| Interaction mode entry points used internally.
|
|
virtual void | StartSpin () |
| Interaction mode entry points used internally.
|
|
virtual void | EndSpin () |
| Interaction mode entry points used internally.
|
|
virtual void | StartDolly () |
| Interaction mode entry points used internally.
|
|
virtual void | EndDolly () |
| Interaction mode entry points used internally.
|
|
virtual void | StartUniformScale () |
| Interaction mode entry points used internally.
|
|
virtual void | EndUniformScale () |
| Interaction mode entry points used internally.
|
|
virtual void | StartTimer () |
| Interaction mode entry points used internally.
|
|
virtual void | EndTimer () |
| Interaction mode entry points used internally.
|
|
virtual void | StartTwoPointer () |
| Interaction mode entry points used internally.
|
|
virtual void | EndTwoPointer () |
| Interaction mode entry points used internally.
|
|
virtual void | StartGesture () |
| Interaction mode entry points used internally.
|
|
virtual void | EndGesture () |
| Interaction mode entry points used internally.
|
|
virtual void | StartEnvRotate () |
| Interaction mode entry points used internally.
|
|
virtual void | EndEnvRotate () |
| Interaction mode entry points used internally.
|
|
virtual void | HighlightProp (vtkProp *prop) |
| When picking successfully selects an actor, this method highlights the picked prop appropriately.
|
|
virtual void | HighlightActor2D (vtkActor2D *actor2D) |
| When picking successfully selects an actor, this method highlights the picked prop appropriately.
|
|
virtual void | HighlightProp3D (vtkProp3D *prop3D) |
| When picking successfully selects an actor, this method highlights the picked prop appropriately.
|
|
virtual void | SetPickColor (double, double, double) |
| Set/Get the pick color (used by default to color vtkActor2D's).
|
|
virtual void | SetPickColor (double[3]) |
| Set/Get the pick color (used by default to color vtkActor2D's).
|
|
virtual double * | GetPickColor () |
| Set/Get the pick color (used by default to color vtkActor2D's).
|
|
virtual void | GetPickColor (double data[3]) |
| Set/Get the pick color (used by default to color vtkActor2D's).
|
|
virtual void | SetMouseWheelMotionFactor (double) |
| Set/Get the mouse wheel motion factor.
|
|
virtual double | GetMouseWheelMotionFactor () |
| Set/Get the mouse wheel motion factor.
|
|
virtual vtkTDxInteractorStyle * | GetTDxStyle () |
| 3Dconnexion device interactor style.
|
|
virtual void | SetTDxStyle (vtkTDxInteractorStyle *tdxStyle) |
| 3Dconnexion device interactor style.
|
|
virtual vtkTypeBool | IsA (const char *type) |
| Return 1 if this class is the same type of (or a subclass of) the named class.
|
|
vtkInteractorObserver * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) override |
| Methods invoked by print to print information about the object including superclasses.
|
|
virtual void | SetEnabled (int) |
| Methods for turning the interactor observer on and off, and determining its state.
|
|
int | GetEnabled () |
|
void | EnabledOn () |
|
void | EnabledOff () |
|
void | On () |
|
void | Off () |
|
virtual void | OnChar () |
| Sets up the keypress-i event.
|
|
virtual vtkRenderWindowInteractor * | GetInteractor () |
| This method is used to associate the widget with the render window interactor.
|
|
virtual void | SetPriority (float) |
| Set/Get the priority at which events are processed.
|
|
virtual float | GetPriority () |
| Set/Get the priority at which events are processed.
|
|
virtual void | PickingManagedOn () |
| Enable/Disable the use of a manager to process the picking.
|
|
virtual void | PickingManagedOff () |
| Enable/Disable the use of a manager to process the picking.
|
|
virtual void | SetPickingManaged (bool managed) |
| Enable/Disable the use of a manager to process the picking.
|
|
virtual bool | GetPickingManaged () |
| Enable/Disable the use of a manager to process the picking.
|
|
virtual void | SetKeyPressActivation (vtkTypeBool) |
| Enable/Disable of the use of a keypress to turn on and off the interactor observer.
|
|
virtual vtkTypeBool | GetKeyPressActivation () |
| Enable/Disable of the use of a keypress to turn on and off the interactor observer.
|
|
virtual void | KeyPressActivationOn () |
| Enable/Disable of the use of a keypress to turn on and off the interactor observer.
|
|
virtual void | KeyPressActivationOff () |
| Enable/Disable of the use of a keypress to turn on and off the interactor observer.
|
|
virtual void | SetKeyPressActivationValue (char) |
| Specify which key press value to use to activate the interactor observer (if key press activation is enabled).
|
|
virtual char | GetKeyPressActivationValue () |
| Specify which key press value to use to activate the interactor observer (if key press activation is enabled).
|
|
virtual vtkRenderer * | GetDefaultRenderer () |
| Set/Get the default renderer to use when activating the interactor observer.
|
|
virtual void | SetDefaultRenderer (vtkRenderer *) |
| Set/Get the default renderer to use when activating the interactor observer.
|
|
virtual vtkRenderer * | GetCurrentRenderer () |
| Set/Get the current renderer.
|
|
virtual void | SetCurrentRenderer (vtkRenderer *) |
| Set/Get the current renderer.
|
|
void | GrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=nullptr) |
| These methods enable an interactor observer to exclusively grab all events invoked by its associated vtkRenderWindowInteractor.
|
|
void | ReleaseFocus () |
| These methods enable an interactor observer to exclusively grab all events invoked by its associated vtkRenderWindowInteractor.
|
|
| vtkBaseTypeMacro (vtkObject, vtkObjectBase) |
|
virtual void | DebugOn () |
| Turn debugging output on.
|
|
virtual void | DebugOff () |
| Turn debugging output off.
|
|
bool | GetDebug () |
| Get the value of the debug flag.
|
|
void | SetDebug (bool debugFlag) |
| Set the value of the debug flag.
|
|
virtual void | Modified () |
| Update the modification time for this object.
|
|
virtual vtkMTimeType | GetMTime () |
| Return this object's modified time.
|
|
void | PrintSelf (ostream &os, vtkIndent indent) override |
| Methods invoked by print to print information about the object including superclasses.
|
|
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.
|
|
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
|
vtkCommand * | GetCommand (unsigned long tag) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
|
void | RemoveObserver (vtkCommand *) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
|
void | RemoveObservers (unsigned long event, vtkCommand *) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
|
void | RemoveObservers (const char *event, vtkCommand *) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
|
vtkTypeBool | HasObserver (unsigned long event, vtkCommand *) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
|
vtkTypeBool | HasObserver (const char *event, vtkCommand *) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
|
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.
|
|
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.
|
|
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.
|
|
int | InvokeEvent (unsigned long event, void *callData) |
| This method invokes an event and return whether the event was aborted or not.
|
|
int | InvokeEvent (const char *event, void *callData) |
| This method invokes an event and return whether the event was aborted or not.
|
|
const char * | GetClassName () const |
| Return the class name as a string.
|
|
virtual vtkTypeBool | IsA (const char *name) |
| Return 1 if this class is the same type of (or a subclass of) the named class.
|
|
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).
|
|
virtual void | Delete () |
| Delete a VTK object.
|
|
virtual void | FastDelete () |
| Delete a reference to this object.
|
|
void | InitializeObjectBase () |
|
void | Print (ostream &os) |
| Print an object to an ostream.
|
|
virtual void | Register (vtkObjectBase *o) |
| Increase the reference count (mark as used by another object).
|
|
virtual void | UnRegister (vtkObjectBase *o) |
| Decrease the reference count (release by another object).
|
|
int | GetReferenceCount () |
| Return the current reference count of this object.
|
|
void | SetReferenceCount (int) |
| Sets the reference count.
|
|
bool | GetIsInMemkind () const |
| A local state flag that remembers whether this object lives in the normal or extended memory space.
|
|
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
| Methods invoked by print to print information about the object including superclasses.
|
|
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
| Methods invoked by print to print information about the object including superclasses.
|
|
manipulate camera in scene with natural view up (e.g., terrain)
vtkInteractorStyleTerrain is used to manipulate a camera which is viewing a scene with a natural view up, e.g., terrain. The camera in such a scene is manipulated by specifying azimuth (angle around the view up vector) and elevation (the angle from the horizon).
The mouse binding for this class is as follows. Left mouse click followed rotates the camera around the focal point using both elevation and azimuth invocations on the camera. Left mouse motion in the horizontal direction results in azimuth motion; left mouse motion in the vertical direction results in elevation motion. Therefore, diagonal motion results in a combination of azimuth and elevation. (If the shift key is held during motion, then only one of elevation or azimuth is invoked, depending on the whether the mouse motion is primarily horizontal or vertical.) Middle mouse button pans the camera across the scene (again the shift key has a similar effect on limiting the motion to the vertical or horizontal direction. The right mouse is used to dolly (e.g., a type of zoom) towards or away from the focal point.
The class also supports some keypress events. The "r" key resets the camera. The "e" key invokes the exit callback and by default exits the program. The "f" key sets a new camera focal point and flys towards that point. The "u" key invokes the user event. The "3" key toggles between stereo and non-stero mode. The "l" key toggles on/off a latitude/longitude markers that can be used to estimate/control position.
- See also
- vtkInteractorObserver vtkInteractorStyle vtk3DWidget
- Events:
- vtkCommand::InteractionEvent
- Online Examples:
- Tests:
- vtkInteractorStyleTerrain (Tests)
Definition at line 94 of file vtkInteractorStyleTerrain.h.