26 #ifndef vtkOpenVRRenderWindowInteractor_h 27 #define vtkOpenVRRenderWindowInteractor_h 29 #include "vtkRenderingOpenVRModule.h" 68 static void SetClassExitMethod(
void (*f)(
void *),
void *arg);
69 static void SetClassExitMethodArgDelete(
void (*f)(
void *));
101 void ConvertOpenVRPoseToMatrices(
102 const vr::TrackedDevicePose_t &tdPose,
113 void ConvertPoseToWorldCoordinates(
114 const vr::TrackedDevicePose_t &tdPose,
133 void GetStartingPhysicalToWorldMatrix(
vtkMatrix4x4* startingPhysicalToWorldMatrix);
145 static void (*ClassExitMethod)(
void *);
146 static void (*ClassExitMethodArgDelete)(
void *);
171 int DeviceInputDownCount[2];
virtual void SetPhysicalTranslation(vtkCamera *, double, double, double)
Set/Get the optional scale translation to map world coordinates into the 3D physical space (meters...
represent and manipulate 4x4 transformation matrices
implements OpenVR specific functions required by vtkRenderWindowInteractor.
virtual int InternalDestroyTimer(int platformTimerId)
Internal methods for creating and destroying timers that must be implemented by subclasses.
virtual int InternalCreateTimer(int timerId, int timerType, unsigned long duration)
Internal methods for creating and destroying timers that must be implemented by subclasses.
adds support for 3D events to vtkRenderWindowInteractor.
static void * ClassExitMethodArg
Class variables so an exit method can be defined for this class (used to set different exit methods f...
abstract specification for renderers
void TerminateApp(void) override
OpenVR specific application terminate, calls ClassExitMethod then calls PostQuitMessage(0) to termina...
virtual double * GetPhysicalTranslation(vtkCamera *)
Set/Get the optional scale translation to map world coordinates into the 3D physical space (meters...
virtual void Initialize()
Prepare for handling events and set the Enabled flag to true.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
virtual void ExitCallback()
These methods correspond to the Exit, User and Pick callbacks.
a virtual camera for 3D rendering
virtual void StartEventLoop()
Run the event loop (does not return until TerminateApp is called).
virtual double GetPhysicalScale()
Set/Get the optional scale translation to map world coordinates into the 3D physical space (meters...
vtkEventDataDevice
platform-independent event data structures
vtkNew< vtkMatrix4x4 > StartingPhysicalToWorldMatrix
Store physical to world matrix at the start of a multi-touch gesture.
virtual void SetPhysicalScale(double)
Set/Get the optional scale translation to map world coordinates into the 3D physical space (meters...
virtual void GetTouchPadPosition(vtkEventDataDevice, vtkEventDataDeviceInput, float[3])
Get the latest touchpad or joystick position for a device.
#define VTKI_MAX_POINTERS
static vtkRenderWindowInteractor3D * New()
Construct object so that light follows camera motion.