Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

osg::ChildrenList Class Reference

#include <OSGChildrenList.h>

List of all members.

Types

typedef NewActionTypes::PriorityTypeTraits PriorityTypeTraits
*typedef NewActionTypes::PriorityType PriorityType

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 Types

Types
typedef std::vector< ChildrenListEntryInternalChildrenList
typedef InternalChildrenList::iterator InternalChildrenListIt
typedef InternalChildrenList::const_iterator InternalChildrenListConstIt

Private Attributes

NodePtr _pParentNode
InternalChildrenList _childrenList

Classes

class  ChildrenListEntry


Detailed Description

Definition at line 53 of file OSGChildrenList.h.


Member Typedef Documentation

typedef NewActionTypes::PriorityTypeTraits osg::ChildrenList::PriorityTypeTraits
 

Definition at line 62 of file OSGChildrenList.h.

typedef std::vector<ChildrenListEntry> osg::ChildrenList::InternalChildrenList [private]
 

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]
 

Definition at line 124 of file OSGChildrenList.inl.

References _pParentNode.

Referenced by osg::PriorityAction::traverseEnter(), osg::DepthFirstStateAction::traverseEnter(), osg::DepthFirstAction::traverseEnter(), osg::DepthFirstStateAction::traverseEnterLeave(), and osg::DepthFirstAction::traverseEnterLeave().

00125 {
00126     _pParentNode = pParentNode;
00127 }

NodePtr osg::ChildrenList::getChild UInt32  childIndex  )  const [inline]
 

Definition at line 133 of file OSGChildrenList.inl.

References _pParentNode.

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

00134 {
00135     return _pParentNode->getChild(childIndex);
00136 }

bool osg::ChildrenList::getActive UInt32  childIndex  )  const [inline]
 

Definition at line 142 of file OSGChildrenList.inl.

References _childrenList.

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

00143 {
00144     return _childrenList[childIndex].getActive();
00145 }

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

* typedef NewActionTypes::PriorityType osg::ChildrenList::PriorityType
 

Definition at line 61 of file OSGChildrenList.h.

NodePtr osg::ChildrenList::_pParentNode [private]
 

Definition at line 151 of file OSGChildrenList.h.

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

InternalChildrenList osg::ChildrenList::_childrenList [private]
 

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 Thu Aug 25 04:28:02 2005 for OpenSG by  doxygen 1.4.3