MCPcopy Create free account
hub / github.com/ImageEngine/cortex / recurseLinkLocations

Method recurseLinkLocations

src/IECoreScene/LinkedScene.cpp:1483–1502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1481}
1482
1483void LinkedScene::recurseLinkLocations( PathMatcher &pathMatcher ) const
1484{
1485 SceneInterface::NameList children;
1486 childNames( children );
1487
1488 bool isLinkLocation = hasAttribute( fileNameLinkAttribute ) && hasAttribute( rootLinkAttribute );
1489
1490 if( isLinkLocation )
1491 {
1492 SceneInterface::Path p;
1493 path( p );
1494 pathMatcher.addPath( p );
1495 }
1496
1497 for( const SceneInterface::Name &c : children )
1498 {
1499 ConstSceneInterfacePtr childScene = child( c, SceneInterface::ThrowIfMissing );
1500 runTimeCast<const LinkedScene>( childScene.get() )->recurseLinkLocations( pathMatcher );
1501 }
1502}

Callers

nothing calls this directly

Calls 4

childNamesFunction · 0.85
pathFunction · 0.85
addPathMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected