| 568 | } |
| 569 | |
| 570 | double 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 | |
| 593 | double LinkedScene::attributeSampleInterval( const Name &name, double time, size_t &floorIndex, size_t &ceilIndex ) const |
| 594 | { |
no test coverage detected