HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdIndexedTimeSampleArray< TYPE, CAPACITY > Struct Template Reference

#include <timeSampleArray.h>

+ Inheritance diagram for HdIndexedTimeSampleArray< TYPE, CAPACITY >:

Public Member Functions

 HdIndexedTimeSampleArray ()
 
 HdIndexedTimeSampleArray (const HdIndexedTimeSampleArray &rhs)
 
HdIndexedTimeSampleArrayoperator= (const HdIndexedTimeSampleArray &rhs)
 
void Resize (unsigned int newSize) override
 Resize the internal buffers. More...
 
std::pair< TYPE, VtIntArray > ResampleIndexed (float u) const
 
bool UnboxFrom (HdIndexedTimeSampleArray< VtValue, CAPACITY > const &box)
 
- Public Member Functions inherited from HdTimeSampleArray< TYPE, CAPACITY >
 HdTimeSampleArray ()
 
 HdTimeSampleArray (const HdTimeSampleArray &rhs)
 
HdTimeSampleArrayoperator= (const HdTimeSampleArray &rhs)
 
TYPE Resample (float u) const
 
bool UnboxFrom (HdTimeSampleArray< VtValue, CAPACITY > const &box)
 
bool GetContributingSampleTimesForInterval (const float startTime, const float endTime, std::vector< float > *const outSampleTimes) const
 See HdGetContributingSampleTimesForInterval. More...
 

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 241 of file timeSampleArray.h.

Constructor & Destructor Documentation

template<typename TYPE, unsigned int CAPACITY>
HdIndexedTimeSampleArray< TYPE, CAPACITY >::HdIndexedTimeSampleArray ( )
inline

Definition at line 243 of file timeSampleArray.h.

template<typename TYPE, unsigned int CAPACITY>
HdIndexedTimeSampleArray< TYPE, CAPACITY >::HdIndexedTimeSampleArray ( const HdIndexedTimeSampleArray< TYPE, CAPACITY > &  rhs)
inline

Definition at line 247 of file timeSampleArray.h.

Member Function Documentation

template<typename TYPE, unsigned int CAPACITY>
HdIndexedTimeSampleArray& HdIndexedTimeSampleArray< TYPE, CAPACITY >::operator= ( const HdIndexedTimeSampleArray< TYPE, CAPACITY > &  rhs)
inline

Definition at line 253 of file timeSampleArray.h.

template<typename TYPE, unsigned int CAPACITY>
std::pair<TYPE, VtIntArray> HdIndexedTimeSampleArray< TYPE, CAPACITY >::ResampleIndexed ( float  u) const
inline

Convience method for invoking HdResampleRawTimeSamples on this HdIndexedTimeSampleArray.

Definition at line 269 of file timeSampleArray.h.

template<typename TYPE, unsigned int CAPACITY>
void HdIndexedTimeSampleArray< TYPE, CAPACITY >::Resize ( unsigned int  newSize)
inlineoverridevirtual

Resize the internal buffers.

Reimplemented from HdTimeSampleArray< TYPE, CAPACITY >.

Definition at line 262 of file timeSampleArray.h.

template<typename TYPE, unsigned int CAPACITY>
bool HdIndexedTimeSampleArray< TYPE, CAPACITY >::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 278 of file timeSampleArray.h.

Member Data Documentation

template<typename TYPE, unsigned int CAPACITY>
TfSmallVector<VtIntArray, CAPACITY> HdIndexedTimeSampleArray< TYPE, CAPACITY >::indices

Definition at line 295 of file timeSampleArray.h.


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