24 #ifndef PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_GPRIM_H 25 #define PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_GPRIM_H 27 #include "pxr/imaging/hd/dataSource.h" 28 #include "pxr/imaging/hd/dataSourceTypeDefs.h" 30 #include "pxr/usdImaging/usdImaging/dataSourcePrim.h" 31 #include "pxr/usdImaging/usdImaging/dataSourcePrimvars.h" 32 #include "pxr/usdImaging/usdImaging/dataSourceStageGlobals.h" 34 PXR_NAMESPACE_OPEN_SCOPE
59 HdDataSourceBaseHandle
Get(
const TfToken &name)
override;
90 UsdImagingDataSourcePrimvarsAtomicHandle _primvars;
92 UsdImagingDataSourcePrimvars::CustomPrimvarMapping _customPrimvarMapping;
97 PXR_NAMESPACE_CLOSE_SCOPE
99 #endif // PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_GPRIM_H Data source representing a USD gprim.
HdDataSourceBaseHandle Get(const TfToken &name) override
Returns the data source representing name, if valid.
TfTokenVector GetNames() override
Returns the names for which this data source can return meaningful results.
UsdImagingDataSourceGprim(const SdfPath &sceneIndexPath, UsdPrim usdPrim, const UsdImagingDataSourceStageGlobals &stageGlobals)
Use to construct a new UsdImagingDataSourceGprim.
Token for efficient comparison, assignment, and hashing of known strings.
Data source representing a basic USD prim.
This class is used as a context object with global stage information, that gets passed down to dataso...
void _AddCustomPrimvar(const TfToken &primvarName, const TfToken &attrName)
Used by derived classes to add primvars not in the primvars: namespace, e.g.
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
std::vector< TfToken > TfTokenVector
Convenience types.
A path value used to locate objects in layers or scenegraphs.
bool Has(const TfToken &name) override
Returns whether or not this data source can return a meaningful data source for name.