Go to the documentation of this file.
26 #ifndef vtkOpenVRRenderWindowInteractor_h
27 #define vtkOpenVRRenderWindowInteractor_h
29 #include "vtkRenderingOpenVRModule.h"
102 const vr::TrackedDevicePose_t &tdPose,
114 const vr::TrackedDevicePose_t &tdPose,
145 static void (*ClassExitMethod)(
void *);
146 static void (*ClassExitMethodArgDelete)(
void *);
171 int DeviceInputDownCount[2];
~vtkOpenVRRenderWindowInteractor()
virtual void StartEventLoop()
This will start up the event loop and never return.
virtual int InternalDestroyTimer(int platformTimerId)
static vtkOpenVRRenderWindowInteractor * New()
Construct object so that light follows camera motion.
void ConvertOpenVRPoseToMatrices(const vr::TrackedDevicePose_t &tdPose, vtkMatrix4x4 *poseMatrixWorld, vtkMatrix4x4 *poseMatrixPhysical=nullptr)
virtual double GetPhysicalScale()
adds support for 3D events to vtkRenderWindowInteractor.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void DoOneEvent(vtkOpenVRRenderWindow *renWin, vtkRenderer *ren)
virtual void RecognizeComplexGesture(vtkEventDataDevice3D *edata)
virtual void SetPhysicalScale(double)
virtual void SetPhysicalTranslation(vtkCamera *, double, double, double)
Set/Get the optional translation to map world coordinates into the 3D physical space (meters,...
virtual void ExitCallback()
These methods correspond to the Exit, User and Pick callbacks.
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
a virtual camera for 3D rendering
void GetTouchPadPosition(vtkEventDataDevice, vtkEventDataDeviceInput, float[3]) override
Get the latest touchpad or joystick position for a device.
virtual double * GetPhysicalTranslation(vtkCamera *)
virtual void Initialize()
Initialize the event handler.
void ConvertPoseToWorldCoordinates(const vr::TrackedDevicePose_t &tdPose, double pos[3], double wxyz[4], double ppos[3], double wdir[3])
void TerminateApp(void)
OpenVR specific application terminate, calls ClassExitMethod then calls PostQuitMessage(0) to termina...
static void SetClassExitMethod(void(*f)(void *), void *arg)
Methods to set the default exit method for the class.
virtual int InternalCreateTimer(int timerId, int timerType, unsigned long duration)
Win32-specific internal timer methods.
vtkEventDataDevice
platform-independent event data structures
abstract specification for renderers
vtkEventDataDevice GetPointerDevice()
vtkOpenVRRenderWindowInteractor()
#define VTKI_MAX_POINTERS
implements OpenVR specific functions required by vtkRenderWindowInteractor.
void GetStartingPhysicalToWorldMatrix(vtkMatrix4x4 *startingPhysicalToWorldMatrix)
static void SetClassExitMethodArgDelete(void(*f)(void *))
vtkNew< vtkMatrix4x4 > StartingPhysicalToWorldMatrix
Store physical to world matrix at the start of a multi-touch gesture.
static void * ClassExitMethodArg