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

Method objectSampleInterval

src/IECoreScene/LinkedScene.cpp:1009–1030  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1007}
1008
1009double LinkedScene::objectSampleInterval( double time, size_t &floorIndex, size_t &ceilIndex ) const
1010{
1011 if (!m_sampled)
1012 {
1013 throw Exception( "objectSampleInterval not supported: LinkedScene is pointing to a non-sampled scene!" );
1014 }
1015 if ( m_linkedScene )
1016 {
1017 if ( m_timeRemapped )
1018 {
1019 return static_cast<const SampledSceneInterface*>(m_mainScene.get())->attributeSampleInterval( timeLinkAttribute, time, floorIndex, ceilIndex );
1020 }
1021 else
1022 {
1023 return static_cast<const SampledSceneInterface*>(m_linkedScene.get())->objectSampleInterval(time,floorIndex,ceilIndex);
1024 }
1025 }
1026 else
1027 {
1028 return static_cast<const SampledSceneInterface*>(m_mainScene.get())->objectSampleInterval(time,floorIndex,ceilIndex);
1029 }
1030}
1031
1032ConstObjectPtr LinkedScene::readObjectAtSample( size_t sampleIndex, const Canceller *canceller ) const
1033{

Callers

nothing calls this directly

Calls 2

getMethod · 0.45

Tested by

no test coverage detected