Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
Public Member Functions | Public Attributes | List of all members
hdi::core::ArtColor::Channels::Lab Struct Reference

Describes a set of Lab channels. More...

#include <hdicoreArtColor.h>

Public Member Functions

 Lab ()
 Constructs a Lab object with default values. More...
 
 Lab (const Lab &obj_)
 Constructs a new Lab object from an existing Lab. More...
 
 Lab (const double l_, const double a_, const double b_)
 Constructs a new Lab object with the given values. More...
 
virtual ~Lab ()
 Destructs a Lab object. More...
 
Laboperator= (const Lab &rhs_)
 Lab assignment operator. More...
 
bool operator== (const Lab &rhs_) const
 Tests whether a given Lab object is the same as another. More...
 
bool operator!= (const Lab &rhs_) const
 Tests whether a given Lab object is not the same as another. More...
 

Public Attributes

double lightness
 Stores the Lab color lightness channel, in the range [0.0,1.0].
 
double a
 Stores the Lab color a-dimension channel, in the range [-1.0,1.0].
 
double b
 Stores the Lab color b-dimension channel, in the range [-1.0,1.0].
 

Detailed Description

Describes a set of Lab channels.

Constructor & Destructor Documentation

hdi::core::ArtColor::Channels::Lab::Lab ( )

Constructs a Lab object with default values.

Author
GW
Date
07/2014
hdi::core::ArtColor::Channels::Lab::Lab ( const Lab obj_)

Constructs a new Lab object from an existing Lab.

Author
GW
Date
07/2014
Parameters
obj_Existing Lab object to copy values from
hdi::core::ArtColor::Channels::Lab::Lab ( const double  l_,
const double  a_,
const double  b_ 
)

Constructs a new Lab object with the given values.

Author
GW
Date
07/2014
Parameters
l_(See lightness member description)
a_(See a member description)
b_(See b member description)
virtual hdi::core::ArtColor::Channels::Lab::~Lab ( )
virtual

Destructs a Lab object.

Author
GW
Date
07/2014

Member Function Documentation

bool hdi::core::ArtColor::Channels::Lab::operator!= ( const Lab rhs_) const

Tests whether a given Lab object is not the same as another.

Author
GW
Date
03/2015
Parameters
rhs_Lab to compare against (righthand side of inequality operator)
Returns
true for the target and rhs_ being different colors, false otherwise
Lab& hdi::core::ArtColor::Channels::Lab::operator= ( const Lab rhs_)

Lab assignment operator.

Author
GW
Date
07/2014
Parameters
rhs_Existing Lab object to copy values from (righthand side of the assignment operator)
Returns
The target Lab object, but with its values updated
bool hdi::core::ArtColor::Channels::Lab::operator== ( const Lab rhs_) const

Tests whether a given Lab object is the same as another.

Author
GW
Date
03/2015
Parameters
rhs_Lab to compare against (righthand side of equality operator)
Returns
true for the target and rhs_ being the same colors, false otherwise