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

A curve key. More...

#include <AnimCurve.h>

Public Member Functions

float time () const
 Returns the key time (in frames) More...
 
void set_time (float t)
 Sets the key time (in frames) More...
 
float as_float () const
 Returns the key value as a float. More...
 
Value value () const
 Returns the key value. More...
 
void set_value (float v)
 Set the key value as a float. More...
 
void set_value (const Value &v)
 Set the key value. More...
 
bool selected () const
 Returns true if the key is selected in the curve editor. More...
 
void set_selected (bool state)
 Set the key selection state. More...
 

Friends

class AnimCurve
 

Detailed Description

A curve key.

Member Function Documentation

◆ as_float()

float maquina::AnimCurve::Key::as_float ( ) const

Returns the key value as a float.

◆ selected()

bool maquina::AnimCurve::Key::selected ( ) const

Returns true if the key is selected in the curve editor.

◆ set_selected()

void maquina::AnimCurve::Key::set_selected ( bool  state)

Set the key selection state.

◆ set_time()

void maquina::AnimCurve::Key::set_time ( float  t)

Sets the key time (in frames)

◆ set_value() [1/2]

void maquina::AnimCurve::Key::set_value ( float  v)

Set the key value as a float.

◆ set_value() [2/2]

void maquina::AnimCurve::Key::set_value ( const Value v)

Set the key value.

◆ time()

float maquina::AnimCurve::Key::time ( ) const

Returns the key time (in frames)

◆ value()

Value maquina::AnimCurve::Key::value ( ) const

Returns the key value.

Friends And Related Function Documentation

◆ AnimCurve

friend class AnimCurve
friend

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