18#ifndef PXR_USD_IMAGING_USD_IMAGING_GEOM_MODEL_SCHEMA_H
19#define PXR_USD_IMAGING_USD_IMAGING_GEOM_MODEL_SCHEMA_H
23#include "pxr/usdImaging/usdImaging/api.h"
25#include "pxr/imaging/hd/schema.h"
30PXR_NAMESPACE_OPEN_SCOPE
35#define USD_IMAGING_GEOM_MODEL_SCHEMA_TOKENS \
47 ((default_, "default")) \
57 USD_IMAGING_GEOM_MODEL_SCHEMA_TOKENS);
62class UsdImagingGeomModelSchema :
public HdSchema
68 UsdImagingGeomModelSchema(HdContainerDataSourceHandle container)
77 static UsdImagingGeomModelSchema GetFromParent(
78 const HdContainerDataSourceHandle &fromParentContainer);
89 HdTokenDataSourceHandle GetDrawMode()
const;
92 HdBoolDataSourceHandle GetApplyDrawMode()
const;
95 HdVec3fDataSourceHandle GetDrawModeColor()
const;
98 HdTokenDataSourceHandle GetCardGeometry()
const;
101 HdAssetPathDataSourceHandle GetCardTextureXPos()
const;
104 HdAssetPathDataSourceHandle GetCardTextureYPos()
const;
107 HdAssetPathDataSourceHandle GetCardTextureZPos()
const;
110 HdAssetPathDataSourceHandle GetCardTextureXNeg()
const;
113 HdAssetPathDataSourceHandle GetCardTextureYNeg()
const;
116 HdAssetPathDataSourceHandle GetCardTextureZNeg()
const;
126 static const TfToken &GetSchemaToken();
160 static HdContainerDataSourceHandle
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
185 const HdTokenDataSourceHandle &drawMode);
188 const HdBoolDataSourceHandle &applyDrawMode);
191 const HdVec3fDataSourceHandle &drawModeColor);
194 const HdTokenDataSourceHandle &cardGeometry);
197 const HdAssetPathDataSourceHandle &cardTextureXPos);
200 const HdAssetPathDataSourceHandle &cardTextureYPos);
203 const HdAssetPathDataSourceHandle &cardTextureZPos);
206 const HdAssetPathDataSourceHandle &cardTextureXNeg);
209 const HdAssetPathDataSourceHandle &cardTextureYNeg);
212 const HdAssetPathDataSourceHandle &cardTextureZNeg);
216 HdContainerDataSourceHandle
Build();
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;
242 static HdTokenDataSourceHandle BuildDrawModeDataSource(
253 static HdTokenDataSourceHandle BuildCardGeometryDataSource(
259PXR_NAMESPACE_CLOSE_SCOPE
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...
Token for efficient comparison, assignment, and hashing of known strings.
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.