#include <splinemapper.h>
This is the interface for the SplineMapper data type. The data is reference-counted and a copy will automatically be created if a non-const function is called.
静态公共成员函数 |
|
static MAXON_METHOD Result < void > | DescribeIO (const DataSerializeInterface &stream) |
私有成员函数 |
|
MAXON_INTERFACE_NONVIRTUAL ( SplineMapperInterface , MAXON_REFERENCE_COPY_ON_WRITE , "net.maxon.interface.splinemapper") |
|
private |
MAXON_METHOD Vector2d GetPoint | ( | Float | positionX | ) | const |
Gets a point from its X coordinate. If out of range, the first or last spline knots will be returned.
[in] | positionX | The X coordinate. |
MAXON_METHOD void GetRange | ( | Vector2d & | min , |
Vector2d & | max | ||
) | const |
MAXON_METHOD void SetRange | ( | const Vector2d & | min , |
const Vector2d & | max | ||
) |
MAXON_METHOD void AdaptRange | ( | const Vector2d & | min , |
const Vector2d & | max | ||
) |
MAXON_METHOD Float GetTension | ( | ) | const |
MAXON_METHOD void SetTension | ( | Float | tension | ) |
MAXON_METHOD Int GetKnotCount | ( | ) | const |
MAXON_METHOD SplineMapperKnot * GetKnot | ( | Int | knotIndex | ) |
MAXON_METHOD Bool SetKnot | ( | Int | knotIndex , |
const SplineMapperKnot & | knot | ||
) |
MAXON_METHOD Bool IsEqual | ( | const SplineMapperInterface * | other , |
EQUALITY | equality | ||
) | const |
Compares this SplineMapper with another if both are identical.
[in] | other | The other SplineMapper to compare this object with. |
MAXON_METHOD HashInt GetHashCode | ( | ) | const |
Returns a hash code for this SplineMapper which depends on the content.
MAXON_METHOD Result <void> InsertKnot | ( | Int | knotIndex , |
const SplineMapperKnot & | knot | ||
) |
Inserts a new knot at index position (0 <= position <= GetCount() ).
[in] | knotIndex | Insert index (the internal array size will increase and if (0 <= position < GetCount() ), the existing elements are moved, but if (position == GetCount() ), then element is appended to the end). |
[in] | knot | The knot to insert |
MAXON_METHOD Result < Int > InsertKnot | ( | Float | x , |
Float | y , | ||
SPLINEMAPPER_KNOT_FLAGS | flags , | ||
Bool | adaptTangents | ||
) |
MAXON_METHOD Result <void> DeleteKnot | ( | Int | knotIndex | ) |
MAXON_METHOD void DeleteAllKnots | ( | ) |
const MAXON_METHOD BaseArray < SplineMapperKnot >& GetKnots | ( | ) | const |
Gets the internal array for read-only operations.
MAXON_METHOD BaseArray < SplineMapperKnot >* GetKnotsRW | ( | ) |
Gets the internal array for read/write operations.
MAXON_METHOD void SortKnots | ( | ) |
Sorts the knots by its position X. Call this when an new knot is added or if a knot postion X has been modified.
MAXON_METHOD Vector2d ClampPosition | ( | const Vector2d & | position | ) | const |
Clamps a position to the defined range (
[in] | position | The position. |
|
static |
Describe all elements of this class for I/O operations.
[in] | stream | The stream that is used to register the class members. |