18 #ifndef PXR_USD_IMAGING_USD_IMAGING_COLLECTION_MATERIAL_BINDING_SCHEMA_H 19 #define PXR_USD_IMAGING_USD_IMAGING_COLLECTION_MATERIAL_BINDING_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_COLLECTION_MATERIAL_BINDING_SCHEMA_TOKENS \ 36 (collectionMaterialBinding) \ 37 (collectionPrimPath) \ 43 USD_IMAGING_COLLECTION_MATERIAL_BINDING_SCHEMA_TOKENS);
48 class UsdImagingCollectionMaterialBindingSchema :
public HdSchema 54 UsdImagingCollectionMaterialBindingSchema(HdContainerDataSourceHandle container)
63 static UsdImagingCollectionMaterialBindingSchema GetFromParent(
64 const HdContainerDataSourceHandle &fromParentContainer);
75 HdPathDataSourceHandle GetCollectionPrimPath()
const;
78 HdTokenDataSourceHandle GetCollectionName()
const;
81 HdPathDataSourceHandle GetMaterialPath()
const;
84 HdTokenDataSourceHandle GetBindingStrength()
const;
94 static const TfToken &GetSchemaToken();
114 static HdContainerDataSourceHandle
116 const HdPathDataSourceHandle &collectionPrimPath,
117 const HdTokenDataSourceHandle &collectionName,
118 const HdPathDataSourceHandle &materialPath,
119 const HdTokenDataSourceHandle &bindingStrength
132 Builder &SetCollectionPrimPath(
133 const HdPathDataSourceHandle &collectionPrimPath);
136 const HdTokenDataSourceHandle &collectionName);
139 const HdPathDataSourceHandle &materialPath);
142 const HdTokenDataSourceHandle &bindingStrength);
146 HdContainerDataSourceHandle
Build();
149 HdPathDataSourceHandle _collectionPrimPath;
150 HdTokenDataSourceHandle _collectionName;
151 HdPathDataSourceHandle _materialPath;
152 HdTokenDataSourceHandle _bindingStrength;
159 PXR_NAMESPACE_CLOSE_SCOPE
USDIMAGING_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
Utility class for setting sparse sets of child data source fields to be filled as arguments into Buil...
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...