HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
timeSampleArray.h File Reference
#include "pxr/pxr.h"
#include "pxr/imaging/hd/api.h"
#include "pxr/imaging/hd/version.h"
#include "pxr/base/vt/array.h"
#include "pxr/base/vt/value.h"
#include "pxr/base/gf/math.h"
#include "pxr/base/gf/quatf.h"
#include "pxr/base/tf/diagnostic.h"
#include "pxr/base/tf/smallVector.h"
+ Include dependency graph for timeSampleArray.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  HdTimeSampleArray< TYPE, CAPACITY >
 
struct  HdIndexedTimeSampleArray< TYPE, CAPACITY >
 

Functions

template<typename T >
PXR_NAMESPACE_OPEN_SCOPEHdResampleNeighbors (float alpha, const T &v0, const T &v1)
 Resample two neighboring samples. More...
 
HD_API GfQuatf HdResampleNeighbors (float alpha, const GfQuatf &v0, const GfQuatf &v1)
 Specialization for HdQuatf: spherical linear interpolation. More...
 
template<typename T >
VtArray< T > HdResampleNeighbors (float alpha, const VtArray< T > &v0, const VtArray< T > &v1)
 Specialization for VtArray: component-wise resampling. More...
 
HD_API VtValue HdResampleNeighbors (float alpha, const VtValue &v0, const VtValue &v1)
 Specialization for VtValue: interpolate the held values. More...
 
template<typename T >
HdResampleRawTimeSamples (float u, size_t numSamples, const float *us, const T *vs)
 
template<typename T >
std::pair< T, VtIntArray > HdResampleRawTimeSamples (float u, size_t numSamples, const float *us, const T *vs, const VtIntArray *is)
 
bool HdGetContributingSampleTimesForInterval (size_t count, const float *sampleTimes, float startTime, float endTime, std::vector< float > *outSampleTimes)
 

Function Documentation

bool HdGetContributingSampleTimesForInterval ( size_t  count,
const float sampleTimes,
float  startTime,
float  endTime,
std::vector< float > *  outSampleTimes 
)
template<typename T >
PXR_NAMESPACE_OPEN_SCOPE T HdResampleNeighbors ( float  alpha,
const T &  v0,
const T &  v1 
)
inline

Resample two neighboring samples.

Definition at line 24 of file timeSampleArray.h.

HD_API GfQuatf HdResampleNeighbors ( float  alpha,
const GfQuatf v0,
const GfQuatf v1 
)
inline

Specialization for HdQuatf: spherical linear interpolation.

Definition at line 31 of file timeSampleArray.h.

template<typename T >
VtArray<T> HdResampleNeighbors ( float  alpha,
const VtArray< T > &  v0,
const VtArray< T > &  v1 
)
inline

Specialization for VtArray: component-wise resampling.

Definition at line 40 of file timeSampleArray.h.

HD_API VtValue HdResampleNeighbors ( float  alpha,
const VtValue v0,
const VtValue v1 
)

Specialization for VtValue: interpolate the held values.

template<typename T >
T HdResampleRawTimeSamples ( float  u,
size_t  numSamples,
const float us,
const T *  vs 
)

Resample a function described by an ordered array of samples, using a linear reconstruction filter evaluated at the given parametric position u. The function is considered constant outside the supplied sample range.

Definition at line 60 of file timeSampleArray.h.

template<typename T >
std::pair<T, VtIntArray> HdResampleRawTimeSamples ( float  u,
size_t  numSamples,
const float us,
const T *  vs,
const VtIntArray *  is 
)

Resample a function described by an ordered array of samples and sample indices, using a linear reconstruction filter evaluated at the given parametric position u. The function is considered constant outside the supplied sample range.

Definition at line 105 of file timeSampleArray.h.