AL_USDMaya  0.29.4
USD to Maya Bridge
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
TransformOperation.h
1 //
2 // Copyright 2017 Animal Logic
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.//
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16 #pragma once
17 
18 #include "./Api.h"
19 
20 #include "pxr/pxr.h"
21 #include "pxr/usd/usdGeom/xformCommonAPI.h"
22 
23 #include <string>
24 #include <vector>
25 #include "AL/usd/utils/ForwardDeclares.h"
26 
27 PXR_NAMESPACE_USING_DIRECTIVE
28 
29 namespace AL {
30 namespace usdmaya {
31 
32 //----------------------------------------------------------------------------------------------------------------------
35 //----------------------------------------------------------------------------------------------------------------------
36 enum TransformOperation : uint8_t
37 {
38  kTranslate = 0,
39  kPivot,
40  kRotatePivotTranslate,
41  kRotatePivot,
42  kRotate,
43  kRotateAxis,
44  kRotatePivotInv,
45  kScalePivotTranslate,
46  kScalePivot,
47  kShear,
48  kScale,
49  kScalePivotInv,
50  kPivotInv,
51  kTransform,
52  kUnknownOp
53 };
54 
55 //----------------------------------------------------------------------------------------------------------------------
60 //----------------------------------------------------------------------------------------------------------------------
61 AL_USDMAYA_PUBLIC
62 TransformOperation xformOpToEnum(const std::string& opName);
63 
64 //----------------------------------------------------------------------------------------------------------------------
72 //----------------------------------------------------------------------------------------------------------------------
73 AL_USDMAYA_PUBLIC
75  std::vector<UsdGeomXformOp>::const_iterator it,
76  std::vector<UsdGeomXformOp>::const_iterator end,
77  std::vector<TransformOperation>::iterator output);
78 
79 //----------------------------------------------------------------------------------------------------------------------
80 } // usdmaya
81 } // AL
82 //----------------------------------------------------------------------------------------------------------------------
TransformOperation
An enum describing the type of transformation found in a UsdGeomXformOp.
Definition: TransformOperation.h:36
AL_USDMAYA_PUBLIC TransformOperation xformOpToEnum(const std::string &opName)
Convert the textual name of a transformation operation into an easier to handle enum value...
AL_USDMAYA_PUBLIC 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...