Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields

osgExtension::Geode Class Reference

DEPRECATED.


Public Types

typedef std::vector< osg::ref_ptr<
osg::Geometry > > 
GeometryList

Public Member Functions

 Geode (const Geode &, const osg::CopyOp &copyop=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


Constructor & Destructor Documentation

Geode::Geode (  const Geode &  ,
const osg::CopyOp &  copyop = osg::CopyOp::SHALLOW_COPY
) 
 

Copy constructor using CopyOp to manage deep vs shallow copy.


Member Function Documentation

bool Geode::addErrorBound (  osg::Geometry *  errorBound  )  [virtual]
 

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.

bool osgExtension::Geode::containsErrorBound (  const osg::Geometry *  gset  )  const [inline]
 

return true if drawable is contained within Geode.

unsigned int osgExtension::Geode::getErrorBoundIndex (  const osg::Geometry *  node  )  const [inline]
 

Get the index number of drawable, return a value between 0 and _drawables.size()-1 if found, if not found then return _drawables.size().

const osg::Geometry* osgExtension::Geode::getErrorBounds (  unsigned int  i  )  const [inline]
 

return drawable at position i.

osg::Geometry* osgExtension::Geode::getErrorBounds (  unsigned int  i  )  [inline]
 

return drawable at position i.

unsigned int osgExtension::Geode::getNumErrorBounds (   )  const [inline]
 

return the number of drawable's.

bool Geode::removeErrorBound (  unsigned int  i,
unsigned int  numDrawablesToRemove = 1
)  [virtual]
 

Remove drawable(s) from the specified position in Geode's drawable list.

bool Geode::removeErrorBound (  osg::Geometry *  errorBound  )  [virtual]
 

Remove Drawable from Geode. Equivalent to setDrawable(getDrawableIndex(orignChild),node), see docs for setNode for futher details on implementation.

bool Geode::replaceErrorBound (  osg::Geometry *  origDraw,
osg::Geometry *  newDraw
)  [virtual]
 

Replace specified Drawable with another Drawable. Equivalent to setDrawable(getDrawableIndex(orignChild),node), see docs for setDrawable for futher details on implementation.

bool Geode::setErrorBound (  unsigned int  i,
osg::Geometry *  drawable
)  [virtual]
 

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.


The documentation for this class was generated from the following files:
Generated on Wed Nov 17 12:22:38 2004 for osgAR by doxygen 1.3.7