osg::ExtraChildrenList Class Reference

#include <OSGExtraChildrenList.h>

List of all members.

Public Types

Types


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

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
< ChildrenListEntry
InternalChildrenList
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

Definition at line 60 of file OSGExtraChildrenList.h.

Definition at line 61 of file OSGExtraChildrenList.h.

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]

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]

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]

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


Member Data Documentation


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

Generated on Mon Mar 17 12:21:36 2008 for OpenSG by  doxygen 1.5.5