Loading...
Searching...
No Matches
geomModelSchema.h
Go to the documentation of this file.
1//
2// Copyright 2023 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//
25
26/* ************************************************************************** */
27/* ** ** */
28/* ** This file is generated by a script. ** */
29/* ** ** */
30/* ** Do not edit it directly (unless it is within a CUSTOM CODE section)! ** */
31/* ** Edit hdSchemaDefs.py instead to make changes. ** */
32/* ** ** */
33/* ************************************************************************** */
34
35#ifndef PXR_USD_IMAGING_USD_IMAGING_GEOM_MODEL_SCHEMA_H
36#define PXR_USD_IMAGING_USD_IMAGING_GEOM_MODEL_SCHEMA_H
37
39
40#include "pxr/usdImaging/usdImaging/api.h"
41
42#include "pxr/imaging/hd/schema.h"
43
44// --(BEGIN CUSTOM CODE: Includes)--
45// --(END CUSTOM CODE: Includes)--
46
47PXR_NAMESPACE_OPEN_SCOPE
48
49// --(BEGIN CUSTOM CODE: Declares)--
50// --(END CUSTOM CODE: Declares)--
51
52#define USD_IMAGING_GEOM_MODEL_SCHEMA_TOKENS \
53 (geomModel) \
54 (drawMode) \
55 (applyDrawMode) \
56 (drawModeColor) \
57 (cardGeometry) \
58 (cardTextureXPos) \
59 (cardTextureYPos) \
60 (cardTextureZPos) \
61 (cardTextureXNeg) \
62 (cardTextureYNeg) \
63 (cardTextureZNeg) \
64 ((default_, "default")) \
65 (origin) \
66 (bounds) \
67 (cards) \
68 (inherited) \
69 (cross) \
70 (box) \
71 (fromTexture) \
72
73TF_DECLARE_PUBLIC_TOKENS(UsdImagingGeomModelSchemaTokens, USDIMAGING_API,
74 USD_IMAGING_GEOM_MODEL_SCHEMA_TOKENS);
75
76//-----------------------------------------------------------------------------
77
78
79class UsdImagingGeomModelSchema : public HdSchema
80{
81public:
84
85 UsdImagingGeomModelSchema(HdContainerDataSourceHandle container)
86 : HdSchema(container) {}
87
93 USDIMAGING_API
94 static UsdImagingGeomModelSchema GetFromParent(
95 const HdContainerDataSourceHandle &fromParentContainer);
96
98
99// --(BEGIN CUSTOM CODE: Schema Methods)--
100// --(END CUSTOM CODE: Schema Methods)--
101
104
105 USDIMAGING_API
106 HdTokenDataSourceHandle GetDrawMode() const;
107
108 USDIMAGING_API
109 HdBoolDataSourceHandle GetApplyDrawMode() const;
110
111 USDIMAGING_API
112 HdVec3fDataSourceHandle GetDrawModeColor() const;
113
114 USDIMAGING_API
115 HdTokenDataSourceHandle GetCardGeometry() const;
116
117 USDIMAGING_API
118 HdAssetPathDataSourceHandle GetCardTextureXPos() const;
119
120 USDIMAGING_API
121 HdAssetPathDataSourceHandle GetCardTextureYPos() const;
122
123 USDIMAGING_API
124 HdAssetPathDataSourceHandle GetCardTextureZPos() const;
125
126 USDIMAGING_API
127 HdAssetPathDataSourceHandle GetCardTextureXNeg() const;
128
129 USDIMAGING_API
130 HdAssetPathDataSourceHandle GetCardTextureYNeg() const;
131
132 USDIMAGING_API
133 HdAssetPathDataSourceHandle GetCardTextureZNeg() const;
134
136
139
142 USDIMAGING_API
143 static const TfToken &GetSchemaToken();
144
147 USDIMAGING_API
148 static const HdDataSourceLocator &GetDefaultLocator();
149
151
160
162 USDIMAGING_API
163 static const HdDataSourceLocator &GetDrawModeLocator();
165
168
176 USDIMAGING_API
177 static HdContainerDataSourceHandle
178 BuildRetained(
179 const HdTokenDataSourceHandle &drawMode,
180 const HdBoolDataSourceHandle &applyDrawMode,
181 const HdVec3fDataSourceHandle &drawModeColor,
182 const HdTokenDataSourceHandle &cardGeometry,
183 const HdAssetPathDataSourceHandle &cardTextureXPos,
184 const HdAssetPathDataSourceHandle &cardTextureYPos,
185 const HdAssetPathDataSourceHandle &cardTextureZPos,
186 const HdAssetPathDataSourceHandle &cardTextureXNeg,
187 const HdAssetPathDataSourceHandle &cardTextureYNeg,
188 const HdAssetPathDataSourceHandle &cardTextureZNeg
189 );
190
198 {
199 public:
200 USDIMAGING_API
201 Builder &SetDrawMode(
202 const HdTokenDataSourceHandle &drawMode);
203 USDIMAGING_API
204 Builder &SetApplyDrawMode(
205 const HdBoolDataSourceHandle &applyDrawMode);
206 USDIMAGING_API
207 Builder &SetDrawModeColor(
208 const HdVec3fDataSourceHandle &drawModeColor);
209 USDIMAGING_API
210 Builder &SetCardGeometry(
211 const HdTokenDataSourceHandle &cardGeometry);
212 USDIMAGING_API
213 Builder &SetCardTextureXPos(
214 const HdAssetPathDataSourceHandle &cardTextureXPos);
215 USDIMAGING_API
216 Builder &SetCardTextureYPos(
217 const HdAssetPathDataSourceHandle &cardTextureYPos);
218 USDIMAGING_API
219 Builder &SetCardTextureZPos(
220 const HdAssetPathDataSourceHandle &cardTextureZPos);
221 USDIMAGING_API
222 Builder &SetCardTextureXNeg(
223 const HdAssetPathDataSourceHandle &cardTextureXNeg);
224 USDIMAGING_API
225 Builder &SetCardTextureYNeg(
226 const HdAssetPathDataSourceHandle &cardTextureYNeg);
227 USDIMAGING_API
228 Builder &SetCardTextureZNeg(
229 const HdAssetPathDataSourceHandle &cardTextureZNeg);
230
232 USDIMAGING_API
233 HdContainerDataSourceHandle Build();
234
235 private:
236 HdTokenDataSourceHandle _drawMode;
237 HdBoolDataSourceHandle _applyDrawMode;
238 HdVec3fDataSourceHandle _drawModeColor;
239 HdTokenDataSourceHandle _cardGeometry;
240 HdAssetPathDataSourceHandle _cardTextureXPos;
241 HdAssetPathDataSourceHandle _cardTextureYPos;
242 HdAssetPathDataSourceHandle _cardTextureZPos;
243 HdAssetPathDataSourceHandle _cardTextureXNeg;
244 HdAssetPathDataSourceHandle _cardTextureYNeg;
245 HdAssetPathDataSourceHandle _cardTextureZNeg;
246
247 };
248
258 USDIMAGING_API
259 static HdTokenDataSourceHandle BuildDrawModeDataSource(
260 const TfToken &drawMode);
261
269 USDIMAGING_API
270 static HdTokenDataSourceHandle BuildCardGeometryDataSource(
271 const TfToken &cardGeometry);
272
274};
275
276PXR_NAMESPACE_CLOSE_SCOPE
277
278#endif
Represents an object that can identify the location of a data source.
Schema classes represent a structured view of the inherently unstructured container data source passe...
Definition: schema.h:43
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:88
Utility class for setting sparse sets of child data source fields to be filled as arguments into Buil...
USDIMAGING_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:98