VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDesktopProvider.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
14 
15 #include <vrvUtil/DtQuat.h>
16 #include <matrix/vlVector.h>
17 
18 #include <osg/Matrixd>
19 
20 #include <string>
21 
22 #include "OVR_CAPI.h"
23 
24 namespace makVrv
25 {
28 
30  {
31  private:
34 
37 
39  DtDesktopProvider& operator=(const DtDesktopProvider&);
40 
41  public:
44  static bool isVrAvailable();
45  public:
48 
50  virtual ~DtDesktopProvider();
51 
53  virtual DtSubmitOverlayCallback* createOverlayCallback(osg::Texture* tex, DtDe& de, DtVirtualRealityDriver& driver);
54 
57 
59  virtual const std::string& providerName();
60 
62  virtual const std::string& deviceName();
63 
65  virtual bool initializeVR();
66 
68  virtual bool hasFocusViews();
69 
71  virtual bool useVrs();
72 
74  virtual DtVariableRateShadingImageUpdater* findVrsUpdater(DtVirtualRealityChannel* channel);
75 
77  virtual void getRecommendedRenderTargetSize(int& width, int& height, vrvVirtualReality::DtEye whichEye);
78 
80  virtual DtSwapChain* allocateSwapChain(vrvVirtualReality::DtEye whichEye, bool isOverlay);
81 
83  virtual void getProjectionAngles(vrvVirtualReality::DtEye eye, double& left, double& right, double& bottom, double& top, double znear, double zfar);
84 
86  virtual osg::Matrixd getEyeToHeadTransform(vrvVirtualReality::DtEye eye);
87 
89  virtual void commitEyeTexture(osg::RenderInfo& renderInfo, DtSwapChain* swapChain);
90 
92  virtual void commitHudTexture(osg::RenderInfo& renderInfo, DtSwapChain* swapChain);
93 
95  virtual void updateOverlayDimensions(float width, float height, float distance, int pixWidth, int pixHeight);
96 
98  virtual void tick();
99 
101  virtual bool getHmdPose(DtVector& pos, DtQuat& ori);
102 
104  virtual void setHmdPoseOffset(const DtVector& pos, const DtQuat& ori);
105 
107  virtual bool getTrackedPose(DtVector& pos, DtQuat& ori, int index);
108 
110  virtual bool reset();
111 
113  virtual bool shutdown();
114 
116  virtual bool hasTrackedCamera();
117 
119  virtual DtTrackedCamera* findTrackedCamera();
120 
122  virtual DtMixedRealityMask* findMixedRealityMask();
123 
125  virtual vrvVirtualReality::DtVrOverlayMode overlayMode();
126 
127  protected:
128 
129  int myWidth;
130  int myHeight;
131  long long myFrameIndex;
133 
135  };
136 }
Diagonal crossing liens.
Definition: DtTacticalGraphicUtilities.h:93
long long myFrameIndex
Definition: DtDesktopProvider.h:131
Contains DLL export macros.
int myWidth
Definition: DtDesktopProvider.h:129
An abstract interface that provides VR System API services.
A Tracked camera is typically attached to the HMD and can provide position and orientation data in ad...
Definition: DtTrackedCamera.h:27
Base class for GPU updates of the variable rate shading image Draw a full screen quad using a shader ...
Definition: DtVariableRateShadingImageUpdater.h:26
An Oculus implementation of the DtVirtualRealityProvider abstract base class.
Definition: DtDesktopProvider.h:29
A driver that manages virtual reality HMD and input devices.
Definition: DtVirtualRealityDriver.h:52
#define DT_DLL_VRVVR
Definition: vrvVirtualReality.h:19
DtEye
A virtual reality eye.
Definition: vrvVirtualReality.h:37
bool myHudEnabled
Definition: DtDesktopProvider.h:134
DT_DLL_VRVCORE double distance(const makVrv::DtCoordinateSystem &, const DtVector &from, const DtVector &to)
Returns the distance from the two points. Coordinates are in local database coordinates The coordinat...
Base implementation of a texture swapchain.
Definition: DtSwapChain.h:35
An abstract interface that provides VR System API services. Providers are created and provided to the...
Definition: DtVirtualRealityProvider.h:47
Contains makVrv::DtQuat class.
int myHeight
Definition: DtDesktopProvider.h:130
DtVrOverlayMode
Virtual reality render mode.
Definition: vrvVirtualReality.h:63
bool myFrameBegan
Definition: DtDesktopProvider.h:132
A VRV channel that represents the eyes of the HMD A Virtual Reality channel can render in a few diffe...
Definition: DtVirtualRealityChannel.h:30
Object to handle rendering a mixed reality mask object into the scene. Typically the it renders an ob...
Definition: DtMixedRealityMask.h:38
An OSG camera callback that will submit the channel to the underlying VR system as an overlay channel...
Definition: DtSubmitOverlayCallback.h:30
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:70
A utility Quaternion class.
Definition: DtQuat.h:19
A post processing effect responsible for submitting and mirroring the eye views to the VR subsystem...
Definition: DtVirtualRealityPostProcessor.h:34
An OSG camera callback that will submit the channel to the underlying VR system as an overlay channel...
Definition: DtSubmitViewCallback.h:30

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)