This class adds a little convenience to setup a gradient for a set of interpolation modes given as MAXON_ATTRIBUTE. For example, a gradient can be configured as such:
using InterpolationNone = decltype(maxonexample::DATATYPE::PORTBUNDLE::GRADIENT::INTERPOLATION_ENUM_NONE);
using InterpolationLinearKnot = decltype(maxonexample::DATATYPE::PORTBUNDLE::GRADIENT::INTERPOLATION_ENUM_LINEARKNOT);
using InterpolationSmoothKnot = decltype(maxonexample::DATATYPE::PORTBUNDLE::GRADIENT::INTERPOLATION_ENUM_SMOOTHKNOT);
using InterpolationBlend = decltype(maxonexample::DATATYPE::PORTBUNDLE::GRADIENT::INTERPOLATION_ENUM_BLEND);
using InterpolationCubicKnot = decltype(maxonexample::DATATYPE::PORTBUNDLE::GRADIENT::INTERPOLATION_ENUM_CUBICKNOT);
using InterpolationCubicBias = decltype(maxonexample::DATATYPE::PORTBUNDLE::GRADIENT::INTERPOLATION_ENUM_CUBICBIAS);
auto GetKnotValue = [&knotValues](
Int index)
{
return knotValues[index];
};
auto GetKnotInterpolationMode = [](
Int index)
{
};
auto GetKnotBias = [](
Int index)
{
};
Definition: gradientmath.h:531
static const UInt InterpolationBlend
Definition: gradientmath.h:220
static const UInt InterpolationNone
Definition: gradientmath.h:217
Result< ValueType > Sample(typename SortedKnotsType::FloatType absolutePosition, const SortedKnotsType &sortedKnots, const GetKnotValueFunc &getKnotValue, const GetKnotInterpolationModeFunc &getKnotInterpolationMode, const GetKnotBiasFunc &getKnotBias) const
Definition: gradientmath.h:405
static const UInt InterpolationSmoothKnot
Definition: gradientmath.h:219
static const UInt InterpolationCubicBias
Definition: gradientmath.h:222
static const UInt InterpolationCubicKnot
Definition: gradientmath.h:221
static const UInt InterpolationLinearKnot
Definition: gradientmath.h:218
Definition: gradientmath.h:57
Result< void > Sort()
Definition: gradientmath.h:177
Result< void > InsertKnot(FloatType position)
Definition: gradientmath.h:88
Int64 Int
signed 32/64 bit int, size depends on the platform
Definition: apibase.h:187
Float64 Float
Definition: apibase.h:196
Col3< Float, 1 > Color
Definition: vector.h:84
#define iferr_return
Definition: resultbase.h:1531
constexpr HashInt GetHashCode() const
Definition: col.h:274