#include <mode.h>
Definition at line 26 of file mode.h.
◆ Mode()
Mode::Mode |
( |
int |
priority = 0 , |
|
|
double |
freq = 0 , |
|
|
int |
pulses = 0 , |
|
|
double |
timeout = 0 |
|
) |
| |
|
inline |
◆ ~Mode()
◆ execute()
virtual void Mode::execute |
( |
| ) |
|
|
pure virtual |
Implemented in XMasMode, DistApproxMode, SweepColorMode, TurnIndicatorMode, SequenceMode, CircleColorMode, FadeColorMode, KitMode, FlashMode, GlowColorMode, BreathColorMode, BreathMode, and StaticMode.
◆ finished()
◆ getActualColor()
◆ getColor()
◆ getFrequency()
double Mode::getFrequency |
( |
| ) |
|
|
inline |
◆ getName()
virtual std::string Mode::getName |
( |
| ) |
|
|
pure virtual |
Implemented in DistApproxMode, SequenceMode, XMasMode, TurnIndicatorMode, SweepColorMode, FadeColorMode, GlowColorMode, KitMode, BreathColorMode, FlashMode, CircleColorMode, BreathMode, and StaticMode.
◆ getPriority()
int Mode::getPriority |
( |
| ) |
|
|
inline |
◆ getPulses()
◆ getTimeout()
double Mode::getTimeout |
( |
| ) |
|
|
inline |
◆ isPauseRequested()
bool Mode::isPauseRequested |
( |
| ) |
|
|
inlineprivate |
◆ isRunning()
◆ isStopRequested()
bool Mode::isStopRequested |
( |
| ) |
|
|
inlineprivate |
◆ pause()
◆ pulsed()
◆ run()
virtual void Mode::run |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ setActualColor()
◆ setColor()
◆ setFrequency()
void Mode::setFrequency |
( |
double |
freq | ) |
|
|
inline |
◆ setPriority()
void Mode::setPriority |
( |
int |
priority | ) |
|
|
inline |
◆ setPulses()
void Mode::setPulses |
( |
int |
pulses | ) |
|
|
inline |
◆ setTimeout()
void Mode::setTimeout |
( |
double |
timeout | ) |
|
|
inline |
◆ signalColorReady()
boost::signals2::signal<void (color::rgba color)>* Mode::signalColorReady |
( |
| ) |
|
|
inline |
◆ signalColorsReady()
boost::signals2::signal<void (std::vector<color::rgba> &colors)>* Mode::signalColorsReady |
( |
| ) |
|
|
inline |
◆ signalModeFinished()
boost::signals2::signal<void (int)>* Mode::signalModeFinished |
( |
| ) |
|
|
inline |
◆ start()
◆ stop()
◆ _actualColor
◆ _color
◆ _colors
◆ _cond_pause
boost::condition_variable Mode::_cond_pause |
|
private |
◆ _finished
◆ _freq
◆ _init_color
◆ _isPauseRequested
bool Mode::_isPauseRequested |
|
private |
◆ _isRunning
◆ _isStopRequested
bool Mode::_isStopRequested |
|
private |
◆ _mutex
boost::mutex Mode::_mutex |
|
private |
◆ _mutex_pause
boost::mutex Mode::_mutex_pause |
|
private |
◆ _priority
◆ _pulsed
◆ _pulses
◆ _thread
◆ _timeout
◆ m_sigColorReady
boost::signals2::signal<void (color::rgba color)> Mode::m_sigColorReady |
|
protected |
◆ m_sigColorsReady
boost::signals2::signal<void (std::vector<color::rgba> &colors)> Mode::m_sigColorsReady |
|
protected |
◆ m_sigFinished
boost::signals2::signal<void (int)> Mode::m_sigFinished |
|
protected |
◆ UPDATE_RATE_HZ
const unsigned int Mode::UPDATE_RATE_HZ = 100 |
|
staticprotected |
The documentation for this class was generated from the following file: