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" 39 PXR_NAMESPACE_OPEN_SCOPE
63 HdDataSourceBaseHandle
Get(
const TfToken &name)
override;
110 HdDataSourceBaseHandle
Get(
const TfToken &name)
override;
151 HdSampledDataSource::Time startTime,
152 HdSampledDataSource::Time endTime,
153 std::vector<HdSampledDataSource::Time> *outSampleTimes)
override;
164 const HdVec3fArrayDataSourceHandle &extentAttr,
169 HdVec3fArrayDataSourceHandle _extentAttr;
198 HdDataSourceBaseHandle
Get(
const TfToken &name)
override;
217 HdVec3fArrayDataSourceHandle _extentAttr;
238 bool GetTypedValue(HdSampledDataSource::Time shutterOffset)
override;
243 HdSampledDataSource::Time startTime,
244 HdSampledDataSource::Time endTime,
245 std::vector<HdSampledDataSource::Time> *outSampleTimes)
override {
298 HdSampledDataSource::Time startTime,
299 HdSampledDataSource::Time endTime,
300 std::vector<HdSampledDataSource::Time> *outSampleTimes)
override;
356 HdDataSourceBaseHandle
Get(
const TfToken &name)
override;
403 HdDataSourceBaseHandle
Get(
const TfToken &name)
override;
466 HdDataSourceBaseHandle
Get(
const TfToken &name)
override;
494 const SdfPath &_GetSceneIndexPath()
const {
495 return _sceneIndexPath;
498 const UsdPrim &_GetUsdPrim()
const {
503 return _stageGlobals;
514 PXR_NAMESPACE_CLOSE_SCOPE
516 #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.
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.
static USDIMAGING_API HdDataSourceLocatorSet Invalidate(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.
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.
TfTokenVector GetNames() override
Return attribute names of UsdImagingModelSchema.
Token for efficient comparison, assignment, and hashing of known strings.
Data source representing local prim extent.
USDIMAGING_API bool Has(const TfToken &name) override
Returns whether or not this data source can return a meaningful data source for name.
bool Has(const TfToken &name) override
Returns whether or not this container can return something meaningful for name.
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.
TfTokenVector GetNames() override
Returns the names contained in this data source.
bool Has(const TfToken &name) override
Returns true if name matches an attribute in UsdImagingModelSchema.
bool Has(const TfToken &name) override
Returns whether or not this container can return something meaningful for name.
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 Has(const TfToken &name) override
Returns whether or not this container can return something meaningful for name.
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...
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.