![]() |
|
An HdSampledDataSource that produces exec-computed values. More...
#include <computedDataSource.h>
Inheritance diagram for UsdExecImagingComputedSampledDataSource:Public Member Functions | |
| VtValue | GetValue (Time shutterOffset) override |
Returns the value of this data source at frame-relative time shutterOffset. | |
| bool | GetContributingSampleTimesForInterval (Time startTime, Time endTime, std::vector< Time > *outSampleTimes) override |
Given a shutter window of interest (startTime and endTime relative to the current frame), return a list of sample times for the caller to query with GetValue such that the caller can reconstruct the signal over the shutter window. | |
Public Member Functions inherited from HdSampledDataSource | |
| HD_DECLARE_DATASOURCE_ABSTRACT (HdSampledDataSource) | |
Public Member Functions inherited from HdDataSourceBase | |
Additional Inherited Members | |
Public Types inherited from HdSampledDataSource | |
| using | Time = float |
Protected Member Functions inherited from HdSampledDataSource | |
| virtual HD_API VtValue | _GetDefaultValue () |
An HdSampledDataSource that produces exec-computed values.
The data source produces a computed value by reading it from a UsdExecImagingRequestAccessor specified in the constructor.
Definition at line 61 of file computedDataSource.h.
|
inlineoverridevirtual |
Given a shutter window of interest (startTime and endTime relative to the current frame), return a list of sample times for the caller to query with GetValue such that the caller can reconstruct the signal over the shutter window.
For a sample-based attribute, this might be a list of times when samples are defined. For a procedural scene, this might be a generated distribution. Note that the returned samples don't need to be within startTime and endTime; if a boundary sample is outside of the window, implementers can return it, and callers should expect it and interpolate to startTime or endTime accordingly. If this call returns true, the caller is expected to pass the list of outSampleTimes to GetValue. If this call returns false, this value is uniform across the shutter window and the caller should call GetValue(0) to get that uniform value.
Implements HdSampledDataSource.
Definition at line 73 of file computedDataSource.h.
|
inlineoverridevirtual |
Returns the value of this data source at frame-relative time shutterOffset.
The caller does not track the frame; the scene index producing this datasource is responsible for that, if applicable. Note that, although this call returns a VtValue for each shutter offset, the type of the held value is expected to be the same across all shutter offsets. This call is expected to be threadsafe.
Implements HdSampledDataSource.
Definition at line 69 of file computedDataSource.h.