Changeset 1198 for trunk/Source/System/Action/Base/OSGAction.h
- Timestamp:
- 05/05/08 07:12:19 (3 months ago)
- Files:
-
- trunk/Source/System/Action/Base/OSGAction.h (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Source/System/Action/Base/OSGAction.h
r1177 r1198 71 71 class Action; 72 72 73 ActionBase::ResultE MultiCoreRenderEnter( const NodeCorePtr&pCore,74 Action*action);75 ActionBase::ResultE MultiCoreRenderLeave( const NodeCorePtr&pCore,76 Action*action);73 ActionBase::ResultE MultiCoreRenderEnter(NodeCore * const &pCore, 74 Action *action); 75 ActionBase::ResultE MultiCoreRenderLeave(NodeCore * const &pCore, 76 Action *action); 77 77 78 78 //--------------------------------------------------------------------------- … … 91 91 //----------------------------------------------------------------------- 92 92 93 typedef boost::function<ResultE( const NodeCorePtr,94 Action *)> Functor;95 typedef boost::function<ResultE( const NodePtr,96 Action *)> NodeFunctor;93 typedef boost::function<ResultE(NodeCore * const, 94 Action * )> Functor; 95 typedef boost::function<ResultE(Node * const, 96 Action * )> NodeFunctor; 97 97 98 98 typedef ActionBase::ResultE (NodeCore::*Callback)(Action *); … … 144 144 // application 145 145 146 virtual ResultE apply( std::vector<NodePtr>::iterator begin,147 std::vector<NodePtr>::iterator end );148 149 virtual ResultE apply( const NodePtr node);146 virtual ResultE apply(std::vector<Node *>::iterator begin, 147 std::vector<Node *>::iterator end ); 148 149 virtual ResultE apply(Node * const node); 150 150 151 151 /*------------------------- your_category -------------------------------*/ … … 153 153 // the node being traversed. Might be needed by the traversed core 154 154 155 inline Node PtrgetActNode( void );155 inline Node *getActNode( void ); 156 156 157 157 // the node being traversed. Might be needed by the traversed core … … 159 159 // after the graph traversal 160 160 161 void setActNode( const NodePtrnode);161 void setActNode(Node * const node); 162 162 163 163 /*------------------------- your_category -------------------------------*/ … … 170 170 // you can access a single node by getNode 171 171 172 Node PtrgetNode (int index);172 Node *getNode (int index); 173 173 174 174 // per default all child nodes are traversed. If addNode is called, 175 175 // only the added nodes will be traversed. 176 176 177 void addNode ( const NodePtrnode);177 void addNode (Node * const node); 178 178 179 179 // Common case: going through the children list and picking up some of … … 192 192 193 193 // recurse through the node 194 ResultE recurse( const NodePtrnode);194 ResultE recurse(Node * const node); 195 195 196 196 /*------------------------- comparison ----------------------------------*/ … … 233 233 // call the single node. used for cascading actions 234 234 235 inline ResultE callEnter( const NodeCorePtrcore);236 inline ResultE callLeave( const NodeCorePtrcore);235 inline ResultE callEnter(NodeCore * const core); 236 inline ResultE callLeave(NodeCore * const core); 237 237 238 238 // start/stop functions for the action. … … 256 256 // default function 257 257 258 static ResultE _defaultEnterFunction( const NodeCorePtrnode,259 Action *action);260 static ResultE _defaultLeaveFunction( const NodeCorePtrnode,261 Action *action);258 static ResultE _defaultEnterFunction(NodeCore * const node, 259 Action * action); 260 static ResultE _defaultLeaveFunction(NodeCore * const node, 261 Action * action); 262 262 263 263 // functors … … 272 272 //----------------------------------------------------------------------- 273 273 274 Node Ptr_actNode; // the node being traversed right now275 276 std::vector<Node Ptr> *_actList; // list of active objects for this level274 Node *_actNode; // the node being traversed right now 275 276 std::vector<Node *> *_actList; // list of active objects for this level 277 277 // if empty, use the actNode's children 278 278 279 279 bool _useNewList;// set by clearNodeList 280 std::vector<Node Ptr> _newList; // list of active object for this level280 std::vector<Node *> _newList; // list of active object for this level 281 281 282 282 UInt32 _travMask; … … 346 346 347 347 typedef boost::function< 348 Action::ResultE ( const NodePtr)> TraverseEnterFunctor;348 Action::ResultE (Node * const )> TraverseEnterFunctor; 349 349 typedef boost::function< 350 Action::ResultE ( const NodePtr,351 Action::ResultE)> TraverseLeaveFunctor;350 Action::ResultE (Node * const, 351 Action::ResultE)> TraverseLeaveFunctor; 352 352 353 353 … … 363 363 364 364 OSG_SYSTEM_DLLMAPPING 365 ActionBase::ResultE traverse( const NodePtrroot,365 ActionBase::ResultE traverse( Node * const root, 366 366 TraverseEnterFunctor func); 367 367 OSG_SYSTEM_DLLMAPPING 368 ActionBase::ResultE traverse(const std::vector<Node Ptr> &nodeList,368 ActionBase::ResultE traverse(const std::vector<Node *> &nodeList, 369 369 TraverseEnterFunctor func); 370 370 … … 374 374 375 375 OSG_SYSTEM_DLLMAPPING 376 ActionBase::ResultE traverse( const NodePtrroot,376 ActionBase::ResultE traverse( Node * const root, 377 377 TraverseEnterFunctor enter, 378 378 TraverseLeaveFunctor leave); 379 379 OSG_SYSTEM_DLLMAPPING 380 ActionBase::ResultE traverse(const std::vector<Node Ptr>&nodeList,380 ActionBase::ResultE traverse(const std::vector<Node *> &nodeList, 381 381 TraverseEnterFunctor enter, 382 382 TraverseLeaveFunctor leave);
