23 #ifndef vtkVRRenderWindowInteractor_h
24 #define vtkVRRenderWindowInteractor_h
29 #include "vtkRenderingVRModule.h"
65 static void SetClassExitMethod(
void (*f)(
void*),
void* arg);
66 static void SetClassExitMethodArgDelete(
void (*f)(
void*));
118 void ConvertPoseToWorldCoordinates(
vtkMatrix4x4* poseInTrackingCoordinates,
double pos[3],
119 double wxyz[4],
double ppos[3],
double wdir[3]);
124 void GetStartingPhysicalToWorldMatrix(
vtkMatrix4x4* startingPhysicalToWorldMatrix);
176 static void (*ClassExitMethod)(
void*);
177 static void (*ClassExitMethodArgDelete)(
void*);
virtual void SetPhysicalTranslation(vtkCamera *, double, double, double)
Set/get position of the physical coordinate system origin in world coordinates.
represent and manipulate 4x4 transformation matrices
Implements VR 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.
virtual double * GetPhysicalViewUp()
Set/get the direction of the physical coordinate system +Y axis in world coordinates.
virtual double * GetPhysicalViewDirection()
Set/get the direction of the physical coordinate system -Z axis in world coordinates.
std::string ActionSetName
adds support for 3D events to vtkRenderWindowInteractor.
abstract specification for renderers
virtual double * GetPhysicalTranslation(vtkCamera *)
Set/get position of the physical coordinate system origin in world coordinates.
const int vtkEventDataNumberOfDevices
std::string ActionManifestFileName
static void * ClassExitMethodArg
Class variables so an exit method can be defined for this class (used to set different exit methods f...
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 void SetPhysicalViewUp(double, double, double)
Set/get the direction of the physical coordinate system +Y axis in world coordinates.
virtual void SetPhysicalViewDirection(double, double, double)
Set/get the direction of the physical coordinate system -Z axis in world coordinates.
virtual double GetPhysicalScale()
Set/get the physical scale (world / physical distance ratio)
vtkEventDataDevice
platform-independent event data structures
virtual void ProcessEvents()
Run the event loop and return.
virtual void SetPhysicalScale(double)
Set/get the physical scale (world / physical distance ratio)
vtkNew< vtkMatrix4x4 > StartingPhysicalToWorldMatrix
Store physical to world matrix at the start of a multitouch gesture.