 |
VTK
9.0.1
|
Go to the documentation of this file.
23 #ifndef vtkOpenVRRenderWindowInteractor_h
24 #define vtkOpenVRRenderWindowInteractor_h
27 #include "vtkRenderingOpenVRModule.h"
109 double wxyz[4],
double ppos[3],
double wdir[3]);
133 static void (*ClassExitMethod)(
void*);
134 static void (*ClassExitMethodArgDelete)(
void*);
159 int DeviceInputDownCount[2];
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)
~vtkOpenVRRenderWindowInteractor() override
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.
void ProcessEvents() override
Run the event loop and return.
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])
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