hueplusplus
1.0.0
|
Virtual base class for all ColorTemperatureStrategies. More...
#include <hueplusplus/ColorTemperatureStrategy.h>
Public Member Functions | |
virtual bool | setColorTemperature (unsigned int mired, uint8_t transition, Light &light) const =0 |
Virtual function for changing a lights color temperature in mired with a specified transition. More... | |
virtual bool | alertTemperature (unsigned int mired, Light &light) const =0 |
Virtual function that lets the light perform one breath cycle in the specified color. More... | |
virtual unsigned int | getColorTemperature (Light &light) const =0 |
Virtual function that returns the current color temperature of the light. More... | |
virtual unsigned int | getColorTemperature (const Light &light) const =0 |
Virtual function that returns the current color temperature of the light. More... | |
virtual | ~ColorTemperatureStrategy ()=default |
Virtual dtor. More... | |
Virtual base class for all ColorTemperatureStrategies.
|
virtualdefault |
Virtual dtor.
|
pure virtual |
Virtual function that lets the light perform one breath cycle in the specified color.
The color temperature in mired ranges from 153 to 500 whereas 153 is cold and 500 is warm.
mired | The color temperature in mired |
light | A reference of the light |
Implemented in hueplusplus::SimpleColorTemperatureStrategy, and hueplusplus::ExtendedColorTemperatureStrategy.
|
pure virtual |
Virtual function that returns the current color temperature of the light.
Should update the lights state by calling refreshState() The color temperature in mired ranges from 153 to 500 whereas 153 is cold and 500 is warm.
light | A reference of the light |
Implemented in hueplusplus::SimpleColorTemperatureStrategy.
|
pure virtual |
Virtual function that returns the current color temperature of the light.
The color temperature in mired ranges from 153 to 500 whereas 153 is cold and 500 is warm.
light | A const reference of the light |
Implemented in hueplusplus::SimpleColorTemperatureStrategy.
|
pure virtual |
Virtual function for changing a lights color temperature in mired with a specified transition.
The color temperature in mired ranges from 153 to 500 whereas 153 is cold and 500 is warm.
mired | The color temperature in mired |
transition | The time it takes to fade to the new color in multiples of 100ms, 4 = 400ms and should be seen as the default |
light | A reference of the light |
Implemented in hueplusplus::SimpleColorTemperatureStrategy.