#include <OSGNewActionBase.h>

Definition at line 63 of file OSGNewActionBase.h.
Definition at line 71 of file OSGNewActionBase.h.
Definition at line 72 of file OSGNewActionBase.h.
Definition at line 73 of file OSGNewActionBase.h.
Definition at line 74 of file OSGNewActionBase.h.
Definition at line 75 of file OSGNewActionBase.h.
typedef std::vector<ExtendActorBase *> osg::NewActionBase::ExtendActorStore [protected] |
Definition at line 155 of file OSGNewActionBase.h.
typedef ExtendActorStore::iterator osg::NewActionBase::ExtendActorStoreIt [protected] |
Definition at line 156 of file OSGNewActionBase.h.
typedef ExtendActorStore::const_iterator osg::NewActionBase::ExtendActorStoreConstIt [protected] |
Definition at line 157 of file OSGNewActionBase.h.
typedef std::vector<BasicActorBase *> osg::NewActionBase::BasicActorStore [protected] |
Definition at line 159 of file OSGNewActionBase.h.
typedef BasicActorStore::iterator osg::NewActionBase::BasicActorStoreIt [protected] |
Definition at line 160 of file OSGNewActionBase.h.
typedef BasicActorStore::const_iterator osg::NewActionBase::BasicActorStoreConstIt [protected] |
Definition at line 161 of file OSGNewActionBase.h.
| NewActionBase::~NewActionBase | ( | void | ) | [virtual] |
| NewActionBase::NewActionBase | ( | void | ) | [protected] |
Definition at line 365 of file OSGNewActionBase.cpp.
00366 : _extendActors ( ), 00367 _basicActors ( ), 00368 #ifdef OSG_NEWACTION_STATISTICS 00369 _pStatistics (NULL ), 00370 _ownStatistics (false ), 00371 #endif /* OSG_NEWACTION_STATISTICS */ 00372 _travMask (TypeTraits<UInt32>::BitsSet), 00373 _numPasses (1 ), 00374 _childrenListEnabled(false ), 00375 _childrenList ( ), 00376 _extraChildrenList ( ) 00377 { 00378 }
| const StatCollector* osg::NewActionBase::getStatistics | ( | void | ) | const [inline] |
Referenced by osg::PriorityAction::beginEditStateEvent(), osg::DepthFirstStateAction::beginEditStateEvent(), osg::PriorityAction::startEvent(), startEvent(), osg::DepthFirstStateAction::startEvent(), osg::PriorityAction::traverseEnter(), osg::DepthFirstStateAction::traverseEnter(), osg::DepthFirstAction::traverseEnter(), osg::DepthFirstStateAction::traverseEnterLeave(), and osg::DepthFirstAction::traverseEnterLeave().
| StatCollector* osg::NewActionBase::getStatistics | ( | void | ) | [inline] |
| void osg::NewActionBase::setStatistics | ( | StatCollector * | pStatistics | ) | [inline] |
Implemented in osg::DepthFirstAction, osg::DepthFirstStateAction, and osg::PriorityAction.
Add an actor to this action, it will be appended to the list of extend or basic actors. Returns the index at which the actor was added.
Definition at line 144 of file OSGNewActionBase.cpp.
References osg::ActorBase::addHelper().
00145 { 00146 return pActor->addHelper(this); 00147 }
| void NewActionBase::subActor | ( | ActorBase * | pActor | ) |
Remove an actor from this action. The actor may now be attached to another action.
Definition at line 159 of file OSGNewActionBase.cpp.
References osg::ActorBase::subHelper().
00160 { 00161 pActor->subHelper(this); 00162 }
Return the index of an actor or TypeTraits<UInt32>::getMax() if the actor can not be found. Note that two actors may have the same index, if one is derived from ExtendActorBase and the other from BasicActorBase.
Definition at line 177 of file OSGNewActionBase.cpp.
References osg::ActorBase::findHelper().
00178 { 00179 return pActor->findHelper(this); 00180 }
| UInt32 NewActionBase::getNumActors | ( | void | ) | const |
Return the total number of actors attached to this action.
Definition at line 186 of file OSGNewActionBase.cpp.
References _basicActors, and _extendActors.
Referenced by addBasicActor(), and addExtendActor().
00187 { 00188 return _extendActors.size() + _basicActors.size(); 00189 }
| UInt32 NewActionBase::addExtendActor | ( | ExtendActorBase * | pActor | ) |
Add an extend actor to this action. Returns the index at which the actor was added.
Definition at line 202 of file OSGNewActionBase.cpp.
References _extendActors.
Referenced by osg::ExtendActorBase::addHelper().
00203 { 00204 return addExtendActor(pActor, _extendActors.size()); 00205 }
| UInt32 NewActionBase::addExtendActor | ( | ExtendActorBase * | pActor, | |
| UInt32 | pos | |||
| ) |
Add an extend actor to this action before the index pos. Returns the index at which the actor was added, i.e. this should be pos.
Definition at line 214 of file OSGNewActionBase.cpp.
References _extendActors, osg::ActorBase::addEvent(), and getNumActors().
00215 { 00216 UInt32 actorId = getNumActors(); 00217 00218 pActor ->addEvent (this, actorId); 00219 _extendActors. insert (_extendActors.begin() + pos, pActor ); 00220 this ->addExtendEvent(pActor, pos ); 00221 00222 return pos; 00223 }
| void NewActionBase::subExtendActor | ( | UInt32 | pos | ) |
Remove the extend actor at index pos. The actor may now be attached to another action.
Definition at line 230 of file OSGNewActionBase.cpp.
References _extendActors, osg::ActorBase::getActorId(), and osg::ActorBase::subEvent().
Referenced by osg::ExtendActorBase::subHelper().
00231 { 00232 ExtendActorStoreIt itActor = _extendActors.begin() + pos; 00233 ExtendActorBase *pActor = *itActor; 00234 00235 this ->subExtendEvent(pActor, pos ); 00236 pActor->subEvent (this, pActor->getActorId()); 00237 00238 _extendActors.erase(itActor); 00239 }
| UInt32 NewActionBase::findExtendActor | ( | ExtendActorBase * | pActor | ) | const |
Return the index of the extend actor or TypeTraits<UInt32>::getMax() if the actor is not found. The return value may be used as the pos argument to the addExtendActor and subExtendActor methods.
Definition at line 247 of file OSGNewActionBase.cpp.
References _extendActors.
Referenced by osg::ExtendActorBase::findHelper(), and osg::ExtendActorBase::subHelper().
00248 { 00249 ExtendActorStoreConstIt itActors = _extendActors.begin(); 00250 ExtendActorStoreConstIt endActors = _extendActors.end (); 00251 00252 UInt32 pos = 0; 00253 bool found = false; 00254 00255 for(; (itActors != endActors) && !found; ++itActors, ++pos) 00256 { 00257 if(*itActors == pActor) 00258 { 00259 found = true; 00260 break; 00261 } 00262 } 00263 00264 return (found ? pos : TypeTraits<UInt32>::getMax()); 00265 }
| UInt32 NewActionBase::getNumExtendActors | ( | void | ) | const |
Return the number of extend actors attached to the action.
Definition at line 271 of file OSGNewActionBase.cpp.
References _extendActors.
00272 { 00273 return _extendActors.size(); 00274 }
| UInt32 NewActionBase::addBasicActor | ( | BasicActorBase * | pActor | ) |
Add an basic actor to this action. Returns the index at which the actor was added.
Definition at line 287 of file OSGNewActionBase.cpp.
References _basicActors.
Referenced by osg::BasicActorBase::addHelper().
00288 { 00289 return addBasicActor(pActor, _basicActors.size()); 00290 }
| UInt32 NewActionBase::addBasicActor | ( | BasicActorBase * | pActor, | |
| UInt32 | pos | |||
| ) |
Add an basic actor to this action before the index pos. Returns the index at which the actor was added, i.e. this should be pos.
Definition at line 299 of file OSGNewActionBase.cpp.
References _basicActors, osg::ActorBase::addEvent(), and getNumActors().
00300 { 00301 UInt32 actorId = getNumActors(); 00302 00303 pActor ->addEvent (this, actorId); 00304 _basicActors. insert (_basicActors.begin() + pos, pActor ); 00305 this ->addBasicEvent(pActor, pos ); 00306 00307 return pos; 00308 }
| void NewActionBase::subBasicActor | ( | UInt32 | pos | ) |
Remove the basic actor at index pos. The actor may now be attached to another action.
Definition at line 315 of file OSGNewActionBase.cpp.
References _basicActors, osg::ActorBase::getActorId(), and osg::ActorBase::subEvent().
Referenced by osg::BasicActorBase::subHelper().
00316 { 00317 BasicActorStoreIt itActor = _basicActors.begin() + pos; 00318 BasicActorBase *pActor = *itActor; 00319 00320 this ->subBasicEvent(pActor, pos ); 00321 pActor->subEvent (this, pActor->getActorId()); 00322 00323 _basicActors.erase(itActor); 00324 }
| UInt32 NewActionBase::findBasicActor | ( | BasicActorBase * | pActor | ) | const |
Return the index of the basic actor or TypeTraits<UInt32>::getMax() if the actor is not found. The return value may be used as the pos argument to the addBasicActor and subBasicActor methods.
Definition at line 332 of file OSGNewActionBase.cpp.
References _basicActors.
Referenced by osg::BasicActorBase::findHelper(), and osg::BasicActorBase::subHelper().
00333 { 00334 BasicActorStoreConstIt itActors = _basicActors.begin(); 00335 BasicActorStoreConstIt endActors = _basicActors.end (); 00336 00337 UInt32 pos = 0; 00338 bool found = false; 00339 00340 for(; (itActors != endActors) && !found; ++itActors, ++pos) 00341 { 00342 if(*itActors == pActor) 00343 { 00344 found = true; 00345 break; 00346 } 00347 } 00348 00349 return (found ? pos : TypeTraits<UInt32>::getMax()); 00350 }
| UInt32 NewActionBase::getNumBasicActors | ( | void | ) | const |
Return the number of basic actors attached to the action.
Definition at line 356 of file OSGNewActionBase.cpp.
References _basicActors.
00357 { 00358 return _basicActors.size(); 00359 }
| UInt32 osg::NewActionBase::getTravMask | ( | void | ) | const [inline] |
Return the traversal mask of this action. The action will only traverse a node if the bitwise AND of its traversal mask with the actions is nonzero.
Definition at line 76 of file OSGNewActionBase.inl.
References _travMask.
Referenced by osg::PriorityAction::enqueueChildren(), osg::DepthFirstStateAction::pushChildren(), and osg::DepthFirstAction::pushChildren().
00077 { 00078 return _travMask; 00079 }
| void osg::NewActionBase::setTravMask | ( | UInt32 | travMask | ) | [inline] |
Set the actions traversal maks. The action will only traverse a node if the bitwise AND of its traversal mask with the actions is nonzero.
Definition at line 86 of file OSGNewActionBase.inl.
References _travMask.
00087 { 00088 _travMask = travMask; 00089 }
| void osg::NewActionBase::addExtendEvent | ( | ExtendActorBase * | pActor, | |
| UInt32 | actorIndex | |||
| ) | [protected, pure virtual] |
This method is called whenever an extend actor is added to the action. It can be used by derived classes to organize the actors more efficiently.
Implemented in osg::DepthFirstAction, osg::DepthFirstStateAction, and osg::PriorityAction.
| void osg::NewActionBase::subExtendEvent | ( | ExtendActorBase * | pActor, | |
| UInt32 | actorIndex | |||
| ) | [protected, pure virtual] |
This method is called whenever an extend actor is removed from the action. It can be used by derived classes to organize the actors more efficiently.
Implemented in osg::DepthFirstAction, osg::DepthFirstStateAction, and osg::PriorityAction.
| void osg::NewActionBase::addBasicEvent | ( | BasicActorBase * | pActor, | |
| UInt32 | actorIndex | |||
| ) | [protected, pure virtual] |
This method is called whenever an basic actor is added to the action. It can be used by derived classes to organize the actors more efficiently.
Implemented in osg::DepthFirstAction, osg::DepthFirstStateAction, and osg::PriorityAction.
| void osg::NewActionBase::subBasicEvent | ( | BasicActorBase * | pActor, | |
| UInt32 | actorIndex | |||
| ) | [protected, pure virtual] |
This method is called whenever an basic actor is removed from the action. It can be used by derived classes to organize the actors more efficiently.
Implemented in osg::DepthFirstAction, osg::DepthFirstStateAction, and osg::PriorityAction.
| void NewActionBase::startEvent | ( | void | ) | [protected, virtual] |
Called before the actors are started. When overriding this method the inherited version must be called.
Reimplemented in osg::DepthFirstStateAction, and osg::PriorityAction.
Definition at line 389 of file OSGNewActionBase.cpp.
References _ownStatistics, _pStatistics, osg::StatCollector::create(), osg::StatCollector::getElem(), getStatistics(), osg::StatElem::reset(), statNodesEnter, and statNodesLeave.
Referenced by osg::DepthFirstAction::apply(), osg::PriorityAction::startEvent(), and osg::DepthFirstStateAction::startEvent().
00390 { 00391 #ifdef OSG_NEWACTION_STATISTICS 00392 if(_pStatistics == NULL) 00393 { 00394 _pStatistics = StatCollector::create(); 00395 _ownStatistics = true; 00396 } 00397 else 00398 { 00399 _ownStatistics = false; 00400 } 00401 00402 getStatistics()->getElem(statNodesEnter)->reset(); 00403 getStatistics()->getElem(statNodesLeave)->reset(); 00404 #endif /* OSG_NEWACTION_STATISTICS */ 00405 }
| void NewActionBase::stopEvent | ( | void | ) | [protected, virtual] |
Called after the actors are stopped. When overriding this method the inherited version must be called.
Reimplemented in osg::DepthFirstStateAction, and osg::PriorityAction.
Definition at line 412 of file OSGNewActionBase.cpp.
References _ownStatistics, and _pStatistics.
Referenced by osg::DepthFirstAction::apply(), osg::PriorityAction::stopEvent(), and osg::DepthFirstStateAction::stopEvent().
00413 { 00414 #ifdef OSG_NEWACTION_STATISTICS 00415 if(_ownStatistics == true) 00416 { 00417 delete _pStatistics; 00418 _pStatistics = NULL; 00419 } 00420 #endif /* OSG_NEWACTION_STATISTICS */ 00421 }
| void osg::NewActionBase::beginEditStateEvent | ( | ActorBase * | pActor, | |
| UInt32 | actorId | |||
| ) | [protected, pure virtual] |
This method is called whenever ActorBase::beginEditState(void) is called, i.e. before an actor is about to modify its state.
Implemented in osg::DepthFirstAction, osg::DepthFirstStateAction, and osg::PriorityAction.
Referenced by osg::ActorBase::beginEditState().
| void osg::NewActionBase::endEditStateEvent | ( | ActorBase * | pActor, | |
| UInt32 | actorId | |||
| ) | [protected, pure virtual] |
This method is called whenever ActorBase::endEditState(void) is called, i.e. after an actor is done modifying its state.
Implemented in osg::DepthFirstAction, osg::DepthFirstStateAction, and osg::PriorityAction.
Referenced by osg::ActorBase::endEditState().
| bool osg::NewActionBase::getChildrenListEnabled | ( | void | ) | const [inline, protected] |
Return if the children list is enabled.
Definition at line 99 of file OSGNewActionBase.inl.
References _childrenListEnabled.
Referenced by osg::PriorityAction::enqueueChildren(), osg::ActorBase::getChildrenListEnabled(), osg::DepthFirstStateAction::pushChildren(), and osg::DepthFirstAction::pushChildren().
00100 { 00101 return _childrenListEnabled; 00102 }
| void osg::NewActionBase::setChildrenListEnabled | ( | bool | enabled | ) | [inline, protected] |
Enable or disable the children list.
Definition at line 115 of file OSGNewActionBase.inl.
References _childrenList, _childrenListEnabled, and osg::ChildrenList::reset().
Referenced by osg::PriorityAction::enqueueChildren(), osg::DepthFirstStateAction::pushChildren(), osg::DepthFirstAction::pushChildren(), and osg::ActorBase::setChildrenListEnabled().
00116 { 00117 if((enabled == true) && (_childrenListEnabled == false)) 00118 { 00119 _childrenList.reset(); 00120 } 00121 00122 _childrenListEnabled = enabled; 00123 }
| const ChildrenList & osg::NewActionBase::getChildrenList | ( | void | ) | const [inline, protected] |
Return a const reference to the children list.
Definition at line 134 of file OSGNewActionBase.inl.
References _childrenList.
Referenced by osg::PriorityAction::enqueueChildren(), osg::ActorBase::getChild(), osg::ActorBase::getChildActive(), osg::ActorBase::getChildPriority(), osg::ActorBase::getNode(), osg::ActorBase::getNumChildren(), osg::DepthFirstStateAction::pushChildren(), osg::DepthFirstAction::pushChildren(), osg::ActorBase::setChildActive(), osg::ActorBase::setChildPriority(), osg::PriorityAction::traverseEnter(), osg::DepthFirstStateAction::traverseEnter(), osg::DepthFirstAction::traverseEnter(), osg::DepthFirstStateAction::traverseEnterLeave(), and osg::DepthFirstAction::traverseEnterLeave().
00135 { 00136 return _childrenList; 00137 }
| ChildrenList & osg::NewActionBase::getChildrenList | ( | void | ) | [inline, protected] |
Return a reference to the children list.
Definition at line 148 of file OSGNewActionBase.inl.
References _childrenList.
00149 { 00150 return _childrenList; 00151 }
| const ExtraChildrenList & osg::NewActionBase::getExtraChildrenList | ( | void | ) | const [inline, protected] |
Return a const reference to the extra children list.
Definition at line 162 of file OSGNewActionBase.inl.
References _extraChildrenList.
Referenced by osg::ExtendActorBase::addExtraChild(), osg::PriorityAction::enqueueChildren(), osg::ActorBase::getExtraChild(), osg::ActorBase::getExtraChildActive(), osg::ActorBase::getExtraChildPriority(), osg::ActorBase::getNumExtraChildren(), osg::DepthFirstStateAction::pushChildren(), osg::DepthFirstAction::pushChildren(), osg::ActorBase::setExtraChildActive(), and osg::ActorBase::setExtraChildPriority().
00163 { 00164 return _extraChildrenList; 00165 }
| ExtraChildrenList & osg::NewActionBase::getExtraChildrenList | ( | void | ) | [inline, protected] |
Return a reference to the children list.
Definition at line 176 of file OSGNewActionBase.inl.
References _extraChildrenList.
00177 { 00178 return _extraChildrenList; 00179 }
| UInt32 osg::NewActionBase::getNumPasses | ( | void | ) | const [inline, protected] |
Definition at line 186 of file OSGNewActionBase.inl.
References _numPasses.
Referenced by osg::ActorBase::getNumPasses(), osg::PriorityAction::traverseEnter(), osg::DepthFirstStateAction::traverseEnter(), osg::DepthFirstAction::traverseEnter(), osg::DepthFirstStateAction::traverseEnterLeave(), and osg::DepthFirstAction::traverseEnterLeave().
00187 { 00188 return _numPasses; 00189 }
| void osg::NewActionBase::setNumPasses | ( | UInt32 | numPasses | ) | [inline, protected] |
Definition at line 192 of file OSGNewActionBase.inl.
References _numPasses.
Referenced by osg::PriorityAction::enqueueChildren(), osg::DepthFirstStateAction::pushChildren(), osg::DepthFirstAction::pushChildren(), and osg::ExtendActorBase::setNumPasses().
00193 { 00194 _numPasses = numPasses; 00195 }
| NewActionBase::ExtendActorStoreConstIt osg::NewActionBase::beginExtend | ( | void | ) | const [inline, protected] |
Return a const iterator to the beginning of the extend actors.
Definition at line 205 of file OSGNewActionBase.inl.
References _extendActors.
Referenced by osg::PriorityAction::addExtendEvent(), osg::DepthFirstStateAction::addExtendEvent(), osg::DepthFirstAction::addExtendEvent(), osg::DepthFirstStateAction::cloneState(), osg::DepthFirstStateAction::decRefCount(), osg::DepthFirstStateAction::getState(), osg::DepthFirstStateAction::setState(), startActors(), and stopActors().
00206 { 00207 return _extendActors.begin(); 00208 }
| NewActionBase::ExtendActorStoreIt osg::NewActionBase::beginExtend | ( | void | ) | [inline, protected] |
Return an iterator to the beginning of the extend actors.
Definition at line 214 of file OSGNewActionBase.inl.
References _extendActors.
00215 { 00216 return _extendActors.begin(); 00217 }
| NewActionBase::ExtendActorStoreConstIt osg::NewActionBase::endExtend | ( | void | ) | const [inline, protected] |
Return a const iterator to the end of the extend actors.
Definition at line 223 of file OSGNewActionBase.inl.
References _extendActors.
Referenced by osg::PriorityAction::cloneState(), osg::DepthFirstStateAction::cloneState(), osg::PriorityAction::decRefCount(), osg::DepthFirstStateAction::decRefCount(), osg::DepthFirstStateAction::enterNode(), osg::DepthFirstAction::enterNode(), osg::DepthFirstStateAction::getState(), osg::DepthFirstStateAction::leaveNode(), osg::DepthFirstAction::leaveNode(), osg::PriorityAction::setState(), osg::DepthFirstStateAction::setState(), startActors(), and stopActors().
00224 { 00225 return _extendActors.end(); 00226 }
| NewActionBase::ExtendActorStoreIt osg::NewActionBase::endExtend | ( | void | ) | [inline, protected] |
Return an iterator to the end of the extend actors.
Definition at line 232 of file OSGNewActionBase.inl.
References _extendActors.
00233 { 00234 return _extendActors.end(); 00235 }
| NewActionBase::BasicActorStoreConstIt osg::NewActionBase::beginBasic | ( | void | ) | const [inline, protected] |
Return a const iterator to the beginning of the basic actors.
Definition at line 241 of file OSGNewActionBase.inl.
References _basicActors.
Referenced by osg::PriorityAction::addBasicEvent(), osg::DepthFirstStateAction::addBasicEvent(), osg::DepthFirstAction::addBasicEvent(), osg::DepthFirstStateAction::cloneState(), osg::DepthFirstStateAction::decRefCount(), osg::PriorityAction::enterNode(), osg::DepthFirstStateAction::getState(), osg::DepthFirstStateAction::setState(), startActors(), and stopActors().
00242 { 00243 return _basicActors.begin(); 00244 }
| NewActionBase::BasicActorStoreIt osg::NewActionBase::beginBasic | ( | void | ) | [inline, protected] |
Return an iterator to the beginning of the basic actors.
Definition at line 250 of file OSGNewActionBase.inl.
References _basicActors.
00251 { 00252 return _basicActors.begin(); 00253 }
| NewActionBase::BasicActorStoreConstIt osg::NewActionBase::endBasic | ( | void | ) | const [inline, protected] |
Return a const iterator to the end of the basic actors.
Definition at line 259 of file OSGNewActionBase.inl.
References _basicActors.
Referenced by osg::PriorityAction::cloneState(), osg::DepthFirstStateAction::cloneState(), osg::PriorityAction::decRefCount(), osg::DepthFirstStateAction::decRefCount(), osg::PriorityAction::enterNode(), osg::DepthFirstStateAction::enterNode(), osg::DepthFirstAction::enterNode(), osg::DepthFirstStateAction::getState(), osg::DepthFirstStateAction::leaveNode(), osg::DepthFirstAction::leaveNode(), osg::DepthFirstStateAction::setState(), startActors(), and stopActors().
00260 { 00261 return _basicActors.end(); 00262 }
| NewActionBase::BasicActorStoreIt osg::NewActionBase::endBasic | ( | void | ) | [inline, protected] |
Return an iterator to the end of the basic actors.
Definition at line 268 of file OSGNewActionBase.inl.
References _basicActors.
00269 { 00270 return _basicActors.end(); 00271 }
| NewActionBase::ResultE NewActionBase::startActors | ( | void | ) | [protected] |
Return a const iterator to the beginning of the extend actors.
Definition at line 428 of file OSGNewActionBase.cpp.
References beginBasic(), beginExtend(), osg::NewActionTypes::Continue, endBasic(), endExtend(), and osg::NewActionTypes::Quit.
Referenced by osg::PriorityAction::apply(), osg::DepthFirstStateAction::apply(), and osg::DepthFirstAction::apply().
00429 { 00430 ResultE result = NewActionTypes::Continue; 00431 00432 ExtendActorStoreIt itExtend = beginExtend(); 00433 ExtendActorStoreIt endItExtend = endExtend (); 00434 00435 for(; (itExtend != endItExtend ) && 00436 !(result & NewActionTypes::Quit); ++itExtend) 00437 { 00438 result = (*itExtend)->start(); 00439 } 00440 00441 BasicActorStoreIt itBasic = beginBasic(); 00442 BasicActorStoreIt endItBasic = endBasic (); 00443 00444 for(; (itBasic != endItBasic ) && 00445 !(result & NewActionTypes::Quit); ++itBasic) 00446 { 00447 result = (*itBasic)->start(); 00448 } 00449 00450 return result; 00451 }
| NewActionBase::ResultE NewActionBase::stopActors | ( | void | ) | [protected] |
Return a const iterator to the beginning of the extend actors.
Definition at line 454 of file OSGNewActionBase.cpp.
References beginBasic(), beginExtend(), osg::NewActionTypes::Continue, endBasic(), endExtend(), and osg::NewActionTypes::Quit.
Referenced by osg::PriorityAction::apply(), osg::DepthFirstStateAction::apply(), and osg::DepthFirstAction::apply().
00455 { 00456 ResultE result = NewActionTypes::Continue; 00457 00458 ExtendActorStoreIt itExtend = beginExtend(); 00459 ExtendActorStoreIt endItExtend = endExtend (); 00460 00461 for(; (itExtend != endItExtend ) && 00462 !(result & NewActionTypes::Quit); ++itExtend) 00463 { 00464 result = (*itExtend)->stop(); 00465 } 00466 00467 BasicActorStoreIt itBasic = beginBasic(); 00468 BasicActorStoreIt endItBasic = endBasic (); 00469 00470 for(; (itBasic != endItBasic ) && 00471 !(result & NewActionTypes::Quit); ++itBasic) 00472 { 00473 result = (*itBasic)->stop(); 00474 } 00475 00476 return result; 00477 }
friend class osg::ActorBase [friend] |
Definition at line 168 of file OSGNewActionBase.h.
friend class osg::ExtendActorBase [friend] |
Definition at line 169 of file OSGNewActionBase.h.
friend class osg::BasicActorBase [friend] |
Definition at line 170 of file OSGNewActionBase.h.
StatElemDesc< StatIntElem > NewActionBase::statNodesEnter [static] |
StatElemDesc< StatIntElem > NewActionBase::statNodesLeave [static] |
Definition at line 84 of file OSGNewActionBase.h.
Referenced by startEvent(), osg::DepthFirstStateAction::traverseEnterLeave(), and osg::DepthFirstAction::traverseEnterLeave().
Definition at line 245 of file OSGNewActionBase.h.
Referenced by addExtendActor(), beginExtend(), endExtend(), findExtendActor(), getNumActors(), getNumExtendActors(), and subExtendActor().
Definition at line 246 of file OSGNewActionBase.h.
Referenced by addBasicActor(), beginBasic(), endBasic(), findBasicActor(), getNumActors(), getNumBasicActors(), and subBasicActor().
StatCollector* osg::NewActionBase::_pStatistics [private] |
bool osg::NewActionBase::_ownStatistics [private] |
UInt32 osg::NewActionBase::_travMask [private] |
UInt32 osg::NewActionBase::_numPasses [private] |
Definition at line 254 of file OSGNewActionBase.h.
Referenced by getNumPasses(), and setNumPasses().
bool osg::NewActionBase::_childrenListEnabled [private] |
Definition at line 256 of file OSGNewActionBase.h.
Referenced by getChildrenListEnabled(), and setChildrenListEnabled().
Definition at line 257 of file OSGNewActionBase.h.
Referenced by getChildrenList(), and setChildrenListEnabled().
1.5.5