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

Method attributeSampleInterval

src/IECoreScene/LinkedScene.cpp:593–614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

591}
592
593double LinkedScene::attributeSampleInterval( const Name &name, double time, size_t &floorIndex, size_t &ceilIndex ) const
594{
595 if (!m_sampled)
596 {
597 throw Exception( "attributeSampleInterval not supported: LinkedScene is pointing to a non-sampled scene!" );
598 }
599 if ( m_linkedScene && !m_atLink )
600 {
601 if ( m_timeRemapped )
602 {
603 return static_cast<const SampledSceneInterface*>(m_mainScene.get())->attributeSampleInterval( timeLinkAttribute, time, floorIndex, ceilIndex );
604 }
605 else
606 {
607 return static_cast<const SampledSceneInterface*>(m_linkedScene.get())->attributeSampleInterval(name,time,floorIndex,ceilIndex);
608 }
609 }
610 else
611 {
612 return static_cast<const SampledSceneInterface*>(m_mainScene.get())->attributeSampleInterval(name,time,floorIndex,ceilIndex);
613 }
614}
615
616ConstObjectPtr LinkedScene::readAttributeAtSample( const Name &name, size_t sampleIndex ) const
617{

Callers 3

boundSampleIntervalMethod · 0.45
objectSampleIntervalMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected