2001-09-20 05:19:47 +08:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
< HTML >
< HEAD >
< TITLE > class SG_EXPORT osg::Node< / TITLE >
< META NAME = "GENERATOR" CONTENT = "DOC++ 3.4.8" >
< / HEAD >
< BODY BGCOLOR = "#ffffff" >
< H2 > class SG_EXPORT < A HREF = "#DOC.DOCU" > osg::Node< / A > < / H2 > < / H2 > < BLOCKQUOTE > Base class for all internal nodes in the scene graph.< / BLOCKQUOTE >
< HR >
< H2 > Inheritance:< / H2 >
< APPLET CODE = "ClassGraph.class" WIDTH = 600 HEIGHT = 185 >
< param name = classes value = "CReferenced,MReferenced.html,CObject,MObject.html,CNode,MNode.html,CLightSource,MLightSource.html,CGroup,MGroup.html,CGeode,MGeode.html" >
< param name = before value = "M,M,M,M|_,MR_,Mr_" >
< param name = after value = "Md_SP,Md_,M,M,M,M" >
< param name = indent value = "0,1,2,2,2,2" >
< param name = arrowdir value = "down" >
< / APPLET >
< HR >
< DL >
< P > < DL >
< DT > < H3 > Public Methods< / H3 > < DD > < DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > < B > < A HREF = "#DOC.2.54.1" > Node< / A > < / B > ()
2001-09-20 05:19:47 +08:00
< DD > < I > Construct a node.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual <!1> < A HREF = "Object.html" > Object< / A > * < B > < A HREF = "#DOC.2.54.2" > clone< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > return a shallow copy of a node, with Object* return type< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual bool < B > < A HREF = "#DOC.2.54.3" > isSameKindAs< / A > < / B > (const <!1> < A HREF = "Object.html" > Object< / A > * obj) const
2001-09-20 05:19:47 +08:00
< DD > < I > return true if this and obj are of the same kind of object< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual const char* < B > < A HREF = "#DOC.2.54.4" > className< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > return the name of the node's class type< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.54.5" > accept< / A > < / B > (<!1> < A HREF = "NodeVisitor.html" > NodeVisitor< / A > & nv)
2001-09-20 05:19:47 +08:00
< DD > < I > Visitor Pattern : calls the apply method of a NodeVisitor with this node's type< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.54.6" > ascend< / A > < / B > (<!1> < A HREF = "NodeVisitor.html" > NodeVisitor< / A > & nv)
2001-09-20 05:19:47 +08:00
< DD > < I > Traverse upwards : calls parents' accept method with NodeVisitor< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.54.7" > traverse< / A > < / B > (<!1> < A HREF = "NodeVisitor.html" > NodeVisitor< / A > & )
2001-09-20 05:19:47 +08:00
< DD > < I > Traverse downwards : calls children's accept method with NodeVisitor< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.54.8" > setName< / A > < / B > ( const std::string& name )
2001-09-20 05:19:47 +08:00
< DD > < I > Set the name of node using C++ style string< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.54.9" > setName< / A > < / B > ( const char* name )
2001-09-20 05:19:47 +08:00
< DD > < I > Set the name of node using a C style string< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const std::string& < B > < A HREF = "#DOC.2.54.10" > getName< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > Get the name of node< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const <!1> < A HREF = "Node.html#DOC.2.54.11" > ParentList< / A > & < B > < A HREF = "#DOC.2.54.12" > getParents< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > Get the parent list of node.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline <!1> < A HREF = "Group.html" > Group< / A > * < B > < A HREF = "#DOC.2.54.13" > getParent< / A > < / B > (const int i)
2001-09-20 05:19:47 +08:00
< DD > < I > Get the a copy of parent list of node.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const <!1> < A HREF = "Group.html" > Group< / A > * < B > < A HREF = "#DOC.2.54.14" > getParent< / A > < / B > (const int i) const
2001-09-20 05:19:47 +08:00
< DD > < I > Get a single const parent of node.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const int < B > < A HREF = "#DOC.2.54.15" > getNumParents< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > Get the number of parents of node.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > void < B > < A HREF = "#DOC.2.54.16" > setAppCallback< / A > < / B > (<!1> < A HREF = "NodeCallback.html" > NodeCallback< / A > * nc)
< DD > < I > Set app node callback, called during app traversal.< / I >
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline <!1> < A HREF = "NodeCallback.html" > NodeCallback< / A > * < B > < A HREF = "#DOC.2.54.17" > getAppCallback< / A > < / B > ()
< DD > < I > Get app node callback, called during app traversal.< / I >
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const <!1> < A HREF = "NodeCallback.html" > NodeCallback< / A > * < B > < A HREF = "#DOC.2.54.18" > getAppCallback< / A > < / B > () const
< DD > < I > Get const app node callback, called during app traversal.< / I >
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const int < B > < A HREF = "#DOC.2.54.19" > getNumChildrenRequiringAppTraversal< / A > < / B > () const
< DD > < I > Get the number of Children of this node which require App traversal, since they have an AppCallback attached to them or their children< / I >
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.54.20" > setUserData< / A > < / B > (void* <!1> < A HREF = "Image.html#DOC.2.36.15" > data< / A > , <!1> < A HREF = "MemoryAdapter.html" > MemoryAdapter< / A > * ma=0L)
2001-09-20 05:19:47 +08:00
< DD > < I > Set user data.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void* < B > < A HREF = "#DOC.2.54.21" > getUserData< / A > < / B > ()
2001-09-20 05:19:47 +08:00
< DD > < I > Get user data< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const void* < B > < A HREF = "#DOC.2.54.22" > getUserData< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > Get const user data< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline <!1> < A HREF = "MemoryAdapter.html" > MemoryAdapter< / A > * < B > < A HREF = "#DOC.2.54.23" > getMemoryAdapter< / A > < / B > ()
2001-09-20 05:19:47 +08:00
< DD > < I > Get the memory adapter associated with _userData< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const <!1> < A HREF = "MemoryAdapter.html" > MemoryAdapter< / A > * < B > < A HREF = "#DOC.2.54.24" > getMemoryAdapter< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > Get the const memory adapter associated with _userData< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.54.25" > setNodeMask< / A > < / B > (const NodeMask nm)
2001-09-20 05:19:47 +08:00
< DD > < I > Set the node mask.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const NodeMask < B > < A HREF = "#DOC.2.54.26" > getNodeMask< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > Get the node Mask.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const <!1> < A HREF = "Node.html#DOC.2.54.27" > DescriptionList< / A > & < B > < A HREF = "#DOC.2.54.28" > getDescriptions< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > Get the description list of the const node< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline <!1> < A HREF = "Node.html#DOC.2.54.27" > DescriptionList< / A > & < B > < A HREF = "#DOC.2.54.29" > getDescriptions< / A > < / B > ()
2001-09-20 05:19:47 +08:00
< DD > < I > Get the description list of the const node< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const std::string& < B > < A HREF = "#DOC.2.54.30" > getDescription< / A > < / B > (const int i) const
2001-09-20 05:19:47 +08:00
< DD > < I > Get a single const description of the const node< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline std::string& < B > < A HREF = "#DOC.2.54.31" > getDescription< / A > < / B > (const int i)
2001-09-20 05:19:47 +08:00
< DD > < I > Get a single description of the node< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const int < B > < A HREF = "#DOC.2.54.32" > getNumDescriptions< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > Get the number of descriptions of the node< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > void < B > < A HREF = "#DOC.2.54.33" > addDescription< / A > < / B > (const std::string& desc)
2001-09-20 05:19:47 +08:00
< DD > < I > Add a description string to the node< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.54.34" > setStateSet< / A > < / B > (<!1> < A HREF = "StateSet.html" > osg::StateSet< / A > * dstate)
2001-09-20 05:19:47 +08:00
< DD > < I > set the node's StateSet< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline <!1> < A HREF = "StateSet.html" > osg::StateSet< / A > * < B > < A HREF = "#DOC.2.54.35" > getStateSet< / A > < / B > ()
2001-09-20 05:19:47 +08:00
< DD > < I > return the node's StateSet< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const <!1> < A HREF = "StateSet.html" > osg::StateSet< / A > * < B > < A HREF = "#DOC.2.54.36" > getStateSet< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > return the node's const StateSet< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const <!1> < A HREF = "BoundingSphere.html" > BoundingSphere< / A > & < B > < A HREF = "#DOC.2.54.37" > getBound< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > get the bounding sphere of node.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > void < B > < A HREF = "#DOC.2.54.38" > dirtyBound< / A > < / B > ()
2001-09-20 05:19:47 +08:00
< DD > < I > Mark this node's bounding sphere dirty.< / I >
< / DL > < / P >
< P > < DL >
< DT > < H3 > Public Members< / H3 > < DD > < DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > typedef std::vector< <!1> < A HREF = "Group.html" > Group< / A > *> < B > < A HREF = "#DOC.2.54.11" > ParentList< / A > < / B >
2001-09-20 05:19:47 +08:00
< DD > < I > A vector of osg::Group pointers which is used to store the parent(s) of node< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > typedef std::vector< std::string> < B > < A HREF = "#DOC.2.54.27" > DescriptionList< / A > < / B >
2001-09-20 05:19:47 +08:00
< DD > < I > A vector of std::string's which are used to describe the object< / I >
< / DL > < / P >
< P > < DL >
< DT > < H3 > Protected Fields< / H3 > < DD > < DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > mutable <!1> < A HREF = "BoundingSphere.html" > BoundingSphere< / A > < B > < A HREF = "#DOC.2.54.41" > _bsphere< / A > < / B >
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > mutable bool < B > < A HREF = "#DOC.2.54.42" > _bsphere_computed< / A > < / B >
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > std::string < B > < A HREF = "#DOC.2.54.43" > _name< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > <!1> < A HREF = "Node.html#DOC.2.54.11" > ParentList< / A > < B > < A HREF = "#DOC.2.54.44" > _parents< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > <!1> < A HREF = "ref_ptr.html" > ref_ptr< / A > < <!1> < A HREF = "NodeCallback.html" > NodeCallback< / A > > < B > < A HREF = "#DOC.2.54.45" > _appCallback< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > int < B > < A HREF = "#DOC.2.54.46" > _numChildrenRequiringAppTraversal< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > void* < B > < A HREF = "#DOC.2.54.48" > _userData< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > <!1> < A HREF = "ref_ptr.html" > ref_ptr< / A > < <!1> < A HREF = "MemoryAdapter.html" > MemoryAdapter< / A > > < B > < A HREF = "#DOC.2.54.49" > _memoryAdapter< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > NodeMask < B > < A HREF = "#DOC.2.54.50" > _nodeMask< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > <!1> < A HREF = "Node.html#DOC.2.54.27" > DescriptionList< / A > < B > < A HREF = "#DOC.2.54.51" > _descriptions< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > <!1> < A HREF = "ref_ptr.html" > ref_ptr< / A > < <!1> < A HREF = "StateSet.html" > StateSet< / A > > < B > < A HREF = "#DOC.2.54.52" > _dstate< / A > < / B >
2001-09-20 05:19:47 +08:00
< / DL > < / P >
< P > < DL >
< DT > < H3 > Protected Methods< / H3 > < DD > < DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual < B > < A HREF = "#DOC.2.54.39" > ~Node< / A > < / B > ()
2001-09-20 05:19:47 +08:00
< DD > < I > Node destructor.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual const bool < B > < A HREF = "#DOC.2.54.40" > computeBound< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > Compute the bounding sphere around Node's geometry or children.< / I >
2001-09-22 10:42:08 +08:00
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > void < B > < A HREF = "#DOC.2.54.47" > setNumChildrenRequiringAppTraversal< / A > < / B > (const int num)
2001-09-20 05:19:47 +08:00
< / DL > < / P >
< / DL >
< HR > < H3 > Inherited from < A HREF = "Object.html" > Object< / A > :< / H3 >
< DL >
< / DL >
< HR > < H3 > Inherited from < A HREF = "Referenced.html" > Referenced< / A > :< / H3 >
< DL >
< P > < DL >
< DT > < H3 > Public Methods< / H3 > < DD > < DT >
< IMG ALT = "o" SRC = icon2.gif > inline <!1> < A HREF = "Referenced.html" > Referenced< / A > & < B > operator = < / B > (<!1> < A HREF = "Referenced.html" > Referenced< / A > & )
< DT >
< IMG ALT = "o" SRC = icon2.gif > inline void < B > ref< / B > () const
< DT >
< IMG ALT = "o" SRC = icon2.gif > inline void < B > unref< / B > () const
< DT >
< IMG ALT = "o" SRC = icon2.gif > inline const int < B > referenceCount< / B > () const
< / DL > < / P >
< P > < DL >
< DT > < H3 > Protected Fields< / H3 > < DD > < DT >
< IMG ALT = "o" SRC = icon2.gif > mutable int < B > _refCount< / B >
< / DL > < / P >
< / DL >
< A NAME = "DOC.DOCU" > < / A >
< HR >
< H2 > Documentation< / H2 >
< BLOCKQUOTE > Base class for all internal nodes in the scene graph.
Provides interface for most common node operations (Composite Pattern).< / BLOCKQUOTE >
< DL >
< A NAME = "Node" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.1" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > Node()< / B > < / TT >
< DD > Construct a node.
Initialize the parent list to empty, node name to "" and
bounding sphere dirty flag to true.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "clone" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.2" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual <!1> < A HREF = "Object.html" > Object< / A > * clone() const < / B > < / TT >
< DD > return a shallow copy of a node, with Object* return type
< DL > < DT > < DD > < / DL > < P >
< A NAME = "isSameKindAs" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.3" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual bool isSameKindAs(const <!1> < A HREF = "Object.html" > Object< / A > * obj) const < / B > < / TT >
< DD > return true if this and obj are of the same kind of object
< DL > < DT > < DD > < / DL > < P >
< A NAME = "className" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.4" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual const char* className() const < / B > < / TT >
< DD > return the name of the node's class type
< DL > < DT > < DD > < / DL > < P >
< A NAME = "accept" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.5" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual void accept(<!1> < A HREF = "NodeVisitor.html" > NodeVisitor< / A > & nv)< / B > < / TT >
< DD > Visitor Pattern : calls the apply method of a NodeVisitor with this node's type
< DL > < DT > < DD > < / DL > < P >
< A NAME = "ascend" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.6" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual void ascend(<!1> < A HREF = "NodeVisitor.html" > NodeVisitor< / A > & nv)< / B > < / TT >
< DD > Traverse upwards : calls parents' accept method with NodeVisitor
< DL > < DT > < DD > < / DL > < P >
< A NAME = "traverse" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.7" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual void traverse(<!1> < A HREF = "NodeVisitor.html" > NodeVisitor< / A > & )< / B > < / TT >
< DD > Traverse downwards : calls children's accept method with NodeVisitor
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setName" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.8" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void setName( const std::string& name )< / B > < / TT >
< DD > Set the name of node using C++ style string
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setName" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.9" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void setName( const char* name )< / B > < / TT >
< DD > Set the name of node using a C style string
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getName" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.10" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const std::string& getName() const < / B > < / TT >
< DD > Get the name of node
< DL > < DT > < DD > < / DL > < P >
< A NAME = "ParentList" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.11" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > typedef std::vector< <!1> < A HREF = "Group.html" > Group< / A > *> ParentList< / B > < / TT >
< DD > A vector of osg::Group pointers which is used to store the parent(s) of node
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getParents" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.12" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const <!1> < A HREF = "Node.html#DOC.2.54.11" > ParentList< / A > & getParents() const < / B > < / TT >
2001-09-20 05:19:47 +08:00
< DD > Get the parent list of node.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getParent" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.13" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline <!1> < A HREF = "Group.html" > Group< / A > * getParent(const int i)< / B > < / TT >
< DD > Get the a copy of parent list of node. A copy is returned to
2001-09-22 10:42:08 +08:00
prevent modification of the parent list.
2001-09-20 05:19:47 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getParent" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.14" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const <!1> < A HREF = "Group.html" > Group< / A > * getParent(const int i) const < / B > < / TT >
< DD >
Get a single const parent of node.
< DL > < DT > < DT > < B > Parameters:< / B > < DD > < B > i< / B > - index of the parent to get.
< BR > < DT > < B > Returns:< / B > < DD > the parent i.< BR > < DD > < / DL > < P >
< A NAME = "getNumParents" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.15" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const int getNumParents() const < / B > < / TT >
< DD >
Get the number of parents of node.
< DL > < DT > < DT > < B > Returns:< / B > < DD > the number of parents of this node.< BR > < DD > < / DL > < P >
2001-09-22 10:42:08 +08:00
< A NAME = "setAppCallback" > < / A >
< A NAME = "DOC.2.54.16" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > void setAppCallback(<!1> < A HREF = "NodeCallback.html" > NodeCallback< / A > * nc)< / B > < / TT >
< DD > Set app node callback, called during app traversal.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getAppCallback" > < / A >
< A NAME = "DOC.2.54.17" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline <!1> < A HREF = "NodeCallback.html" > NodeCallback< / A > * getAppCallback()< / B > < / TT >
< DD > Get app node callback, called during app traversal.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getAppCallback" > < / A >
< A NAME = "DOC.2.54.18" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const <!1> < A HREF = "NodeCallback.html" > NodeCallback< / A > * getAppCallback() const < / B > < / TT >
< DD > Get const app node callback, called during app traversal.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getNumChildrenRequiringAppTraversal" > < / A >
< A NAME = "DOC.2.54.19" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const int getNumChildrenRequiringAppTraversal() const < / B > < / TT >
< DD > Get the number of Children of this node which require App traversal,
since they have an AppCallback attached to them or their children
< DL > < DT > < DD > < / DL > < P >
2001-09-20 05:19:47 +08:00
< A NAME = "setUserData" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.20" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void setUserData(void* <!1> < A HREF = "Image.html#DOC.2.36.15" > data< / A > , <!1> < A HREF = "MemoryAdapter.html" > MemoryAdapter< / A > * ma=0L)< / B > < / TT >
2001-09-20 05:19:47 +08:00
< DD >
Set user data. See MemoryAdapter documention for details
2001-09-22 10:42:08 +08:00
of how to specify memory management of _userData.
2001-09-20 05:19:47 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getUserData" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.21" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void* getUserData()< / B > < / TT >
< DD > Get user data
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getUserData" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.22" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const void* getUserData() const < / B > < / TT >
< DD > Get const user data
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getMemoryAdapter" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.23" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline <!1> < A HREF = "MemoryAdapter.html" > MemoryAdapter< / A > * getMemoryAdapter()< / B > < / TT >
< DD > Get the memory adapter associated with _userData
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getMemoryAdapter" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.24" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const <!1> < A HREF = "MemoryAdapter.html" > MemoryAdapter< / A > * getMemoryAdapter() const < / B > < / TT >
< DD > Get the const memory adapter associated with _userData
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setNodeMask" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.25" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void setNodeMask(const NodeMask nm)< / B > < / TT >
< DD > Set the node mask. Note, node mask is will be replaced by TraversalMask.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getNodeMask" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.26" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const NodeMask getNodeMask() const < / B > < / TT >
< DD > Get the node Mask. Note, node mask is will be replaced by TraversalMask.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "DescriptionList" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.27" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > typedef std::vector< std::string> DescriptionList< / B > < / TT >
< DD > A vector of std::string's which are used to describe the object
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getDescriptions" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.28" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const <!1> < A HREF = "Node.html#DOC.2.54.27" > DescriptionList< / A > & getDescriptions() const < / B > < / TT >
2001-09-20 05:19:47 +08:00
< DD > Get the description list of the const node
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getDescriptions" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.29" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline <!1> < A HREF = "Node.html#DOC.2.54.27" > DescriptionList< / A > & getDescriptions()< / B > < / TT >
2001-09-20 05:19:47 +08:00
< DD > Get the description list of the const node
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getDescription" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.30" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const std::string& getDescription(const int i) const < / B > < / TT >
< DD > Get a single const description of the const node
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getDescription" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.31" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline std::string& getDescription(const int i)< / B > < / TT >
< DD > Get a single description of the node
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getNumDescriptions" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.32" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const int getNumDescriptions() const < / B > < / TT >
< DD > Get the number of descriptions of the node
< DL > < DT > < DD > < / DL > < P >
< A NAME = "addDescription" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.33" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > void addDescription(const std::string& desc)< / B > < / TT >
< DD > Add a description string to the node
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setStateSet" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.34" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void setStateSet(<!1> < A HREF = "StateSet.html" > osg::StateSet< / A > * dstate)< / B > < / TT >
< DD > set the node's StateSet
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getStateSet" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.35" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline <!1> < A HREF = "StateSet.html" > osg::StateSet< / A > * getStateSet()< / B > < / TT >
< DD > return the node's StateSet
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getStateSet" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.36" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const <!1> < A HREF = "StateSet.html" > osg::StateSet< / A > * getStateSet() const < / B > < / TT >
< DD > return the node's const StateSet
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getBound" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.37" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const <!1> < A HREF = "BoundingSphere.html" > BoundingSphere< / A > & getBound() const < / B > < / TT >
< DD > get the bounding sphere of node.
Using lazy evaluation computes the bounding sphere if it is 'dirty'.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "dirtyBound" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.38" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > void dirtyBound()< / B > < / TT >
< DD > Mark this node's bounding sphere dirty.
Forcing it to be computed on the next call to getBound().
< DL > < DT > < DD > < / DL > < P >
< A NAME = "~Node" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.39" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual ~Node()< / B > < / TT >
< DD > Node destructor. Note, is protected so that Nodes cannot
be deleted other than by being dereferenced and the reference
count being zero (see osg::Referenced), preventing the deletion
of nodes which are still in use. This also means that
Node's cannot be created on stack i.e Node node will not compile,
forcing all nodes to be created on the heap i.e Node* node
= new Node().
< DL > < DT > < DD > < / DL > < P >
< A NAME = "computeBound" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.40" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual const bool computeBound() const < / B > < / TT >
< DD > Compute the bounding sphere around Node's geometry or children.
This method is automatically called by getBound() when the bounding
sphere has been marked dirty via dirtyBound().
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_bsphere" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.41" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > mutable <!1> < A HREF = "BoundingSphere.html" > BoundingSphere< / A > _bsphere< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_bsphere_computed" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.42" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > mutable bool _bsphere_computed< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_name" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.43" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > std::string _name< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_parents" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.44" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > <!1> < A HREF = "Node.html#DOC.2.54.11" > ParentList< / A > _parents< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_appCallback" > < / A >
< A NAME = "DOC.2.54.45" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > <!1> < A HREF = "ref_ptr.html" > ref_ptr< / A > < <!1> < A HREF = "NodeCallback.html" > NodeCallback< / A > > _appCallback< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_numChildrenRequiringAppTraversal" > < / A >
< A NAME = "DOC.2.54.46" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > int _numChildrenRequiringAppTraversal< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setNumChildrenRequiringAppTraversal" > < / A >
< A NAME = "DOC.2.54.47" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > void setNumChildrenRequiringAppTraversal(const int num)< / B > < / TT >
2001-09-20 05:19:47 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_userData" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.48" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > void* _userData< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_memoryAdapter" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.49" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > <!1> < A HREF = "ref_ptr.html" > ref_ptr< / A > < <!1> < A HREF = "MemoryAdapter.html" > MemoryAdapter< / A > > _memoryAdapter< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_nodeMask" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.50" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > NodeMask _nodeMask< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_descriptions" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.51" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > <!1> < A HREF = "Node.html#DOC.2.54.27" > DescriptionList< / A > _descriptions< / B > < / TT >
2001-09-20 05:19:47 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_dstate" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.54.52" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > <!1> < A HREF = "ref_ptr.html" > ref_ptr< / A > < <!1> < A HREF = "StateSet.html" > StateSet< / A > > _dstate< / B > < / TT >
< DL > < DT > < DD > < / DL > < P > < / DL >
< HR >
< DL > < DT > < B > Direct child classes:
< / B > < DD > < A HREF = "LightSource.html" > LightSource< / A > < BR >
< A HREF = "Group.html" > Group< / A > < BR >
< A HREF = "Geode.html" > Geode< / A > < BR >
< / DL >
< DL > < DT > < DT > < B > Friends:< / B > < DD > <!1> < A HREF = "Group.html" > Group< / A > < BR > < DD > < / DL > < P > < P > < I > < A HREF = "index.html" > Alphabetic index< / A > < / I > < I > < A HREF = "HIER.html" > HTML hierarchy of classes< / A > or < A HREF = "HIERjava.html" > Java< / A > < / I > < / P > < HR >
< BR >
This page was generated with the help of < A HREF = "http://docpp.sourceforge.net" > DOC++< / A > .
< / BODY >
< / HTML >