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

Stores all the possible representations of a color-based ArtColor in all supported color models; the original model is indicated by the master member. More...

#include <hdicoreArtColor.h>

Collaboration diagram for hdi::core::ArtColor::Channels:
Collaboration graph
[legend]

Classes

struct  CMYK
 Describes a set of CMYK channels. More...
 
struct  HSB
 Describes a set of HSB channels. More...
 
struct  Lab
 Describes a set of Lab channels. More...
 
struct  RGB
 Describes a set of RGB channels. More...
 

Public Types

typedef std::auto_ptr< RGBRGBAP
 
typedef std::auto_ptr< CMYKCMYKAP
 
typedef std::auto_ptr< LabLabAP
 
typedef std::auto_ptr< HSBHSBAP
 

Public Member Functions

 Channels ()
 Constructs a new Channels object with default values. More...
 
 Channels (const Channels &obj_)
 Constructs a new Channels object from an existing Channels. More...
 
 Channels (const Type master_, const double gray_, const RGB &rgb_, const CMYK &cmyk_, const Lab &lab_, const HSB &hsb_)
 Constructs a new Channels object with the given values. More...
 
virtual ~Channels ()
 Destructs a Channels object. More...
 
Channelsoperator= (const Channels &rhs_)
 Channels assignment operator. More...
 

Public Attributes

Type master
 Stores the "master" type of channel data stored in the target object. The gray, rgb, cmyk, or lab member that matches this member will have the most accurate values as all other members were derived via color conversion.
 
double gray
 Stores the grayscale color gray channel (0.0 is white, 1.0 is black)
 
RGB rgb
 Stores the RGB channels.
 
CMYK cmyk
 Stores the CMYK channels.
 
Lab lab
 Stores the Lab channels.
 
HSB hsb
 Stores the HSB channels.
 

Detailed Description

Stores all the possible representations of a color-based ArtColor in all supported color models; the original model is indicated by the master member.

Constructor & Destructor Documentation

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

Constructs a new Channels object with default values.

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

Constructs a new Channels object from an existing Channels.

Author
GW
Date
07/2014
Parameters
obj_Existing Channels object to copy values from
hdi::core::ArtColor::Channels::Channels ( const Type  master_,
const double  gray_,
const RGB rgb_,
const CMYK cmyk_,
const Lab lab_,
const HSB hsb_ 
)

Constructs a new Channels object with the given values.

Author
GW
Date
07/2014
Parameters
master_(See master member description)
gray_(See gray member description)
rgb_(See rgb member description)
cmyk_(See cmyk member description)
lab_(See lab member description)
hsb_(See hsb member description)
virtual hdi::core::ArtColor::Channels::~Channels ( )
virtual

Destructs a Channels object.

Author
GW
Date
07/2014

Member Function Documentation

Channels& hdi::core::ArtColor::Channels::operator= ( const Channels rhs_)

Channels assignment operator.

Author
GW
Date
12/2013
Parameters
rhs_Existing Channels object to copy values from (righthand side of the assignment operator)
Returns
The target Channels object, but with its values updated