|
| Aspect_OpenVRSession () |
| Empty constructor.
|
|
virtual | ~Aspect_OpenVRSession () |
| Destructor.
|
|
virtual bool | IsOpen () const override |
| Return TRUE if session is opened.
|
|
virtual bool | Open () override |
| Initialize session.
|
|
virtual void | Close () override |
| Release session.
|
|
virtual bool | WaitPoses () override |
| Fetch actual poses of tracked devices.
|
|
virtual NCollection_Vec2< int > | RecommendedViewport () const override |
| Return recommended viewport Width x Height for rendering into VR.
|
|
virtual NCollection_Mat4< double > | EyeToHeadTransform (Aspect_Eye theEye) const override |
| Return transformation from eye to head. vr::GetEyeToHeadTransform() wrapper.
|
|
virtual NCollection_Mat4< double > | ProjectionMatrix (Aspect_Eye theEye, double theZNear, double theZFar) const override |
| Return projection matrix.
|
|
virtual bool | HasProjectionFrustums () const override |
| Return TRUE.
|
|
virtual void | ProcessEvents () override |
| Receive XR events.
|
|
virtual bool | SubmitEye (void *theTexture, Aspect_GraphicsLibrary theGraphicsLib, Aspect_ColorSpace theColorSpace, Aspect_Eye theEye) override |
| Submit texture eye to XR Composer.
|
|
virtual TCollection_AsciiString | GetString (InfoString theInfo) const override |
| Query information.
|
|
virtual Standard_Integer | NamedTrackedDevice (Aspect_XRTrackedDeviceRole theDevice) const override |
| Return index of tracked device of known role.
|
|
virtual Aspect_XRDigitalActionData | GetDigitalActionData (const Handle< Aspect_XRAction > &theAction) const override |
| Fetch data for digital input action (like button).
|
|
virtual Aspect_XRAnalogActionData | GetAnalogActionData (const Handle< Aspect_XRAction > &theAction) const override |
| Fetch data for analog input action (like axis).
|
|
virtual Aspect_XRPoseActionData | GetPoseActionDataForNextFrame (const Handle< Aspect_XRAction > &theAction) const override |
| Fetch data for pose input action (like fingertip position).
|
|
virtual void | SetTrackingOrigin (TrackingUniverseOrigin theOrigin) override |
| Set tracking origin.
|
|
NCollection_Mat4< double > | HeadToEyeTransform (Aspect_Eye theEye) const |
| Return transformation from head to eye.
|
|
Standard_Real | UnitFactor () const |
| Return unit scale factor defined as scale factor for m (meters); 1.0 by default.
|
|
void | SetUnitFactor (Standard_Real theFactor) |
| Set unit scale factor.
|
|
Standard_Real | Aspect () const |
| Return aspect ratio.
|
|
Standard_Real | FieldOfView () const |
| Return field of view.
|
|
Standard_Real | IOD () const |
| Return Intra-ocular Distance (IOD); also known as Interpupillary Distance (IPD). Defined in meters by default (.
|
|
Standard_ShortReal | DisplayFrequency () const |
| Return display frequency or 0 if unknown.
|
|
const Aspect_FrustumLRBT< double > & | ProjectionFrustum (Aspect_Eye theEye) const |
| Return projection frustum.
|
|
const gp_Trsf & | HeadPose () const |
| Return head orientation in right-handed system: +y is up +x is to the right -z is forward Distance unit is meters by default (.
|
|
gp_Trsf | LeftHandPose () const |
| Return left hand orientation.
|
|
gp_Trsf | RightHandPose () const |
| Return right hand orientation.
|
|
const Aspect_TrackedDevicePoseArray & | TrackedPoses () const |
| Return number of tracked poses array.
|
|
bool | HasTrackedPose (Standard_Integer theDevice) const |
| Return TRUE if device orientation is defined.
|
|
Handle< Graphic3d_ArrayOfTriangles > | LoadRenderModel (Standard_Integer theDevice, Handle< Image_Texture > &theTexture) |
| Load model for displaying device.
|
|
Handle< Graphic3d_ArrayOfTriangles > | LoadRenderModel (Standard_Integer theDevice, Standard_Boolean theToApplyUnitFactor, Handle< Image_Texture > &theTexture) |
| Load model for displaying device.
|
|
void | TriggerHapticVibrationAction (const Handle< Aspect_XRAction > &theAction, const Aspect_XRHapticActionData &theParams) |
| Trigger vibration.
|
|
void | AbortHapticVibrationAction (const Handle< Aspect_XRAction > &theAction) |
| Abort vibration.
|
|
TrackingUniverseOrigin | TrackingOrigin () const |
| Return tracking origin.
|
|
const Handle< Aspect_XRAction > & | GenericAction (Aspect_XRTrackedDeviceRole theDevice, Aspect_XRGenericAction theAction) const |
| Return generic action for specific hand or NULL if undefined.
|
|
Public Member Functions inherited from Standard_Transient |
| Standard_Transient () |
| Empty constructor.
|
|
| Standard_Transient (const Standard_Transient &) |
| Copy constructor – does nothing.
|
|
Standard_Transient & | operator= (const Standard_Transient &) |
| Assignment operator, needed to avoid copying reference counter.
|
|
virtual | ~Standard_Transient () |
| Destructor must be virtual.
|
|
virtual const opencascade::handle< Standard_Type > & | DynamicType () const |
| Returns a type descriptor about this object.
|
|
Standard_Boolean | IsInstance (const opencascade::handle< Standard_Type > &theType) const |
| Returns a true value if this is an instance of Type.
|
|
Standard_Boolean | IsInstance (const Standard_CString theTypeName) const |
| Returns a true value if this is an instance of TypeName.
|
|
Standard_Boolean | IsKind (const opencascade::handle< Standard_Type > &theType) const |
| Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
|
|
Standard_Boolean | IsKind (const Standard_CString theTypeName) const |
| Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
|
|
Standard_Transient * | This () const |
| Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
|
|
Standard_Integer | GetRefCount () const noexcept |
| Get the reference counter of this object.
|
|
void | IncrementRefCounter () noexcept |
| Increments the reference counter of this object.
|
|
Standard_Integer | DecrementRefCounter () noexcept |
| Decrements the reference counter of this object; returns the decremented value.
|
|
virtual void | Delete () const |
| Memory deallocator for transient classes.
|
|
OpenVR wrapper implementing Aspect_XRSession interface.