VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSubmitOverlayCallback.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
10 
11 #pragma once
12 
14 
16 
17 #include <osg/Texture2D>
18 #include <osg/Camera>
19 #include <osg/Matrixd>
20 
21 namespace makVrv
22 {
23  class DtVirtualRealityDriver;
24  class DtVirtualRealityProvider;
25  class DtSwapChain;
26 
31  {
32  private:
35 
38 
41 
42  public:
45 
47  virtual ~DtSubmitOverlayCallback();
48 
50  virtual void operator()(osg::RenderInfo& renderInfo) const;
51 
52 
55  virtual osg::Matrixd offsetMatrix();
56 
59  virtual void setOffsetMatrix(const osg::Matrixd& mat);
60 
63  virtual void setFlipOverlay(bool flip);
64 
66  virtual bool flipOverlay() const;
67 
70 
73 
75  virtual void setEnabled(bool enable);
76 
78  virtual bool isEnabled();
79 
80  // ! \brief has the callback initalised properly
81  bool isInitialized() const;
82 
83  protected:
84 
86  virtual void submitOverlay(osg::RenderInfo& renderInfo) const;
87 
93  osg::Matrix myOffsetMatrix;
96  bool myEnabled;
97 
98  // ! used to flag the contructor initalised everything successfully
100  };
101 }
Diagonal crossing liens.
Definition: DtTacticalGraphicUtilities.h:93
bool myFlipOverlay
Definition: DtSubmitOverlayCallback.h:94
osg::Matrix myOffsetMatrix
Definition: DtSubmitOverlayCallback.h:93
DtVirtualRealityProvider * myProvider
Definition: DtSubmitOverlayCallback.h:90
Contains DLL export macros.
DtOverlayOutput
Definition: DtVirtualRealitySettingsRecord.h:29
Contains makArchives::DtVirtualRealitySettingsRecord class.
makArchives::DtVirtualRealitySettingsRecord::DtOverlayOutput myOutputMode
Definition: DtSubmitOverlayCallback.h:95
A driver that manages virtual reality HMD and input devices.
Definition: DtVirtualRealityDriver.h:52
#define DT_DLL_VRVVR
Definition: vrvVirtualReality.h:19
DtDe & myDe
Definition: DtSubmitOverlayCallback.h:88
bool myEnabled
Definition: DtSubmitOverlayCallback.h:96
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
osg::ref_ptr< osg::Texture > myOverlayTexture
Definition: DtSubmitOverlayCallback.h:91
An OSG camera callback that will submit the channel to the underlying VR system as an overlay channel...
Definition: DtSubmitOverlayCallback.h:30
DtSwapChain * mySwapChain
Definition: DtSubmitOverlayCallback.h:92
const char int mode
Definition: ioapi.h:38
bool myIsInitialized
Definition: DtSubmitOverlayCallback.h:99
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
DtVirtualRealityDriver & myDriver
Definition: DtSubmitOverlayCallback.h:89

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)