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" 39 #include "pxr/usdImaging/usdImaging/types.h" 41 PXR_NAMESPACE_OPEN_SCOPE
59 HdDataSourceBaseHandle
Get(
const TfToken &name)
override;
100 HdDataSourceBaseHandle
Get(
const TfToken &name)
override;
141 HdSampledDataSource::Time startTime,
142 HdSampledDataSource::Time endTime,
143 std::vector<HdSampledDataSource::Time> *outSampleTimes)
override;
154 const HdVec3fArrayDataSourceHandle &extentDs,
159 HdVec3fArrayDataSourceHandle _extentDs;
182 HdDataSourceBaseHandle
Get(
const TfToken &name)
override;
201 HdVec3fArrayDataSourceHandle _extentDs;
222 HdDataSourceBaseHandle
GetElement(
size_t element)
override;
241 HdVec3fArrayDataSourceHandle _extentDs;
262 bool GetTypedValue(HdSampledDataSource::Time shutterOffset)
override;
267 HdSampledDataSource::Time startTime,
268 HdSampledDataSource::Time endTime,
269 std::vector<HdSampledDataSource::Time> *outSampleTimes)
override {
322 HdSampledDataSource::Time startTime,
323 HdSampledDataSource::Time endTime,
324 std::vector<HdSampledDataSource::Time> *outSampleTimes)
override;
373 HdDataSourceBaseHandle
Get(
const TfToken &name)
override;
416 HdDataSourceBaseHandle
Get(
const TfToken &name)
override;
456 HdDataSourceBaseHandle
Get(
const TfToken &name)
override;
500 HdDataSourceBaseHandle
Get(
const TfToken &name)
override;
509 UsdImagingPropertyInvalidationType invalidationType);
531 const SdfPath &_GetSceneIndexPath()
const {
532 return _sceneIndexPath;
535 const UsdPrim &_GetUsdPrim()
const {
540 return _stageGlobals;
551 PXR_NAMESPACE_CLOSE_SCOPE
553 #endif // PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_PRIM_H A datasource representing indexed data.
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...
size_t GetNumElements() override
Returns number of vec3 pairs authored on extentsHint.
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.
static USDIMAGING_API HdDataSourceLocatorSet Invalidate(UsdPrim const &prim, const TfToken &subprim, const TfTokenVector &properties, UsdImagingPropertyInvalidationType invalidationType)
Returns the hydra attribute set we should invalidate if the value of the USD properties in properties...
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 ...
Data source representing extents hint of a model API prim.
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.
TfTokenVector GetNames() override
Returns the names contained in this data source.
HdDataSourceBaseHandle GetElement(size_t element) override
Returns i-th pair of vec3 authored on extentsHint as extent schema.
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.