osg::ChildrenList Class Reference

#include <OSGChildrenList.h>

List of all members.

Classes

class  ChildrenListEntry

Public Member Functions

Constructors



 ChildrenList (void)
Destructor



 ~ChildrenList (void)
Parent



void reset (void)
NodePtr getParentNode (void) const
void setParentNode (const NodePtr &pParentNode)
Child



NodePtr getChild (UInt32 childIndex) const
Active



bool getActive (UInt32 childIndex) const
void setActive (UInt32 childIndex, bool active)
Priority



PriorityType getPriority (UInt32 childIndex) const
void setPriority (UInt32 childIndex, PriorityType prio)
Misc



UInt32 getSize (void) const

Private Attributes

NodePtr _pParentNode
InternalChildrenList _childrenList

Types



typedef
NewActionTypes::PriorityType 
PriorityType
typedef
NewActionTypes::PriorityTypeTraits 
PriorityTypeTraits
typedef std::vector
< ChildrenListEntry
InternalChildrenList
typedef
InternalChildrenList::iterator 
InternalChildrenListIt
typedef
InternalChildrenList::const_iterator 
InternalChildrenListConstIt

Detailed Description

Definition at line 53 of file OSGChildrenList.h.


Member Typedef Documentation

Definition at line 61 of file OSGChildrenList.h.

Definition at line 62 of file OSGChildrenList.h.

Definition at line 144 of file OSGChildrenList.h.

typedef InternalChildrenList::iterator osg::ChildrenList::InternalChildrenListIt [private]

Definition at line 145 of file OSGChildrenList.h.

typedef InternalChildrenList::const_iterator osg::ChildrenList::InternalChildrenListConstIt [private]

Definition at line 146 of file OSGChildrenList.h.


Constructor & Destructor Documentation

osg::ChildrenList::ChildrenList ( void   )  [inline]

Definition at line 94 of file OSGChildrenList.inl.

00095     : _pParentNode(NullFC),
00096       _childrenList(      )
00097 {
00098 }

osg::ChildrenList::~ChildrenList ( void   )  [inline]

Definition at line 104 of file OSGChildrenList.inl.

00105 {
00106 }


Member Function Documentation

void osg::ChildrenList::reset ( void   )  [inline]

Definition at line 112 of file OSGChildrenList.inl.

References _childrenList, and _pParentNode.

Referenced by osg::NewActionBase::setChildrenListEnabled().

00113 {
00114     _childrenList.assign(_pParentNode->getNChildren(), ChildrenListEntry());
00115 }

NodePtr osg::ChildrenList::getParentNode ( void   )  const [inline]

Definition at line 118 of file OSGChildrenList.inl.

References _pParentNode.

Referenced by osg::ActorBase::getNode().

00119 {
00120     return _pParentNode;
00121 }

void osg::ChildrenList::setParentNode ( const NodePtr pParentNode  )  [inline]
NodePtr osg::ChildrenList::getChild ( UInt32  childIndex  )  const [inline]
bool osg::ChildrenList::getActive ( UInt32  childIndex  )  const [inline]
void osg::ChildrenList::setActive ( UInt32  childIndex,
bool  active 
) [inline]

Definition at line 148 of file OSGChildrenList.inl.

References _childrenList.

Referenced by osg::ActorBase::setChildActive().

00149 {
00150     _childrenList[childIndex].setActive(active);
00151 }

ChildrenList::PriorityType osg::ChildrenList::getPriority ( UInt32  childIndex  )  const [inline]

Definition at line 157 of file OSGChildrenList.inl.

References _childrenList.

Referenced by osg::PriorityAction::enqueueChildren(), and osg::ActorBase::getChildPriority().

00158 {
00159     return _childrenList[childIndex].getPriority();
00160 }

void osg::ChildrenList::setPriority ( UInt32  childIndex,
PriorityType  prio 
) [inline]

Definition at line 163 of file OSGChildrenList.inl.

References _childrenList.

Referenced by osg::ActorBase::setChildPriority().

00164 {
00165     _childrenList[childIndex].setPriority(prio);
00166 }

UInt32 osg::ChildrenList::getSize ( void   )  const [inline]

Definition at line 172 of file OSGChildrenList.inl.

References _pParentNode.

Referenced by osg::PriorityAction::enqueueChildren(), osg::ActorBase::getNumChildren(), osg::DepthFirstStateAction::pushChildren(), and osg::DepthFirstAction::pushChildren().

00173 {
00174     //return _childrenList.size();
00175     return _pParentNode->getNChildren();
00176 }


Member Data Documentation

Definition at line 151 of file OSGChildrenList.h.

Referenced by getChild(), getParentNode(), getSize(), reset(), and setParentNode().

Definition at line 152 of file OSGChildrenList.h.

Referenced by getActive(), getPriority(), reset(), setActive(), and setPriority().


The documentation for this class was generated from the following files:

Generated on 8 Feb 2010 for OpenSG by  doxygen 1.6.1