VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOpenVRTrackedCamera.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 #pragma once
6 
7 
12 
15 
16 #include <osg/Matrix>
17 
18 #include <openvr.h>
19 
20 namespace vr
21 {
22  class IVRSystem;
23 }
24 
25 namespace makVrv
26 {
27  class DtVirtualRealityDriver;
28 
32  {
33  private:
36 
39 
42 
43  public:
46  static bool hasTrackedCamera();
47 
48 
49  public:
51  DtOpenVRTrackedCamera(DtDe& de, vr::IVRSystem* system);
52 
54  virtual ~DtOpenVRTrackedCamera();
55 
57  virtual bool startStream();
58 
60  virtual void stopStream();
61 
63  virtual void tick();
64 
66  virtual void resetCameraProjection();
67 
68  protected:
70  virtual osg::Matrixd createProjectionMatrix(float zn, float zf, const float* fovx = NULL, const float* fovy = NULL);
71 
72  typedef unsigned long long UInt64;
73 
75  vr::EVRTrackedCameraFrameType myFrameType;
76  vr::IVRSystem* myVrSystem;
77  };
78 }
UInt64 myHandle
Definition: DtOpenVRTrackedCamera.h:74
Contains DLL export macros.
vr::EVRTrackedCameraFrameType myFrameType
Definition: DtOpenVRTrackedCamera.h:75
A Tracked camera is typically attached to the HMD and can provide position and orientation data in ad...
Definition: DtTrackedCamera.h:27
vr::IVRSystem * myVrSystem
Definition: DtOpenVRTrackedCamera.h:76
unsigned long long UInt64
Definition: DtOpenVRTrackedCamera.h:72
#define DT_DLL_VRVVR
Definition: vrvVirtualReality.h:19
An abstract interface that provides Tracked camera services.
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
A concrete interface of a tracked camera using the OpenVR API.
Definition: DtOpenVRTrackedCamera.h:31

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)