| 984 | } |
| 985 | |
| 986 | double LinkedScene::objectSampleTime( size_t sampleIndex ) const |
| 987 | { |
| 988 | if (!m_sampled) |
| 989 | { |
| 990 | throw Exception( "objectSampleTime not supported: LinkedScene is pointing to a non-sampled scene!" ); |
| 991 | } |
| 992 | if ( m_linkedScene ) |
| 993 | { |
| 994 | if ( m_timeRemapped ) |
| 995 | { |
| 996 | return static_cast<const SampledSceneInterface*>(m_mainScene.get())->attributeSampleTime( timeLinkAttribute, sampleIndex ); |
| 997 | } |
| 998 | else |
| 999 | { |
| 1000 | return static_cast<const SampledSceneInterface*>(m_linkedScene.get())->objectSampleTime(sampleIndex); |
| 1001 | } |
| 1002 | } |
| 1003 | else |
| 1004 | { |
| 1005 | return static_cast<const SampledSceneInterface*>(m_mainScene.get())->objectSampleTime(sampleIndex); |
| 1006 | } |
| 1007 | } |
| 1008 | |
| 1009 | double LinkedScene::objectSampleInterval( double time, size_t &floorIndex, size_t &ceilIndex ) const |
| 1010 | { |
nothing calls this directly
no test coverage detected