class SG_EXPORT osg::Geode

Leaf Node for grouping Drawables

Inheritance:


Public Methods

[more] Geode()
[more] Geode(const Geode&, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy
[more] META_Node(osg, Geode)
[more]virtual bool addDrawable( Drawable* drawable )
Add Drawable to Geode.
[more]virtual bool removeDrawable( Drawable* drawable )
Remove Drawable from Geode.
[more]virtual bool replaceDrawable( Drawable* origDraw, Drawable* newDraw )
Replace specified Drawable with another Drawable.
[more]inline unsigned int getNumDrawables() const
return the number of geoset's
[more]inline Drawable* getDrawable( unsigned int i )
return geoset at position i
[more]inline const Drawable* getDrawable( unsigned int i ) const
return geoset at position i
[more]inline bool containsDrawable(const Drawable* gset) const
return true if geoset is contained within Geode
[more]inline DrawableList::iterator findDrawable(const Drawable* gset)
return the iterator position for specified Drawable.
[more]inline DrawableList::const_iterator findDrawable(const Drawable* gset) const
return the const_iterator position for specified Drawable.
[more]void compileDrawables(State& state)
compile OpenGL Display List for each geoset

Public Members

[more]typedef std::vector< ref_ptr<Drawable> > DrawableList

Protected Fields

[more]DrawableList _drawables

Protected Methods

[more]virtual ~Geode()
[more]virtual bool computeBound() const


Documentation

Leaf Node for grouping Drawables
otypedef std::vector< ref_ptr<Drawable> > DrawableList

o Geode()

o Geode(const Geode&, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy

o META_Node(osg, Geode)

ovirtual bool addDrawable( Drawable* drawable )
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.

ovirtual bool removeDrawable( Drawable* drawable )
Remove Drawable from Geode. If gset is contained in Geode then remove it from the geoset list and decrement its reference count, and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. If gset is not found then return false and do not change the reference count of gset.

ovirtual bool replaceDrawable( Drawable* origDraw, Drawable* newDraw )
Replace specified Drawable with another Drawable. 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.

oinline unsigned int getNumDrawables() const
return the number of geoset's

oinline Drawable* getDrawable( unsigned int i )
return geoset at position i

oinline const Drawable* getDrawable( unsigned int i ) const
return geoset at position i

oinline bool containsDrawable(const Drawable* gset) const
return true if geoset is contained within Geode

oinline DrawableList::iterator findDrawable(const Drawable* gset)
return the iterator position for specified Drawable. return _geoset.end() if gset not is contained in Geode.

oinline DrawableList::const_iterator findDrawable(const Drawable* gset) const
return the const_iterator position for specified Drawable. return _geoset.end() if gset not is contained in Geode.

ovoid compileDrawables(State& state)
compile OpenGL Display List for each geoset

ovirtual ~Geode()

ovirtual bool computeBound() const

oDrawableList _drawables


Direct child classes:
Billboard

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.