VR-Vantage API Documentation
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::ref_ptr<osg::StateSet> myCaptureSet;
60  osg::Camera* myProjectionCamera;
64  };
65 }
66 
67 #endif
68 


Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)