hyperion.ng
Public Member Functions | Static Public Attributes | List of all members
PhilipsHueLight Class Reference

Simple class to hold the id, the latest color, the color space and the original state. More...

#include <LedDevicePhilipsHue.h>

Public Member Functions

 PhilipsHueLight (Logger *log, PhilipsHueBridge *bridge, unsigned int id, QJsonObject values)
 Constructs the light. More...
 
void setOn (bool on)
 
void setTransitionTime (unsigned int transitionTime)
 
void setColor (CiColor color, float brightnessFactor=1.0f)
 
CiColor getColor () const
 
CiColorTriangle getColorSpace () const
 

Static Public Attributes

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
 

Detailed Description

Simple class to hold the id, the latest color, the color space and the original state.

Constructor & Destructor Documentation

§ PhilipsHueLight()

PhilipsHueLight::PhilipsHueLight ( Logger log,
PhilipsHueBridge bridge,
unsigned int  id,
QJsonObject  values 
)

Constructs the light.

Parameters
logthe logger
bridgethe bridge
idthe light id

Member Function Documentation

§ getColorSpace()

CiColorTriangle PhilipsHueLight::getColorSpace ( ) const
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
colorthe color to set
brightnessFactorthe factor to apply to the CiColor::bri value

§ setOn()

void PhilipsHueLight::setOn ( bool  on)
Parameters
on

§ setTransitionTime()

void PhilipsHueLight::setTransitionTime ( unsigned int  transitionTime)
Parameters
transitionTimethe transition time between colors in multiples of 100 ms

Member Data Documentation

§ 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: