#include <mode.h>
Public Member Functions | |
virtual void | execute ()=0 |
bool | finished () |
color::rgba | getColor () |
double | getFrequency () |
virtual std::string | getName ()=0 |
int | getPriority () |
int | getPulses () |
double | getTimeout () |
Mode (int priority=0, double freq=0, int pulses=0, double timeout=0) | |
int | pulsed () |
void | setColor (color::rgba color) |
void | setFrequency (double freq) |
void | setPriority (int priority) |
void | setPulses (int pulses) |
void | setTimeout (double timeout) |
virtual | ~Mode () |
Protected Attributes | |
color::rgba | _color |
bool | _finished |
double | _freq |
int | _priority |
int | _pulsed |
int | _pulses |
double | _timeout |
boost::signals2::signal< void(color::rgba color)> | m_sigColorReady |
Mode::Mode | ( | int | priority = 0 , |
double | freq = 0 , |
||
int | pulses = 0 , |
||
double | timeout = 0 |
||
) | [inline] |
virtual Mode::~Mode | ( | ) | [inline, virtual] |
virtual void Mode::execute | ( | ) | [pure virtual] |
Implemented in FadeColorMode, FlashMode, StaticMode, BreathColorMode, and BreathMode.
bool Mode::finished | ( | ) | [inline] |
color::rgba Mode::getColor | ( | ) | [inline] |
double Mode::getFrequency | ( | ) | [inline] |
virtual std::string Mode::getName | ( | ) | [pure virtual] |
Implemented in FadeColorMode, BreathColorMode, FlashMode, BreathMode, and StaticMode.
int Mode::getPriority | ( | ) | [inline] |
int Mode::getPulses | ( | ) | [inline] |
double Mode::getTimeout | ( | ) | [inline] |
int Mode::pulsed | ( | ) | [inline] |
void Mode::setColor | ( | color::rgba | color | ) | [inline] |
void Mode::setFrequency | ( | double | freq | ) | [inline] |
void Mode::setPriority | ( | int | priority | ) | [inline] |
void Mode::setPulses | ( | int | pulses | ) | [inline] |
void Mode::setTimeout | ( | double | timeout | ) | [inline] |
color::rgba Mode::_color [protected] |
bool Mode::_finished [protected] |
double Mode::_freq [protected] |
int Mode::_priority [protected] |
int Mode::_pulsed [protected] |
int Mode::_pulses [protected] |
double Mode::_timeout [protected] |
boost::signals2::signal<void (color::rgba color)> Mode::m_sigColorReady [protected] |