VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOpenVrWorldAnchor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2024 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
14 
15 #include <vrvUtil/DtQuat.h>
17 #include <matrix/vlVector.h>
18 
19 #include <osg/Matrixd>
20 
21 #include <openvr.h>
22 
23 #include <string>
24 
25 namespace vr
26 {
27  class IVRSystem;
28  struct TrackedDevicePose_t;
29 }
30 
31 
32 namespace makVrv
33 {
34  class DtDe;
35  class DtVirtualRealityDriver;
36 
40  {
41  private:
44 
47 
49  DtOpenVrWorldAnchor& operator=(const DtOpenVrWorldAnchor&);
50 
51  public:
54 
56  virtual ~DtOpenVrWorldAnchor();
57 
58 
60  virtual bool initializeVR();
61 
62  virtual void onVrTick();
63  virtual void onVrReset();
64 
66  virtual bool shutdown();
67 
68  virtual void readConfig();
69  virtual void writeConfig();
70 
71  protected:
72 
76 
77  //OpenVR Structs
78  vr::IVRSystem* myVrSystem;
79  vr::TrackedDevicePose_t* myTrackedPoses;
80 
84 
87 
88  osg::Vec3d myHmdPositionTweak;
90  };
91 }
bool myResetNextFrame
Definition: DtOpenVrWorldAnchor.h:83
Contains DLL export macros.
vr::IVRSystem * myVrSystem
Definition: DtOpenVrWorldAnchor.h:78
An abstract interface that provides VR System API services.
DtDe & myDe
Definition: DtOpenVrWorldAnchor.h:73
DtSignalConnectionManager myConnections
Definition: DtOpenVrWorldAnchor.h:75
A driver that manages virtual reality HMD and input devices.
Definition: DtVirtualRealityDriver.h:54
An OpenVR implementation of the DtVirtualRealityProvider abstract base class.
Definition: DtOpenVrWorldAnchor.h:39
#define DT_DLL_VRVVR
Definition: vrvVirtualReality.h:19
bool myAnchoringEnabled
Definition: DtOpenVrWorldAnchor.h:81
bool myIsCalibrating
Definition: DtOpenVrWorldAnchor.h:82
osg::Vec3d myHmdPositionTweak
Definition: DtOpenVrWorldAnchor.h:88
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
Contains makVrv::DtQuat class.
vr::TrackedDevicePose_t * myTrackedPoses
Definition: DtOpenVrWorldAnchor.h:79
osg::Matrix myCalibrationSpaceMatrix
Definition: DtOpenVrWorldAnchor.h:85
Base class to provide boost signal/slot management.
osg::Vec3d myHmdOrientationTweak
Definition: DtOpenVrWorldAnchor.h:89
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
DtVirtualRealityDriver * myDriverHandle
Definition: DtOpenVrWorldAnchor.h:74
osg::Matrix myCurrentCalibrateSpacePose
Definition: DtOpenVrWorldAnchor.h:86

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)