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

Method boundSampleTime

src/IECoreScene/LinkedScene.cpp:251–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251double LinkedScene::boundSampleTime( size_t sampleIndex ) const
252{
253 if (!m_sampled)
254 {
255 throw Exception( "boundSampleTime not supported: LinkedScene is pointing to a non-sampled scene!" );
256 }
257 if ( m_linkedScene )
258 {
259 if ( m_timeRemapped )
260 {
261 return static_cast<const SampledSceneInterface*>(m_mainScene.get())->attributeSampleTime( timeLinkAttribute, sampleIndex );
262 }
263 else
264 {
265 return static_cast<const SampledSceneInterface*>(m_linkedScene.get())->boundSampleTime(sampleIndex);
266 }
267 }
268 else
269 {
270 return static_cast<const SampledSceneInterface*>(m_mainScene.get())->boundSampleTime(sampleIndex);
271 }
272}
273
274double LinkedScene::boundSampleInterval( double time, size_t &floorIndex, size_t &ceilIndex ) const
275{

Callers 1

writeAttributeMethod · 0.45

Calls 2

attributeSampleTimeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected