| 1177 | } |
| 1178 | |
| 1179 | double LinkedScene::remappedLinkTimeAtSample( size_t sampleIndex ) const |
| 1180 | { |
| 1181 | if( m_mainScene->hasAttribute( timeLinkAttribute ) ) |
| 1182 | { |
| 1183 | ConstDoubleDataPtr t = runTimeCast< const DoubleData >( static_cast<const SampledSceneInterface*>(m_mainScene.get())->readAttributeAtSample( timeLinkAttribute, sampleIndex ) ); |
| 1184 | if ( !t ) |
| 1185 | { |
| 1186 | throw Exception( "Invalid time when querying for time remapping!" ); |
| 1187 | } |
| 1188 | return t->readable(); |
| 1189 | } |
| 1190 | else |
| 1191 | { |
| 1192 | ConstCompoundDataPtr d = runTimeCast< const CompoundData >( static_cast<const SampledSceneInterface*>(m_mainScene.get())->readAttributeAtSample( linkAttribute, sampleIndex ) ); |
| 1193 | if( !d ) |
| 1194 | { |
| 1195 | throw Exception( "Invalid time when querying for time remapping!" ); |
| 1196 | } |
| 1197 | ConstDoubleDataPtr t = d->member<DoubleData>( g_time ); |
| 1198 | if( !t ) |
| 1199 | { |
| 1200 | throw Exception( "Invalid time when querying for time remapping!" ); |
| 1201 | } |
| 1202 | return t->readable(); |
| 1203 | } |
| 1204 | } |
| 1205 | |
| 1206 | SceneInterfacePtr LinkedScene::child( const Name &name, MissingBehaviour missingBehaviour ) |
| 1207 | { |
nothing calls this directly
no test coverage detected