SplineMapperKnot Struct Reference

#include <splinemapper.h>

详细描述

Represents a generator point in a spline .

公共成员函数

Bool   operator== (const SplineMapperKnot &k) const
Bool   operator!= (const SplineMapperKnot &k) const
HashInt   GetHashCode () const

静态公共成员函数

static Result < void >  DescribeIO (const DataSerializeInterface &stream)

Public Attributes

Vector2d   position
SPLINEMAPPER_KNOT_INTERPOLATION_TYPE   interpolation
Vector2d   tangentLeft
Vector2d   tangentRight
SPLINEMAPPER_KNOT_FLAGS   flags

成员函数文档编制

◆  operator==()

Bool operator== ( const SplineMapperKnot k ) const

Equality operator. Checks if two knots are equal.

参数
[in] k A spline knot.
返回
true if the knots are equal, otherwise false .

◆  operator!=()

Bool operator!= ( const SplineMapperKnot k ) const

Inequality operator. Checks if two knots are not equal.

参数
[in] k A spline knot.
返回
true if the knots are not equal, otherwise false .

◆  GetHashCode()

HashInt GetHashCode ( ) const

◆  DescribeIO()

static Result <void> DescribeIO ( const DataSerializeInterface stream )
static

Describe all elements of this class for I/O operations.

参数
[in] stream The stream that is used to register the class members.
返回
OK on success.

Member Data Documentation

◆  position

Vector2d position

Position. To make sure position of new/modified knots are inside spline range (.

另请参阅
SplineMapper::GetRange(). SplineMapper::SetRange()) , use SplineMapper::ClampPosition().

◆  interpolation

SPLINEMAPPER_KNOT_INTERPOLATION_TYPE interpolation

Interpolation.

◆  tangentLeft

Vector2d tangentLeft

Left Tangent . Used only with Bezier interpolation type. Ignored by first point.

◆  tangentRight

Vector2d tangentRight

Right Tangent . Used only with Bezier interpolation type. Ignored by last point.

◆  flags

SPLINEMAPPER_KNOT_FLAGS flags
注意
Flag settings for Bezier interpolation.
另请参阅
SPLINEMAPPER_KNOT_FLAGS flags must be accessed using |= and &=. Also contains the point ID.
The point ID must only be retrieved using the helpers SPLINE_KNOT_GET_ID() and SPLINE_KNOT_SET_ID()