Geode
is a "geometry node", that is, a leaf node on the scene graph that can have "renderable things" attached to it.
More...
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) | |
Copy constructor using CopyOp to manage deep vs shallow copy. | |
META_Node (osg, Geode) | |
virtual bool | addDrawable (Drawable *drawable) |
Add a Drawable to the Geode . | |
virtual bool | removeDrawable (Drawable *drawable) |
Remove a Drawable from the Geode . | |
virtual bool | removeDrawable (unsigned int i, unsigned int numDrawablesToRemove=1) |
Remove Drawable (s) from the specified position in Geode 's drawable list. | |
virtual bool | replaceDrawable (Drawable *origDraw, Drawable *newDraw) |
Replace specified Drawable with another Drawable. | |
virtual bool | setDrawable (unsigned int i, Drawable *drawable) |
Set Drawable at position i . | |
unsigned int | getNumDrawables () const |
Return the number of Drawable s currently attached to the Geode . | |
Drawable * | getDrawable (unsigned int i) |
Return the Drawable at position i . | |
const Drawable * | getDrawable (unsigned int i) const |
Return the Drawable at position i . | |
bool | containsDrawable (const Drawable *gset) const |
Return true if a given Drawable is contained within Geode . | |
unsigned int | getDrawableIndex (const Drawable *drawable) const |
Get the index number of drawable . | |
const DrawableList & | getDrawableList () const |
Get the list of drawables. | |
void | compileDrawables (State &state) |
Compile OpenGL Display List for each drawable. | |
const BoundingBox & | getBoundingBox () const |
Return the Geode's bounding box, which is the union of all the bounding boxes of the geode's drawables. | |
virtual BoundingSphere | computeBound () const |
Compute the bounding sphere around Node's geometry or children. | |
virtual void | releaseGLObjects (osg::State *=0) const |
If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. | |
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.
|
|
|
|
If
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
|
|
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
|
|
Remove a
Equivalent to
Reimplemented in osg::Billboard. |
|
Replace specified Drawable with another Drawable.
Equivalent to |
|
Set Decrement the reference count origGSet and increments the reference count of newGset, and dirty the bounding sphere to force it to recompute on next getBound() and returns true. If origDrawable is not found then return false and do not add newGset. If newGset is NULL then return false and do not remove origGset.
|
|
|
|
|