VR-Forces 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) 2023 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
10 
11 #pragma once
12 
14 
16 
18 
19 #include <osg/Texture2D>
20 #include <osg/Camera>
21 #include <osg/Matrixd>
22 
23 namespace makVrv
24 {
25  class DtVirtualRealityDriver;
26  class DtVirtualRealityProvider;
27  class DtSwapChain;
28 
33  {
34  private:
37 
40 
43 
44  public:
46  DtSubmitOverlayCallback(osg::Texture* tex, DtDe& de, DtVirtualRealityDriver& driver);
47 
49  virtual ~DtSubmitOverlayCallback();
50 
52  virtual void operator()(osg::RenderInfo& renderInfo) const;
53 
54 
57  virtual osg::Matrixd offsetMatrix();
58 
61  virtual void setOffsetMatrix(const osg::Matrixd& mat);
62 
65  virtual void setFlipOverlay(bool flip);
66 
68  virtual bool flipOverlay() const;
69 
72 
75 
77  virtual void setEnabled(bool enable);
78 
80  virtual bool isEnabled();
81 
82  // ! \brief has the callback initalised properly
83  bool isInitialized() const;
84 
85  protected:
86 
88  virtual void submitOverlay(osg::RenderInfo& renderInfo) const;
89 
96  osg::Matrix myOffsetMatrix;
99  bool myEnabled;
100 
101  // ! used to flag the contructor initalised everything successfully
103  };
104 }
bool myFlipOverlay
Definition: DtSubmitOverlayCallback.h:97
osg::Matrix myOffsetMatrix
Definition: DtSubmitOverlayCallback.h:96
DtVirtualRealityProvider * myProvider
Definition: DtSubmitOverlayCallback.h:93
Contains DLL export macros.
DtOverlayOutput
Definition: DtVirtualRealitySettingsRecord.h:29
Contains makArchives::DtVirtualRealitySettingsRecord class.
makArchives::DtVirtualRealitySettingsRecord::DtOverlayOutput myOutputMode
Definition: DtSubmitOverlayCallback.h:98
A driver that manages virtual reality HMD and input devices.
Definition: DtVirtualRealityDriver.h:54
#define DT_DLL_VRVVR
Definition: vrvVirtualReality.h:19
DtDe & myDe
Definition: DtSubmitOverlayCallback.h:90
bool myEnabled
Definition: DtSubmitOverlayCallback.h:99
Base implementation of a texture swapchain.
Definition: DtSwapChain.h:37
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
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:94
An OSG camera callback that will submit the channel to the underlying VR system as an overlay channel...
Definition: DtSubmitOverlayCallback.h:32
Base class to provide boost signal/slot management.
DtSwapChain * mySwapChain
Definition: DtSubmitOverlayCallback.h:95
const char int mode
Definition: ioapi.h:38
bool myIsInitialized
Definition: DtSubmitOverlayCallback.h:102
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
DtSignalConnectionManager myConnections
Definition: DtSubmitOverlayCallback.h:91
DtVirtualRealityDriver & myDriver
Definition: DtSubmitOverlayCallback.h:92

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)