24 #ifndef PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_PRIMVARS_H 25 #define PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_PRIMVARS_H 27 #include "pxr/usdImaging/usdImaging/dataSourceAttribute.h" 28 #include "pxr/usdImaging/usdImaging/dataSourceStageGlobals.h" 30 #include "pxr/usd/usdGeom/primvar.h" 33 PXR_NAMESPACE_OPEN_SCOPE
48 HdDataSourceBaseHandle
Get(
const TfToken &name)
override;
53 using CustomPrimvarMapping = std::vector<std::pair<TfToken, TfToken>>;
59 const CustomPrimvarMapping &customPrimvarMapping,
74 using _CustomPrimvarsMap = std::map<TfToken, UsdAttributeQuery>;
75 _CustomPrimvarsMap _customPrimvars;
76 using _NamespacedPrimvarsMap = std::map<TfToken, UsdGeomPrimvar>;
77 _NamespacedPrimvarsMap _namespacedPrimvars;
103 HdDataSourceBaseHandle
Get(
const TfToken & name)
override;
112 HdTokenDataSourceHandle interpolation,
113 HdTokenDataSourceHandle role);
119 HdTokenDataSourceHandle _interpolation;
120 HdTokenDataSourceHandle _role;
125 PXR_NAMESPACE_CLOSE_SCOPE
127 #endif // PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_PRIMVARS_H Object for efficiently making repeated queries for attribute values.
A datasource representing structured (named, hierarchical) data, for example a geometric primitive or...
UsdGeomPrimvarsAPI encodes geometric "primitive variables", as UsdGeomPrimvar, which interpolate acro...
HdDataSourceBaseHandle Get(const TfToken &name) override
Returns the child datasource of the given name.
Token for efficient comparison, assignment, and hashing of known strings.
This class is used as a context object with global stage information, that gets passed down to dataso...
std::vector< TfToken > TfTokenVector
Convenience types.
A path value used to locate objects in layers or scenegraphs.
TfTokenVector GetNames() override
Returns the list of names for which Get(...) is expected to return a non-null value.
bool Has(const TfToken &name) override
Returns true if the container has a child datasource of the given name, in which case Get(name) is ex...
Data source representing USD primvars.
A data source representing a primvar.
bool Has(const TfToken &name) override
Returns true if the container has a child datasource of the given name, in which case Get(name) is ex...
HdDataSourceBaseHandle Get(const TfToken &name) override
Returns the child datasource of the given name.
TfTokenVector GetNames() override
Returns the list of names for which Get(...) is expected to return a non-null value.