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

Method transformSampleInterval

src/IECoreScene/LinkedScene.cpp:392–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390}
391
392double LinkedScene::transformSampleInterval( double time, size_t &floorIndex, size_t &ceilIndex ) const
393{
394 if (!m_sampled)
395 {
396 throw Exception( "transformSampleInterval not supported: LinkedScene is pointing to a non-sampled scene!" );
397 }
398 if ( m_linkedScene && !m_atLink )
399 {
400 if ( m_timeRemapped )
401 {
402 return static_cast<const SampledSceneInterface*>(m_mainScene.get())->attributeSampleInterval( timeLinkAttribute, time, floorIndex, ceilIndex );
403 }
404 else
405 {
406 return static_cast<const SampledSceneInterface*>(m_linkedScene.get())->transformSampleInterval(time,floorIndex,ceilIndex);
407 }
408 }
409 else
410 {
411 return static_cast<const SampledSceneInterface*>(m_mainScene.get())->transformSampleInterval(time,floorIndex,ceilIndex);
412 }
413}
414
415ConstDataPtr LinkedScene::readTransformAtSample( size_t sampleIndex ) const
416{

Callers

nothing calls this directly

Calls 2

getMethod · 0.45

Tested by

no test coverage detected