18 #ifndef PXR_USD_IMAGING_USD_IMAGING_MODEL_SCHEMA_H 19 #define PXR_USD_IMAGING_USD_IMAGING_MODEL_SCHEMA_H 23 #include "pxr/usdImaging/usdImaging/api.h" 25 #include "pxr/imaging/hd/schema.h" 30 PXR_NAMESPACE_OPEN_SCOPE
35 #define USD_IMAGING_MODEL_SCHEMA_TOKENS \ 41 ((modelPathPrimvarName, "model:modelPath")) \ 44 USD_IMAGING_MODEL_SCHEMA_TOKENS);
51 class UsdImagingModelSchema :
public HdSchema 57 UsdImagingModelSchema(HdContainerDataSourceHandle container)
66 static UsdImagingModelSchema GetFromParent(
67 const HdContainerDataSourceHandle &fromParentContainer);
78 HdPathDataSourceHandle GetModelPath()
const;
81 HdAssetPathDataSourceHandle GetAssetIdentifier()
const;
84 HdStringDataSourceHandle GetAssetName()
const;
87 HdStringDataSourceHandle GetAssetVersion()
const;
97 static const TfToken &GetSchemaToken();
117 static HdContainerDataSourceHandle
119 const HdPathDataSourceHandle &modelPath,
120 const HdAssetPathDataSourceHandle &assetIdentifier,
121 const HdStringDataSourceHandle &assetName,
122 const HdStringDataSourceHandle &assetVersion
136 const HdPathDataSourceHandle &modelPath);
139 const HdAssetPathDataSourceHandle &assetIdentifier);
142 const HdStringDataSourceHandle &assetName);
145 const HdStringDataSourceHandle &assetVersion);
149 HdContainerDataSourceHandle
Build();
152 HdPathDataSourceHandle _modelPath;
153 HdAssetPathDataSourceHandle _assetIdentifier;
154 HdStringDataSourceHandle _assetName;
155 HdStringDataSourceHandle _assetVersion;
162 PXR_NAMESPACE_CLOSE_SCOPE
Token for efficient comparison, assignment, and hashing of known strings.
Represents an object that can identify the location of a data source.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Schema classes represent a structured view of the inherently unstructured container data source passe...
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.