AL_USDMaya  0.16.6
USD to Maya Bridge
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
AttributeType.h
1 #pragma once
2 #include "AL/usdmaya/Common.h"
3 
4 namespace AL {
5 namespace usdmaya {
6 
7 //----------------------------------------------------------------------------------------------------------------------
11 //----------------------------------------------------------------------------------------------------------------------
12 enum class UsdDataType : uint32_t
13 {
14  kBool,
15  kUChar,
16  kInt,
17  kUInt,
18  kInt64,
19  kUInt64,
20  kHalf,
21  kFloat,
22  kDouble,
23  kString,
24  kMatrix2d,
25  kMatrix3d,
26  kMatrix4d,
27  kQuatd,
28  kQuatf,
29  kQuath,
30  kVec2d,
31  kVec2f,
32  kVec2h,
33  kVec2i,
34  kVec3d,
35  kVec3f,
36  kVec3h,
37  kVec3i,
38  kVec4d,
39  kVec4f,
40  kVec4h,
41  kVec4i,
42  kToken,
43  kAsset,
44  kFrame4d,
45  kUnknown
46 };
47 
48 //----------------------------------------------------------------------------------------------------------------------
53 //----------------------------------------------------------------------------------------------------------------------
54 UsdDataType getAttributeType(const UsdAttribute& usdAttr);
55 
56 //----------------------------------------------------------------------------------------------------------------------
61 //----------------------------------------------------------------------------------------------------------------------
62 UsdDataType getAttributeType(const SdfValueTypeName& typeName);
63 
64 //----------------------------------------------------------------------------------------------------------------------
65 } // usdmaya
66 } // AL
67 //----------------------------------------------------------------------------------------------------------------------
UsdDataType
A generalized set of USD attribute types that enable switch statements (instead of the if/else approa...
Definition: AttributeType.h:12
UsdDataType getAttributeType(const SdfValueTypeName &typeName)
A method to quickly return the data type of a USD attribute.