Inheritance diagram for Eaagles::Basic::LcYiq:


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 |
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.
| anonymous enum |
Special constuctor that initializes the object to y, i, and q.
| Eaagles::Basic::LcYiq::LcYiq | ( | ) |
| 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.
osg::Vec3 Eaagles::Basic::LcYiq::yiq [protected] |
1.5.0