Public Types | |
typedef std::vector< osg::ref_ptr< osg::Geometry > > | GeometryList |
Public Member Functions | |
Geode (const Geode &, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
META_Node (osgExtension, Geode) | |
virtual bool | addErrorBound (osg::Geometry *errorBound) |
virtual bool | removeErrorBound (osg::Geometry *errorBound) |
virtual bool | removeErrorBound (unsigned int i, unsigned int numDrawablesToRemove=1) |
virtual bool | replaceErrorBound (osg::Geometry *origDraw, osg::Geometry *newDraw) |
virtual bool | setErrorBound (unsigned int i, osg::Geometry *drawable) |
unsigned int | getNumErrorBounds () const |
osg::Geometry * | getErrorBounds (unsigned int i) |
const osg::Geometry * | getErrorBounds (unsigned int i) const |
bool | containsErrorBound (const osg::Geometry *gset) const |
unsigned int | getErrorBoundIndex (const osg::Geometry *node) const |
Protected Attributes | |
GeometryList | _errorBounds |
|
Copy constructor using CopyOp to manage deep vs shallow copy. |
|
Add Drawable to Geode. If gset 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. |
|
return true if drawable is contained within Geode. |
|
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 drawable at position i. |
|
return drawable at position i. |
|
return the number of drawable's. |
|
Remove drawable(s) from the specified position in Geode's drawable list. |
|
Remove Drawable from Geode. Equivalent to setDrawable(getDrawableIndex(orignChild),node), see docs for setNode for futher details on implementation. |
|
Replace specified Drawable with another Drawable. Equivalent to setDrawable(getDrawableIndex(orignChild),node), see docs for setDrawable for futher 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. |