Leaf Node for grouping Drawables
Inheritance:
Public Methods
-
typedef std::vector< ref_ptr<Drawable> > DrawableList Geode()
-
Geode(const Geode&, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
- Copy constructor using CopyOp to manage deep vs shallow copy
-
META_Node(Geode)
-
virtual const bool addDrawable( Drawable* drawable )
- Add Drawable to Geode.
-
virtual const bool removeDrawable( Drawable* drawable )
- Remove Drawable from Geode.
-
virtual const bool replaceDrawable( Drawable* origDraw, Drawable* newDraw )
- Replace specified Drawable with another Drawable.
-
inline const int getNumDrawables() const
- return the number of geoset's
-
inline Drawable* getDrawable( const int i )
- return geoset at position i
-
inline const Drawable* getDrawable( const int i ) const
- return geoset at position i
-
inline const bool containsDrawable(const Drawable* gset) const
- return true if geoset is contained within Geode
-
inline DrawableList::iterator findDrawable(const Drawable* gset)
- return the iterator position for specified Drawable.
-
inline DrawableList::const_iterator findDrawable(const Drawable* gset) const
- return the const_iterator position for specified Drawable.
-
void compileDrawables(State& state)
- compile OpenGL Display List for each geoset
Protected Fields
-
DrawableList _drawables
Protected Methods
-
virtual ~Geode()
-
virtual const bool computeBound() const
Inherited from Node:
Public Methods
-
virtual Object* cloneType() const
-
virtual Object* clone(const CopyOp& copyop) const
-
virtual bool isSameKindAs(const Object* obj) const
-
virtual const char* className() const
-
virtual void accept(NodeVisitor& nv)
-
virtual void ascend(NodeVisitor& nv)
-
virtual void traverse(NodeVisitor& )
-
inline void setName( const std::string& name )
-
inline void setName( const char* name )
-
inline const std::string& getName() const
-
inline const ParentList& getParents() const
-
inline ParentList getParents()
-
inline Group* getParent(const int i)
-
inline const Group* getParent(const int i) const
-
inline const int getNumParents() const
-
void setAppCallback(NodeCallback* nc)
-
inline NodeCallback* getAppCallback()
-
inline const NodeCallback* getAppCallback() const
-
inline const int getNumChildrenRequiringAppTraversal() const
-
void setCullingActive(const bool active)
-
inline const bool getCullingActive() const
-
inline const int getNumChildrenWithCullingDisabled() const
-
inline void setUserData(osg::Referenced* obj)
-
inline Referenced* getUserData()
-
inline const Referenced* getUserData() const
-
inline void setNodeMask(const NodeMask nm)
-
inline const NodeMask getNodeMask() const
-
inline const DescriptionList& getDescriptions() const
-
inline DescriptionList& getDescriptions()
-
inline const std::string& getDescription(const int i) const
-
inline std::string& getDescription(const int i)
-
inline const int getNumDescriptions() const
-
void addDescription(const std::string& desc)
-
inline void setStateSet(osg::StateSet* dstate)
-
inline osg::StateSet* getStateSet()
-
inline const osg::StateSet* getStateSet() const
-
inline const BoundingSphere& getBound() const
-
void dirtyBound()
Public Members
-
typedef std::vector<Group*> ParentList
-
typedef std::vector<std::string> DescriptionList
Protected Fields
-
mutable BoundingSphere _bsphere
-
mutable bool _bsphere_computed
-
std::string _name
-
ParentList _parents
-
ref_ptr<NodeCallback> _appCallback
-
int _numChildrenRequiringAppTraversal
-
bool _cullingActive
-
int _numChildrenWithCullingDisabled
-
osg::ref_ptr<Referenced> _userData
-
NodeMask _nodeMask
-
DescriptionList _descriptions
-
ref_ptr<StateSet> _dstate
Protected Methods
-
void addParent(osg::Group* node)
-
void removeParent(osg::Group* node)
-
void setNumChildrenRequiringAppTraversal(const int num)
-
void setNumChildrenWithCullingDisabled(const int num)
Inherited from Object:
Public Methods
-
inline Referenced& operator = (Referenced&)
-
inline void ref() const
-
inline void unref() const
-
inline const int referenceCount() const
Protected Fields
-
mutable int _refCount
Documentation
Leaf Node for grouping Drawables
- typedef std::vector< ref_ptr<Drawable> > DrawableList Geode()
- Geode(const Geode&, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
- Copy constructor using CopyOp to manage deep vs shallow copy
- META_Node(Geode)
- virtual const 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.
- virtual const 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.
- virtual const 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.
- inline const int getNumDrawables() const
- return the number of geoset's
- inline Drawable* getDrawable( const int i )
- return geoset at position i
- inline const Drawable* getDrawable( const int i ) const
- return geoset at position i
- inline const bool containsDrawable(const Drawable* gset) const
- return true if geoset is contained within Geode
- inline DrawableList::iterator findDrawable(const Drawable* gset)
- return the iterator position for specified Drawable.
return _geoset.end() if gset not is contained in Geode.
- inline 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.
- void compileDrawables(State& state)
- compile OpenGL Display List for each geoset
- virtual ~Geode()
- virtual const bool computeBound() const
- DrawableList _drawables
- Direct child classes:
- Billboard
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.