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

Method readAttributeAtSample

src/IECoreScene/LinkedScene.cpp:616–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614}
615
616ConstObjectPtr LinkedScene::readAttributeAtSample( const Name &name, size_t sampleIndex ) const
617{
618 if (!m_sampled)
619 {
620 throw Exception( "readAttributeAtSample not supported: LinkedScene is pointing to a non-sampled scene!" );
621 }
622 if ( m_linkedScene && !m_atLink )
623 {
624 if ( m_timeRemapped )
625 {
626 return m_linkedScene->readAttribute( name, remappedLinkTimeAtSample(sampleIndex) );
627 }
628 else
629 {
630 return static_cast<const SampledSceneInterface*>(m_linkedScene.get())->readAttributeAtSample(name,sampleIndex);
631 }
632 }
633 else
634 {
635 return static_cast<const SampledSceneInterface*>(m_mainScene.get())->readAttributeAtSample(name,sampleIndex);
636 }
637}
638
639ConstObjectPtr LinkedScene::readAttribute( const Name &name, double time ) const
640{

Callers 1

Calls 2

readAttributeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected