#include <OSGExtraChildrenList.h>
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 |
Definition at line 53 of file OSGExtraChildrenList.h.
Definition at line 60 of file OSGExtraChildrenList.h.
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.
| osg::ExtraChildrenList::ExtraChildrenList | ( | void | ) | [inline] |
| osg::ExtraChildrenList::~ExtraChildrenList | ( | void | ) | [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 }
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 }
Definition at line 144 of file OSGExtraChildrenList.h.
Referenced by addChild(), clear(), getActive(), getChild(), getPriority(), getSize(), setActive(), and setPriority().
1.5.5