 |
VTK
9.0.1
|
Go to the documentation of this file.
29 #ifndef vtkOpenVRRenderWindowInteractor_h
30 #define vtkOpenVRRenderWindowInteractor_h
33 #include "vtkRenderingOpenVRModule.h"
64 static void SetClassExitMethod(
void (*f)(
void*),
void* arg);
65 static void SetClassExitMethodArgDelete(
void (*f)(
void*));
104 void ConvertOpenVRPoseToMatrices(
const vr::TrackedDevicePose_t& tdPose,
114 void ConvertPoseToWorldCoordinates(
const vr::TrackedDevicePose_t& tdPose,
double pos[3],
115 double wxyz[4],
double ppos[3],
double wdir[3]);
127 void GetStartingPhysicalToWorldMatrix(
vtkMatrix4x4* startingPhysicalToWorldMatrix);
139 static void (*ClassExitMethod)(
void*);
140 static void (*ClassExitMethodArgDelete)(
void*);
165 int DeviceInputDownCount[2];
virtual int InternalCreateTimer(int timerId, int timerType, unsigned long duration)
Internal methods for creating and destroying timers that must be implemented by subclasses.
virtual void StartEventLoop()
Run the event loop (does not return until TerminateApp is called).
virtual int InternalDestroyTimer(int platformTimerId)
adds support for 3D events to vtkRenderWindowInteractor.
virtual void SetPhysicalScale(double)
virtual void GetTouchPadPosition(vtkEventDataDevice, vtkEventDataDeviceInput, float[3])
Get the latest touchpad or joystick position for a device.
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
a virtual camera for 3D rendering
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetPhysicalTranslation(vtkCamera *, double, double, double)
Set/Get the optional scale translation to map world coordinates into the 3D physical space (meters,...
virtual void ExitCallback()
These methods correspond to the Exit, User and Pick callbacks.
vtkEventDataDevice
platform-independent event data structures
virtual double * GetPhysicalTranslation(vtkCamera *)
virtual double GetPhysicalScale()
abstract specification for renderers
#define VTKI_MAX_POINTERS
virtual void Initialize()
Prepare for handling events and set the Enabled flag to true.
virtual void ProcessEvents()
Run the event loop and return.
implements OpenVR specific functions required by vtkRenderWindowInteractor.
vtkNew< vtkMatrix4x4 > StartingPhysicalToWorldMatrix
Store physical to world matrix at the start of a multi-touch gesture.
static void * ClassExitMethodArg
static vtkRenderWindowInteractor3D * New()
Construct object so that light follows camera motion.