Simple class to hold the id, the latest color, the color space and the original state.
More...
#include <LedDevicePhilipsHue.h>
|
static const std::set< QString > | GAMUT_A_MODEL_IDS |
|
static const std::set< QString > | GAMUT_B_MODEL_IDS |
|
static const std::set< QString > | GAMUT_C_MODEL_IDS |
|
Simple class to hold the id, the latest color, the color space and the original state.
§ PhilipsHueLight()
PhilipsHueLight::PhilipsHueLight |
( |
Logger * |
log, |
|
|
PhilipsHueBridge * |
bridge, |
|
|
unsigned int |
id, |
|
|
QJsonObject |
values |
|
) |
| |
Constructs the light.
- Parameters
-
log | the logger |
bridge | the bridge |
id | the light id |
§ getColorSpace()
- Returns
- the color space of the light determined by the model id reported by the bridge.
§ setColor()
void PhilipsHueLight::setColor |
( |
CiColor |
color, |
|
|
float |
brightnessFactor = 1.0f |
|
) |
| |
- Parameters
-
color | the color to set |
brightnessFactor | the factor to apply to the CiColor::bri value |
§ setOn()
void PhilipsHueLight::setOn |
( |
bool |
on | ) |
|
§ setTransitionTime()
void PhilipsHueLight::setTransitionTime |
( |
unsigned int |
transitionTime | ) |
|
- Parameters
-
transitionTime | the transition time between colors in multiples of 100 ms |
§ GAMUT_A_MODEL_IDS
const std::set< QString > PhilipsHueLight::GAMUT_A_MODEL_IDS |
|
static |
Initial value:=
{ "LLC001", "LLC005", "LLC006", "LLC007", "LLC010", "LLC011", "LLC012", "LLC013", "LLC014", "LST001" }
§ GAMUT_B_MODEL_IDS
const std::set< QString > PhilipsHueLight::GAMUT_B_MODEL_IDS |
|
static |
Initial value:=
{ "LCT001", "LCT002", "LCT003", "LCT007", "LLM001" }
§ GAMUT_C_MODEL_IDS
const std::set< QString > PhilipsHueLight::GAMUT_C_MODEL_IDS |
|
static |
Initial value:=
{ "LLC020", "LST002", "LCT011", "LCT012", "LCT010", "LCT014", "LCT015", "LCT016", "LCT024" }
The documentation for this class was generated from the following files: