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

Describes a set of CMYK channels. More...

#include <hdicoreArtColor.h>

Public Member Functions

() CMYK ()
 Constructs a CMYK object with default values. More...
 
() CMYK (const CMYK &obj_)
 Constructs a new CMYK object from an existing CMYK. More...
 
() CMYK (const double c_, const double m_, const double y_, const double k_)
 Constructs a new CMYK object with the given values. More...
 
virtual ~CMYK ()
 Destructs a CMYK object. More...
 
CMYKoperator= (const CMYK &rhs_)
 CMYK assignment operator. More...
 
bool operator== (const CMYK &rhs_) const
 Tests whether a given CMYK object is the same as another. More...
 
bool operator!= (const CMYK &rhs_) const
 Tests whether a given CMYK object is not the same as another. More...
 

Public Attributes

double cyan
 Stores the CMYK color cyan channel, in the range [0.0,1.0].
 
double magenta
 Stores the CMYK color magenta channel, in the range [0.0,1.0].
 
double yellow
 Stores the CMYK color yellow channel, in the range [0.0,1.0].
 
double black
 Stores the CMYK color black channel, in the range [0.0,1.0].
 

Detailed Description

Describes a set of CMYK channels.

Constructor & Destructor Documentation

() hdi::core::ArtColor::Channels::CMYK::CMYK ( )

Constructs a CMYK object with default values.

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

Constructs a new CMYK object from an existing CMYK.

Author
GW
Date
07/2014
Parameters
obj_Existing CMYK object to copy values from
() hdi::core::ArtColor::Channels::CMYK::CMYK ( const double  c_,
const double  m_,
const double  y_,
const double  k_ 
)

Constructs a new CMYK object with the given values.

Author
GW
Date
07/2014
Parameters
c_(See cyan member description)
m_(See magenta member description)
y_(See yellow member description)
k_(See black member description)
virtual hdi::core::ArtColor::Channels::CMYK::~CMYK ( )
virtual

Destructs a CMYK object.

Author
GW
Date
07/2014

Member Function Documentation

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

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

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

CMYK assignment operator.

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

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

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