#include <interpolation.h>
|
MAXON_METHOD const DataType & | GetInterpolateDataType () const |
|
MAXON_METHOD void | InterpolateLinear (void *data1, const void *data2, Float blend) const |
|
MAXON_METHOD void | InterpolateInOutline (void *data, const Block< void * > &outline, const Block< Float > &weights) const |
|
MAXON_METHOD void | Average (void *data, const Block< const void * > &dataSet) const |
|
MAXON_FUNCTION void | InterpolateBilinear (const DataTypePtr dataType, void *data1, const void *data2, const void *data3, const void *data4, Float blendS, Float blendT) const |
|
◆ MAXON_INTERFACE()
◆ GetInterpolateDataType()
Returns the datatype this class manages, e.g. Vector2d32
- Returns
- The datatype.
◆ InterpolateLinear()
MAXON_METHOD void InterpolateLinear |
( |
void * |
data1, |
|
|
const void * |
data2, |
|
|
Float |
blend |
|
) |
| const |
Interpolates linearly between two data values. Both addresses must be cast to the appropriate datatype.
- Parameters
-
[in,out] | data1 | The address of the first value. The value will be overwritten with the result. |
[in] | data2 | The address of the second value. |
[in] | blend | The blend percentage [0.0..blend..1.0] |
◆ InterpolateInOutline()
Interpolates a value in the polygon outline using given weights. The addresses in data and outline need to be cast to the appropriate datatype.
- Parameters
-
[in,out] | data | The address of the value. The value will be overwritten with the result. |
[in] | outline | The outline data used to perform the interpolation. |
[in] | weights | Weights to use for the interpolation; represent the interpolation distance from each outline edge. |
◆ Average()
MAXON_METHOD void Average |
( |
void * |
data, |
|
|
const Block< const void * > & |
dataSet |
|
) |
| const |
Averages values in dataSet and stores the result under the specified data pointer.
- Parameters
-
[in,out] | data | The resulting data pointer to be filled. The caller owns the memory. |
[in] | dataSet | The data set to average. |
◆ InterpolateBilinear()
MAXON_FUNCTION void InterpolateBilinear |
( |
const DataTypePtr |
dataType, |
|
|
void * |
data1, |
|
|
const void * |
data2, |
|
|
const void * |
data3, |
|
|
const void * |
data4, |
|
|
Float |
blendS, |
|
|
Float |
blendT |
|
) |
| const |
Interpolates bilinearly between four data values. All addresses must be cast to the appropriate datatype.
- Parameters
-
[in,out] | data1 | The address of the first value. The value will be overwritten with the result. |
[in] | data2 | The address of the second value. |
[in] | data3 | The address of the third value. |
[in] | data4 | The address of the fourth value. |
[in] | blendS | The first blend percentage [0.0..blend..1.0]. Interpolation Scheme [data1 .. blendS .. data2] and [data4 .. blendS .. data3]. |
[in] | blendT | The second blend percentage [0.0..blend..1.0]. Interpolation Scheme [blendS1 .. blendT .. blendS2] |
◆ GetInterpolationClass()
Return the interpolation class for the passed data type if exist.
- Parameters
-
- Returns
- The interpolation class or an empty class if do not exist.