VR-Forces 4.8 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) 2019 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:
40  DtSubmitOverlayCallback(osg::Texture2D* tex, DtDe& de, DtVirtualRealityDriver& driver);
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 
67  // ! \brief has the callback initalised properly
68  bool isInitialized() const;
69 
70  protected:
71 
73  virtual void submitOverlay(osg::RenderInfo& renderInfo) const = 0;
74 
78  osg::Matrix myOffsetMatrix;
80  bool myEnabled;
81 
82  // ! used to flag the contructor initalised everything successfully
84  };
85 }
bool myFlipOverlay
Definition: DtSubmitOverlayCallback.h:79
osg::Matrix myOffsetMatrix
Definition: DtSubmitOverlayCallback.h:78
Contains DLL export macros.
osg::ref_ptr< osg::Texture2D > myOverlayTexture
Definition: DtSubmitOverlayCallback.h:77
A driver that manages virtual reality HMD and input devices.
Definition: DtVirtualRealityDriver.h:49
#define DT_DLL_VRVVR
Definition: vrvVirtualReality.h:19
DtDe & myDe
Definition: DtSubmitOverlayCallback.h:75
bool myEnabled
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:83
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
DtVirtualRealityDriver & myDriver
Definition: DtSubmitOverlayCallback.h:76

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)