VR-Forces 4.10 Class Documentation
 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 #ifndef DtOverlayDrawable_H_
11 #define DtOverlayDrawable_H_
12 
13 #include <vrvOsg/vrvOsg.h>
15 #include <osg/Drawable>
16 
17 namespace osg
18 {
19  class Camera;
20 }
21 
22 namespace makVrv
23 {
24  class DtOsgOverlayManager;
25  class DtChannel;
26 
31  class DT_DLL_VRVOSG DtOverlayDrawable : public osg::Drawable
32  {
33  public:
34  DtOverlayDrawable(DtOsgOverlayManager& overlayManager, DtChannel& channel, bool usingReverseZBuffer);
35 
39  void setOverlayToRender(DtOverlayRenderer* renderer);
40 
42  DtOverlayDrawable(const DtOverlayDrawable&,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY);
43 
45  virtual osg::Object* cloneType() const { return new DtOverlayDrawable(myOverlayManager,myChannel, myUsingReverseZBuffer); }
46 
48  virtual osg::Object* clone(const osg::CopyOp& copyop) const { return new DtOverlayDrawable(*this,copyop); }
49 
50  virtual void drawImplementation(osg::RenderInfo& renderInfo) const;
51 
53  void setProjectionCamera(osg::Camera* camera);
54 
55  protected:
56  osg::Camera* myProjectionCamera;
61  };
62 }
63 
64 #endif
65 
The OSG overlay manager managers 2D graphical overlays.
Definition: DtOsgOverlayManager.h:38
The overlay drawable is an osg drawable which draws the overlays enabled on a channel, or optionally a specifically specified overlay.
Definition: DtOverlayDrawable.h:31
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
DtOsgOverlayManager & myOverlayManager
Definition: DtOverlayDrawable.h:58
osg::Camera * myProjectionCamera
Definition: DtOverlayDrawable.h:56
The abstract Channel Class.
Definition: DtChannel.h:30
virtual osg::Object * cloneType() const
clone an object of the same type as the node.
Definition: DtOverlayDrawable.h:45
virtual osg::Object * clone(const osg::CopyOp &copyop) const
return a clone of a node, with Object* return type.
Definition: DtOverlayDrawable.h:48
Contains DLL export macros.
DtOverlayRenderer * myOverlayToRender
Definition: DtOverlayDrawable.h:57
bool myUsingReverseZBuffer
Definition: DtOverlayDrawable.h:60
DtChannel & myChannel
Definition: DtOverlayDrawable.h:59
The DtOverlayRenderer implements the overlay concept.
Definition: DtOverlayRenderer.h:23

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)