25 #ifndef vtkOpenXRRenderWindowInteractor_h
26 #define vtkOpenXRRenderWindowInteractor_h
28 #include "vtkRenderingOpenXRModule.h"
57 XrPosef* GetHandPose(
const uint32_t hand);
69 void ConvertOpenXRPoseToWorldCoordinates(
const XrPosef& xrPose,
80 bool ApplyVibration(
const std::string& actionName,
const int hand,
const float amplitude = 0.5f,
81 const float duration = 25000000.0f,
const float frequency = XR_FREQUENCY_UNSPECIFIED);
91 void ProcessXrEvents();
102 bool LoadActions(
const std::string& actionFilename);
103 bool LoadDefaultBinding(
const std::string& bindingFilename);
124 bool UseFunction =
false;
implements OpenXR specific functions required by vtkRenderWindowInteractor.
virtual void DoOneEvent(vtkVRRenderWindow *renWin, vtkRenderer *ren)=0
Implements the event loop.
Implements VR specific functions required by vtkRenderWindowInteractor.
MapAction MapActionStruct_Name
vtkNew< vtkMatrix4x4 > PoseToWorldMatrix
abstract specification for renderers
vtkOpenXRManager::Action_t Action_t
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
void Initialize() override
Initialize the event handler.
std::function< void(vtkEventData *)> Function
vtkCommand::EventIds EventId
std::map< std::string, ActionData * > MapAction
static vtkRenderWindowInteractor3D * New()
Construct object so that light follows camera motion.