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

Method readTransformAsMatrixAtSample

src/IECoreScene/LinkedScene.cpp:438–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436}
437
438Imath::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
461ConstDataPtr LinkedScene::readTransform( double time ) const
462{

Callers

nothing calls this directly

Calls 2

readTransformAsMatrixMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected