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

Method attributeSampleTime

src/IECoreScene/LinkedScene.cpp:570–591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

568}
569
570double LinkedScene::attributeSampleTime( const Name &name, size_t sampleIndex ) const
571{
572 if (!m_sampled)
573 {
574 throw Exception( "attributeSampleTime not supported: LinkedScene is pointing to a non-sampled scene!" );
575 }
576 if ( m_linkedScene && !m_atLink )
577 {
578 if ( m_timeRemapped )
579 {
580 return static_cast<const SampledSceneInterface*>(m_mainScene.get())->attributeSampleTime( timeLinkAttribute, sampleIndex );
581 }
582 else
583 {
584 return static_cast<const SampledSceneInterface*>(m_linkedScene.get())->attributeSampleTime(name, sampleIndex);
585 }
586 }
587 else
588 {
589 return static_cast<const SampledSceneInterface*>(m_mainScene.get())->attributeSampleTime(name, sampleIndex);
590 }
591}
592
593double LinkedScene::attributeSampleInterval( const Name &name, double time, size_t &floorIndex, size_t &ceilIndex ) const
594{

Callers 3

boundSampleTimeMethod · 0.45
transformSampleTimeMethod · 0.45
objectSampleTimeMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected