 |
VTK
9.1.0
|
Go to the documentation of this file.
118 #ifndef vtkOpenVRRenderWindowInteractor_h
119 #define vtkOpenVRRenderWindowInteractor_h
124 #include "vtkRenderingOpenVRModule.h"
125 #include <functional>
209 double wxyz[4],
double ppos[3],
double wdir[3]);
211 const float poseMatrix[3][4],
double pos[3],
double wxyz[4],
double ppos[3],
double wdir[3]);
261 static void (*ClassExitMethod)(
void*);
262 static void (*ClassExitMethodArgDelete)(
void*);
300 bool UseFunction =
false;
301 bool IsAnalog =
false;
309 vr::VRActionSetHandle_t ActionsetVTK = vr::k_ulInvalidActionSetHandle;
321 vr::VRInputValueHandle_t Source = vr::k_ulInvalidInputValueHandle;
virtual void StartEventLoop()
This will start up the event loop and never return.
virtual int InternalDestroyTimer(int platformTimerId)
Win32-specific internal timer methods.
void AddAction(std::string path, bool isAnalog, std::function< void(vtkEventData *)>)
Assign an event or std::function to an event path.
static vtkOpenVRRenderWindowInteractor * New()
Construct object so that light follows camera motion.
std::string ActionSetName
void ConvertOpenVRPoseToMatrices(const vr::TrackedDevicePose_t &tdPose, vtkMatrix4x4 *poseMatrixWorld, vtkMatrix4x4 *poseMatrixPhysical=nullptr)
virtual double GetPhysicalScale()
Set/Get the optional translation to map world coordinates into the 3D physical space (meters,...
std::string ActionManifestFileName
std::function< void(vtkEventData *)> Function
adds support for 3D events to vtkRenderWindowInteractor.
void ConvertPoseMatrixToWorldCoordinates(const float poseMatrix[3][4], double pos[3], double wxyz[4], double ppos[3], double wdir[3])
vr::TrackedDevicePose_t LastPose
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)
std::map< std::string, ActionData > ActionMap
virtual void SetPhysicalScale(double)
Set/Get the optional translation to map world coordinates into the 3D physical space (meters,...
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.
const int vtkEventDataNumberOfDevices
void ProcessEvents() override
Run the event loop and return.
vtkCommand::EventIds EventId
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
a virtual camera for 3D rendering
virtual double * GetPhysicalTranslation(vtkCamera *)
Set/Get the optional translation to map world coordinates into the 3D physical space (meters,...
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
void AddAction(std::string path, vtkCommand::EventIds, bool isAnalog)
Assign an event or std::function to an event path.
abstract specification for renderers
vtkEventDataDevice GetPointerDevice()
vtkOpenVRRenderWindowInteractor()
implements OpenVR specific functions required by vtkRenderWindowInteractor.
void HandleGripEvents(vtkEventData *ed)
void GetStartingPhysicalToWorldMatrix(vtkMatrix4x4 *startingPhysicalToWorldMatrix)
Get the latest touchpad or joystick position for a device.
vr::VRActionHandle_t ActionHandle
static void SetClassExitMethodArgDelete(void(*f)(void *))
Methods to set the default exit method for the class.
vtkNew< vtkMatrix4x4 > StartingPhysicalToWorldMatrix
Store physical to world matrix at the start of a multi-touch gesture.
static void * ClassExitMethodArg
Class variables so an exit method can be defined for this class (used to set different exit methods f...