VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
makVrv::DtOverlayDrawable Class Reference

The overlay drawable is an osg drawable which draws the overlays enabled on a channel, or optionally a specifically specified overlay. More...

Inheritance diagram for makVrv::DtOverlayDrawable:
Inheritance graph
[legend]

Public Member Functions

 DtOverlayDrawable (DtOsgOverlayManager &overlayManager, DtChannel &channel)
void setOverlayToRender (DtOverlayRenderer *renderer)
 Set the overlay to render.
 DtOverlayDrawable (const DtOverlayDrawable &, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 Copy constructor using CopyOp to manage deep vs shallow copy.
virtual osg::Object * cloneType () const
 clone an object of the same type as the node.
virtual osg::Object * clone (const osg::CopyOp &copyop) const
 return a clone of a node, with Object* return type.
virtual void drawImplementation (osg::RenderInfo &renderInfo) const
void setProjectionCamera (osg::Camera *camera)
 Adds a 3D projection callback to the camera.

Protected Attributes

osg::Camera * myProjectionCamera
DtOverlayRenderermyOverlayToRender
DtOsgOverlayManagermyOverlayManager
DtChannelmyChannel

Detailed Description

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's time to draw itself.

Constructor & Destructor Documentation

makVrv::DtOverlayDrawable::DtOverlayDrawable ( DtOsgOverlayManager overlayManager,
DtChannel channel 
)
makVrv::DtOverlayDrawable::DtOverlayDrawable ( const DtOverlayDrawable ,
const osg::CopyOp &  copyop = osg::CopyOp::SHALLOW_COPY 
)

Copy constructor using CopyOp to manage deep vs shallow copy.

Member Function Documentation

void makVrv::DtOverlayDrawable::setOverlayToRender ( DtOverlayRenderer renderer)

Set the overlay to render.

This overrides the default rendering of overlays by model set. Also optionally whether to clear the depth buffer first.

virtual osg::Object* makVrv::DtOverlayDrawable::cloneType ( ) const
inlinevirtual

clone an object of the same type as the node.

virtual osg::Object* makVrv::DtOverlayDrawable::clone ( const osg::CopyOp &  copyop) const
inlinevirtual

return a clone of a node, with Object* return type.

virtual void makVrv::DtOverlayDrawable::drawImplementation ( osg::RenderInfo &  renderInfo) const
virtual
void makVrv::DtOverlayDrawable::setProjectionCamera ( osg::Camera *  camera)

Adds a 3D projection callback to the camera.

Member Data Documentation

osg::Camera* makVrv::DtOverlayDrawable::myProjectionCamera
protected
DtOverlayRenderer* makVrv::DtOverlayDrawable::myOverlayToRender
protected
DtOsgOverlayManager& makVrv::DtOverlayDrawable::myOverlayManager
protected
DtChannel& makVrv::DtOverlayDrawable::myChannel
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)