--------------------------------------------------------------------
| 539 | |
| 540 | // -------------------------------------------------------------------- |
| 541 | SceneElement* SceneGraph::findElement ( const MDagPath& dagPath ) |
| 542 | { |
| 543 | static bool output = false; |
| 544 | for ( SceneElementsList::iterator it = mExportNodesTree.begin(); it != mExportNodesTree.end(); ++it ) |
| 545 | { |
| 546 | SceneElement* sceneElement = *it; |
| 547 | if ( sceneElement->getPath() == dagPath ) return ( sceneElement ); |
| 548 | |
| 549 | // Recursive call for all the child elements |
| 550 | for ( uint i=0; i<sceneElement->getChildCount(); ++i ) |
| 551 | { |
| 552 | SceneElement* childElement = sceneElement->getChild ( i ); |
| 553 | if ( ( childElement = findElement ( dagPath, childElement ) ) != NULL) return childElement; |
| 554 | } |
| 555 | } |
| 556 | |
| 557 | return NULL; |
| 558 | } |
| 559 | |
| 560 | // -------------------------------------------------------------------- |
| 561 | SceneElement* SceneGraph::findElement ( |
no test coverage detected