#include <fadeColorMode.h>
Public Member Functions | |
void | execute () |
FadeColorMode (color::rgba color, int priority=0, double freq=0.25, int pulses=0, double timeout=0) | |
std::string | getName () |
Public Member Functions inherited from Mode | |
bool | finished () |
color::rgba | getActualColor () |
color::rgba | getColor () |
double | getFrequency () |
int | getPriority () |
int | getPulses () |
double | getTimeout () |
bool | isRunning () |
Mode (int priority=0, double freq=0, int pulses=0, double timeout=0) | |
void | pause () |
int | pulsed () |
void | setActualColor (color::rgba color) |
void | setColor (color::rgba color) |
void | setFrequency (double freq) |
void | setPriority (int priority) |
void | setPulses (int pulses) |
void | setTimeout (double timeout) |
boost::signals2::signal< void(color::rgba color)> * | signalColorReady () |
boost::signals2::signal< void(std::vector< color::rgba > &colors)> * | signalColorsReady () |
boost::signals2::signal< void(int)> * | signalModeFinished () |
void | start () |
void | stop () |
virtual | ~Mode () |
Private Attributes | |
double | _inc |
bool | doOnce |
float | h |
float | h_s |
float | h_t |
Additional Inherited Members | |
Protected Member Functions inherited from Mode | |
virtual void | run () |
Protected Attributes inherited from Mode | |
color::rgba | _actualColor |
color::rgba | _color |
std::vector< color::rgba > | _colors |
bool | _finished |
double | _freq |
color::rgba | _init_color |
int | _priority |
int | _pulsed |
int | _pulses |
double | _timeout |
boost::signals2::signal< void(color::rgba color)> | m_sigColorReady |
boost::signals2::signal< void(std::vector< color::rgba > &colors)> | m_sigColorsReady |
boost::signals2::signal< void(int)> | m_sigFinished |
Static Protected Attributes inherited from Mode | |
static const unsigned int | UPDATE_RATE_HZ = 100 |
Definition at line 23 of file fadeColorMode.h.
|
inline |
Definition at line 26 of file fadeColorMode.h.
|
inlinevirtual |
Implements Mode.
Definition at line 39 of file fadeColorMode.h.
|
inlinevirtual |
Implements Mode.
Definition at line 76 of file fadeColorMode.h.
|
private |
Definition at line 83 of file fadeColorMode.h.
|
private |
Definition at line 79 of file fadeColorMode.h.
|
private |
Definition at line 80 of file fadeColorMode.h.
|
private |
Definition at line 81 of file fadeColorMode.h.
|
private |
Definition at line 82 of file fadeColorMode.h.