class SG_EXPORT osg::Geode: public Node

Leaf Node for grouping GeoSets

Inheritance:


Public Methods

[more] Geode()
[more]virtual Object* clone() const
[more]virtual bool isSameKindAs(Object* obj)
[more]virtual const char* className() const
[more]virtual void accept(NodeVisitor& nv)
[more]virtual bool addGeoSet( GeoSet *gset )
Add GeoSet to Geode.
[more]virtual bool removeGeoSet( GeoSet *gset )
Remove GeoSet from Geode.
[more]virtual bool replaceGeoSet( GeoSet *origGset, GeoSet *newGset )
Replace specified GeoSet with another GeoSet.
[more]int getNumGeosets( void ) const
return the number of geoset's
[more]GeoSet* getGeoSet( int i )
return geoset at position i
[more]bool containsGeoSet( GeoSet* gset)
return true is geoset is contained within Geode
[more]GeoSetList::iterator findGeoSet( GeoSet* gset)
return the iterator postion for specified GeoSet.
[more]void compileGeoSets( void )
complile OpenGL Display List for each geoset

Public

[more]typedef std::vector< ref_ptr<GeoSet> > GeoSetList

Protected Fields

[more]GeoSetList _geosets

Protected Methods

[more]virtual ~Geode()
[more]virtual bool readLocalData(Input& fr)
[more]virtual bool writeLocalData(Output& fw)
[more]virtual bool computeBound( void )


Inherited from Node:

Public Methods

oNode* cloneNode() const
ovirtual void ascend(NodeVisitor& nv)
ovirtual void traverse(NodeVisitor& )
ovoid setName( const std::string& name )
ovoid setName( const char* name )
oconst std::string& getName( void )
oconst ParentList& getParents() const
oGroup* getParent(int i) const
oint getNumParents() const
ovoid setUserData(void* data, MemoryAdapter* ma=0L)
ovoid* getUserData() const
oMemoryAdapter* getMemoryAdapter() const
ovoid setNodeMask(NodeMask nm)
oNodeMask getNodeMask()
oconst DescriptionList& getDescriptions() const
oDescriptionList& getDescriptions()
oconst std::string& getDescription(int i) const
ostd::string& getDescription(int i)
oint getNumDescriptions() const
ovoid addDescription(const std::string& desc)
oconst BoundingSphere& getBound()
ovoid dirtyBound()

Public

otypedef std::vector<Group*> ParentList
otypedef unsigned int NodeMask
otypedef std::vector<std::string> DescriptionList

Protected Fields

oBoundingSphere _bsphere
obool _bsphere_computed
ostd::string _name
oParentList _parents
ofriend Group
ovoid* _userData
oref_ptr<MemoryAdapter> _memoryAdapter
oNodeMask _nodeMask
oDescriptionList _descriptions


Inherited from Object:

Public Methods

ovirtual Object* readClone(Input& fr)
ovirtual bool write(Output& fw)


Inherited from Referenced:

Public Methods

oReferenced& operator = (Referenced&)
ovoid ref()
ovoid unref()
oint referenceCount()

Protected Fields

oint _refCount


Documentation

Leaf Node for grouping GeoSets
otypedef std::vector< ref_ptr<GeoSet> > GeoSetList

o Geode()

ovirtual Object* clone() const

ovirtual bool isSameKindAs(Object* obj)

ovirtual const char* className() const

ovirtual void accept(NodeVisitor& nv)

ovirtual bool addGeoSet( GeoSet *gset )
Add GeoSet to Geode. If gset is not NULL and is not contained in Geode then increment its reference count, add it to the geosets list and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. Otherwise return false.

ovirtual bool removeGeoSet( GeoSet *gset )
Remove GeoSet 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 replaceGeoSet( GeoSet *origGset, GeoSet *newGset )
Replace specified GeoSet with another GeoSet. 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 origGeoSet is not found then return false and do not add newGset. If newGset is NULL then return false and do not remove origGset.

oint getNumGeosets( void ) const
return the number of geoset's

oGeoSet* getGeoSet( int i )
return geoset at position i

obool containsGeoSet( GeoSet* gset)
return true is geoset is contained within Geode

oGeoSetList::iterator findGeoSet( GeoSet* gset)
return the iterator postion for specified GeoSet. return _geoset.end() if gset not is contained in Geode.

ovoid compileGeoSets( void )
complile OpenGL Display List for each geoset

ovirtual ~Geode()

ovirtual bool readLocalData(Input& fr)

ovirtual bool writeLocalData(Output& fw)

ovirtual bool computeBound( void )

oGeoSetList _geosets


Direct child classes:
Billboard

Alphabetic index HTML hierarchy of classes or Java



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