OpenSceneGraph 2.8.3
|
Internal drawable used to render batches of cells. More...
Classes | |
struct | Cell |
struct | DepthMatrixStartTime |
struct | LessFunctor |
Public Types | |
typedef std::map< Cell, DepthMatrixStartTime > | CellMatrixMap |
Public Member Functions | |
PrecipitationDrawable () | |
PrecipitationDrawable (const PrecipitationDrawable ©, const osg::CopyOp ©op=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::Geometry * | getGeometry () |
const osg::Geometry * | getGeometry () 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. | |
CellMatrixMap & | getCurrentCellMatrixMap () |
CellMatrixMap & | getPreviousCellMatrixMap () |
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 |
Internal drawable used to render batches of cells.
typedef std::map< Cell, DepthMatrixStartTime > osgParticle::PrecipitationEffect::PrecipitationDrawable::CellMatrixMap |
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] |
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.
renderInfo | The 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.
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] |
![]() | Generated at Tue Mar 22 2011 13:20:28 for the OpenSceneGraph by doxygen 1.7.3. |