| 94 | } |
| 95 | |
| 96 | Imath::M44d SampledSceneInterface::readTransformAsMatrix( double time ) const |
| 97 | { |
| 98 | ConstDataPtr d = readTransform( time ); |
| 99 | switch( d->typeId() ) |
| 100 | { |
| 101 | case M44dDataTypeId : |
| 102 | return static_cast<const M44dData *>( d.get() )->readable(); |
| 103 | case TransformationMatrixdDataTypeId : |
| 104 | return static_cast<const TransformationMatrixdData *>( d.get() )->readable().transform(); |
| 105 | default : |
| 106 | throw Exception( "Unsupported transform data type" ); |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | ConstObjectPtr SampledSceneInterface::readAttribute( const Name &name, double time ) const |
| 111 | { |
nothing calls this directly
no test coverage detected