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

Method scene

src/IECoreScene/SceneCache.cpp:2610–2634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2608}
2609
2610SceneInterfacePtr SceneCache::scene( const Path &path, MissingBehaviour missingBehaviour )
2611{
2612 if (ReaderImplementation *reader = ReaderImplementation::reader( m_implementation.get(), false ) )
2613 {
2614 ImplementationPtr impl = reader->scene( path, missingBehaviour );
2615 if( !impl )
2616 {
2617 return nullptr;
2618 }
2619
2620 return duplicate( impl );
2621 }
2622 else if (WriterImplementation *writer = WriterImplementation::writer( m_implementation.get(), false ) )
2623 {
2624 ImplementationPtr impl = writer->scene( path, missingBehaviour );
2625 if( !impl )
2626 {
2627 return nullptr;
2628 }
2629
2630 return duplicate( impl );
2631 }
2632
2633 return nullptr;
2634}
2635
2636ConstSceneInterfacePtr SceneCache::scene( const Path &path, SceneCache::MissingBehaviour missingBehaviour ) const
2637{

Callers 5

testMissingSceneMethod · 0.95
testUVsFromFileMethod · 0.95
nonConstSceneFunction · 0.45

Calls 1

getMethod · 0.45

Tested by 2

testMissingSceneMethod · 0.76