VR-Forces 4.10 Class Documentation
 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) 2020 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 
27  {
28  private:
31 
34 
37 
38  public:
41 
43  virtual ~DtSubmitOverlayCallback();
44 
46  virtual void operator()(osg::RenderInfo& renderInfo) const;
47 
48 
51  virtual osg::Matrixd offsetMatrix();
52 
55  virtual void setOffsetMatrix(const osg::Matrixd& mat);
56 
59  virtual void setFlipOverlay(bool flip);
60 
62  virtual bool flipOverlay() const;
63 
65  virtual void setEnabled(bool enable);
66 
68  virtual bool isEnabled();
69 
70  // ! \brief has the callback initalised properly
71  bool isInitialized() const;
72 
73  protected:
74 
76  virtual void submitOverlay(osg::RenderInfo& renderInfo) const = 0;
77 
81  osg::Matrix myOffsetMatrix;
83  bool myEnabled;
84 
85  // ! used to flag the contructor initalised everything successfully
87  };
88 }
Diagonal crossing liens.
Definition: DtTacticalGraphicUtilities.h:93
bool myFlipOverlay
Definition: DtSubmitOverlayCallback.h:82
osg::Matrix myOffsetMatrix
Definition: DtSubmitOverlayCallback.h:81
Contains DLL export macros.
A driver that manages virtual reality HMD and input devices.
Definition: DtVirtualRealityDriver.h:51
#define DT_DLL_VRVVR
Definition: vrvVirtualReality.h:19
DtDe & myDe
Definition: DtSubmitOverlayCallback.h:78
bool myEnabled
Definition: DtSubmitOverlayCallback.h:83
osg::ref_ptr< osg::Texture > myOverlayTexture
Definition: DtSubmitOverlayCallback.h:80
An OSG camera callback that will submit the channel to the underlying VR system as an overlay channel...
Definition: DtSubmitOverlayCallback.h:26
bool myIsInitialized
Definition: DtSubmitOverlayCallback.h:86
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
DtVirtualRealityDriver & myDriver
Definition: DtSubmitOverlayCallback.h:79

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)