VR-Forces 4.6 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 

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)