Eaagles::Basic::LcYiq Class Reference

Inherits Eaagles::Basic::LcColor.

Inheritance diagram for Eaagles::Basic::LcYiq:

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

Collaboration graph
[legend]
List of all members.

Public Types

enum  { Y, I, Q }

Public Member Functions

 LcYiq (const LCreal y, const LCreal i, const LCreal q)
 LcYiq ()
LCreal y () const
LCreal i () const
LCreal q () const
void getYIQ (osg::Vec3 &yiq) const
virtual bool setY (LcNumber *const msg)
virtual bool setI (LcNumber *const msg)
virtual bool setQ (LcNumber *const msg)

Static Public Member Functions

static void yiq2rgb (osg::Vec4 &rgb, const osg::Vec3 &yiq)
static void rgb2yiq (osg::Vec3 &yiq, const osg::Vec4 &rgb)

Protected Attributes

osg::Vec3 yiq

Detailed Description

Defines a YIQ color as used in NTSC.

    Y defines the luminance, for a black-and-white image.
    I and Q determine the color.

    Form name: yiq
    Slots:
       1. Y  (Number)  Y component (0.0 to 1.0)
       2. I  (Number)  I component (-0.6 to 0.6)
       3. Q  (Number)  Q component (-0.52.0 to 0.52)

    Events: None  
    Note:  The operators osg::Vec3*() and osg::Vec4*(), (inherited from LcColor)
           return a const pointer to the RGBA color vector and not the
           YIQ color vector.


Member Enumeration Documentation

anonymous enum

Enumerated: { Y, I, Q } Used to index the YIQ color vectors. Components of YIQ color

Enumerator:
Y 
I 
Q 


Constructor & Destructor Documentation

Eaagles::Basic::LcYiq::LcYiq ( const LCreal  y,
const LCreal  i,
const LCreal  q 
)

Special constuctor that initializes the object to y, i, and q.

Eaagles::Basic::LcYiq::LcYiq (  ) 


Member Function Documentation

LCreal Eaagles::Basic::LcYiq::y (  )  const

Data access routine. Returns the individual Y component.

LCreal Eaagles::Basic::LcYiq::i (  )  const

Data access routine. Returns the individual I component.

LCreal Eaagles::Basic::LcYiq::q (  )  const

Data access routine. Returns the individual Q component.

void Eaagles::Basic::LcYiq::getYIQ ( osg::Vec3 &  yiq  )  const

Returns the YIQ components in a vector.

bool Eaagles::Basic::LcYiq::setY ( LcNumber *const  msg  )  [virtual]

bool Eaagles::Basic::LcYiq::setI ( LcNumber *const  msg  )  [virtual]

bool Eaagles::Basic::LcYiq::setQ ( LcNumber *const  msg  )  [virtual]

void Eaagles::Basic::LcYiq::yiq2rgb ( osg::Vec4 &  rgb,
const osg::Vec3 &  yiq 
) [static]

Static functions to convert colors to RGB.

void Eaagles::Basic::LcYiq::rgb2yiq ( osg::Vec3 &  yiq,
const osg::Vec4 &  rgb 
) [static]

Static functions to convert RGB colors to YIQ.


Member Data Documentation

osg::Vec3 Eaagles::Basic::LcYiq::yiq [protected]


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