35 #ifndef IE_COREMAYA_UNITTRAITS_H
36 #define IE_COREMAYA_UNITTRAITS_H
38 #include "maya/MFnUnitAttribute.h"
39 #include "maya/MDistance.h"
40 #include "maya/MAngle.h"
41 #include "maya/MTime.h"
49 typedef void UnitType;
51 static MFnUnitAttribute::Type unitType()
53 return MFnUnitAttribute::kInvalid;
58 struct UnitTraits<MTime>
60 typedef MTime UnitType;
62 static MFnUnitAttribute::Type unitType()
64 return MFnUnitAttribute::kTime;
69 struct UnitTraits<MAngle>
71 typedef MAngle UnitType;
73 static MFnUnitAttribute::Type unitType()
75 return MFnUnitAttribute::kAngle;
80 struct UnitTraits<MDistance>
82 typedef MDistance UnitType;
84 static MFnUnitAttribute::Type unitType()
86 return MFnUnitAttribute::kDistance;
92 #endif // IE_COREMAYA_UNITTRAITS_H
The IECoreMaya namespace holds all the functionality of libIECoreMaya.
Definition: BoolParameterHandler.h:44