OpenSceneGraph 2.8.4
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
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.

Classes

struct  Cell
struct  DepthMatrixStartTime
struct  LessFunctor

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

Detailed Description

Internal drawable used to render batches of cells.


Member Typedef Documentation


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

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 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.

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 actual drawing itself.

Parameters:
renderInfoThe osg::RenderInfo object that encapsulates the current rendering information including the osg::State OpenGL state for the current graphics context.

Implements osg::Drawable.

CellMatrixMap& osgParticle::PrecipitationEffect::PrecipitationDrawable::getCurrentCellMatrixMap ( ) [inline]
GLenum osgParticle::PrecipitationEffect::PrecipitationDrawable::getDrawType ( ) const [inline]
osg::Geometry* osgParticle::PrecipitationEffect::PrecipitationDrawable::getGeometry ( ) [inline]
const osg::Geometry* osgParticle::PrecipitationEffect::PrecipitationDrawable::getGeometry ( ) const [inline]
unsigned int osgParticle::PrecipitationEffect::PrecipitationDrawable::getNumberOfVertices ( ) const [inline]
CellMatrixMap& osgParticle::PrecipitationEffect::PrecipitationDrawable::getPreviousCellMatrixMap ( ) [inline]
bool osgParticle::PrecipitationEffect::PrecipitationDrawable::getRequiresPreviousMatrix ( ) const [inline]
osgParticle::PrecipitationEffect::PrecipitationDrawable::META_Object ( osgParticle  ,
PrecipitationDrawable   
)
void osgParticle::PrecipitationEffect::PrecipitationDrawable::newFrame ( ) [inline]
void osgParticle::PrecipitationEffect::PrecipitationDrawable::setDrawType ( GLenum  type) [inline]
void osgParticle::PrecipitationEffect::PrecipitationDrawable::setGeometry ( osg::Geometry geom) [inline]
void osgParticle::PrecipitationEffect::PrecipitationDrawable::setNumberOfVertices ( unsigned int  numVertices) [inline]
void osgParticle::PrecipitationEffect::PrecipitationDrawable::setRequiresPreviousMatrix ( bool  flag) [inline]
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 bool osgParticle::PrecipitationEffect::PrecipitationDrawable::supports ( const osg::PrimitiveFunctor ) const [inline, virtual]

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

Reimplemented from osg::Drawable.


Member Data Documentation


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

osg logo
Generated at Sun Jan 8 2012 13:16:49 for the OpenSceneGraph by doxygen 1.7.4.