HDK
|
#include <dataSourceAttribute.h>
Public Member Functions | |
HD_DECLARE_DATASOURCE (UsdImagingDataSourceAttribute< T >) | |
VtValue | GetValue (HdSampledDataSource::Time shutterOffset) override |
T | GetTypedValue (HdSampledDataSource::Time shutterOffset) override |
bool | GetContributingSampleTimesForInterval (HdSampledDataSource::Time startTime, HdSampledDataSource::Time endTime, std::vector< HdSampledDataSource::Time > *outSampleTimes) override |
![]() | |
HD_DECLARE_DATASOURCE_ABSTRACT (HdTypedSampledDataSource< T >) | |
![]() | |
HD_DECLARE_DATASOURCE_ABSTRACT (HdSampledDataSource) | |
![]() | |
virtual HD_API | ~HdDataSourceBase ()=0 |
Protected Member Functions | |
UsdImagingDataSourceAttribute (const UsdAttribute &usdAttr, const UsdImagingDataSourceStageGlobals &stageGlobals, const SdfPath &sceneIndexPath=SdfPath::EmptyPath(), const HdDataSourceLocator &timeVaryingFlagLocator=HdDataSourceLocator::EmptyLocator()) | |
UsdImagingDataSourceAttribute (const UsdAttributeQuery &usdAttrQuery, const UsdImagingDataSourceStageGlobals &stageGlobals, const SdfPath &sceneIndexPath=SdfPath::EmptyPath(), const HdDataSourceLocator &timeVaryingFlagLocator=HdDataSourceLocator::EmptyLocator()) | |
Constructor override taking an attribute query. More... | |
Protected Attributes | |
UsdAttributeQuery | _usdAttrQuery |
const UsdImagingDataSourceStageGlobals & | _stageGlobals |
Additional Inherited Members | |
![]() | |
using | Type = T |
![]() | |
using | Time = float |
Definition at line 26 of file dataSourceAttribute.h.
|
protected |
Constructors and member data are protected instead of private for use by a specialized subclass for accessing SdfAssetPath attributes which need special handling for UDIMs. Constructs a new UsdImagingDataSourceAttribute for the given usdAttr
stageGlobals
represents the context object for the UsdStage with which to evaluate this attribute data source.
timeVaryingFlagLocator
represents the locator that should be dirtied when time changes, if this attribute is time varying. An empty locator means that this attribute isn't tracked for time varyingness. This is distinct from the attribute name, say, because the attribute name may not correspond to a meaningful Hydra dirty locator. It's the responsibility of whoever is instantiating this data source to know the meaning of this attribute to Hydra.
Note: client code is calling the constructor via static New.
|
protected |
Constructor override taking an attribute query.
|
inlineoverridevirtual |
Fills the outSampleTimes
with the times between startTime
and endTime
that have valid sample data and returns true
.
Implements HdSampledDataSource.
Definition at line 56 of file dataSourceAttribute.h.
|
inlineoverridevirtual |
Returns the extracted T value of the attribute at shutterOffset
Implements HdTypedSampledDataSource< T >.
Definition at line 41 of file dataSourceAttribute.h.
|
inlineoverridevirtual |
Returns the VtValue of this attribute at a given shutterOffset
Implements HdSampledDataSource.
Definition at line 34 of file dataSourceAttribute.h.
UsdImagingDataSourceAttribute< T >::HD_DECLARE_DATASOURCE | ( | UsdImagingDataSourceAttribute< T > | ) |
|
protected |
Definition at line 144 of file dataSourceAttribute.h.
|
protected |
Definition at line 143 of file dataSourceAttribute.h.