|
VTK
9.6.20260408
|
Implements VR specific functions required by vtkRenderWindowInteractor. More...
#include <vtkVRRenderWindowInteractor.h>
Public Types | |
| typedef vtkRenderWindowInteractor3D | Superclass |
Public Types inherited from vtkRenderWindowInteractor3D | |
| typedef vtkRenderWindowInteractor | Superclass |
Public Types inherited from vtkRenderWindowInteractor | |
| enum | { OneShotTimer = 1 , RepeatingTimer } |
| 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. | |
| vtkVRRenderWindowInteractor * | NewInstance () const |
| void | PrintSelf (ostream &os, vtkIndent indent) override |
| Methods invoked by print to print information about the object including superclasses. | |
| void | Initialize () override |
| Initialize the event handler. | |
| void | ProcessEvents () override |
| Run the event loop and return. | |
| virtual void | DoOneEvent (vtkVRRenderWindow *renWin, vtkRenderer *ren)=0 |
| Implements the event loop. | |
| void | ExitCallback () override |
| This method corresponds to the Exit callback, allowing for the style to invoke it. | |
| vtkEventDataDevice | GetPointerDevice () |
| void | ConvertPoseToWorldCoordinates (vtkMatrix4x4 *poseInTrackingCoordinates, double pos[3], double wxyz[4], double ppos[3], double wdir[3]) |
| void | SetPhysicalViewDirection (double, double, double) override |
| Set/get the direction of the physical coordinate system -Z axis in world coordinates. | |
| double * | GetPhysicalViewDirection () override |
| Set/get the direction of the physical coordinate system -Z axis in world coordinates. | |
| void | SetPhysicalViewUp (double, double, double) override |
| Set/get the direction of the physical coordinate system +Y axis in world coordinates. | |
| double * | GetPhysicalViewUp () override |
| Set/get the direction of the physical coordinate system +Y axis in world coordinates. | |
| void | SetPhysicalTranslation (vtkCamera *, double, double, double) override |
| Set/get position of the physical coordinate system origin in world coordinates. | |
| double * | GetPhysicalTranslation (vtkCamera *) override |
| Set/get position of the physical coordinate system origin in world coordinates. | |
| void | SetPhysicalScale (double) override |
| Set/get the physical scale (world / physical distance ratio) | |
| double | GetPhysicalScale () override |
| Set/get the physical scale (world / physical distance ratio) | |
| virtual void | AddAction (const std::string &path, const vtkCommand::EventIds &, bool isAnalog)=0 |
| Assign an event or std::function to an event path. | |
| virtual void | AddAction (const std::string &path, bool isAnalog, const std::function< void(vtkEventData *)> &)=0 |
| Assign an event or std::function to an event path. | |
| virtual std::string | GetActionManifestFileName () |
| Set/Get the .json filename describing action bindings for events. | |
| virtual void | SetActionManifestFileName (std::string) |
| Set/Get the .json filename describing action bindings for events. | |
| virtual std::string | GetActionManifestDirectory () |
| Set/Get the path to the directory to search for the ActionManifestFileName Default is empty. | |
| virtual void | SetActionManifestDirectory (std::string) |
| Set/Get the path to the directory to search for the ActionManifestFileName Default is empty. | |
| virtual std::string | GetActionSetName () |
| Set/Get the name of the action set to use from the action manifest. | |
| virtual void | SetActionSetName (std::string) |
| Set/Get the name of the action set to use from the action manifest. | |
| virtual void | HandleComplexGestureEvents (vtkEventData *ed) |
| Handle complex gesture events. | |
| virtual void | RecognizeComplexGesture (vtkEventDataDevice3D *edata) |
| Handle complex gesture events. | |
| int | GetDeviceInputDownCount (vtkEventDataDevice device) const |
| When handling complex gestures you can query this value to determine how many input device are down for the gesture. | |
| void | SetDeviceInputDownCount (vtkEventDataDevice device, int count) |
| You can set this value when defining a custom heuristic for recognizing complex gestures,. | |
Public Member Functions inherited from vtkRenderWindowInteractor3D | |
| vtkRenderWindowInteractor3D * | NewInstance () const |
| virtual void | GetStartingPhysicalToWorldMatrix (vtkMatrix4x4 *startingPhysicalToWorldMatrix) |
| Return starting physical to world matrix. | |
| virtual void | SetStartingPhysicalToWorldMatrix (vtkMatrix4x4 *startingPhysicalToWorldMatrix) |
| Set starting physical to world matrix. | |
| virtual void | SetStartingPhysicalEventPose (vtkMatrix4x4 *poseMatrix, vtkEventDataDevice device) |
| Set starting physical event pose. | |
| void | Enable () override |
| Enable/Disable interactions. | |
| void | Disable () override |
| Enable/Disable interactions. | |
| virtual double * | GetWorldEventPosition (int pointerIndex) |
| With VR we know the world coordinate positions and orientations of events. | |
| virtual double * | GetLastWorldEventPosition (int pointerIndex) |
| With VR we know the world coordinate positions and orientations of events. | |
| virtual double * | GetWorldEventOrientation (int pointerIndex) |
| With VR we know the world coordinate positions and orientations of events. | |
| virtual double * | GetLastWorldEventOrientation (int pointerIndex) |
| With VR we know the world coordinate positions and orientations of events. | |
| virtual void | GetWorldEventPose (vtkMatrix4x4 *poseMatrix, int pointerIndex) |
| With VR we know the world coordinate positions and orientations of events. | |
| virtual void | GetLastWorldEventPose (vtkMatrix4x4 *poseMatrix, int pointerIndex) |
| With VR we know the world coordinate positions and orientations of events. | |
| virtual void | SetPhysicalEventPosition (double x, double y, double z, int pointerIndex) |
| With VR we know the physical/room coordinate positions and orientations of events. | |
| virtual void | SetPhysicalEventPose (vtkMatrix4x4 *poseMatrix, int pointerIndex) |
| With VR we know the physical/room coordinate positions and orientations of events. | |
| virtual void | GetPhysicalEventPose (vtkMatrix4x4 *poseMatrix, int pointerIndex) |
| With VR we know the physical/room coordinate positions and orientations of events. | |
| virtual void | GetLastPhysicalEventPose (vtkMatrix4x4 *poseMatrix, int pointerIndex) |
| With VR we know the physical/room coordinate positions and orientations of events. | |
| virtual void | GetStartingPhysicalEventPose (vtkMatrix4x4 *poseMatrix, int pointerIndex) |
| With VR we know the physical/room coordinate positions and orientations of events. | |
| virtual void | SetWorldEventPosition (double x, double y, double z, int pointerIndex) |
| With VR we know the world coordinate positions and orientations of events. | |
| virtual void | SetWorldEventOrientation (double w, double x, double y, double z, int pointerIndex) |
| With VR we know the world coordinate positions and orientations of events. | |
| virtual void | SetWorldEventPose (vtkMatrix4x4 *poseMatrix, int pointerIndex) |
| With VR we know the world coordinate positions and orientations of events. | |
| void | RightButtonPressEvent () override |
| Override to set pointers down. | |
| void | RightButtonReleaseEvent () override |
| Override to set pointers down. | |
| void | MiddleButtonPressEvent () override |
| Override to set pointers down. | |
| void | MiddleButtonReleaseEvent () override |
| Override to set pointers down. | |
| virtual void | GetTouchPadPosition (vtkEventDataDevice, vtkEventDataDeviceInput, float[3]) |
| Get the latest touchpad or joystick position for a device. | |
| void | SetTranslation3D (double val[3]) |
| Set/get the translation for pan/swipe gestures, update LastTranslation. | |
| virtual double * | GetTranslation3D () |
| Set/get the translation for pan/swipe gestures, update LastTranslation. | |
| virtual void | GetTranslation3D (double &, double &, double &) |
| Set/get the translation for pan/swipe gestures, update LastTranslation. | |
| virtual void | GetTranslation3D (double[3]) |
| Set/get the translation for pan/swipe gestures, update LastTranslation. | |
| virtual double * | GetLastTranslation3D () |
| Set/get the translation for pan/swipe gestures, update LastTranslation. | |
| virtual void | GetLastTranslation3D (double &, double &, double &) |
| Set/get the translation for pan/swipe gestures, update LastTranslation. | |
| virtual void | GetLastTranslation3D (double[3]) |
| Set/get the translation for pan/swipe gestures, update LastTranslation. | |
Public Member Functions inherited from vtkRenderWindowInteractor | |
| vtkRenderWindowInteractor * | NewInstance () const |
| void | UnRegister (vtkObjectBase *o) override |
| This Method detects loops of RenderWindow-Interactor, so objects are freed properly. | |
| virtual void | Start () |
| Start the event loop. | |
| virtual bool | GetDone () |
| Is the interactor loop done. | |
| virtual void | SetDone (bool) |
| virtual int | GetEnabled () |
| virtual void | UpdateSize (int x, int y) |
| When the event loop notifies the interactor that the window size has changed, this method is called to update the Size of the interactor and its vtkRenderWindow. | |
| virtual int | CreateTimer (int timerType) |
| This class provides two groups of methods for manipulating timers. | |
| virtual int | DestroyTimer () |
| int | CreateRepeatingTimer (unsigned long duration) |
| Create a repeating timer, with the specified duration (in milliseconds). | |
| int | CreateOneShotTimer (unsigned long duration) |
| Create a one shot timer, with the specified duration (in milliseconds). | |
| int | IsOneShotTimer (int timerId) |
| Query whether the specified timerId is a one shot timer. | |
| unsigned long | GetTimerDuration (int timerId) |
| Get the duration (in milliseconds) for the specified timerId. | |
| int | ResetTimer (int timerId) |
| Reset the specified timer. | |
| int | DestroyTimer (int timerId) |
| Destroy the timer specified by timerId. | |
| virtual int | GetVTKTimerId (int platformTimerId) |
| Get the VTK timer ID that corresponds to the supplied platform ID. | |
| virtual void | TerminateApp () |
| This function is called on 'q','e' keypress if exitmethod is not specified and should be overridden by platform dependent subclasses to provide a termination procedure if one is required. | |
| virtual vtkAbstractPropPicker * | CreateDefaultPicker () |
| Create default picker. | |
| virtual void | GetMousePosition (int *x, int *y) |
| Get the current position of the mouse. | |
| virtual void | Render () |
| Render the scene. | |
| virtual int * | GetEventPositions (int pointerIndex) |
| virtual int * | GetLastEventPositions (int pointerIndex) |
| virtual void | SetEventPosition (int x, int y, int pointerIndex) |
| virtual void | SetEventPosition (int pos[2], int pointerIndex) |
| virtual void | SetEventPositionFlipY (int x, int y, int pointerIndex) |
| virtual void | SetEventPositionFlipY (int pos[2], int pointerIndex) |
| virtual vtkRenderer * | FindPokedRenderer (int, int) |
| When an event occurs, we must determine which Renderer the event occurred within, since one RenderWindow may contain multiple renderers. | |
| vtkObserverMediator * | GetObserverMediator () |
| Return the object used to mediate between vtkInteractorObservers contending for resources. | |
| void | ReInitialize () |
| Prepare for handling events and set the Enabled flag to true. | |
| virtual void | EnableRenderOn () |
| Enable/Disable whether vtkRenderWindowInteractor::Render() calls this->RenderWindow->Render(). | |
| virtual void | EnableRenderOff () |
| Enable/Disable whether vtkRenderWindowInteractor::Render() calls this->RenderWindow->Render(). | |
| virtual void | SetEnableRender (bool) |
| Enable/Disable whether vtkRenderWindowInteractor::Render() calls this->RenderWindow->Render(). | |
| virtual bool | GetEnableRender () |
| Enable/Disable whether vtkRenderWindowInteractor::Render() calls this->RenderWindow->Render(). | |
| void | SetRenderWindow (vtkRenderWindow *aren) |
| Set/Get the rendering window being controlled by this object. | |
| virtual vtkRenderWindow * | GetRenderWindow () |
| Set/Get the rendering window being controlled by this object. | |
| void | SetHardwareWindow (vtkHardwareWindow *aren) |
| Set/Get the hardware window being controlled by this object. | |
| virtual vtkHardwareWindow * | GetHardwareWindow () |
| Set/Get the hardware window being controlled by this object. | |
| virtual void | SetTimerDuration (unsigned long) |
| Specify the default timer interval (in milliseconds). | |
| virtual unsigned long | GetTimerDuration () |
| Specify the default timer interval (in milliseconds). | |
| virtual void | SetTimerEventId (int) |
| These methods are used to communicate information about the currently firing CreateTimerEvent or DestroyTimerEvent. | |
| virtual int | GetTimerEventId () |
| These methods are used to communicate information about the currently firing CreateTimerEvent or DestroyTimerEvent. | |
| virtual void | SetTimerEventType (int) |
| These methods are used to communicate information about the currently firing CreateTimerEvent or DestroyTimerEvent. | |
| virtual int | GetTimerEventType () |
| These methods are used to communicate information about the currently firing CreateTimerEvent or DestroyTimerEvent. | |
| virtual void | SetTimerEventDuration (int) |
| These methods are used to communicate information about the currently firing CreateTimerEvent or DestroyTimerEvent. | |
| virtual int | GetTimerEventDuration () |
| These methods are used to communicate information about the currently firing CreateTimerEvent or DestroyTimerEvent. | |
| virtual void | SetTimerEventPlatformId (int) |
| These methods are used to communicate information about the currently firing CreateTimerEvent or DestroyTimerEvent. | |
| virtual int | GetTimerEventPlatformId () |
| These methods are used to communicate information about the currently firing CreateTimerEvent or DestroyTimerEvent. | |
| virtual void | SetInteractorStyle (vtkInteractorObserver *) |
| External switching between joystick/trackball/new? | |
| virtual vtkInteractorObserver * | GetInteractorStyle () |
| External switching between joystick/trackball/new? | |
| virtual void | SetLightFollowCamera (vtkTypeBool) |
| Turn on/off the automatic repositioning of lights as the camera moves. | |
| virtual vtkTypeBool | GetLightFollowCamera () |
| Turn on/off the automatic repositioning of lights as the camera moves. | |
| virtual void | LightFollowCameraOn () |
| Turn on/off the automatic repositioning of lights as the camera moves. | |
| virtual void | LightFollowCameraOff () |
| Turn on/off the automatic repositioning of lights as the camera moves. | |
| virtual void | SetDesiredUpdateRate (double) |
| Set/Get the desired update rate. | |
| virtual double | GetDesiredUpdateRate () |
| Set/Get the desired update rate. | |
| virtual void | SetStillUpdateRate (double) |
| Set/Get the desired update rate when movement has stopped. | |
| virtual double | GetStillUpdateRate () |
| Set/Get the desired update rate when movement has stopped. | |
| virtual int | GetInitialized () |
| See whether interactor has been initialized yet. | |
| virtual void | SetPicker (vtkAbstractPicker *) |
| Set/Get the object used to perform pick operations. | |
| virtual vtkAbstractPicker * | GetPicker () |
| Set/Get the object used to perform pick operations. | |
| virtual void | SetPickingManager (vtkPickingManager *) |
| Set the picking manager. | |
| virtual vtkPickingManager * | GetPickingManager () |
| Set the picking manager. | |
| virtual void | UserCallback () |
| These methods correspond to the Exit, User and Pick callbacks. | |
| virtual void | StartPickCallback () |
| These methods correspond to the Exit, User and Pick callbacks. | |
| virtual void | EndPickCallback () |
| These methods correspond to the Exit, User and Pick callbacks. | |
| void | HideCursor () |
| Hide or show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to display a 3D cursor instead. | |
| void | ShowCursor () |
| Hide or show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to display a 3D cursor instead. | |
| void | FlyTo (vtkRenderer *ren, double x, double y, double z) |
| Given a position x, move the current camera's focal point to x. | |
| void | FlyTo (vtkRenderer *ren, double *x) |
| Given a position x, move the current camera's focal point to x. | |
| void | FlyToImage (vtkRenderer *ren, double x, double y) |
| Given a position x, move the current camera's focal point to x. | |
| void | FlyToImage (vtkRenderer *ren, double *x) |
| Given a position x, move the current camera's focal point to x. | |
| virtual void | SetNumberOfFlyFrames (int) |
| Set the number of frames to fly to when FlyTo is invoked. | |
| virtual int | GetNumberOfFlyFrames () |
| Set the number of frames to fly to when FlyTo is invoked. | |
| virtual void | SetDolly (double) |
| Set the total Dolly value to use when flying to (FlyTo()) a specified point. | |
| virtual double | GetDolly () |
| Set the total Dolly value to use when flying to (FlyTo()) a specified point. | |
| virtual int * | GetEventPosition () |
| Set/Get information about the current event. | |
| virtual void | GetEventPosition (int &, int &) |
| Set/Get information about the current event. | |
| virtual void | GetEventPosition (int[2]) |
| Set/Get information about the current event. | |
| virtual int * | GetLastEventPosition () |
| Set/Get information about the current event. | |
| virtual void | GetLastEventPosition (int &, int &) |
| Set/Get information about the current event. | |
| virtual void | GetLastEventPosition (int[2]) |
| Set/Get information about the current event. | |
| virtual void | SetLastEventPosition (int, int) |
| Set/Get information about the current event. | |
| void | SetLastEventPosition (int[2]) |
| Set/Get information about the current event. | |
| virtual void | SetEventPosition (int x, int y) |
| Set/Get information about the current event. | |
| virtual void | SetEventPosition (int pos[2]) |
| Set/Get information about the current event. | |
| virtual void | SetEventPositionFlipY (int x, int y) |
| Set/Get information about the current event. | |
| virtual void | SetEventPositionFlipY (int pos[2]) |
| Set/Get information about the current event. | |
| virtual void | SetAltKey (int) |
| Set/get whether alt modifier key was pressed. | |
| virtual int | GetAltKey () |
| Set/get whether alt modifier key was pressed. | |
| virtual void | SetControlKey (int) |
| Set/get whether control modifier key was pressed. | |
| virtual int | GetControlKey () |
| Set/get whether control modifier key was pressed. | |
| virtual void | SetShiftKey (int) |
| Set/get whether shift modifier key was pressed. | |
| virtual int | GetShiftKey () |
| Set/get whether shift modifier key was pressed. | |
| virtual void | SetKeyCode (char) |
| Set/get the unicode value for the key that was pressed, as an 8-bit char value. | |
| virtual char | GetKeyCode () |
| Set/get the unicode value for the key that was pressed, as an 8-bit char value. | |
| virtual void | SetRepeatCount (int) |
| Set/get the repeat count for the key or mouse event. | |
| virtual int | GetRepeatCount () |
| Set/get the repeat count for the key or mouse event. | |
| virtual void | SetKeySym (const char *) |
| Set/get the key symbol for the key that was pressed. | |
| virtual char * | GetKeySym () |
| Set/get the key symbol for the key that was pressed. | |
| virtual void | SetPointerIndex (int) |
| Set/get the index of the most recent pointer to have an event. | |
| virtual int | GetPointerIndex () |
| Set/get the index of the most recent pointer to have an event. | |
| void | SetRotation (double rotation) |
| Set/get the rotation for the gesture in degrees, update LastRotation. | |
| virtual double | GetRotation () |
| Set/get the rotation for the gesture in degrees, update LastRotation. | |
| virtual double | GetLastRotation () |
| Set/get the rotation for the gesture in degrees, update LastRotation. | |
| void | SetScale (double scale) |
| Set/get the scale for the gesture, updates LastScale. | |
| virtual double | GetScale () |
| Set/get the scale for the gesture, updates LastScale. | |
| virtual double | GetLastScale () |
| Set/get the scale for the gesture, updates LastScale. | |
| void | SetTranslation (double val[2]) |
| Set/get the translation for pan/swipe gestures, update LastTranslation. | |
| virtual double * | GetTranslation () |
| Set/get the translation for pan/swipe gestures, update LastTranslation. | |
| virtual void | GetTranslation (double &, double &) |
| Set/get the translation for pan/swipe gestures, update LastTranslation. | |
| virtual void | GetTranslation (double[2]) |
| Set/get the translation for pan/swipe gestures, update LastTranslation. | |
| virtual double * | GetLastTranslation () |
| Set/get the translation for pan/swipe gestures, update LastTranslation. | |
| virtual void | GetLastTranslation (double &, double &) |
| Set/get the translation for pan/swipe gestures, update LastTranslation. | |
| virtual void | GetLastTranslation (double[2]) |
| Set/get the translation for pan/swipe gestures, update LastTranslation. | |
| void | SetEventInformation (int x, int y, int ctrl, int shift, char keycode, int repeatcount, const char *keysym, int pointerIndex) |
| Set all the event information in one call. | |
| void | SetEventInformation (int x, int y, int ctrl=0, int shift=0, char keycode=0, int repeatcount=0, const char *keysym=nullptr) |
| Set all the event information in one call. | |
| void | SetEventInformationFlipY (int x, int y, int ctrl, int shift, char keycode, int repeatcount, const char *keysym, int pointerIndex) |
| Calls SetEventInformation, but flips the Y based on the current Size[1] value (i.e. | |
| void | SetEventInformationFlipY (int x, int y, int ctrl=0, int shift=0, char keycode=0, int repeatcount=0, const char *keysym=nullptr) |
| Calls SetEventInformation, but flips the Y based on the current Size[1] value (i.e. | |
| void | SetKeyEventInformation (int ctrl=0, int shift=0, char keycode=0, int repeatcount=0, const char *keysym=nullptr) |
| Set all the keyboard-related event information in one call. | |
| virtual void | SetSize (int, int) |
| This methods sets the Size ivar of the interactor without actually changing the size of the window. | |
| void | SetSize (int[2]) |
| This methods sets the Size ivar of the interactor without actually changing the size of the window. | |
| virtual int * | GetSize () |
| This methods sets the Size ivar of the interactor without actually changing the size of the window. | |
| virtual void | GetSize (int &, int &) |
| This methods sets the Size ivar of the interactor without actually changing the size of the window. | |
| virtual void | GetSize (int[2]) |
| This methods sets the Size ivar of the interactor without actually changing the size of the window. | |
| virtual void | SetEventSize (int, int) |
| This methods sets the Size ivar of the interactor without actually changing the size of the window. | |
| void | SetEventSize (int[2]) |
| This methods sets the Size ivar of the interactor without actually changing the size of the window. | |
| virtual int * | GetEventSize () |
| This methods sets the Size ivar of the interactor without actually changing the size of the window. | |
| virtual void | GetEventSize (int &, int &) |
| This methods sets the Size ivar of the interactor without actually changing the size of the window. | |
| virtual void | GetEventSize (int[2]) |
| This methods sets the Size ivar of the interactor without actually changing the size of the window. | |
| virtual void | SetUseTDx (bool) |
| Use a 3DConnexion device. | |
| virtual bool | GetUseTDx () |
| Use a 3DConnexion device. | |
| virtual void | MouseMoveEvent () |
| Fire various events. | |
| virtual void | LeftButtonPressEvent () |
| Fire various events. | |
| virtual void | LeftButtonReleaseEvent () |
| Fire various events. | |
| virtual void | MouseWheelForwardEvent () |
| Fire various events. | |
| virtual void | MouseWheelBackwardEvent () |
| Fire various events. | |
| virtual void | MouseWheelLeftEvent () |
| Fire various events. | |
| virtual void | MouseWheelRightEvent () |
| Fire various events. | |
| virtual void | ExposeEvent () |
| Fire various events. | |
| virtual void | ConfigureEvent () |
| Fire various events. | |
| virtual void | EnterEvent () |
| Fire various events. | |
| virtual void | LeaveEvent () |
| Fire various events. | |
| virtual void | KeyPressEvent () |
| Fire various events. | |
| virtual void | KeyReleaseEvent () |
| Fire various events. | |
| virtual void | CharEvent () |
| Fire various events. | |
| virtual void | ExitEvent () |
| Fire various events. | |
| virtual void | FourthButtonPressEvent () |
| Fire various events. | |
| virtual void | FourthButtonReleaseEvent () |
| Fire various events. | |
| virtual void | FifthButtonPressEvent () |
| Fire various events. | |
| virtual void | FifthButtonReleaseEvent () |
| Fire various events. | |
| virtual void | StartPinchEvent () |
| Fire various gesture based events. | |
| virtual void | PinchEvent () |
| Fire various gesture based events. | |
| virtual void | EndPinchEvent () |
| Fire various gesture based events. | |
| virtual void | StartRotateEvent () |
| Fire various gesture based events. | |
| virtual void | RotateEvent () |
| Fire various gesture based events. | |
| virtual void | EndRotateEvent () |
| Fire various gesture based events. | |
| virtual void | StartPanEvent () |
| Fire various gesture based events. | |
| virtual void | PanEvent () |
| Fire various gesture based events. | |
| virtual void | EndPanEvent () |
| Fire various gesture based events. | |
| virtual void | TapEvent () |
| Fire various gesture based events. | |
| virtual void | LongTapEvent () |
| Fire various gesture based events. | |
| virtual void | SwipeEvent () |
| Fire various gesture based events. | |
| virtual void | SetRecognizeGestures (bool) |
| Convert multitouch events into gestures. | |
| virtual bool | GetRecognizeGestures () |
| Convert multitouch events into gestures. | |
| virtual int | GetPointersDownCount () |
| When handling gestures you can query this value to determine how many pointers are down for the gesture this is useful for pan gestures for example. | |
| void | ClearContact (size_t contactID) |
| Most multitouch systems use persistent contact/pointer ids to track events/motion during multitouch events. | |
| int | GetPointerIndexForContact (size_t contactID) |
| Most multitouch systems use persistent contact/pointer ids to track events/motion during multitouch events. | |
| int | GetPointerIndexForExistingContact (size_t contactID) |
| Most multitouch systems use persistent contact/pointer ids to track events/motion during multitouch events. | |
| bool | IsPointerIndexSet (int i) |
| Most multitouch systems use persistent contact/pointer ids to track events/motion during multitouch events. | |
| void | ClearPointerIndex (int i) |
| Most multitouch systems use persistent contact/pointer ids to track events/motion during multitouch events. | |
| virtual vtkCommand::EventIds | GetCurrentGesture () const |
| Get the current gesture that was recognized when handling multitouch and VR events. | |
| virtual void | SetCurrentGesture (vtkCommand::EventIds eid) |
| Get the current gesture that was recognized when handling multitouch and VR events. | |
Public Member Functions inherited from vtkObject | |
| 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 | 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) |
| vtkTypeBool | InvokeEvent (unsigned long event) |
| vtkTypeBool | InvokeEvent (const char *event) |
| std::string | GetObjectDescription () const override |
| The object description printed in messages and PrintSelf output. | |
| 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. | |
| vtkTypeBool | InvokeEvent (unsigned long event, void *callData) |
| This method invokes an event and return whether the event was aborted or not. | |
| vtkTypeBool | InvokeEvent (const char *event, void *callData) |
| This method invokes an event and return whether the event was aborted or not. | |
| virtual void | SetObjectName (const std::string &objectName) |
| Set/get the name of this object for reporting purposes. | |
| virtual std::string | GetObjectName () const |
| Set/get the name of this object for reporting purposes. | |
Public Member Functions inherited from vtkObjectBase | |
| const char * | GetClassName () const |
| Return the class name as a string. | |
| 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. | |
| void | Register (vtkObjectBase *o) |
| Increase the reference count (mark as used 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. | |
| virtual bool | UsesGarbageCollector () const |
Indicate whether the class uses vtkGarbageCollector or not. | |
Static Public Member Functions | |
| static vtkTypeBool | IsTypeOf (const char *type) |
| static vtkVRRenderWindowInteractor * | SafeDownCast (vtkObjectBase *o) |
| static void | SetClassExitMethod (void(*f)(void *), void *arg) |
| Methods to set the default exit method for the class. | |
| static void | SetClassExitMethodArgDelete (void(*f)(void *)) |
| Methods to set the default exit method for the class. | |
Static Public Member Functions inherited from vtkRenderWindowInteractor3D | |
| static vtkRenderWindowInteractor3D * | New () |
| Construct object so that light follows camera motion. | |
| static vtkTypeBool | IsTypeOf (const char *type) |
| static vtkRenderWindowInteractor3D * | SafeDownCast (vtkObjectBase *o) |
Static Public Member Functions inherited from vtkRenderWindowInteractor | |
| static vtkRenderWindowInteractor * | New () |
| static vtkTypeBool | IsTypeOf (const char *type) |
| static vtkRenderWindowInteractor * | SafeDownCast (vtkObjectBase *o) |
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. | |
| static void | BreakOnError () |
| This method is called when vtkErrorMacro executes. | |
| static void | SetGlobalWarningDisplay (vtkTypeBool val) |
| This is a global flag that controls whether any debug, warning or error messages are displayed. | |
| static void | GlobalWarningDisplayOn () |
| This is a global flag that controls whether any debug, warning or error messages are displayed. | |
| static void | GlobalWarningDisplayOff () |
| This is a global flag that controls whether any debug, warning or error messages are displayed. | |
| static vtkTypeBool | GetGlobalWarningDisplay () |
| This is a global flag that controls whether any debug, warning or error messages are displayed. | |
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. | |
| 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). | |
| static vtkObjectBase * | New () |
| Create an object with Debug turned off, modified time initialized to zero, and reference counting on. | |
| static void | SetMemkindDirectory (const char *directoryname) |
| The name of a directory, ideally mounted -o dax, to memory map an extended memory space within. | |
| 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. | |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkVRRenderWindowInteractor () | |
| ~vtkVRRenderWindowInteractor () override | |
| void | StartEventLoop () override |
| This will start up the event loop and never return. | |
| int | InternalCreateTimer (int timerId, int timerType, unsigned long duration) override |
| internal timer methods. | |
| int | InternalDestroyTimer (int platformTimerId) override |
| internal timer methods. | |
Protected Member Functions inherited from vtkRenderWindowInteractor3D | |
| vtkRenderWindowInteractor3D () | |
| ~vtkRenderWindowInteractor3D () override | |
| void | RecognizeGesture (vtkCommand::EventIds) override |
Protected Member Functions inherited from vtkRenderWindowInteractor | |
| vtkRenderWindowInteractor () | |
| ~vtkRenderWindowInteractor () override | |
| virtual vtkPickingManager * | CreateDefaultPickingManager () |
| Create default pickingManager. | |
| void | GrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=nullptr) |
| void | ReleaseFocus () |
| int | GetCurrentTimerId () |
| Internal methods for creating and destroying timers that must be implemented by subclasses. | |
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. | |
| void | InternalReleaseFocus () |
| These methods allow a command to exclusively grab all events. | |
Protected Member Functions inherited from vtkObjectBase | |
| vtkObjectBase () | |
| virtual | ~vtkObjectBase () |
| virtual void | ReportReferences (vtkGarbageCollector *) |
| vtkObjectBase (const vtkObjectBase &) | |
| void | operator= (const vtkObjectBase &) |
Static Protected Attributes | |
| static void(* | ClassExitMethod )(void *) |
| Class variables so an exit method can be defined for this class (used to set different exit methods for various language bindings, i.e. | |
| static void(* | ClassExitMethodArgDelete )(void *) |
| Class variables so an exit method can be defined for this class (used to set different exit methods for various language bindings, i.e. | |
| static void * | ClassExitMethodArg |
| Class variables so an exit method can be defined for this class (used to set different exit methods for various language bindings, i.e. | |
Additional Inherited Members | |
Static Public Attributes inherited from vtkRenderWindowInteractor | |
| static bool | InteractorManagesTheEventLoop |
| This flag is useful when you are integrating VTK in a larger system. | |
Static Protected Member Functions inherited from vtkObjectBase | |
| static vtkMallocingFunction | GetCurrentMallocFunction () |
| static vtkReallocingFunction | GetCurrentReallocFunction () |
| static vtkFreeingFunction | GetCurrentFreeFunction () |
| static vtkFreeingFunction | GetAlternateFreeFunction () |
Implements VR specific functions required by vtkRenderWindowInteractor.
Definition at line 26 of file vtkVRRenderWindowInteractor.h.
Definition at line 30 of file vtkVRRenderWindowInteractor.h.
|
protected |
|
overrideprotected |
|
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 vtkRenderWindowInteractor3D.
Reimplemented in vtkOpenVRRenderWindowInteractor, vtkOpenXRRenderWindowInteractor, and vtkWebXRRenderWindowInteractor.
|
static |
|
protectedvirtual |
Reimplemented from vtkRenderWindowInteractor3D.
Reimplemented in vtkOpenVRRenderWindowInteractor, vtkOpenXRRenderWindowInteractor, and vtkWebXRRenderWindowInteractor.
| vtkVRRenderWindowInteractor * vtkVRRenderWindowInteractor::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 vtkRenderWindowInteractor3D.
Reimplemented in vtkWebXRRenderWindowInteractor.
|
overridevirtual |
Initialize the event handler.
Reimplemented from vtkRenderWindowInteractor.
Reimplemented in vtkWebXRRenderWindowInteractor.
|
overridevirtual |
Run the event loop and return.
This is provided so that you can implement your own event loop but yet use the VTK event handling as well.
Reimplemented from vtkRenderWindowInteractor.
|
pure virtual |
Implements the event loop.
Implemented in vtkOpenVRRenderWindowInteractor, vtkOpenXRRenderWindowInteractor, and vtkWebXRRenderWindowInteractor.
|
static |
Methods to set the default exit method for the class.
These methods are only used if no instance level ExitMethod has been defined. They are provided as a means to control how an interactor is exited given the various language bindings (Win32, etc.).
|
static |
Methods to set the default exit method for the class.
These methods are only used if no instance level ExitMethod has been defined. They are provided as a means to control how an interactor is exited given the various language bindings (Win32, etc.).
|
overridevirtual |
This method corresponds to the Exit callback, allowing for the style to invoke it.
Reimplemented from vtkRenderWindowInteractor.
|
overridevirtual |
Set/get the direction of the physical coordinate system -Z axis in world coordinates.
Reimplemented from vtkRenderWindowInteractor3D.
|
overridevirtual |
Set/get the direction of the physical coordinate system -Z axis in world coordinates.
Reimplemented from vtkRenderWindowInteractor3D.
|
overridevirtual |
Set/get the direction of the physical coordinate system +Y axis in world coordinates.
Reimplemented from vtkRenderWindowInteractor3D.
|
overridevirtual |
Set/get the direction of the physical coordinate system +Y axis in world coordinates.
Reimplemented from vtkRenderWindowInteractor3D.
|
overridevirtual |
Set/get position of the physical coordinate system origin in world coordinates.
Reimplemented from vtkRenderWindowInteractor3D.
|
overridevirtual |
Set/get position of the physical coordinate system origin in world coordinates.
Reimplemented from vtkRenderWindowInteractor3D.
|
overridevirtual |
Set/get the physical scale (world / physical distance ratio)
Reimplemented from vtkRenderWindowInteractor3D.
|
overridevirtual |
Set/get the physical scale (world / physical distance ratio)
Reimplemented from vtkRenderWindowInteractor3D.
| vtkEventDataDevice vtkVRRenderWindowInteractor::GetPointerDevice | ( | ) |
| void vtkVRRenderWindowInteractor::ConvertPoseToWorldCoordinates | ( | vtkMatrix4x4 * | poseInTrackingCoordinates, |
| double | pos[3], | ||
| double | wxyz[4], | ||
| double | ppos[3], | ||
| double | wdir[3] ) |
|
pure virtual |
Assign an event or std::function to an event path.
Implemented in vtkOpenVRRenderWindowInteractor, vtkOpenXRRenderWindowInteractor, and vtkWebXRRenderWindowInteractor.
|
pure virtual |
Assign an event or std::function to an event path.
Implemented in vtkOpenVRRenderWindowInteractor, vtkOpenXRRenderWindowInteractor, and vtkWebXRRenderWindowInteractor.
|
virtual |
Set/Get the .json filename describing action bindings for events.
Based on https://github.com/ValveSoftware/openvr/wiki/Action-manifest Default is empty.
|
virtual |
Set/Get the .json filename describing action bindings for events.
Based on https://github.com/ValveSoftware/openvr/wiki/Action-manifest Default is empty.
|
virtual |
Set/Get the path to the directory to search for the ActionManifestFileName Default is empty.
|
virtual |
Set/Get the path to the directory to search for the ActionManifestFileName Default is empty.
|
virtual |
Set/Get the name of the action set to use from the action manifest.
|
virtual |
Set/Get the name of the action set to use from the action manifest.
|
virtual |
Handle complex gesture events.
Complex gesture events recognition starts when both buttons mapped to the ComplexGesture action are pressed.
To differentiate the Rotate, Pinch and Pan gestures, the default implementation is based on the following heuristic:
After computing the distance along each of these axes in meters, the first to break the hard-coded threshold wins.
Overriding both HandleComplexGestureEvents() and RecognizeComplexGesture() allows to define a different heuristic.
|
virtual |
Handle complex gesture events.
Complex gesture events recognition starts when both buttons mapped to the ComplexGesture action are pressed.
To differentiate the Rotate, Pinch and Pan gestures, the default implementation is based on the following heuristic:
After computing the distance along each of these axes in meters, the first to break the hard-coded threshold wins.
Overriding both HandleComplexGestureEvents() and RecognizeComplexGesture() allows to define a different heuristic.
| int vtkVRRenderWindowInteractor::GetDeviceInputDownCount | ( | vtkEventDataDevice | device | ) | const |
When handling complex gestures you can query this value to determine how many input device are down for the gesture.
Supported device values are vtkEventDataDevice::LeftController and vtkEventDataDevice::RightController.
| void vtkVRRenderWindowInteractor::SetDeviceInputDownCount | ( | vtkEventDataDevice | device, |
| int | count ) |
You can set this value when defining a custom heuristic for recognizing complex gestures,.
Supported device values are vtkEventDataDevice::LeftController and vtkEventDataDevice::RightController.
|
overrideprotectedvirtual |
internal timer methods.
See the superclass for detailed documentation.
Reimplemented from vtkRenderWindowInteractor.
|
overrideprotectedvirtual |
internal timer methods.
See the superclass for detailed documentation.
Reimplemented from vtkRenderWindowInteractor.
|
overrideprotectedvirtual |
This will start up the event loop and never return.
If you call this method it will loop processing events until the application is exited.
Reimplemented from vtkRenderWindowInteractor.
Reimplemented in vtkWebXRRenderWindowInteractor.
|
staticprotected |
Class variables so an exit method can be defined for this class (used to set different exit methods for various language bindings, i.e.
Java, Win32).
Definition at line 226 of file vtkVRRenderWindowInteractor.h.
|
staticprotected |
Class variables so an exit method can be defined for this class (used to set different exit methods for various language bindings, i.e.
Java, Win32).
Definition at line 227 of file vtkVRRenderWindowInteractor.h.
|
staticprotected |
Class variables so an exit method can be defined for this class (used to set different exit methods for various language bindings, i.e.
Java, Win32).
Definition at line 228 of file vtkVRRenderWindowInteractor.h.
|
protected |
Definition at line 231 of file vtkVRRenderWindowInteractor.h.
|
protected |
Definition at line 233 of file vtkVRRenderWindowInteractor.h.
|
protected |
Definition at line 234 of file vtkVRRenderWindowInteractor.h.
|
protected |
Definition at line 236 of file vtkVRRenderWindowInteractor.h.