| 295 | } |
| 296 | |
| 297 | Imath::Box3d LinkedScene::readBoundAtSample( size_t sampleIndex ) const |
| 298 | { |
| 299 | if (!m_sampled) |
| 300 | { |
| 301 | throw Exception( "readBoundAtSample not supported: LinkedScene is pointing to a non-sampled scene!" ); |
| 302 | } |
| 303 | if ( m_linkedScene ) |
| 304 | { |
| 305 | if ( m_timeRemapped ) |
| 306 | { |
| 307 | return m_linkedScene->readBound( remappedLinkTimeAtSample(sampleIndex) ); |
| 308 | } |
| 309 | else |
| 310 | { |
| 311 | return static_cast<const SampledSceneInterface*>(m_linkedScene.get())->readBoundAtSample(sampleIndex); |
| 312 | } |
| 313 | } |
| 314 | else |
| 315 | { |
| 316 | return static_cast<const SampledSceneInterface*>(m_mainScene.get())->readBoundAtSample(sampleIndex); |
| 317 | } |
| 318 | } |
| 319 | |
| 320 | Imath::Box3d LinkedScene::readBound( double time ) const |
| 321 | { |