| 614 | } |
| 615 | |
| 616 | ConstObjectPtr 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 | |
| 639 | ConstObjectPtr LinkedScene::readAttribute( const Name &name, double time ) const |
| 640 | { |
no test coverage detected