VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOverlayDrawable.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
15 
16 #include <osg/Drawable>
17 
18 namespace osg
19 {
20  class Camera;
21 }
22 
23 namespace makVrv
24 {
25  class DtOsgOverlayManager;
26  class DtChannel;
27  class DtDe;
28 
33  class DT_DLL_VRVOSG DtOverlayDrawable : public osg::Drawable
34  {
35  public:
37  DtOverlayDrawable(DtDe& de, DtOsgOverlayManager& overlayManager, DtChannel& channel);
38 
40  DtOverlayDrawable(const DtOverlayDrawable&, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);
41 
43  virtual ~DtOverlayDrawable();
44 
46  DtOverlayDrawable() = delete;
47 
49  DtOverlayDrawable &operator=(
50  const DtOverlayDrawable &other) = delete;
51 
52  public:
56  virtual void setOverlayToRender(DtOverlayRenderer* renderer);
57 
58  public:
60  virtual osg::Object* cloneType() const override;
62  virtual osg::Object* clone(const osg::CopyOp& copyop) const override;
63 
65  virtual void drawImplementation(osg::RenderInfo& renderInfo) const override;
66 
68  virtual void setProjectionCamera(osg::Camera* camera);
69 
70  protected:
71  osg::Camera* myProjectionCamera;
75 
77  };
78 }
The OSG overlay manager managers 2D graphical overlays.
Definition: DtOsgOverlayManager.h:37
DtDe & myDe
Definition: DtOverlayDrawable.h:76
The overlay drawable is an osg drawable which draws the overlays enabled on a channel, or optionally a specifically specified overlay. The DtOverlayDrawable tells the DtOverlayRenderer when it&#39;s time to draw itself.
Definition: DtOverlayDrawable.h:33
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
DtOsgOverlayManager & myOverlayManager
Definition: DtOverlayDrawable.h:73
osg::Camera * myProjectionCamera
Definition: DtOverlayDrawable.h:71
The abstract Channel Class.
Definition: DtChannel.h:35
Contains the makVrv::DtOverlayRenderer class declaration.
Contains DLL export macros.
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
DtOverlayRenderer * myOverlayToRender
Definition: DtOverlayDrawable.h:72
DtChannel & myChannel
Definition: DtOverlayDrawable.h:74
The DtOverlayRenderer implements the overlay concept. An overlay is a 2D scene that is drawn on top o...
Definition: DtOverlayRenderer.h:41

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)