| 436 | } |
| 437 | |
| 438 | Imath::M44d LinkedScene::readTransformAsMatrixAtSample( size_t sampleIndex ) const |
| 439 | { |
| 440 | if (!m_sampled) |
| 441 | { |
| 442 | throw Exception( "readTransformAsMatrixAtSample not supported: LinkedScene is pointing to a non-sampled scene!" ); |
| 443 | } |
| 444 | if ( m_linkedScene && !m_atLink ) |
| 445 | { |
| 446 | if ( m_timeRemapped ) |
| 447 | { |
| 448 | return m_linkedScene->readTransformAsMatrix( remappedLinkTimeAtSample(sampleIndex) ); |
| 449 | } |
| 450 | else |
| 451 | { |
| 452 | return static_cast<const SampledSceneInterface*>(m_linkedScene.get())->readTransformAsMatrixAtSample(sampleIndex); |
| 453 | } |
| 454 | } |
| 455 | else |
| 456 | { |
| 457 | return static_cast<const SampledSceneInterface*>(m_mainScene.get())->readTransformAsMatrixAtSample(sampleIndex); |
| 458 | } |
| 459 | } |
| 460 | |
| 461 | ConstDataPtr LinkedScene::readTransform( double time ) const |
| 462 | { |
nothing calls this directly
no test coverage detected