LibreOffice Module slideshow (master) 1
Classes | Public Member Functions | Private Attributes | List of all members
slideshow::internal::HSLColor Class Reference

HSL color space class. More...

#include <hslcolor.hxx>

Collaboration diagram for slideshow::internal::HSLColor:
[legend]

Classes

struct  HSLTriple
 

Public Member Functions

 HSLColor ()
 
 HSLColor (double nHue, double nSaturation, double nLuminance)
 
 HSLColor (const RGBColor &rColor)
 
double getHue () const
 Hue of the color. More...
 
double getSaturation () const
 Saturation of the color. More...
 
double getLuminance () const
 Luminance of the color. More...
 

Private Attributes

HSLTriple maHSLTriple
 

Detailed Description

HSL color space class.

Definition at line 32 of file hslcolor.hxx.

Constructor & Destructor Documentation

◆ HSLColor() [1/3]

slideshow::internal::HSLColor::HSLColor ( )

Definition at line 171 of file color.cxx.

◆ HSLColor() [2/3]

slideshow::internal::HSLColor::HSLColor ( double  nHue,
double  nSaturation,
double  nLuminance 
)

Definition at line 176 of file color.cxx.

◆ HSLColor() [3/3]

slideshow::internal::HSLColor::HSLColor ( const RGBColor rColor)
explicit

Definition at line 181 of file color.cxx.

References getBlue(), getGreen(), getRed(), and rgb2hsl().

Member Function Documentation

◆ getHue()

double slideshow::internal::HSLColor::getHue ( ) const
inline

◆ getLuminance()

double slideshow::internal::HSLColor::getLuminance ( ) const
inline

Luminance of the color.

Returns
luminance, is in the range [0,1]

Definition at line 55 of file hslcolor.hxx.

References maHSLTriple, and slideshow::internal::HSLColor::HSLTriple::mnLuminance.

Referenced by slideshow::internal::interpolate(), slideshow::internal::operator*(), slideshow::internal::operator+(), and slideshow::internal::operator==().

◆ getSaturation()

double slideshow::internal::HSLColor::getSaturation ( ) const
inline

Saturation of the color.

Returns
saturation, is in the range [0,1]

Definition at line 49 of file hslcolor.hxx.

References maHSLTriple, and slideshow::internal::HSLColor::HSLTriple::mnSaturation.

Referenced by slideshow::internal::interpolate(), slideshow::internal::operator*(), slideshow::internal::operator+(), and slideshow::internal::operator==().

Member Data Documentation

◆ maHSLTriple

HSLTriple slideshow::internal::HSLColor::maHSLTriple
private

Definition at line 72 of file hslcolor.hxx.

Referenced by getHue(), getLuminance(), and getSaturation().


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