Hot Door CORE 0.8.4
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
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:

Classes

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

Public Types

typedef std::unique_ptr< RGBRGBUP
typedef std::shared_ptr< RGBRGBSP
typedef std::weak_ptr< RGBRGBWP
typedef std::unique_ptr< CMYKCMYKUP
typedef std::shared_ptr< CMYKCMYKSP
typedef std::weak_ptr< CMYKCMYKWP
typedef std::unique_ptr< LabLabUP
typedef std::shared_ptr< LabLabSP
typedef std::weak_ptr< LabLabWP
typedef std::unique_ptr< HSBHSBUP
typedef std::shared_ptr< HSBHSBSP
typedef std::weak_ptr< HSBHSBWP

Public Member Functions

 Channels ()
 Constructs a new Channels object with default values.
 Channels (const Channels &obj_)
 Constructs a new Channels object from an existing 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.
virtual ~Channels ()
 Destructs a Channels object.
Channelsoperator= (const Channels &rhs_)
 Channels assignment operator.

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

◆ Channels() [1/3]

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

Constructs a new Channels object with default values.

Author
GW
Date
07/2014

◆ Channels() [2/3]

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

◆ Channels() [3/3]

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)

◆ ~Channels()

virtual hdi::core::ArtColor::Channels::~Channels ( )
virtual

Destructs a Channels object.

Author
GW
Date
07/2014

Member Function Documentation

◆ operator=()

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