#include <mode.h>
Definition at line 26 of file mode.h.
Mode::Mode |
( |
int |
priority = 0 , |
|
|
double |
freq = 0 , |
|
|
int |
pulses = 0 , |
|
|
double |
timeout = 0 |
|
) |
| |
|
inline |
virtual void Mode::execute |
( |
| ) |
|
|
pure virtual |
Implemented in XMasMode, DistApproxMode, SweepColorMode, SequenceMode, CircleColorMode, FadeColorMode, FlashMode, GlowColorMode, BreathColorMode, BreathMode, and StaticMode.
double Mode::getFrequency |
( |
| ) |
|
|
inline |
virtual std::string Mode::getName |
( |
| ) |
|
|
pure virtual |
Implemented in DistApproxMode, SequenceMode, XMasMode, SweepColorMode, FadeColorMode, GlowColorMode, BreathColorMode, FlashMode, CircleColorMode, BreathMode, and StaticMode.
int Mode::getPriority |
( |
| ) |
|
|
inline |
double Mode::getTimeout |
( |
| ) |
|
|
inline |
bool Mode::isPauseRequested |
( |
| ) |
|
|
inlineprivate |
bool Mode::isStopRequested |
( |
| ) |
|
|
inlineprivate |
virtual void Mode::run |
( |
| ) |
|
|
inlineprotectedvirtual |
void Mode::setFrequency |
( |
double |
freq | ) |
|
|
inline |
void Mode::setPriority |
( |
int |
priority | ) |
|
|
inline |
void Mode::setPulses |
( |
int |
pulses | ) |
|
|
inline |
void Mode::setTimeout |
( |
double |
timeout | ) |
|
|
inline |
boost::signals2::signal<void (color::rgba color)>* Mode::signalColorReady |
( |
| ) |
|
|
inline |
boost::signals2::signal<void (std::vector<color::rgba> &colors)>* Mode::signalColorsReady |
( |
| ) |
|
|
inline |
boost::signals2::signal<void (int)>* Mode::signalModeFinished |
( |
| ) |
|
|
inline |
boost::condition_variable Mode::_cond_pause |
|
private |
bool Mode::_isPauseRequested |
|
private |
bool Mode::_isStopRequested |
|
private |
boost::mutex Mode::_mutex |
|
private |
boost::mutex Mode::_mutex_pause |
|
private |
boost::signals2::signal<void (color::rgba color)> Mode::m_sigColorReady |
|
protected |
boost::signals2::signal<void (std::vector<color::rgba> &colors)> Mode::m_sigColorsReady |
|
protected |
boost::signals2::signal<void (int)> Mode::m_sigFinished |
|
protected |
const unsigned int Mode::UPDATE_RATE_HZ = 100 |
|
staticprotected |
The documentation for this class was generated from the following file: