LTI-Lib latest version v1.9 - last update 24 Nov 2005
Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

lti::cmykColor Class Reference

A little class for defining points in the CMYK color space. More...

#include <ltiCMYKColor.h>

List of all members.

Public Member Functions

 cmykColor ()
 cmykColor (float nc, float nm, float ny, float nk)
float getCyan () const
float getMagenta () const
float getYellow () const
float getBlack () const
void setCyan (const float &cyan)
void setMagenta (const float &magenta)
void setYellow (const float &yellow)
void setBlack (const float &black)
cmykColorcopy (const cmykColor &other)
cmykColoroperator= (const cmykColor &other)
bool isEqual (const cmykColor &other) const
bool operator== (const cmykColor &other) const
bool operator!= (const cmykColor &other) const
bool operator< (const cmykColor &other) const
bool operator> (const cmykColor &other) const


Detailed Description

A little class for defining points in the CMYK color space.

At present, CMYK colors can only be used for EPS drawings.


Constructor & Destructor Documentation

lti::cmykColor::cmykColor  )  [inline]
 

Default constructor.

Sets this color to (0,0,0,0) which is the CMYK representation of white.

lti::cmykColor::cmykColor float  nc,
float  nm,
float  ny,
float  nk
[inline]
 

Constructor.

Sets the C, M, Y, and K components to the given values.


Member Function Documentation

cmykColor& lti::cmykColor::copy const cmykColor other  )  [inline]
 

Copies the "other" color to this color.

float lti::cmykColor::getBlack  )  const [inline]
 

Returns the value of the K (=blacK) component of this color.

float lti::cmykColor::getCyan  )  const [inline]
 

Returns the value of the C (=Cyan) component of this color.

float lti::cmykColor::getMagenta  )  const [inline]
 

Returns the value of the M (=Magenta) component of this color.

float lti::cmykColor::getYellow  )  const [inline]
 

Returns the value of the Y (=Yellow) component of this color.

bool lti::cmykColor::isEqual const cmykColor other  )  const [inline]
 

Compare two colors (true if equal!).

bool lti::cmykColor::operator!= const cmykColor other  )  const [inline]
 

Alias for !compare().

bool lti::cmykColor::operator< const cmykColor other  )  const [inline]
 

An cmykColor is said to be "smaller" than another one, if any of its component values is smaller than the other component.

cmykColor& lti::cmykColor::operator= const cmykColor other  )  [inline]
 

Alias for copy.

bool lti::cmykColor::operator== const cmykColor other  )  const [inline]
 

Alias for compare().

bool lti::cmykColor::operator> const cmykColor other  )  const [inline]
 

An cmykColor is said to be "bigger" than another one, if any of its component values is smaller than the other component.

void lti::cmykColor::setBlack const float &  black  )  [inline]
 

sets the value of the Black component of this color

void lti::cmykColor::setCyan const float &  cyan  )  [inline]
 

sets the value of the Cyan component of this color

void lti::cmykColor::setMagenta const float &  magenta  )  [inline]
 

sets the value of the Magenta component of this color

void lti::cmykColor::setYellow const float &  yellow  )  [inline]
 

sets the value of the Yellow component of this color


The documentation for this class was generated from the following file:
Generated on Thu Nov 24 16:30:00 2005 for LTI-Lib by Doxygen 1.4.4