Loading...
Searching...
No Matches
HdIndexedTimeSampleArray< TYPE, CAPACITY > Struct Template Reference

An array of a value and its indices sampled over time, in struct-of-arrays layout. More...

#include <timeSampleArray.h>

+ Inheritance diagram for HdIndexedTimeSampleArray< TYPE, CAPACITY >:

Public Member Functions

 HdIndexedTimeSampleArray (const HdIndexedTimeSampleArray &rhs)
 
HdIndexedTimeSampleArrayoperator= (const HdIndexedTimeSampleArray &rhs)
 
void Resize (unsigned int newSize) override
 Resize the internal buffers.
 
std::pair< TYPE, VtIntArray > ResampleIndexed (float u) const
 Convience method for invoking HdResampleRawTimeSamples on this HdIndexedTimeSampleArray.
 
bool UnboxFrom (HdIndexedTimeSampleArray< VtValue, CAPACITY > const &box)
 Unbox an HdIndexedTimeSampleArray holding boxed VtValue<VtArray<T>> samples into an array holding VtArray<T> samples.
 
- Public Member Functions inherited from HdTimeSampleArray< TYPE, CAPACITY >
 HdTimeSampleArray (const HdTimeSampleArray &rhs)
 
HdTimeSampleArrayoperator= (const HdTimeSampleArray &rhs)
 
virtual void Resize (unsigned int newSize)
 Resize the internal buffers.
 
TYPE Resample (float u) const
 Convience method for invoking HdResampleRawTimeSamples on this HdTimeSampleArray.
 
bool UnboxFrom (HdTimeSampleArray< VtValue, CAPACITY > const &box)
 Unbox an HdTimeSampleArray holding boxed VtValue<VtArray<T>> samples into an array holding VtArray<T> samples.
 

Public Attributes

TfSmallVector< VtIntArray, CAPACITY > indices
 
- Public Attributes inherited from HdTimeSampleArray< TYPE, CAPACITY >
size_t count
 
TfSmallVector< float, CAPACITY > times
 
TfSmallVector< TYPE, CAPACITY > values
 

Detailed Description

template<typename TYPE, unsigned int CAPACITY>
struct HdIndexedTimeSampleArray< TYPE, CAPACITY >

An array of a value and its indices sampled over time, in struct-of-arrays layout.

Definition at line 234 of file timeSampleArray.h.

Constructor & Destructor Documentation

◆ HdIndexedTimeSampleArray() [1/2]

Definition at line 236 of file timeSampleArray.h.

◆ HdIndexedTimeSampleArray() [2/2]

HdIndexedTimeSampleArray ( const HdIndexedTimeSampleArray< TYPE, CAPACITY > &  rhs)
inline

Definition at line 240 of file timeSampleArray.h.

Member Function Documentation

◆ operator=()

HdIndexedTimeSampleArray & operator= ( const HdIndexedTimeSampleArray< TYPE, CAPACITY > &  rhs)
inline

Definition at line 246 of file timeSampleArray.h.

◆ ResampleIndexed()

std::pair< TYPE, VtIntArray > ResampleIndexed ( float  u) const
inline

Convience method for invoking HdResampleRawTimeSamples on this HdIndexedTimeSampleArray.

Definition at line 262 of file timeSampleArray.h.

◆ Resize()

void Resize ( unsigned int  newSize)
inlineoverridevirtual

Resize the internal buffers.

Reimplemented from HdTimeSampleArray< TYPE, CAPACITY >.

Definition at line 255 of file timeSampleArray.h.

◆ UnboxFrom()

bool UnboxFrom ( HdIndexedTimeSampleArray< VtValue, CAPACITY > const &  box)
inline

Unbox an HdIndexedTimeSampleArray holding boxed VtValue<VtArray<T>> samples into an array holding VtArray<T> samples.

If any of the values contain the wrong type, their data is discarded. The function returns true if all samples have the correct type.

Definition at line 271 of file timeSampleArray.h.

Member Data Documentation

◆ indices

TfSmallVector<VtIntArray, CAPACITY> indices

Definition at line 288 of file timeSampleArray.h.


The documentation for this struct was generated from the following file: