11#ifndef vtkVRRenderWindowInteractor_h
12#define vtkVRRenderWindowInteractor_h
17#include "vtkRenderingVRModule.h"
21VTK_ABI_NAMESPACE_BEGIN
108 double wxyz[4],
double ppos[3],
double wdir[3]);
119 const std::string& path,
bool isAnalog,
const std::function<
void(
vtkEventData*)>&) = 0;
128 vtkGetMacro(ActionManifestFileName, std::string);
129 vtkSetMacro(ActionManifestFileName, std::string);
137 vtkGetMacro(ActionManifestDirectory, std::string);
138 vtkSetMacro(ActionManifestDirectory, std::string);
145 vtkGetMacro(ActionSetName, std::string);
146 vtkSetMacro(ActionSetName, std::string);
224 static void (*ClassExitMethod)(
void*);
225 static void (*ClassExitMethodArgDelete)(
void*);
a virtual camera for 3D rendering
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
adds support for 3D events to vtkRenderWindowInteractor.
abstract specification for renderers
Implements VR specific functions required by vtkRenderWindowInteractor.
int GetDeviceInputDownCount(vtkEventDataDevice device) const
When handling complex gestures you can query this value to determine how many input device are down f...
std::string ActionManifestFileName
void ProcessEvents() override
Run the event loop and return.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkVRRenderWindowInteractor()
virtual void AddAction(const std::string &path, const vtkCommand::EventIds &, bool isAnalog)=0
Assign an event or std::function to an event path.
void SetPhysicalScale(double) override
Set/get the physical scale (world / physical distance ratio)
void SetDeviceInputDownCount(vtkEventDataDevice device, int count)
You can set this value when defining a custom heuristic for recognizing complex gestures,...
double GetPhysicalScale() override
Set/get the physical scale (world / physical distance ratio)
void Initialize() override
Initialize the event handler.
std::string ActionSetName
static void * ClassExitMethodArg
Class variables so an exit method can be defined for this class (used to set different exit methods f...
double * GetPhysicalViewDirection() override
Set/get the direction of the physical coordinate system -Z axis in world coordinates.
double * GetPhysicalTranslation(vtkCamera *) override
Set/get position of the physical coordinate system origin in world coordinates.
void ExitCallback() override
This method corresponds to the Exit callback, allowing for the style to invoke it.
int InternalDestroyTimer(int platformTimerId) override
internal timer methods.
int InternalCreateTimer(int timerId, int timerType, unsigned long duration) override
internal timer methods.
vtkEventDataDevice GetPointerDevice()
virtual void AddAction(const std::string &path, bool isAnalog, const std::function< void(vtkEventData *)> &)=0
Assign an event or std::function to an event path.
virtual void RecognizeComplexGesture(vtkEventDataDevice3D *edata)
Handle complex gesture events.
void SetPhysicalTranslation(vtkCamera *, double, double, double) override
Set/get position of the physical coordinate system origin in world coordinates.
void SetPhysicalViewUp(double, double, double) override
Set/get the direction of the physical coordinate system +Y axis in world coordinates.
static void SetClassExitMethodArgDelete(void(*f)(void *))
Methods to set the default exit method for the class.
double * GetPhysicalViewUp() override
Set/get the direction of the physical coordinate system +Y axis in world coordinates.
~vtkVRRenderWindowInteractor() override
virtual void HandleComplexGestureEvents(vtkEventData *ed)
Handle complex gesture events.
void StartEventLoop() override
This will start up the event loop and never return.
void ConvertPoseToWorldCoordinates(vtkMatrix4x4 *poseInTrackingCoordinates, double pos[3], double wxyz[4], double ppos[3], double wdir[3])
virtual void DoOneEvent(vtkVRRenderWindow *renWin, vtkRenderer *ren)=0
Implements the event loop.
std::string ActionManifestDirectory
void SetPhysicalViewDirection(double, double, double) override
Set/get the direction of the physical coordinate system -Z axis in world coordinates.
static void SetClassExitMethod(void(*f)(void *), void *arg)
Methods to set the default exit method for the class.
vtkEventDataDevice
platform-independent event data structures
const int vtkEventDataNumberOfDevices