Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
|
Describes the color of art on the artboard. More...
#include <hdicoreArtColor.h>
Classes | |
class | Channels |
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... | |
class | GradientStyle |
Describes a gradient that has been applied to some art. More... | |
class | PatternStyle |
Describes a pattern that has been applied to some art. More... | |
Public Types | |
enum | Type { TypeUnknown = 0 , TypeNone = 1 << 0 , TypeGray = 1 << 1 , TypeRGB = 1 << 2 , TypeCMYK = 1 << 3 , TypeLab = 1 << 4 , TypeHSB = 1 << 5 , TypeNamedRGB = 1 << 10 , TypeNamedCMYK = 1 << 11 , TypeNamedLab = 1 << 12 , TypePattern = 1 << 20 , TypeGradient = 1 << 21 , AnonymousTypes = (TypeGray | TypeRGB | TypeCMYK | TypeLab | TypeHSB) , NamedTypes = (TypeNamedRGB | TypeNamedCMYK | TypeNamedLab) } |
Describes the format/type of an ArtColor object. | |
enum | NamedFlags { NoFlag = 0 , SpotColorFlag = 1 << 0 , RegistrationColorFlag = 1 << 1 } |
Option flags for use when creating a named color. | |
typedef std::unique_ptr< Channels > | ChannelsUP |
typedef std::shared_ptr< Channels > | ChannelsSP |
typedef std::weak_ptr< Channels > | ChannelsWP |
typedef std::unique_ptr< GradientStyle > | GradientStyleUP |
typedef std::shared_ptr< GradientStyle > | GradientStyleSP |
typedef std::weak_ptr< GradientStyle > | GradientStyleWP |
typedef std::unique_ptr< PatternStyle > | PatternStyleUP |
typedef std::shared_ptr< PatternStyle > | PatternStyleSP |
typedef std::weak_ptr< PatternStyle > | PatternStyleWP |
Public Member Functions | |
ArtColor (const ArtColor &c_) | |
Constructs an ArtColor object from an existing ArtColor object (copy constructor) | |
ArtColor (const double grayVal_) | |
Constructs a grayscale ArtColor object from a single color component in the range [0.0,1.0]. | |
ArtColor (const double rVal_, const double gVal_, const double bVal_) | |
Constructs an RGB ArtColor object from three color components in the range [0.0,1.0]. | |
ArtColor (const double cVal_, const double mVal_, const double yVal_, const double kVal_) | |
Constructs a CMYK ArtColor object from four color components in the range [0.0,1.0]. | |
ArtColor (const GradientStyle &gs_) | |
Constructs an ArtColor object from a GradientStyle. | |
ArtColor (const PatternStyle &ps_) | |
Constructs an ArtColor object from a PatternStyle. | |
ArtColor () | |
Constructs an ArtColor object that hasn't been assigned. | |
virtual | ~ArtColor () |
Destructs an ArtColor object. | |
virtual Type | colorType () const |
Gets the type/format of the color. | |
virtual std::string | name () const |
Gets the name of a custom color. | |
virtual ArtColor | asGray () const |
Gets the target ArtColor object in a grayscale format. | |
virtual ArtColor | asRGB () const |
Gets the target ArtColor object in an RGB format. | |
virtual ArtColor | asLab () const |
Gets the target ArtColor object in a Lab format. | |
virtual ArtColor | asHSB () const |
Gets the target ArtColor object in a HSB format. | |
virtual ArtColor | asCMYK () const |
Gets the target ArtColor object in a CMYK format. | |
virtual Channels | channels () const |
Gets the underlying channel data for the target ArtColor. | |
virtual GradientStyle | gradient () const |
Gets the underlying gradient style for the target ArtColor. | |
virtual PatternStyle | pattern () const |
Gets the underlying pattern for the target ArtColor. | |
virtual bool | makeNamed (const std::string &name_, const double tint_=0.0, const NamedFlags flags_=SpotColorFlag) |
Converts an "anonymous" color to a "named" color. | |
virtual double | namedTint () const |
Gets the tint for a "named" color, if any. | |
virtual NamedFlags | namedFlags () const |
Gets the flags for a "named" color, if any. | |
virtual ArtColor & | operator= (const ArtColor &rhs_) |
Allows one ArtColor object to be assigned from another. | |
virtual bool | operator== (const ArtColor &rhs_) const |
Allows two ArtColor objects to be compared with the == operator. | |
virtual bool | operator!= (const ArtColor &rhs_) const |
Allows two ArtColor objects to be compared with the != operator. | |
Static Public Member Functions | |
static ArtColor | FromLab (const double lVal_, const double aVal_, const double bVal_) |
Constructs a Lab ArtColor object from its color components. | |
static ArtColor | FromHSB (const Angle &hVal_, const double sVal_, const double bVal_) |
Constructs a HSB ArtColor object from its color components. | |
static ArtColor | red () |
Static accessor to return an ArtColor object for pure red. | |
static ArtColor | orange () |
Static accessor to return an ArtColor object for pure orange. | |
static ArtColor | yellow () |
Static accessor to return an ArtColor object for pure yellow. | |
static ArtColor | green () |
Static accessor to return an ArtColor object for pure green. | |
static ArtColor | cyan () |
Static accessor to return an ArtColor object for pure cyan. | |
static ArtColor | blue () |
Static accessor to return an ArtColor object for pure blue. | |
static ArtColor | purple () |
Static accessor to return an ArtColor object for pure purple. | |
static ArtColor | magenta () |
Static accessor to return an ArtColor object for pure magenta. | |
static ArtColor | white () |
Static accessor to return an ArtColor object for pure white (0% black) | |
static ArtColor | lightGray () |
Static accessor to return an ArtColor object for pure white (25% black) | |
static ArtColor | gray () |
Static accessor to return an ArtColor object for pure white (50% black) | |
static ArtColor | darkGray () |
Static accessor to return an ArtColor object for pure white (75% black) | |
static ArtColor | black () |
Static accessor to return an ArtColor object for pure white (100% black) | |
static ArtColor | none () |
Static accessor to return an ArtColor object for "none". | |
Friends | |
aip::ArtColor * | __accessImpl (const ArtColor &) |
ArtColor | __accessCtor (const aip::ArtColor &) |
Describes the color of art on the artboard.
Contains color data, in a variety of formats, and color metadata (e.g. names). Can be grayscale, RGB, Lab, HSB, or CMYK.
hdi::core::ArtColor::ArtColor | ( | const ArtColor & | c_ | ) |
hdi::core::ArtColor::ArtColor | ( | const double | grayVal_ | ) |
Constructs a grayscale ArtColor object from a single color component in the range [0.0,1.0].
grayVal_ | The grayscale color component, with 0.0 being white and 1.0 being black |
hdi::core::ArtColor::ArtColor | ( | const double | rVal_, |
const double | gVal_, | ||
const double | bVal_ | ||
) |
Constructs an RGB ArtColor object from three color components in the range [0.0,1.0].
rVal_ | The red color component |
gVal_ | The green color component |
bVal_ | The blue color component |
hdi::core::ArtColor::ArtColor | ( | const double | cVal_, |
const double | mVal_, | ||
const double | yVal_, | ||
const double | kVal_ | ||
) |
Constructs a CMYK ArtColor object from four color components in the range [0.0,1.0].
cVal_ | The cyan color component |
mVal_ | The magenta color component |
yVal_ | The yellow color component |
kVal_ | The black color component |
hdi::core::ArtColor::ArtColor | ( | const GradientStyle & | gs_ | ) |
Constructs an ArtColor object from a GradientStyle.
gs_ | The GradientStyle object, from which the ArtColor will be derived |
hdi::core::ArtColor::ArtColor | ( | const PatternStyle & | ps_ | ) |
Constructs an ArtColor object from a PatternStyle.
ps_ | The PatternStyle object, from which the ArtColor will be derived |
hdi::core::ArtColor::ArtColor | ( | ) |
Constructs an ArtColor object that hasn't been assigned.
|
virtual |
Destructs an ArtColor object.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
static |
Static accessor to return an ArtColor object for pure white (100% black)
|
static |
Static accessor to return an ArtColor object for pure blue.
|
virtual |
|
virtual |
Gets the type/format of the color.
|
static |
Static accessor to return an ArtColor object for pure cyan.
|
static |
Static accessor to return an ArtColor object for pure white (75% black)
|
static |
Constructs a HSB ArtColor object from its color components.
hVal_ | The hue color component |
sVal_ | The saturation color component, in the range [0.0,1.0] |
bVal_ | The brightness color component, in the range [0.0,1.0] |
|
static |
Constructs a Lab ArtColor object from its color components.
lVal_ | The lightness color component, in the range [0.0,1.0] |
aVal_ | The a dimension color component, in the range [-1.0,1.0] |
bVal_ | The b dimension color component, in the range [-1.0,1.0] |
|
virtual |
Gets the underlying gradient style for the target ArtColor.
|
static |
Static accessor to return an ArtColor object for pure white (50% black)
|
static |
Static accessor to return an ArtColor object for pure green.
|
static |
Static accessor to return an ArtColor object for pure white (25% black)
|
static |
Static accessor to return an ArtColor object for pure magenta.
|
virtual |
Converts an "anonymous" color to a "named" color.
name_ | New name for the color, as UTF-8 |
tint_ | How much to tint the color |
flags_ | Whether the color is a spot color or registration color |
|
virtual |
Gets the name of a custom color.
|
virtual |
Gets the flags for a "named" color, if any.
|
virtual |
Gets the tint for a "named" color, if any.
|
static |
Static accessor to return an ArtColor object for "none".
Illustrator typically interprets a "none" color as completely transparent
|
virtual |
|
virtual |
|
static |
Static accessor to return an ArtColor object for pure orange.
|
virtual |
Gets the underlying pattern for the target ArtColor.
|
static |
Static accessor to return an ArtColor object for pure purple.
|
static |
Static accessor to return an ArtColor object for pure red.
|
static |
Static accessor to return an ArtColor object for pure white (0% black)