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

Method readTransformAsMatrix

src/IECoreScene/SampledSceneInterface.cpp:96–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96Imath::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
110ConstObjectPtr SampledSceneInterface::readAttribute( const Name &name, double time ) const
111{

Callers

nothing calls this directly

Calls 5

readTransformFunction · 0.85
typeIdMethod · 0.80
readableMethod · 0.80
getMethod · 0.45
transformMethod · 0.45

Tested by

no test coverage detected