VR-Forces 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) 2023 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
14 #include <osg/Drawable>
15 
16 namespace osg
17 {
18  class Camera;
19 }
20 
21 namespace makVrv
22 {
23  class DtOverlayRendererInterface;
24  class DtOsgOverlayManager;
25  class DtChannel;
26  class DtDe;
27 
32  class DT_DLL_VRVOSG DtOverlayDrawable : public osg::Drawable
33  {
34  public:
36  DtOverlayDrawable(DtDe& de, DtOsgOverlayManager& overlayManager, DtChannel& channel);
37 
39  DtOverlayDrawable(const DtOverlayDrawable&, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);
40 
42  virtual ~DtOverlayDrawable();
43 
45  DtOverlayDrawable() = delete;
46 
48  DtOverlayDrawable &operator=(
49  const DtOverlayDrawable &other) = delete;
50 
51  public:
55  virtual void setOverlayToRender(DtOverlayRendererInterface* renderer);
56 
57  public:
59  virtual osg::Object* cloneType() const override;
61  virtual osg::Object* clone(const osg::CopyOp& copyop) const override;
62 
64  virtual void drawImplementation(osg::RenderInfo& renderInfo) const override;
65 
67  virtual void setProjectionCamera(osg::Camera* camera);
68 
69  protected:
70  osg::Camera* myProjectionCamera;
74 
76  };
77 }
The OSG overlay manager managers 2D graphical overlays.
Definition: DtOsgOverlayManager.h:40
DtDe & myDe
Definition: DtOverlayDrawable.h:75
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:32
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
DtOsgOverlayManager & myOverlayManager
Definition: DtOverlayDrawable.h:72
osg::Camera * myProjectionCamera
Definition: DtOverlayDrawable.h:70
The abstract Channel Class.
Definition: DtChannel.h:35
DtOverlayRendererInterface * myOverlayToRender
Definition: DtOverlayDrawable.h:71
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:72
DtChannel & myChannel
Definition: DtOverlayDrawable.h:73
The DtOverlayRendererInterface implements the overlay concept. An overlay is a 2D scene that is drawn...
Definition: DtOverlayRendererInterface.h:80

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)