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 Drawable to Geode. | |
virtual bool | removeDrawable (Drawable *drawable) |
Remove Drawable from 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 drawables. | |
Drawable * | getDrawable (unsigned int i) |
return drawable at position i. | |
const Drawable * | getDrawable (unsigned int i) const |
return drawable at position i. | |
bool | containsDrawable (const Drawable *gset) const |
return true if drawable is contained within Geode. | |
unsigned int | getDrawableIndex (const Drawable *node) const |
Get the index number of drawable, return a value between 0 and _drawables.size()-1 if found, if not found then return _drawables.size(). | |
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. | |
Protected Member Functions | |
virtual | ~Geode () |
virtual bool | computeBound () const |
Compute the bounding sphere around Node's geometry or children. | |
Protected Attributes | |
osg::BoundingBox | _bbox |
DrawableList | _drawables |
|
|
|
|
|
Copy constructor using CopyOp to manage deep vs shallow copy.
|
|
|
|
If drawable is not NULL and is not contained in Geode then increment its reference count, add it to the drawables list and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. Otherwise return false. 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 true if drawable is contained within Geode.
|
|
return the Geode's bounding box, which is the union of all the bounding boxes of the geode's drawables.
|
|
return drawable at position i.
|
|
return drawable at position i.
|
|
Get the index number of drawable, return a value between 0 and _drawables.size()-1 if found, if not found then return _drawables.size().
|
|
return the number of drawables.
|
|
|
|
Remove drawable(s) from the specified position in Geode's drawable list.
|
|
Equivalent to setDrawable(getDrawableIndex(originChild),node), see docs for setNode for further details on implementation. Reimplemented in osg::Billboard. |
|
Replace specified Drawable with another Drawable. Equivalent to setDrawable(getDrawableIndex(originChild),node), see docs for setDrawable for further details on implementation. |
|
set drawable at position i. return true if set correctly, false on failure (if node==NULL || i is out of range). 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. |
|
|
|
|