AL_USDMaya  0.29.4
USD to Maya Bridge
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Layer.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 #include <AL/usdmaya/ForwardDeclares.h>
18 #include "AL/maya/utils/NodeHelper.h"
19 #include "AL/maya/utils/MayaHelperMacros.h"
20 #include "AL/usdmaya/utils/ForwardDeclares.h"
21 #include "pxr/pxr.h"
22 #include "pxr/usd/usd/stage.h"
23 #include "maya/MPxLocatorNode.h"
24 #include <map>
25 #include <set>
26 
27 
28 PXR_NAMESPACE_USING_DIRECTIVE
29 
30 namespace AL {
31 namespace usdmaya {
32 namespace nodes {
33 
34 
35 //----------------------------------------------------------------------------------------------------------------------
38 //----------------------------------------------------------------------------------------------------------------------
39 class Layer
40  : public MPxNode,
41  public AL::maya::utils::NodeHelper
42 {
43 public:
44 
46  inline Layer()
47  : MPxNode(), NodeHelper() {}
48 
49  //--------------------------------------------------------------------------------------------------------------------
51  //--------------------------------------------------------------------------------------------------------------------
53 
54  //--------------------------------------------------------------------------------------------------------------------
56  //--------------------------------------------------------------------------------------------------------------------
57 
58  AL_DECL_ATTRIBUTE(comment);
59  AL_DECL_ATTRIBUTE(defaultPrim);
60  AL_DECL_ATTRIBUTE(documentation);
61  AL_DECL_ATTRIBUTE(startTime);
62  AL_DECL_ATTRIBUTE(endTime);
63  AL_DECL_ATTRIBUTE(timeCodesPerSecond);
64  AL_DECL_ATTRIBUTE(framePrecision);
65  AL_DECL_ATTRIBUTE(owner);
66  AL_DECL_ATTRIBUTE(sessionOwner);
67  AL_DECL_ATTRIBUTE(permissionToEdit);
68  AL_DECL_ATTRIBUTE(permissionToSave);
69  AL_DECL_ATTRIBUTE(proxyShape);
70  AL_DECL_ATTRIBUTE(subLayers);
71  AL_DECL_ATTRIBUTE(childLayers);
72  AL_DECL_ATTRIBUTE(parentLayer);
73 
74  // read only identification
75  AL_DECL_ATTRIBUTE(displayName);
76  AL_DECL_ATTRIBUTE(realPath);
77  AL_DECL_ATTRIBUTE(fileExtension);
78  AL_DECL_ATTRIBUTE(version);
79  AL_DECL_ATTRIBUTE(repositoryPath);
80  AL_DECL_ATTRIBUTE(assetName);
81 
82  // attribute to store the serialised layer (used for file IO only)
83  AL_DECL_ATTRIBUTE(serialized);
84  AL_DECL_ATTRIBUTE(nameOnLoad);
85  AL_DECL_ATTRIBUTE(hasBeenEditTarget);
86 
87 private:
88 
92 
96 
100 
104 
108 
112 
116 
120 
124 
128 
132 
136 
140 
144 
148 
152 
156 
160 
164 
168 
172 
176 
180 
184 
188 
192 
196 
200 
204 
208 
212 
216 
220 
224 
228 
232 
236 
240 
244 
248 
252 
256 
260 
264 
268 
272 
276 
280 };
281 
282 //----------------------------------------------------------------------------------------------------------------------
283 } // nodes
284 } // usdmaya
285 } // AL
286 //----------------------------------------------------------------------------------------------------------------------
287 
Layer()
ctor
Definition: Layer.h:46
AL_MAYA_DECLARE_NODE()
Type Info & Registration.
AL_DECL_ATTRIBUTE(comment)
Type Info & Registration.
The layer node stores a reference to an SdfLayer. Obsolete. LayerManager now used instead...
Definition: Layer.h:39