VR-Forces 5.0.1 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 
15 #include <osg/Texture2D>
16 #include <osg/Camera>
17 #include <osg/Matrixd>
18 
19 namespace makVrv
20 {
21  class DtVirtualRealityDriver;
22  class DtVirtualRealityProvider;
23  class DtSwapChain;
24 
29  {
30  private:
33 
36 
39 
40  public:
43 
45  virtual ~DtSubmitOverlayCallback();
46 
48  virtual void operator()(osg::RenderInfo& renderInfo) const;
49 
50 
53  virtual osg::Matrixd offsetMatrix();
54 
57  virtual void setOffsetMatrix(const osg::Matrixd& mat);
58 
61  virtual void setFlipOverlay(bool flip);
62 
64  virtual bool flipOverlay() const;
65 
67  virtual void setEnabled(bool enable);
68 
70  virtual bool isEnabled();
71 
72  // ! \brief has the callback initalised properly
73  bool isInitialized() const;
74 
75  protected:
76 
78  virtual void submitOverlay(osg::RenderInfo& renderInfo) const;
79 
85  osg::Matrix myOffsetMatrix;
87  bool myEnabled;
88 
89  // ! used to flag the contructor initalised everything successfully
91  };
92 }
Diagonal crossing liens.
Definition: DtTacticalGraphicUtilities.h:93
bool myFlipOverlay
Definition: DtSubmitOverlayCallback.h:86
osg::Matrix myOffsetMatrix
Definition: DtSubmitOverlayCallback.h:85
DtVirtualRealityProvider * myProvider
Definition: DtSubmitOverlayCallback.h:82
Contains DLL export macros.
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:80
bool myEnabled
Definition: DtSubmitOverlayCallback.h:87
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:83
An OSG camera callback that will submit the channel to the underlying VR system as an overlay channel...
Definition: DtSubmitOverlayCallback.h:28
DtSwapChain * mySwapChain
Definition: DtSubmitOverlayCallback.h:84
bool myIsInitialized
Definition: DtSubmitOverlayCallback.h:90
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:81

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)