MCPcopy Create free account
hub / github.com/ImageEngine/cortex / readBoundAtSample

Method readBoundAtSample

src/IECoreScene/LinkedScene.cpp:297–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297Imath::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
320Imath::Box3d LinkedScene::readBound( double time ) const
321{

Callers 2

writeAttributeMethod · 0.45

Calls 2

readBoundMethod · 0.45
getMethod · 0.45

Tested by 1