hueplusplus  1.0.0
SimpleColorHueStrategy.h
Go to the documentation of this file.
1 
23 #ifndef INCLUDE_HUEPLUSPLUS_SIMPLE_COLOR_HUE_STRATEGY_H
24 #define INCLUDE_HUEPLUSPLUS_SIMPLE_COLOR_HUE_STRATEGY_H
25 
26 #include "ColorHueStrategy.h"
27 #include "Light.h"
28 
29 namespace hueplusplus
30 {
35 {
36 public:
45  bool setColorHue(uint16_t hue, uint8_t transition, Light& light) const override;
54  bool setColorSaturation(uint8_t sat, uint8_t transition, Light& light) const override;
62  bool setColorHueSaturation(const HueSaturation& hueSat, uint8_t transition, Light& light) const override;
70  bool setColorXY(const XYBrightness& xy, uint8_t transition, Light& light) const override;
71 
83  bool setColorLoop(bool on, Light& light) const override;
90  bool alertHueSaturation(const HueSaturation& hueSat, Light& light) const override;
95  bool alertXY(const XYBrightness& xy, Light& light) const override;
103  HueSaturation getColorHueSaturation(Light& light) const override;
111  HueSaturation getColorHueSaturation(const Light& light) const override;
117  XYBrightness getColorXY(Light& light) const override;
123  XYBrightness getColorXY(const Light& light) const override;
124 };
125 } // namespace hueplusplus
126 
127 #endif
HueSaturation getColorHueSaturation(Light &light) const override
Function that returns the current color of the light as hue and saturation.
Definition: SimpleColorHueStrategy.cpp:149
Namespace for the hueplusplus library.
Definition: Action.h:27
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
Virtual base class for all ColorHueStrategies.
Definition: ColorHueStrategy.h:36
Definition: SimpleColorHueStrategy.h:34
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
bool setColorLoop(bool on, Light &light) const override
Function for turning on/off the color loop feature of a light.
Definition: SimpleColorHueStrategy.cpp:56
Color and brightness in CIE.
Definition: ColorUnits.h:62
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
Class for Hue Light fixtures.
Definition: Light.h:60
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
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
Color in hue and saturation.
Definition: ColorUnits.h:31
XYBrightness getColorXY(Light &light) const override
Function that returns the current color of the light as xy.
Definition: SimpleColorHueStrategy.cpp:162
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