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

Method objectSampleTime

src/IECoreScene/LinkedScene.cpp:986–1007  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

984}
985
986double LinkedScene::objectSampleTime( size_t sampleIndex ) const
987{
988 if (!m_sampled)
989 {
990 throw Exception( "objectSampleTime not supported: LinkedScene is pointing to a non-sampled scene!" );
991 }
992 if ( m_linkedScene )
993 {
994 if ( m_timeRemapped )
995 {
996 return static_cast<const SampledSceneInterface*>(m_mainScene.get())->attributeSampleTime( timeLinkAttribute, sampleIndex );
997 }
998 else
999 {
1000 return static_cast<const SampledSceneInterface*>(m_linkedScene.get())->objectSampleTime(sampleIndex);
1001 }
1002 }
1003 else
1004 {
1005 return static_cast<const SampledSceneInterface*>(m_mainScene.get())->objectSampleTime(sampleIndex);
1006 }
1007}
1008
1009double LinkedScene::objectSampleInterval( double time, size_t &floorIndex, size_t &ceilIndex ) const
1010{

Callers

nothing calls this directly

Calls 2

attributeSampleTimeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected