AL_USDMaya  0.16.6
USD to Maya Bridge
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
TransformOperation.h
1 #pragma once
2 #include "AL/usdmaya/Common.h"
3 
4 #include "pxr/usd/usdGeom/xformCommonAPI.h"
5 
6 #include <string>
7 #include <vector>
8 
9 namespace AL {
10 namespace usdmaya {
11 
12 //----------------------------------------------------------------------------------------------------------------------
15 //----------------------------------------------------------------------------------------------------------------------
16 enum TransformOperation : uint8_t
17 {
18  kTranslate = 0,
19  kPivot,
20  kRotatePivotTranslate,
21  kRotatePivot,
22  kRotate,
23  kRotateAxis,
24  kRotatePivotInv,
25  kScalePivotTranslate,
26  kScalePivot,
27  kShear,
28  kScale,
29  kScalePivotInv,
30  kPivotInv,
31  kTransform,
32  kUnknownOp
33 };
34 
35 //----------------------------------------------------------------------------------------------------------------------
40 //----------------------------------------------------------------------------------------------------------------------
41 TransformOperation xformOpToEnum(const std::string& opName);
42 
43 //----------------------------------------------------------------------------------------------------------------------
51 //----------------------------------------------------------------------------------------------------------------------
53  std::vector<UsdGeomXformOp>::const_iterator it,
54  std::vector<UsdGeomXformOp>::const_iterator end,
55  std::vector<TransformOperation>::iterator output);
56 
57 //----------------------------------------------------------------------------------------------------------------------
58 } // usdmaya
59 } // AL
60 //----------------------------------------------------------------------------------------------------------------------
bool matchesMayaProfile(std::vector< UsdGeomXformOp >::const_iterator it, std::vector< UsdGeomXformOp >::const_iterator end, std::vector< TransformOperation >::iterator output)
a function to check to see if the incoming transform operations are compatible with the maya transfor...
TransformOperation
An enum describing the type of transformation found in a UsdGeomXformOp.
Definition: TransformOperation.h:16
TransformOperation xformOpToEnum(const std::string &opName)
Convert the textual name of a transformation operation into an easier to handle enum value...