MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / findElement

Method findElement

COLLADAMaya/src/COLLADAMayaSceneGraph.cpp:541–558  ·  view source on GitHub ↗

--------------------------------------------------------------------

Source from the content-addressed store, hash-verified

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 (

Callers 12

exportLightsMethod · 0.80
exportLightMethod · 0.80
exportAllPhysicsMethod · 0.80
exportControllersMethod · 0.80
exportMorphControllerMethod · 0.80
exportSkinControllerMethod · 0.80
gatherBindMatricesMethod · 0.80
exportCamerasMethod · 0.80
exportGeometriesMethod · 0.80
handleControllersMethod · 0.80
exportLightProbesMethod · 0.80
operator()Method · 0.80

Calls 5

getPathMethod · 0.80
getChildCountMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
getChildMethod · 0.45

Tested by

no test coverage detected