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

Method setNames

src/IECoreScene/SceneCache.cpp:2457–2472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2455}
2456
2457SceneInterface::NameList SceneCache::setNames( bool includeDescendantSets ) const
2458{
2459 ReaderImplementation *reader = ReaderImplementation::reader( m_implementation.get() );
2460
2461 SceneInterface::NameList names;
2462 // read the old style tags
2463 readTags( names, SceneInterface::LocalTag | SceneInterface::DescendantTag );
2464
2465 SceneInterface::NameList setNames = reader->setNames( includeDescendantSets );
2466
2467 names.insert( names.end(), setNames.begin(), setNames.end() );
2468
2469 // ensure our set names are unique
2470 std::sort( names.begin(), names.end() );
2471 return NameList( names.begin(), std::unique( names.begin(), names.end() ) );
2472}
2473
2474IECore::PathMatcher SceneCache::readSet( const Name &name, bool includeDescendantSets, const Canceller *canceller ) const
2475{

Callers 6

testSetsMethod · 0.45
testSetsMethod · 0.45
handleLocationFunction · 0.45
setNamesFunction · 0.45

Calls 5

readTagsFunction · 0.85
insertMethod · 0.80
getMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by 4

testSetsMethod · 0.36
testSetsMethod · 0.36