Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Public Attributes
icl::qt::Dragger::Color Struct Reference

Utility class which helps to convert rgb to RG-Chroma and back. More...

#include <Dragger.h>

List of all members.

Public Member Functions

 Color (icl8u r=0, icl8u g=0, icl8u b=0, icl8u a=255)
 Create a new color with given red, green, blue and alpha value.

Static Public Member Functions

static void xyb_to_rg (icl8u &r, icl8u &g, float b, float x, float y)
 conversion function calculates r and g given b R and G

Public Attributes

icl8u r
icl8u g
icl8u b
icl8u a

Detailed Description

Utility class which helps to convert rgb to RG-Chroma and back.


Constructor & Destructor Documentation

icl::qt::Dragger::Color::Color ( icl8u  r = 0,
icl8u  g = 0,
icl8u  b = 0,
icl8u  a = 255 
) [inline]

Create a new color with given red, green, blue and alpha value.


Member Function Documentation

static void icl::qt::Dragger::Color::xyb_to_rg ( icl8u r,
icl8u g,
float  b,
float  x,
float  y 
) [inline, static]

conversion function calculates r and g given b R and G

Parameters:
rreturn value for r
greturn value for g
bblue value
xR value (it is called x because R complains the x axis of the ChromaWidget)
yG value (it is called y because G complains the y axis of the ChromaWidget)

Member Data Documentation

!< blue value

!< green value

!< red value


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines