![]() |
An array of a value sampled over time, in struct-of-arrays layout. More...
Inheritance diagram for HdTimeSampleArray< TYPE, CAPACITY >:Public Member Functions | |
| HdTimeSampleArray (const HdTimeSampleArray &rhs) | |
| HdTimeSampleArray & | operator= (const HdTimeSampleArray &rhs) |
| virtual void | Resize (unsigned int newSize) |
| Resize the internal buffers. More... | |
| TYPE | Resample (float u) const |
| Convience method for invoking HdResampleRawTimeSamples on this HdTimeSampleArray. More... | |
| void | UnboxFrom (HdTimeSampleArray< VtValue, CAPACITY > const &box) |
| Unbox an HdTimeSampleArray holding boxed VtValue<VtArray<T>> samples into an array holding VtArray<T> samples. More... | |
Public Attributes | |
| size_t | count |
| TfSmallVector< float, CAPACITY > | times |
| TfSmallVector< TYPE, CAPACITY > | values |
An array of a value sampled over time, in struct-of-arrays layout.
This is provided as a convenience for time-sampling attributes. This type has static capacity but dynamic size, providing a limited ability to handle variable sampling without requiring heap allocation.
Definition at line 172 of file timeSampleArray.h.
|
inline |
Convience method for invoking HdResampleRawTimeSamples on this HdTimeSampleArray.
Definition at line 202 of file timeSampleArray.h.
|
inlinevirtual |
Resize the internal buffers.
Reimplemented in HdIndexedTimeSampleArray< TYPE, CAPACITY >.
Definition at line 194 of file timeSampleArray.h.
|
inline |
Unbox an HdTimeSampleArray holding boxed VtValue<VtArray<T>> samples into an array holding VtArray<T> samples.
Similar to VtValue::Get(), this will issue a coding error if the VtValue is not holding the expected type.
Definition at line 213 of file timeSampleArray.h.