8#ifndef META_OCEAN_PLATFORM_META_QUEST_OPENXR_HAND_POSES_H
9#define META_OCEAN_PLATFORM_META_QUEST_OPENXR_HAND_POSES_H
18#include <openxr/openxr.h>
40class OCEAN_PLATFORM_META_QUEST_OPENXR_EXPORT
HandPoses
61 class OCEAN_PLATFORM_META_QUEST_OPENXR_EXPORT
Mesh
70 using Radii = std::vector<float>;
114 template <
typename T = Scalar>
136 bool initialize(
const XrHandTrackerEXT& xrHandTrackerEXT,
const PFN_xrGetHandMeshFB& xrGetHandMeshFB);
177 class OCEAN_PLATFORM_META_QUEST_OPENXR_EXPORT
Pose
184 static constexpr XrSpaceLocationFlags
defaultLocationFlags_ = XR_SPACE_LOCATION_ORIENTATION_VALID_BIT | XR_SPACE_LOCATION_POSITION_VALID_BIT;
195 template <
typename T = Scalar>
206 template <
typename T = Scalar>
218 template <
typename T = Scalar>
230 template <
typename T = Scalar>
318 bool initialize(
const XrInstance& xrInstance,
const XrSession& xrSession,
const XrSystemId& xrSystemId);
332 bool update(
const XrSpace& xrBaseSpace,
const XrTime& predictedDisplayTime);
341 inline const Mesh&
mesh(
const size_t handIndex)
const;
351 inline const Pose&
pose(
const size_t handIndex)
const;
395 static bool updateHandPose(
const XrHandTrackerEXT& xrHandTrackersEXT,
const PFN_xrLocateHandJointsEXT xrLocateHandJointsEXT,
const XrSpace& xrBaseSpace,
const XrTime& xrTime,
Pose&
pose);
466inline XrSpace HandPoses::Pose::xrBaseSpace()
const
471inline const XrHandJointLocationEXT* HandPoses::Pose::xrHandJointLocationsEXT()
const
476inline const XrHandJointVelocityEXT* HandPoses::Pose::xrHandJointVelocitiesEXT()
const
481inline const XrHandTrackingAimStateFB& HandPoses::Pose::xrHandTrackingAimStateFB()
const
486inline bool HandPoses::Pose::isValid()
const
493 ocean_assert(session.
isValid());
This class implements a recursive lock object.
Definition Lock.h:31
This class implements a scoped lock object for recursive lock objects.
Definition Lock.h:147
std::vector< VectorT3< T > > VectorsT3
Definition of a typename alias for vectors with VectorT3 objects.
Definition Vector3.h:58
std::vector< HomogenousMatrixT4< T > > HomogenousMatricesT4
Definition of a typename alias for vectors with HomogenousMatrixT4 objects.
Definition HomogenousMatrix4.h:66
std::vector< Vector3 > Vectors3
Definition of a vector holding Vector3 objects.
Definition Vector3.h:65
The namespace covering the entire Ocean framework.
Definition Accessor.h:15