osgParticle::PrecipitationEffect::PrecipitationDrawable Class Reference

Internal drawable used to render batches of cells. More...

Inheritance diagram for osgParticle::PrecipitationEffect::PrecipitationDrawable:

Inheritance graph
[legend]

List of all members.

Public Types

typedef std::map
< Cell,
DepthMatrixStartTime
CellMatrixMap

Public Member Functions

 PrecipitationDrawable ()
 PrecipitationDrawable (const PrecipitationDrawable &copy, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 META_Object (osgParticle, PrecipitationDrawable)
virtual bool supports (const osg::PrimitiveFunctor &) const
 Return true if the Drawable subclass supports accept(PrimitiveFunctor&).
virtual void accept (osg::PrimitiveFunctor &) const
 Accept a PrimitiveFunctor and call its methods to tell it about the internal primitives that this Drawable has.
virtual bool supports (const osg::PrimitiveIndexFunctor &) const
 Return true if the Drawable subclass supports accept(PrimitiveIndexFunctor&).
virtual void accept (osg::PrimitiveIndexFunctor &) const
 Accept a PrimitiveIndexFunctor and call its methods to tell it about the internal primitives that this Drawable has.
void setRequiresPreviousMatrix (bool flag)
bool getRequiresPreviousMatrix () const
void setGeometry (osg::Geometry *geom)
osg::GeometrygetGeometry ()
const osg::GeometrygetGeometry () const
void setDrawType (GLenum type)
GLenum getDrawType () const
void setNumberOfVertices (unsigned int numVertices)
unsigned int getNumberOfVertices () const
virtual void drawImplementation (osg::RenderInfo &renderInfo) const
 drawImplementation(RenderInfo&) is a pure virtual method for the actual implementation of OpenGL drawing calls, such as vertex arrays and primitives, that must be implemented in concrete subclasses of the Drawable base class, examples include osg::Geometry and osg::ShapeDrawable.
CellMatrixMapgetCurrentCellMatrixMap ()
CellMatrixMapgetPreviousCellMatrixMap ()
void newFrame ()

Protected Member Functions

virtual ~PrecipitationDrawable ()

Protected Attributes

bool _requiresPreviousMatrix
osg::ref_ptr
< osg::Geometry
_geometry
CellMatrixMap _currentCellMatrixMap
CellMatrixMap _previousCellMatrixMap
GLenum _drawType
unsigned int _numberOfVertices

Classes

struct  Cell
struct  DepthMatrixStartTime
struct  LessFunctor


Detailed Description

Internal drawable used to render batches of cells.


Member Typedef Documentation

typedef std::map< Cell, DepthMatrixStartTime > osgParticle::PrecipitationEffect::PrecipitationDrawable::CellMatrixMap


Constructor & Destructor Documentation

osgParticle::PrecipitationEffect::PrecipitationDrawable::PrecipitationDrawable (  ) 

osgParticle::PrecipitationEffect::PrecipitationDrawable::PrecipitationDrawable ( const PrecipitationDrawable copy,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)

virtual osgParticle::PrecipitationEffect::PrecipitationDrawable::~PrecipitationDrawable (  )  [inline, protected, virtual]


Member Function Documentation

osgParticle::PrecipitationEffect::PrecipitationDrawable::META_Object ( osgParticle  ,
PrecipitationDrawable   
)

virtual bool osgParticle::PrecipitationEffect::PrecipitationDrawable::supports ( const osg::PrimitiveFunctor  )  const [inline, virtual]

Return true if the Drawable subclass supports accept(PrimitiveFunctor&).

Reimplemented from osg::Drawable.

virtual void osgParticle::PrecipitationEffect::PrecipitationDrawable::accept ( osg::PrimitiveFunctor  )  const [inline, virtual]

Accept a PrimitiveFunctor and call its methods to tell it about the internal primitives that this Drawable has.

return true if functor handled by drawable, return false on failure of drawable to generate functor calls. Note, PrimtiveFunctor only provides const access of the primitives, as primitives may be procedurally generated so one cannot modify it.

Reimplemented from osg::Drawable.

virtual bool osgParticle::PrecipitationEffect::PrecipitationDrawable::supports ( const osg::PrimitiveIndexFunctor  )  const [inline, virtual]

Return true if the Drawable subclass supports accept(PrimitiveIndexFunctor&).

Reimplemented from osg::Drawable.

virtual void osgParticle::PrecipitationEffect::PrecipitationDrawable::accept ( osg::PrimitiveIndexFunctor  )  const [inline, virtual]

Accept a PrimitiveIndexFunctor and call its methods to tell it about the internal primitives that this Drawable has.

return true if functor handled by drawable, return false on failure of drawable to generate functor calls. Note, PrimtiveIndexFunctor only provide const access of the primitives, as primitives may be procedurally generated so one cannot modify it.

Reimplemented from osg::Drawable.

void osgParticle::PrecipitationEffect::PrecipitationDrawable::setRequiresPreviousMatrix ( bool  flag  )  [inline]

bool osgParticle::PrecipitationEffect::PrecipitationDrawable::getRequiresPreviousMatrix (  )  const [inline]

void osgParticle::PrecipitationEffect::PrecipitationDrawable::setGeometry ( osg::Geometry geom  )  [inline]

osg::Geometry* osgParticle::PrecipitationEffect::PrecipitationDrawable::getGeometry (  )  [inline]

const osg::Geometry* osgParticle::PrecipitationEffect::PrecipitationDrawable::getGeometry (  )  const [inline]

void osgParticle::PrecipitationEffect::PrecipitationDrawable::setDrawType ( GLenum  type  )  [inline]

GLenum osgParticle::PrecipitationEffect::PrecipitationDrawable::getDrawType (  )  const [inline]

void osgParticle::PrecipitationEffect::PrecipitationDrawable::setNumberOfVertices ( unsigned int  numVertices  )  [inline]

unsigned int osgParticle::PrecipitationEffect::PrecipitationDrawable::getNumberOfVertices (  )  const [inline]

virtual void osgParticle::PrecipitationEffect::PrecipitationDrawable::drawImplementation ( osg::RenderInfo renderInfo  )  const [virtual]

drawImplementation(RenderInfo&) is a pure virtual method for the actual implementation of OpenGL drawing calls, such as vertex arrays and primitives, that must be implemented in concrete subclasses of the Drawable base class, examples include osg::Geometry and osg::ShapeDrawable.

drawImplementation(RenderInfo&) is called from the draw(RenderInfo&) method, with the draw method handling management of OpenGL display lists, and drawImplementation(RenderInfo&) handling the actuall drawing itself.

Parameters:
renderInfo The osg::RenderInfo object that encapulates the current rendering information including the osg::State OpenGL state for the current graphics context.

Implements osg::Drawable.

CellMatrixMap& osgParticle::PrecipitationEffect::PrecipitationDrawable::getCurrentCellMatrixMap (  )  [inline]

CellMatrixMap& osgParticle::PrecipitationEffect::PrecipitationDrawable::getPreviousCellMatrixMap (  )  [inline]

void osgParticle::PrecipitationEffect::PrecipitationDrawable::newFrame (  )  [inline]


Member Data Documentation

bool osgParticle::PrecipitationEffect::PrecipitationDrawable::_requiresPreviousMatrix [protected]

osg::ref_ptr<osg::Geometry> osgParticle::PrecipitationEffect::PrecipitationDrawable::_geometry [protected]

CellMatrixMap osgParticle::PrecipitationEffect::PrecipitationDrawable::_currentCellMatrixMap [mutable, protected]

CellMatrixMap osgParticle::PrecipitationEffect::PrecipitationDrawable::_previousCellMatrixMap [mutable, protected]

GLenum osgParticle::PrecipitationEffect::PrecipitationDrawable::_drawType [protected]

unsigned int osgParticle::PrecipitationEffect::PrecipitationDrawable::_numberOfVertices [protected]


The documentation for this class was generated from the following file:
Generated at Sun Oct 14 02:12:44 2007 for the OpenSceneGraph by doxygen 1.5.3.