Inheritance diagram for osg::Geode:
Public Types | |
typedef std::vector< ref_ptr< Drawable > > | DrawableList |
Public Member Functions | |
Geode () | |
Geode (const Geode &, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
META_Node (osg, Geode) | |
virtual bool | addDrawable (Drawable *drawable) |
virtual bool | removeDrawable (Drawable *drawable) |
virtual bool | removeDrawables (unsigned int i, unsigned int numDrawablesToRemove=1) |
virtual bool | replaceDrawable (Drawable *origDraw, Drawable *newDraw) |
virtual bool | setDrawable (unsigned int i, Drawable *drawable) |
unsigned int | getNumDrawables () const |
Drawable * | getDrawable (unsigned int i) |
const Drawable * | getDrawable (unsigned int i) const |
bool | containsDrawable (const Drawable *gset) const |
unsigned int | getDrawableIndex (const Drawable *drawable) const |
const DrawableList & | getDrawableList () const |
void | compileDrawables (State &state) |
const BoundingBox & | getBoundingBox () const |
virtual BoundingSphere | computeBound () const |
virtual void | releaseGLObjects (osg::State *=0) const |
Protected Member Functions | |
virtual | ~Geode () |
Protected Attributes | |
osg::BoundingBox | _bbox |
DrawableList | _drawables |
Geode
is a "geometry node", that is, a leaf node on the scene graph that can have "renderable things" attached to it. In OSG, renderable things are represented by objects from the Drawable
class, so a Geode
is a Node
whose purpose is grouping Drawable
s.
|
|
|
|
|
Copy constructor using CopyOp to manage deep vs shallow copy. |
|
|
|
Add a
Reimplemented in osg::Billboard. |
|
Compile OpenGL Display List for each drawable. |
|
Compute the bounding sphere around Node's geometry or children. This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). Reimplemented from osg::Node. Reimplemented in osg::Billboard. |
|
|
Return the Geode's bounding box, which is the union of all the bounding boxes of the geode's drawables. |
|
Return the |
|
Return the |
|
Get the index number of
|
|
Get the list of drawables. |
|
Return the number of |
|
|
|
If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. Otherwise, releases OpenGL objexts for all graphics contexts. Reimplemented from osg::Node. |
|
Remove a
Reimplemented in osg::Billboard. |
|
Remove
|
|
Replace specified Drawable with another Drawable. Equivalent to |
|
Set
|
|
|
|
|