HDK
|
#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"
Go to the source code of this file.
Classes | |
struct | HdTimeSampleArray< TYPE, CAPACITY > |
struct | HdIndexedTimeSampleArray< TYPE, CAPACITY > |
Functions | |
template<typename T > | |
PXR_NAMESPACE_OPEN_SCOPE T | HdResampleNeighbors (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 > | |
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) |
|
inline |
Resample two neighboring samples.
Definition at line 41 of file timeSampleArray.h.
Specialization for HdQuatf: spherical linear interpolation.
Definition at line 48 of file timeSampleArray.h.
|
inline |
Specialization for VtArray: component-wise resampling.
Definition at line 57 of file timeSampleArray.h.
Specialization for VtValue: interpolate the held values.
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 77 of file timeSampleArray.h.
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 122 of file timeSampleArray.h.