All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PRM_Shared.h
Go to the documentation of this file.
1 //
2 // Copyright 2017 Pixar
3 //
4 // Licensed under the Apache License, Version 2.0 (the "Apache License")
5 // with the following modification; you may not use this file except in
6 // compliance with the Apache License and the following modification to it:
7 // Section 6. Trademarks. is deleted and replaced with:
8 //
9 // 6. Trademarks. This License does not grant permission to use the trade
10 // names, trademarks, service marks, or product names of the Licensor
11 // and its affiliates, except as required to comply with Section 4(c) of
12 // the License and to reproduce the content of the NOTICE file.
13 //
14 // You may obtain a copy of the Apache License at
15 //
16 // http://www.apache.org/licenses/LICENSE-2.0
17 //
18 // Unless required by applicable law or agreed to in writing, software
19 // distributed under the Apache License with the above modification is
20 // distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21 // KIND, either express or implied. See the Apache License for the specific
22 // language governing permissions and limitations under the Apache License.
23 //
28 #ifndef __GUSD_PRM_SHARED_H__
29 #define __GUSD_PRM_SHARED_H__
30 
31 #include "pxr/pxr.h"
32 
33 #include "gusd/api.h"
34 
35 #include <PRM/PRM_Include.h>
36 #include <PRM/PRM_SpareData.h>
37 
38 PXR_NAMESPACE_OPEN_SCOPE
39 
42 {
43 public:
44  GUSD_API
46 
47  struct Components
48  {
49  Components();
50 
52  UT_String filePattern;
53 
58  PRM_SpareData usdFileROData;
59  PRM_SpareData usdFileRWData;
60  PRM_SpareData usdFileWOData;
63  PRM_Name filePathName;
65  PRM_Name primPathName;
74  PRM_ChoiceList primMenu;
75 
78  PRM_ChoiceList multiPrimMenu;
79 
85  PRM_ChoiceList primAttrMenu;
86 
88  PRM_SpareData fileParm;
89 
92  PRM_SpareData primAttrData;
93 
95  PRM_ChoiceList typesMenu;
96 
98  PRM_ChoiceList modelKindsMenu;
99 
101  PRM_ChoiceList purposesMenu;
102 
103  PRM_Default pathAttrDefault;
104  PRM_Default primPathAttrDefault;
105  PRM_Default variantsAttrDefault;
106  };
107 
108  Components* operator->() const { return &_components; }
109  Components& operator*() const { return _components; }
110 
111 private:
112  Components& _components;
113 };
114 
115 PXR_NAMESPACE_CLOSE_SCOPE
116 
117 #endif /* __GUSD_PRM_PRMSHARED_H__ */
Common PRM data for USD.
Definition: PRM_Shared.h:41