osgParticle::PrecipitationEffect::PrecipitationDrawable Class Reference

Inheritance diagram for osgParticle::PrecipitationEffect::PrecipitationDrawable:

osg::Drawable osg::Object osg::Referenced List of all members.

Public Types

typedef std::map< Cell, DepthMatrixStartTimeCellMatrixMap

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
virtual void accept (osg::PrimitiveFunctor &) const
virtual bool supports (const osg::PrimitiveIndexFunctor &) const
virtual void accept (osg::PrimitiveIndexFunctor &) const
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::State &state) const
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

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::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::drawImplementation osg::State state  )  const [virtual]
 

drawImplementation(State&) 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(State&) is called from the draw(State&) method, with the draw method handling management of OpenGL display lists, and drawImplementation(State&) handling the actuall drawing itself.

Parameters:
state The osg::State object that encapulates the current OpenGL state for the current graphics context.

Implements osg::Drawable.

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

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

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

osg::Geometry* osgParticle::PrecipitationEffect::PrecipitationDrawable::getGeometry  )  [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

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

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

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

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

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

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


The documentation for this class was generated from the following file:
Generated on Wed Nov 29 06:29:50 2006 for OpenSceneGraph by  doxygen 1.4.6