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

Method boundSampleInterval

src/IECoreScene/LinkedScene.cpp:274–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274double LinkedScene::boundSampleInterval( double time, size_t &floorIndex, size_t &ceilIndex ) const
275{
276 if (!m_sampled)
277 {
278 throw Exception( "boundSampleInterval not supported: LinkedScene is pointing to a non-sampled scene!" );
279 }
280 if ( m_linkedScene )
281 {
282 if ( m_timeRemapped )
283 {
284 return static_cast<const SampledSceneInterface*>(m_mainScene.get())->attributeSampleInterval( timeLinkAttribute, time, floorIndex, ceilIndex );
285 }
286 else
287 {
288 return static_cast<const SampledSceneInterface*>(m_linkedScene.get())->boundSampleInterval(time,floorIndex,ceilIndex);
289 }
290 }
291 else
292 {
293 return static_cast<const SampledSceneInterface*>(m_mainScene.get())->boundSampleInterval(time,floorIndex,ceilIndex);
294 }
295}
296
297Imath::Box3d LinkedScene::readBoundAtSample( size_t sampleIndex ) const
298{

Callers

nothing calls this directly

Calls 2

getMethod · 0.45

Tested by

no test coverage detected