All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
geomModelSchema.h
Go to the documentation of this file.
1//
2// Copyright 2023 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
8
9/* ************************************************************************** */
10/* ** ** */
11/* ** This file is generated by a script. ** */
12/* ** ** */
13/* ** Do not edit it directly (unless it is within a CUSTOM CODE section)! ** */
14/* ** Edit hdSchemaDefs.py instead to make changes. ** */
15/* ** ** */
16/* ************************************************************************** */
17
18#ifndef PXR_USD_IMAGING_USD_IMAGING_GEOM_MODEL_SCHEMA_H
19#define PXR_USD_IMAGING_USD_IMAGING_GEOM_MODEL_SCHEMA_H
20
22
23#include "pxr/usdImaging/usdImaging/api.h"
24
25#include "pxr/imaging/hd/schema.h"
26
27// --(BEGIN CUSTOM CODE: Includes)--
28// --(END CUSTOM CODE: Includes)--
29
30PXR_NAMESPACE_OPEN_SCOPE
31
32// --(BEGIN CUSTOM CODE: Declares)--
33// --(END CUSTOM CODE: Declares)--
34
35#define USD_IMAGING_GEOM_MODEL_SCHEMA_TOKENS \
36 (geomModel) \
37 (drawMode) \
38 (applyDrawMode) \
39 (drawModeColor) \
40 (cardGeometry) \
41 (cardTextureXPos) \
42 (cardTextureYPos) \
43 (cardTextureZPos) \
44 (cardTextureXNeg) \
45 (cardTextureYNeg) \
46 (cardTextureZNeg) \
47 ((default_, "default")) \
48 (origin) \
49 (bounds) \
50 (cards) \
51 (inherited) \
52 (cross) \
53 (box) \
54 (fromTexture) \
55
56TF_DECLARE_PUBLIC_TOKENS(UsdImagingGeomModelSchemaTokens, USDIMAGING_API,
57 USD_IMAGING_GEOM_MODEL_SCHEMA_TOKENS);
58
59//-----------------------------------------------------------------------------
60
61
62class UsdImagingGeomModelSchema : public HdSchema
63{
64public:
67
68 UsdImagingGeomModelSchema(HdContainerDataSourceHandle container)
69 : HdSchema(container) {}
70
76 USDIMAGING_API
77 static UsdImagingGeomModelSchema GetFromParent(
78 const HdContainerDataSourceHandle &fromParentContainer);
79
81
82// --(BEGIN CUSTOM CODE: Schema Methods)--
83// --(END CUSTOM CODE: Schema Methods)--
84
87
88 USDIMAGING_API
89 HdTokenDataSourceHandle GetDrawMode() const;
90
91 USDIMAGING_API
92 HdBoolDataSourceHandle GetApplyDrawMode() const;
93
94 USDIMAGING_API
95 HdVec3fDataSourceHandle GetDrawModeColor() const;
96
97 USDIMAGING_API
98 HdTokenDataSourceHandle GetCardGeometry() const;
99
100 USDIMAGING_API
101 HdAssetPathDataSourceHandle GetCardTextureXPos() const;
102
103 USDIMAGING_API
104 HdAssetPathDataSourceHandle GetCardTextureYPos() const;
105
106 USDIMAGING_API
107 HdAssetPathDataSourceHandle GetCardTextureZPos() const;
108
109 USDIMAGING_API
110 HdAssetPathDataSourceHandle GetCardTextureXNeg() const;
111
112 USDIMAGING_API
113 HdAssetPathDataSourceHandle GetCardTextureYNeg() const;
114
115 USDIMAGING_API
116 HdAssetPathDataSourceHandle GetCardTextureZNeg() const;
117
119
122
125 USDIMAGING_API
126 static const TfToken &GetSchemaToken();
127
130 USDIMAGING_API
131 static const HdDataSourceLocator &GetDefaultLocator();
132
134
143
145 USDIMAGING_API
146 static const HdDataSourceLocator &GetDrawModeLocator();
148
151
159 USDIMAGING_API
160 static HdContainerDataSourceHandle
161 BuildRetained(
162 const HdTokenDataSourceHandle &drawMode,
163 const HdBoolDataSourceHandle &applyDrawMode,
164 const HdVec3fDataSourceHandle &drawModeColor,
165 const HdTokenDataSourceHandle &cardGeometry,
166 const HdAssetPathDataSourceHandle &cardTextureXPos,
167 const HdAssetPathDataSourceHandle &cardTextureYPos,
168 const HdAssetPathDataSourceHandle &cardTextureZPos,
169 const HdAssetPathDataSourceHandle &cardTextureXNeg,
170 const HdAssetPathDataSourceHandle &cardTextureYNeg,
171 const HdAssetPathDataSourceHandle &cardTextureZNeg
172 );
173
181 {
182 public:
183 USDIMAGING_API
184 Builder &SetDrawMode(
185 const HdTokenDataSourceHandle &drawMode);
186 USDIMAGING_API
187 Builder &SetApplyDrawMode(
188 const HdBoolDataSourceHandle &applyDrawMode);
189 USDIMAGING_API
190 Builder &SetDrawModeColor(
191 const HdVec3fDataSourceHandle &drawModeColor);
192 USDIMAGING_API
193 Builder &SetCardGeometry(
194 const HdTokenDataSourceHandle &cardGeometry);
195 USDIMAGING_API
196 Builder &SetCardTextureXPos(
197 const HdAssetPathDataSourceHandle &cardTextureXPos);
198 USDIMAGING_API
199 Builder &SetCardTextureYPos(
200 const HdAssetPathDataSourceHandle &cardTextureYPos);
201 USDIMAGING_API
202 Builder &SetCardTextureZPos(
203 const HdAssetPathDataSourceHandle &cardTextureZPos);
204 USDIMAGING_API
205 Builder &SetCardTextureXNeg(
206 const HdAssetPathDataSourceHandle &cardTextureXNeg);
207 USDIMAGING_API
208 Builder &SetCardTextureYNeg(
209 const HdAssetPathDataSourceHandle &cardTextureYNeg);
210 USDIMAGING_API
211 Builder &SetCardTextureZNeg(
212 const HdAssetPathDataSourceHandle &cardTextureZNeg);
213
215 USDIMAGING_API
216 HdContainerDataSourceHandle Build();
217
218 private:
219 HdTokenDataSourceHandle _drawMode;
220 HdBoolDataSourceHandle _applyDrawMode;
221 HdVec3fDataSourceHandle _drawModeColor;
222 HdTokenDataSourceHandle _cardGeometry;
223 HdAssetPathDataSourceHandle _cardTextureXPos;
224 HdAssetPathDataSourceHandle _cardTextureYPos;
225 HdAssetPathDataSourceHandle _cardTextureZPos;
226 HdAssetPathDataSourceHandle _cardTextureXNeg;
227 HdAssetPathDataSourceHandle _cardTextureYNeg;
228 HdAssetPathDataSourceHandle _cardTextureZNeg;
229
230 };
231
241 USDIMAGING_API
242 static HdTokenDataSourceHandle BuildDrawModeDataSource(
243 const TfToken &drawMode);
244
252 USDIMAGING_API
253 static HdTokenDataSourceHandle BuildCardGeometryDataSource(
254 const TfToken &cardGeometry);
255
257};
258
259PXR_NAMESPACE_CLOSE_SCOPE
260
261#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:26
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
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:81