VR-Forces 4.8 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) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: $ $Revision: $ $State: $
7 ******************************************************************************/
8 
12 
13 #ifndef DtOverlayDrawable_H_
14 #define DtOverlayDrawable_H_
15 
16 #include <vrvOsg/vrvOsg.h>
18 #include <osg/Drawable>
19 
20 namespace osg
21 {
22  class Camera;
23 }
24 
25 namespace makVrv
26 {
27  class DtOsgOverlayManager;
28  class DtChannel;
29 
34  class DT_DLL_VRVOSG DtOverlayDrawable : public osg::Drawable
35  {
36  public:
37  DtOverlayDrawable(DtOsgOverlayManager& overlayManager, DtChannel& channel);
38 
42  void setOverlayToRender(DtOverlayRenderer* renderer);
43 
45  DtOverlayDrawable(const DtOverlayDrawable&,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY);
46 
48  virtual osg::Object* cloneType() const { return new DtOverlayDrawable(myOverlayManager,myChannel); }
49 
51  virtual osg::Object* clone(const osg::CopyOp& copyop) const { return new DtOverlayDrawable(*this,copyop); }
52 
53  virtual void drawImplementation(osg::RenderInfo& renderInfo) const;
54 
56  void setProjectionCamera(osg::Camera* camera);
57 
58  protected:
59  osg::Camera* myProjectionCamera;
63  };
64 }
65 
66 #endif
67 
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:34
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
DtOsgOverlayManager & myOverlayManager
Definition: DtOverlayDrawable.h:61
osg::Camera * myProjectionCamera
Definition: DtOverlayDrawable.h:59
The abstract Channel Class.
Definition: DtChannel.h:29
virtual osg::Object * cloneType() const
clone an object of the same type as the node.
Definition: DtOverlayDrawable.h:48
virtual osg::Object * clone(const osg::CopyOp &copyop) const
return a clone of a node, with Object* return type.
Definition: DtOverlayDrawable.h:51
Contains DLL export macros.
DtOverlayRenderer * myOverlayToRender
Definition: DtOverlayDrawable.h:60
DtChannel & myChannel
Definition: DtOverlayDrawable.h:62
The DtOverlayRenderer implements the overlay concept.
Definition: DtOverlayRenderer.h:23

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)