| 591 | } |
| 592 | |
| 593 | double 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 | |
| 616 | ConstObjectPtr LinkedScene::readAttributeAtSample( const Name &name, size_t sampleIndex ) const |
| 617 | { |
no test coverage detected