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

Method dataToMatrix

src/IECoreScene/SceneCache.cpp:301–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299 }
300
301 static inline Imath::M44d dataToMatrix( const Data *data )
302 {
303 switch ( data->typeId() )
304 {
305 case M44dDataTypeId:
306 return static_cast< const M44dData * >(data)->readable();
307 case TransformationMatrixdDataTypeId:
308 return static_cast< const TransformationMatrixdData * >(data)->readable().transform();
309 default:
310 throw Exception( "Unsupported transform data type!" );
311 }
312 }
313
314#ifdef _MSC_VER
315 public :

Callers

nothing calls this directly

Calls 3

typeIdMethod · 0.80
readableMethod · 0.80
transformMethod · 0.45

Tested by

no test coverage detected