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::Group< / TITLE >
< META NAME = "GENERATOR" CONTENT = "DOC++ 3.4.8" >
< / HEAD >
< BODY BGCOLOR = "#ffffff" >
< H2 > class SG_EXPORT < A HREF = "#DOC.DOCU" > osg::Group< / A > < / H2 > < / H2 > < BLOCKQUOTE > General group node which maintains a list of children.< / BLOCKQUOTE >
< HR >
< H2 > Inheritance:< / H2 >
2002-04-22 05:53:03 +08:00
< APPLET CODE = "ClassGraph.class" WIDTH = 600 HEIGHT = 215 >
< param name = classes value = "MNode,M,CGroup,MGroup.html,CTransform,MTransform.html,CSwitch,MSwitch.html,CProjection,MProjection.html,CLOD,MLOD.html,CEarthSky,MEarthSky.html" >
< param name = before value = "M,M,M|_,MR_,MR_,MR_,Mr_" >
< param name = after value = "Md_,M,M,M,M,M,M" >
< param name = indent value = "0,1,1,1,1,1,1" >
2001-09-20 05:19:47 +08:00
< param name = arrowdir value = "down" >
< / APPLET >
< HR >
< DL >
< P > < DL >
< DT > < H3 > Public Methods< / H3 > < DD > < DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > typedef std::vector< <!1> < A HREF = "ref_ptr.html" > ref_ptr< / A > < Node> > ChildList < B > < A HREF = "#DOC.2.42.1" > Group< / A > < / B > ()
2001-09-20 05:19:47 +08:00
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > < B > < A HREF = "#DOC.2.42.2" > Group< / A > < / B > (const <!1> < A HREF = "Group.html#DOC.2.42.2" > Group< / A > & , const <!1> < A HREF = "CopyOp.html" > CopyOp< / A > & copyop=CopyOp::SHALLOW_COPY)
2002-02-09 18:54:18 +08:00
< DD > < I > Copy constructor using CopyOp to manage deep vs shallow copy< / I >
2001-09-20 05:19:47 +08:00
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > < B > < A HREF = "#DOC.2.42.3" > META_Node< / A > < / B > (<!1> < A HREF = "Group.html" > Group< / A > )
2001-09-20 05:19:47 +08:00
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.42.4" > traverse< / A > < / B > (<!1> < A HREF = "NodeVisitor.html" > NodeVisitor< / A > & nv)
2002-02-09 18:54:18 +08:00
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual bool < B > < A HREF = "#DOC.2.42.5" > addChild< / A > < / B > ( Node* child )
2001-09-20 05:19:47 +08:00
< DD > < I > Add Node to Group.< / I >
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual bool < B > < A HREF = "#DOC.2.42.6" > removeChild< / A > < / B > ( Node* child )
2001-09-20 05:19:47 +08:00
< DD > < I > Remove Node from Group.< / I >
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual bool < B > < A HREF = "#DOC.2.42.7" > replaceChild< / A > < / B > ( Node* origChild, Node* newChild )
2001-09-20 05:19:47 +08:00
< DD > < I > Replace specified Node with another Node.< / I >
< DT >
2002-04-26 21:45:01 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const unsigned int < B > < A HREF = "#DOC.2.42.8" > getNumChildren< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > return the number of chilren nodes< / I >
< DT >
2002-04-26 21:45:01 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline Node* < B > < A HREF = "#DOC.2.42.9" > getChild< / A > < / B > ( const unsigned int i )
2001-09-20 05:19:47 +08:00
< DD > < I > return child node at position i< / I >
< DT >
2002-04-26 21:45:01 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const Node* < B > < A HREF = "#DOC.2.42.10" > getChild< / A > < / B > ( const unsigned int i ) const
2001-09-20 05:19:47 +08:00
< DD > < I > return child node at position i< / I >
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline bool < B > < A HREF = "#DOC.2.42.11" > containsNode< / A > < / B > ( const Node* node ) const
2001-09-20 05:19:47 +08:00
< DD > < I > return true if node is contained within Group< / I >
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline ChildList::iterator < B > < A HREF = "#DOC.2.42.12" > findNode< / A > < / B > ( const Node* node )
2001-12-25 05:56:22 +08:00
< DD > < I > return the iterator position for specified Node.< / I >
2001-09-20 05:19:47 +08:00
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline ChildList::const_iterator < B > < A HREF = "#DOC.2.42.13" > findNode< / A > < / B > ( const Node* node ) const
2001-12-25 05:56:22 +08:00
< DD > < I > return the const_iterator position for specified Node.< / I >
2001-09-20 05:19:47 +08:00
< / DL > < / P >
< P > < DL >
< DT > < H3 > Protected Fields< / H3 > < DD > < DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > ChildList < B > < A HREF = "#DOC.2.42.16" > _children< / A > < / B >
2001-09-20 05:19:47 +08:00
< / DL > < / P >
< P > < DL >
< DT > < H3 > Protected Methods< / H3 > < DD > < DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual < B > < A HREF = "#DOC.2.42.14" > ~Group< / A > < / B > ()
2001-09-20 05:19:47 +08:00
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual const bool < B > < A HREF = "#DOC.2.42.15" > computeBound< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< / DL > < / P >
< / DL >
< A NAME = "DOC.DOCU" > < / A >
< HR >
< H2 > Documentation< / H2 >
< BLOCKQUOTE > General group node which maintains a list of children.
Children are reference counted. This allows children to be shared
with memory management handled automatically via osg::Referenced.< / BLOCKQUOTE >
< DL >
< A NAME = "Group" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.42.1" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > typedef std::vector< <!1> < A HREF = "ref_ptr.html" > ref_ptr< / A > < Node> > ChildList Group()< / B > < / TT >
2001-09-20 05:19:47 +08:00
< DL > < DT > < DD > < / DL > < P >
2002-02-09 18:54:18 +08:00
< A NAME = "Group" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.42.2" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > Group(const <!1> < A HREF = "Group.html#DOC.2.42.2" > Group< / A > & , const <!1> < A HREF = "CopyOp.html" > CopyOp< / A > & copyop=CopyOp::SHALLOW_COPY)< / B > < / TT >
2002-02-09 18:54:18 +08:00
< DD > Copy constructor using CopyOp to manage deep vs shallow copy
< DL > < DT > < DD > < / DL > < P >
2001-09-22 10:42:08 +08:00
< A NAME = "META_Node" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.42.3" > < / A >
2001-09-22 10:42:08 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > META_Node(<!1> < A HREF = "Group.html" > Group< / A > )< / B > < / TT >
2001-09-20 05:19:47 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "traverse" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.42.4" > < / 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 > & nv)< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "addChild" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.42.5" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual bool addChild( Node* child )< / B > < / TT >
2001-09-20 05:19:47 +08:00
< DD > Add Node to Group.
If node is not NULL and is not contained in Group then increment its
reference count, add it to the child list and dirty the bounding
sphere to force it to recompute on next getBound() and return true for success.
Otherwise return false. Scene nodes can't be added as child nodes.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "removeChild" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.42.6" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual bool removeChild( Node* child )< / B > < / TT >
2001-09-20 05:19:47 +08:00
< DD > Remove Node from Group.
If Node is contained in Group then remove it from the child
list, decrement its reference count, and dirty the
bounding sphere to force it to recompute on next getBound() and
return true for success. If Node is not found then return false
and do not change the reference count of the Node.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "replaceChild" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.42.7" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual bool replaceChild( Node* origChild, Node* newChild )< / B > < / TT >
2001-09-20 05:19:47 +08:00
< DD > Replace specified Node with another Node.
Decrement the reference count origNode and increments the
reference count of newNode, and dirty the bounding sphere
to force it to recompute on next getBound() and returns true.
If origNode is not found then return false and do not
add newNode. If newNode is NULL then return false and do
not remove origNode. Also returns false if newChild is a Scene node.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getNumChildren" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.42.8" > < / A >
2002-04-26 21:45:01 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const unsigned int getNumChildren() const < / B > < / TT >
2001-09-20 05:19:47 +08:00
< DD > return the number of chilren nodes
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getChild" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.42.9" > < / A >
2002-04-26 21:45:01 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline Node* getChild( const unsigned int i )< / B > < / TT >
2001-09-20 05:19:47 +08:00
< DD > return child node at position i
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getChild" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.42.10" > < / A >
2002-04-26 21:45:01 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const Node* getChild( const unsigned int i ) const < / B > < / TT >
2001-09-20 05:19:47 +08:00
< DD > return child node at position i
< DL > < DT > < DD > < / DL > < P >
< A NAME = "containsNode" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.42.11" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline bool containsNode( const Node* node ) const < / B > < / TT >
2001-09-20 05:19:47 +08:00
< DD > return true if node is contained within Group
< DL > < DT > < DD > < / DL > < P >
< A NAME = "findNode" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.42.12" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline ChildList::iterator findNode( const Node* node )< / B > < / TT >
2001-12-25 05:56:22 +08:00
< DD > return the iterator position for specified Node.
return _children.end() if node is not contained in Group.
2001-09-20 05:19:47 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "findNode" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.42.13" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline ChildList::const_iterator findNode( const Node* node ) const < / B > < / TT >
2001-12-25 05:56:22 +08:00
< DD > return the const_iterator position for specified Node.
return _children.end() if node is not contained in Group.
2001-09-20 05:19:47 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "~Group" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.42.14" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual ~Group()< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "computeBound" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.42.15" > < / 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 >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_children" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.42.16" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > ChildList _children< / B > < / TT >
< DL > < DT > < DD > < / DL > < P > < / DL >
< HR >
< DL > < DT > < B > Direct child classes:
< / B > < DD > < A HREF = "Transform.html" > Transform< / A > < BR >
< A HREF = "Switch.html" > Switch< / A > < BR >
2002-04-22 05:53:03 +08:00
< A HREF = "Projection.html" > Projection< / A > < BR >
2001-09-20 05:19:47 +08:00
< A HREF = "LOD.html" > LOD< / A > < BR >
2001-12-25 05:56:22 +08:00
< A HREF = "EarthSky.html" > EarthSky< / A > < BR >
2001-09-20 05:19:47 +08:00
< / DL >
< DL > < DT > < 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 >