hyperion.ng
Public Member Functions | List of all members
MultiColorAdjustment Class Reference

The LedColorTransform is responsible for performing color transformation from 'raw' colors received as input to colors mapped to match the color-properties of the leds. More...

#include <MultiColorAdjustment.h>

Public Member Functions

 MultiColorAdjustment (const unsigned ledCnt)
 
void addAdjustment (ColorAdjustment *adjustment)
 Adds a new ColorAdjustment to this MultiColorTransform. More...
 
void setAdjustmentForLed (const QString &id, const unsigned startLed, unsigned endLed)
 
bool verifyAdjustments () const
 
void setBacklightEnabled (bool enable)
 
const QStringList & getAdjustmentIds ()
 Returns the identifier of all the unique ColorAdjustment. More...
 
ColorAdjustmentgetAdjustment (const QString &id)
 Returns the pointer to the ColorAdjustment with the given id. More...
 
void applyAdjustment (std::vector< ColorRgb > &ledColors)
 Performs the color adjustment from raw-color to led-color. More...
 

Detailed Description

The LedColorTransform is responsible for performing color transformation from 'raw' colors received as input to colors mapped to match the color-properties of the leds.

Member Function Documentation

§ addAdjustment()

void MultiColorAdjustment::addAdjustment ( ColorAdjustment adjustment)

Adds a new ColorAdjustment to this MultiColorTransform.

Parameters
adjustmentThe new ColorAdjustment (ownership is transfered)

§ applyAdjustment()

void MultiColorAdjustment::applyAdjustment ( std::vector< ColorRgb > &  ledColors)

Performs the color adjustment from raw-color to led-color.

Parameters
ledColorsThe list with raw colors

§ getAdjustment()

ColorAdjustment * MultiColorAdjustment::getAdjustment ( const QString &  id)

Returns the pointer to the ColorAdjustment with the given id.

Parameters
idThe identifier of the ColorAdjustment
Returns
The ColorAdjustment with the given id (or nullptr if it does not exist)

§ getAdjustmentIds()

const QStringList & MultiColorAdjustment::getAdjustmentIds ( )

Returns the identifier of all the unique ColorAdjustment.

Returns
The list with unique id's of the ColorAdjustment

The documentation for this class was generated from the following files: