#include <sequenceMode.h>
Public Member Functions | |
void | execute () |
std::string | getName () |
SequenceMode (std::vector< seq_t > sequences, int priority=0, double freq=0.25, int pulses=0, double timeout=0) | |
Private Member Functions | |
color::rgba | interpolateColor (color::rgba start, color::rgba goal, float t) |
float | linearInterpolate (float a, float b, float t) |
Private Attributes | |
color::rgba | _color |
bool | _init |
float | _int_count |
float | _int_inc |
std::vector< seq_t > | _seqences |
int | _seqidx |
int | _state |
Definition at line 32 of file sequenceMode.h.
SequenceMode::SequenceMode | ( | std::vector< seq_t > | sequences, |
int | priority = 0 , |
||
double | freq = 0.25 , |
||
int | pulses = 0 , |
||
double | timeout = 0 |
||
) | [inline] |
Definition at line 35 of file sequenceMode.h.
void SequenceMode::execute | ( | ) | [inline, virtual] |
Implements Mode.
Definition at line 42 of file sequenceMode.h.
std::string SequenceMode::getName | ( | ) | [inline, virtual] |
Implements Mode.
Definition at line 99 of file sequenceMode.h.
color::rgba SequenceMode::interpolateColor | ( | color::rgba | start, |
color::rgba | goal, | ||
float | t | ||
) | [inline, private] |
Definition at line 111 of file sequenceMode.h.
float SequenceMode::linearInterpolate | ( | float | a, |
float | b, | ||
float | t | ||
) | [inline, private] |
Definition at line 147 of file sequenceMode.h.
color::rgba SequenceMode::_color [private] |
Reimplemented from Mode.
Definition at line 109 of file sequenceMode.h.
bool SequenceMode::_init [private] |
Definition at line 104 of file sequenceMode.h.
float SequenceMode::_int_count [private] |
Definition at line 106 of file sequenceMode.h.
float SequenceMode::_int_inc [private] |
Definition at line 105 of file sequenceMode.h.
std::vector<seq_t> SequenceMode::_seqences [private] |
Definition at line 102 of file sequenceMode.h.
int SequenceMode::_seqidx [private] |
Definition at line 103 of file sequenceMode.h.
int SequenceMode::_state [private] |
Definition at line 107 of file sequenceMode.h.