Loading...
Searching...
No Matches
SimpleColorHueStrategy.h
Go to the documentation of this file.
#ifndef INCLUDE_HUEPLUSPLUS_SIMPLE_COLOR_HUE_STRATEGY_H
#define INCLUDE_HUEPLUSPLUS_SIMPLE_COLOR_HUE_STRATEGY_H
#include "ColorHueStrategy.h"
#include "Light.h"
namespace hueplusplus
{
class SimpleColorHueStrategy : public ColorHueStrategy
{
public:
bool setColorHue(uint16_t hue, uint8_t transition, Light& light) const override;
bool setColorSaturation(uint8_t sat, uint8_t transition, Light& light) const override;
bool setColorHueSaturation(const HueSaturation& hueSat, uint8_t transition, Light& light) const override;
bool setColorXY(const XYBrightness& xy, uint8_t transition, Light& light) const override;
bool setColorLoop(bool on, Light& light) const override;
bool alertHueSaturation(const HueSaturation& hueSat, Light& light) const override;
bool alertXY(const XYBrightness& xy, Light& light) const override;
HueSaturation getColorHueSaturation(Light& light) const override;
HueSaturation getColorHueSaturation(const Light& light) const override;
XYBrightness getColorXY(Light& light) const override;
XYBrightness getColorXY(const Light& light) const override;
};
} // namespace hueplusplus
#endif
ColorHueStrategy.h
Light.h
hueplusplus::ColorHueStrategy
Virtual base class for all ColorHueStrategies.
Definition ColorHueStrategy.h:37
hueplusplus::Light
Class for Hue Light fixtures.
Definition Light.h:61
hueplusplus::SimpleColorHueStrategy
Definition SimpleColorHueStrategy.h:35
hueplusplus::SimpleColorHueStrategy::setColorXY
bool setColorXY(const XYBrightness &xy, uint8_t transition, Light &light) const override
Function for changing a lights color in CIE format with a specified transition.
Definition SimpleColorHueStrategy.cpp:51
hueplusplus::SimpleColorHueStrategy::setColorHueSaturation
bool setColorHueSaturation(const HueSaturation &hueSat, uint8_t transition, Light &light) const override
Function for changing a lights color in hue and saturation format with a specified transition.
Definition SimpleColorHueStrategy.cpp:45
hueplusplus::SimpleColorHueStrategy::setColorHue
bool setColorHue(uint16_t hue, uint8_t transition, Light &light) const override
Function for changing a lights color in hue with a specified transition.
Definition SimpleColorHueStrategy.cpp:35
hueplusplus::SimpleColorHueStrategy::alertXY
bool alertXY(const XYBrightness &xy, Light &light) const override
Function that lets the light perform one breath cycle in the specified color.
Definition SimpleColorHueStrategy.cpp:104
hueplusplus::SimpleColorHueStrategy::setColorSaturation
bool setColorSaturation(uint8_t sat, uint8_t transition, Light &light) const override
Function for changing a lights color in saturation with a specified transition.
Definition SimpleColorHueStrategy.cpp:40
hueplusplus::SimpleColorHueStrategy::getColorHueSaturation
HueSaturation getColorHueSaturation(Light &light) const override
Function that returns the current color of the light as hue and saturation.
Definition SimpleColorHueStrategy.cpp:149
hueplusplus::SimpleColorHueStrategy::setColorLoop
bool setColorLoop(bool on, Light &light) const override
Function for turning on/off the color loop feature of a light.
Definition SimpleColorHueStrategy.cpp:56
hueplusplus::SimpleColorHueStrategy::getColorXY
XYBrightness getColorXY(Light &light) const override
Function that returns the current color of the light as xy.
Definition SimpleColorHueStrategy.cpp:162
hueplusplus::SimpleColorHueStrategy::alertHueSaturation
bool alertHueSaturation(const HueSaturation &hueSat, Light &light) const override
Function that lets the light perform one breath cycle in the specified color.
Definition SimpleColorHueStrategy.cpp:61
hueplusplus
Namespace for the hueplusplus library.
Definition Action.h:28
hueplusplus::HueSaturation
Color in hue and saturation.
Definition ColorUnits.h:32
hueplusplus::XYBrightness
Color and brightness in CIE.
Definition ColorUnits.h:63