Rumba C++ SDK
maquina::AnimCurveFloat::Key Class Reference

An anim curve key. More...

#include <AnimCurve.h>

Classes

class  Tangent
 

Public Member Functions

MAQUINA_EXPORT Key (float frame, float value)
 Construct a key with automatic tangents. More...
 
MAQUINA_EXPORT Key (const Imath::V2f &key)
 Construct a key with automatic tangents. More...
 
MAQUINA_EXPORT Key (const Imath::V2f &key, const Tangent &right)
 Construct a key with the right tangent. More...
 
MAQUINA_EXPORT Key (const Imath::V2f &key, const Tangent &left, const Tangent &right, bool broken_tangents=true, bool selected=false)
 Construct a key with both tangents, set broken_tangents to true. More...
 

Public Attributes

Imath::V2f key
 The key, x is the frame, y the value. More...
 
Tangent left
 The left tangent. More...
 
Tangent right
 The right tangent. More...
 
bool broken_tangents = false
 Broken tangent. More...
 
bool selected = false
 Is the key selected in the curve editor. More...
 

Detailed Description

An anim curve key.

Constructor & Destructor Documentation

◆ Key() [1/4]

MAQUINA_EXPORT maquina::AnimCurveFloat::Key::Key ( float  frame,
float  value 
)

Construct a key with automatic tangents.

◆ Key() [2/4]

MAQUINA_EXPORT maquina::AnimCurveFloat::Key::Key ( const Imath::V2f key)

Construct a key with automatic tangents.

◆ Key() [3/4]

MAQUINA_EXPORT maquina::AnimCurveFloat::Key::Key ( const Imath::V2f key,
const Tangent right 
)

Construct a key with the right tangent.

The left tangent is the inverse of the right one, set broken_tangents to false.

◆ Key() [4/4]

MAQUINA_EXPORT maquina::AnimCurveFloat::Key::Key ( const Imath::V2f key,
const Tangent left,
const Tangent right,
bool  broken_tangents = true,
bool  selected = false 
)

Construct a key with both tangents, set broken_tangents to true.

Member Data Documentation

◆ broken_tangents

bool maquina::AnimCurveFloat::Key::broken_tangents = false

Broken tangent.

◆ key

Imath::V2f maquina::AnimCurveFloat::Key::key

The key, x is the frame, y the value.

◆ left

Tangent maquina::AnimCurveFloat::Key::left

The left tangent.

◆ right

Tangent maquina::AnimCurveFloat::Key::right

The right tangent.

◆ selected

bool maquina::AnimCurveFloat::Key::selected = false

Is the key selected in the curve editor.


The documentation for this class was generated from the following file: