AL_USDMaya  0.29.4
USD to Maya Bridge
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
DrivenTransformsData.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/usd/sdf/path.h"
21 #include "pxr/usd/usd/prim.h"
22 
23 #include "AL/usdmaya/nodes/proxy/DrivenTransforms.h"
24 #include "maya/MPxData.h"
25 #include "maya/MVector.h"
26 #include "maya/MMatrix.h"
27 
28 #include <vector>
29 #include <string>
30 #include "AL/usd/utils/ForwardDeclares.h"
31 
32 PXR_NAMESPACE_USING_DIRECTIVE
33 
34 namespace AL {
35 namespace usdmaya {
36 
37 //----------------------------------------------------------------------------------------------------------------------
39 //----------------------------------------------------------------------------------------------------------------------
41  : public MPxData
42 {
43 public:
44 
47 
50 
52  AL_USDMAYA_PUBLIC
53  static void* creator();
54 
56  AL_USDMAYA_PUBLIC
57  static const MTypeId kTypeId;
58 
60  AL_USDMAYA_PUBLIC
61  static const MString kName;
62 
65 
66 private:
67  void copy(const MPxData& data) override;
68 
69 private:
70  MTypeId typeId() const override;
71  MString name() const override;
72 };
73 
74 //----------------------------------------------------------------------------------------------------------------------
75 }// usdmaya
76 } // AL
77 //----------------------------------------------------------------------------------------------------------------------
This class maintains a set of prim paths to transform prims, and a cache of their matrix and visibili...
Definition: DrivenTransforms.h:50
static AL_USDMAYA_PUBLIC const MTypeId kTypeId
the type id of the driven transform data
Definition: DrivenTransformsData.h:57
The driven transform data passed through the DG.
Definition: DrivenTransformsData.h:40
static AL_USDMAYA_PUBLIC const MString kName
the type name of the driven transform data
Definition: DrivenTransformsData.h:61
static AL_USDMAYA_PUBLIC void * creator()
creates an instance of this data object
nodes::proxy::DrivenTransforms m_drivenTransforms
the structure of driven transform
Definition: DrivenTransformsData.h:64