24 #ifndef PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_PRIM_H 25 #define PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_PRIM_H 27 #include "pxr/imaging/hd/dataSource.h" 28 #include "pxr/imaging/hd/dataSourceTypeDefs.h" 36 #include "pxr/usdImaging/usdImaging/api.h" 37 #include "pxr/usdImaging/usdImaging/dataSourceStageGlobals.h" 38 #include "pxr/usdImaging/usdImaging/dataSourcePrimvars.h" 40 PXR_NAMESPACE_OPEN_SCOPE
58 HdDataSourceBaseHandle
Get(
const TfToken &name)
override;
99 HdDataSourceBaseHandle
Get(
const TfToken &name)
override;
140 HdSampledDataSource::Time startTime,
141 HdSampledDataSource::Time endTime,
142 std::vector<HdSampledDataSource::Time> *outSampleTimes)
override;
153 const HdVec3fArrayDataSourceHandle &extentAttr,
158 HdVec3fArrayDataSourceHandle _extentAttr;
181 HdDataSourceBaseHandle
Get(
const TfToken &name)
override;
200 HdVec3fArrayDataSourceHandle _extentAttr;
221 bool GetTypedValue(HdSampledDataSource::Time shutterOffset)
override;
226 HdSampledDataSource::Time startTime,
227 HdSampledDataSource::Time endTime,
228 std::vector<HdSampledDataSource::Time> *outSampleTimes)
override {
281 HdSampledDataSource::Time startTime,
282 HdSampledDataSource::Time endTime,
283 std::vector<HdSampledDataSource::Time> *outSampleTimes)
override;
332 HdDataSourceBaseHandle
Get(
const TfToken &name)
override;
375 HdDataSourceBaseHandle
Get(
const TfToken &name)
override;
415 HdDataSourceBaseHandle
Get(
const TfToken &name)
override;
459 HdDataSourceBaseHandle
Get(
const TfToken &name)
override;
489 const SdfPath &_GetSceneIndexPath()
const {
490 return _sceneIndexPath;
493 const UsdPrim &_GetUsdPrim()
const {
498 return _stageGlobals;
506 UsdImagingDataSourcePrimvarsAtomicHandle _primvars;
511 PXR_NAMESPACE_CLOSE_SCOPE
513 #endif // PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_PRIM_H UsdGeomModelAPI extends the generic UsdModelAPI schema with geometry specific concepts such as cached...
Object for efficiently making repeated queries for attribute values.
TfTokenVector GetNames() override
Returns the list of names for which Get(...) is expected to return a non-null value.
A datasource representing structured (named, hierarchical) data, for example a geometric primitive or...
HdDataSourceBaseHandle Get(const TfToken &name) override
Returns the data source for the given 'name'.
Data source representing model API for a USD prim.
TfTokenVector GetNames() override
Returns the names contained in this data source.
HdDataSourceBaseHandle Get(const TfToken &name) override
Returns data authored on USD prim (without resolving inherited) for attribute names of UsdImagingMode...
Data source representing prim purpose for a USD imageable.
Data source to access the underlying UsdPrim.
TfTokenVector GetNames() override
Return attribute names of UsdImagingModelSchema.
Token for efficient comparison, assignment, and hashing of known strings.
Data source representing local prim extent.
Data source representing a basic USD prim.
Stores a 4x4 matrix of double elements.
This class is used as a context object with global stage information, that gets passed down to dataso...
A datasource representing a concretely-typed sampled value.
Represents a set of data source locators closed under descendancy.
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.
USDIMAGING_API TfTokenVector GetNames() override
Returns the names for which this data source can return meaningful results.
static USDIMAGING_API HdDataSourceLocatorSet Invalidate(UsdPrim const &prim, const TfToken &subprim, const TfTokenVector &properties)
Returns the hydra attribute set we should invalidate if the value of the USD properties in properties...
TfTokenVector GetNames() override
Returns the names contained in this data source.
USDIMAGING_API UsdImagingDataSourcePrim(const SdfPath &sceneIndexPath, UsdPrim usdPrim, const UsdImagingDataSourceStageGlobals &stageGlobals)
Use to construct a new UsdImagingDataSourcePrim.
VtValue GetValue(HdSampledDataSource::Time shutterOffset) override
Returns VtValue at a given shutterOffset for the value of this flag.
USDIMAGING_API HdDataSourceBaseHandle Get(const TfToken &name) override
Returns the data source representing name, if valid.
HdDataSourceBaseHandle Get(const TfToken &name) override
Returns the data source for the given 'name'.
Data source representing prim visibility for a USD imageable.
Basic type for a vector of 3 double components.
bool GetContributingSampleTimesForInterval(HdSampledDataSource::Time startTime, HdSampledDataSource::Time endTime, std::vector< HdSampledDataSource::Time > *outSampleTimes) override
Fills the outSampleTimes with the times between startTime and endTime that have valid sample data and...
HdDataSourceBaseHandle Get(const TfToken &name) override
Get(UsdImagingTokens->usdPrim) returns a data source containing the underyling UsdPrim.
Data source representing either the minimum or maximum of the local prim extent.
HdDataSourceBaseHandle Get(const TfToken &name) override
Returns the data source for the given 'name'.
GfVec3d GetTypedValue(HdSampledDataSource::Time shutterOffset) override
Returns bool at a given shutterOffset for the value of this flag.
Provides a container which may hold any type, and provides introspection and iteration over array typ...
TfTokenVector GetNames() override
Returns the names contained in this datasource.