7#ifndef PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_PRIMVARS_H
8#define PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_PRIMVARS_H
10#include "pxr/usdImaging/usdImaging/dataSourceAttribute.h"
11#include "pxr/usdImaging/usdImaging/dataSourceStageGlobals.h"
13#include "pxr/usd/usdGeom/primvar.h"
16PXR_NAMESPACE_OPEN_SCOPE
30 HdDataSourceBaseHandle
Get(
const TfToken &name)
override;
57 HD_DECLARE_DATASOURCE(UsdImagingDataSourceCustomPrimvars);
63 HdDataSourceBaseHandle
Get(
const TfToken &name)
override;
70 : primvarName(primvarName)
71 , usdAttrName(usdAttrName)
72 , interpolation(interpolation)
83 using Mappings = std::vector<Mapping>;
88 const Mappings &mappings);
91 UsdImagingDataSourceCustomPrimvars(
94 const Mappings &mappings,
105 const Mappings _mappings;
108HD_DECLARE_DATASOURCE_HANDLES(UsdImagingDataSourceCustomPrimvars);
139 HdTokenDataSourceHandle interpolation,
140 HdTokenDataSourceHandle role,
141 HdIntDataSourceHandle elementSize =
nullptr);
147 HdTokenDataSourceHandle _interpolation;
148 HdTokenDataSourceHandle _role;
149 HdIntDataSourceHandle _elementSize;
154PXR_NAMESPACE_CLOSE_SCOPE
A datasource representing structured (named, hierarchical) data, for example a geometric primitive or...
virtual TfTokenVector GetNames()=0
Returns the list of names for which Get(...) is expected to return a non-null value.
virtual HdDataSourceBaseHandle Get(const TfToken &name)=0
Returns the child datasource of the given name.
Represents a set of data source locators closed under descendancy.
A path value used to locate objects in layers or scenegraphs.
Token for efficient comparison, assignment, and hashing of known strings.
Object for efficiently making repeated queries for attribute values.
A data source representing a primvar.
TfTokenVector GetNames() override
Returns the list of names for which Get(...) is expected to return a non-null value.
HdDataSourceBaseHandle Get(const TfToken &name) override
Returns the child datasource of the given name.
Data source representing USD primvars.
TfTokenVector GetNames() override
Returns the list of names for which Get(...) is expected to return a non-null value.
HdDataSourceBaseHandle Get(const TfToken &name) override
Returns the child datasource of the given name.
This class is used as a context object with global stage information, that gets passed down to dataso...
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
std::vector< TfToken > TfTokenVector
Convenience types.