Eaagles::Basic::LcCmy Class Reference

Inherits Eaagles::Basic::LcColor.

Inheritance diagram for Eaagles::Basic::LcCmy:

Inheritance graph
[legend]
Collaboration diagram for Eaagles::Basic::LcCmy:

Collaboration graph
[legend]
List of all members.

Public Types

enum  { CYAN, MAGENTA, YELLOW }

Public Member Functions

 LcCmy (const LCreal c, const LCreal m, const LCreal y)
 LcCmy ()
LCreal cyan () const
LCreal magenta () const
LCreal yellow () const
void getCMY (osg::Vec3 &cmy) const
virtual bool setCyan (LcNumber *const msg)
virtual bool setMagenta (LcNumber *const msg)
virtual bool setYellow (LcNumber *const msg)

Static Public Member Functions

static void cmy2rgb (osg::Vec4 &rgb, const osg::Vec3 &cmy)
static void rgb2cmy (osg::Vec3 &cmy, const osg::Vec4 &rgb)

Protected Attributes

osg::Vec3 cmy

Detailed Description

Defines a color by Cyan, Magenta, and Yellow.

    Form name: cmy
    Slots:
       1. cyan     (Number)  Cyan component (0.0 to 1.0)
       2. magenta  (Number)  Magenta component (0.0 to 1.0)
       3. yellow   (Number)  Yellow component (0.0 to 1.0) 
   	Note:  The operators osg::Vec3*() and osg::Vec4*(), (inherited from LcColor)
           return a const pointer to the RGBA color vector and not the
           CMY color vector.


Member Enumeration Documentation

anonymous enum

components of CMY color. Enumerated: { CYAN, MAGENTA, YELLOW } Used to index the CMY color vectors.

Enumerator:
CYAN 
MAGENTA 
YELLOW 


Constructor & Destructor Documentation

Eaagles::Basic::LcCmy::LcCmy ( const LCreal  c,
const LCreal  m,
const LCreal  y 
)

Special constuctor that initializes the object to c, m,and y.

Eaagles::Basic::LcCmy::LcCmy (  ) 


Member Function Documentation

LCreal Eaagles::Basic::LcCmy::cyan (  )  const

Data access routine. Returns the individual CMY components.

LCreal Eaagles::Basic::LcCmy::magenta (  )  const

Data access routine. Returns the individual CMY components.

LCreal Eaagles::Basic::LcCmy::yellow (  )  const

Data access routine. Returns the individual CMY components.

void Eaagles::Basic::LcCmy::getCMY ( osg::Vec3 &  cmy  )  const

Returns the CMY components in a vector.

bool Eaagles::Basic::LcCmy::setCyan ( LcNumber *const  msg  )  [virtual]

set the cyan value

bool Eaagles::Basic::LcCmy::setMagenta ( LcNumber *const  msg  )  [virtual]

set the magenta value

bool Eaagles::Basic::LcCmy::setYellow ( LcNumber *const  msg  )  [virtual]

set the yellow value

void Eaagles::Basic::LcCmy::cmy2rgb ( osg::Vec4 &  rgb,
const osg::Vec3 &  cmy 
) [static]

Static functions to convert CMY colors to RGB.

void Eaagles::Basic::LcCmy::rgb2cmy ( osg::Vec3 &  cmy,
const osg::Vec4 &  rgb 
) [static]

Static functions to convert RGB colors to CMY.


Member Data Documentation

osg::Vec3 Eaagles::Basic::LcCmy::cmy [protected]


Generated on Tue Dec 19 16:26:06 2006 for Eaagles by  doxygen 1.5.0