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

osg::ExtraChildrenList Class Reference

#include <OSGExtraChildrenList.h>

List of all members.

Types

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

Public Member Functions

Constructors
ExtraChildrenList (void)
Destructor
~ExtraChildrenList (void)
Add
*UInt32 addChild (const NodePtr &pChild)
UInt32 addChild (const NodePtr &pChild, PriorityType prio)
Access
*NodePtr getChild (UInt32 childIndex) const
PriorityType getPriority (UInt32 childIndex) const
void setPriority (UInt32 childIndex, PriorityType prio)
bool getActive (UInt32 childIndex) const
void setActive (UInt32 childIndex, bool active)
Misc
*UInt32 getSize (void) const
void clear (void)

Private Types

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

Private Attributes

InternalChildrenList _childrenList

Classes

class  ChildrenListEntry


Detailed Description

Definition at line 53 of file OSGExtraChildrenList.h.


Member Typedef Documentation

typedef NewActionTypes::PriorityTypeTraits osg::ExtraChildrenList::PriorityTypeTraits
 

Definition at line 61 of file OSGExtraChildrenList.h.

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

Definition at line 137 of file OSGExtraChildrenList.h.

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

Definition at line 138 of file OSGExtraChildrenList.h.

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

Definition at line 139 of file OSGExtraChildrenList.h.


Constructor & Destructor Documentation

osg::ExtraChildrenList::ExtraChildrenList void   )  [inline]
 

Definition at line 116 of file OSGExtraChildrenList.inl.

00117     : _childrenList()
00118 {
00119 }

osg::ExtraChildrenList::~ExtraChildrenList void   )  [inline]
 

Definition at line 125 of file OSGExtraChildrenList.inl.

00126 {
00127 }


Member Function Documentation

UInt32 osg::ExtraChildrenList::addChild const NodePtr pChild  )  [inline]
 

Definition at line 133 of file OSGExtraChildrenList.inl.

References _childrenList.

Referenced by osg::ExtendActorBase::addExtraChild().

00134 {
00135     UInt32 childIndex = _childrenList.size();
00136 
00137     _childrenList.push_back(ChildrenListEntry(pNode));
00138 
00139     return childIndex;
00140 }

UInt32 osg::ExtraChildrenList::addChild const NodePtr pChild,
PriorityType  prio
[inline]
 

Definition at line 143 of file OSGExtraChildrenList.inl.

References _childrenList.

00144 {
00145     UInt32 childIndex = _childrenList.size();
00146 
00147     _childrenList.push_back(ChildrenListEntry(pNode, prio));
00148 
00149     return childIndex;
00150 }

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

Definition at line 156 of file OSGExtraChildrenList.inl.

References _childrenList.

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

00157 {
00158     return _childrenList[childIndex].getNode();
00159 }

ExtraChildrenList::PriorityType osg::ExtraChildrenList::getPriority UInt32  childIndex  )  const [inline]
 

Definition at line 162 of file OSGExtraChildrenList.inl.

References _childrenList.

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

00163 {
00164     return _childrenList[childIndex].getPriority();
00165 }

void osg::ExtraChildrenList::setPriority UInt32  childIndex,
PriorityType  prio
[inline]
 

Definition at line 168 of file OSGExtraChildrenList.inl.

References _childrenList.

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

00169 {
00170     _childrenList[childIndex].setPriority(prio);
00171 }

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

Definition at line 174 of file OSGExtraChildrenList.inl.

References _childrenList.

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

00175 {
00176     return _childrenList[childIndex].getActive();
00177 }

void osg::ExtraChildrenList::setActive UInt32  childIndex,
bool  active
[inline]
 

Definition at line 180 of file OSGExtraChildrenList.inl.

References _childrenList.

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

00181 {
00182     _childrenList[childIndex].setActive(bActive);
00183 }

UInt32 osg::ExtraChildrenList::getSize void   )  const [inline]
 

Definition at line 189 of file OSGExtraChildrenList.inl.

References _childrenList.

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

00190 {
00191     return _childrenList.size();
00192 }

void osg::ExtraChildrenList::clear void   )  [inline]
 

Definition at line 195 of file OSGExtraChildrenList.inl.

References _childrenList.

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

00196 {
00197     _childrenList.clear();
00198 }


Member Data Documentation

* typedef NewActionTypes::PriorityType osg::ExtraChildrenList::PriorityType
 

Definition at line 60 of file OSGExtraChildrenList.h.

InternalChildrenList osg::ExtraChildrenList::_childrenList [private]
 

Definition at line 144 of file OSGExtraChildrenList.h.

Referenced by addChild(), clear(), getActive(), getChild(), getPriority(), getSize(), setActive(), and setPriority().


The documentation for this class was generated from the following files:
Generated on Thu Aug 25 04:28:11 2005 for OpenSG by  doxygen 1.4.3