Eaagles::Basic::LcCie Class Reference

Inherits Eaagles::Basic::LcColor.

Inheritance diagram for Eaagles::Basic::LcCie:

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

Collaboration graph
[legend]
List of all members.

Public Types

enum  { LUMINANCE, X, Y }

Public Member Functions

 LcCie (const LcMonitorMetrics *m, const LCreal l, const LCreal x, const LCreal y)
 LcCie ()
LCreal luminance () const
LCreal x () const
LCreal y () const
void getCIE (osg::Vec3 &cie) const
virtual bool setMonitor (LcMonitorMetrics *const msg)
virtual bool setLuminance (LcNumber *const msg)
virtual bool setX (LcNumber *const msg)
virtual bool setY (LcNumber *const msg)

Static Public Member Functions

static void cie2rgb (osg::Vec4 &rgba, const osg::Vec3 &cie, const LcMonitorMetrics *m)

Protected Attributes

osg::Vec3 cie
SPtr< const LcMonitorMetricsmonitor

Detailed Description

 Defines a color by Luminance, X, Y, and monitor-specific data.
    Form name: cie
    Slots:
       1. luminance (Number)         Luminance component (0.0 to 1.0)
       2. x         (Number)         Green component     (0.0 to 1.0)
       3. y         (Number)         Blue component      (0.0 to 1.0, x+y<=1)
       4. monitor   (MonitorMetrics) Monitor characteristics

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


Member Enumeration Documentation

anonymous enum

components of CIE color. Enumerated:{ LUMINANCE, X, Y } Used to index the CIE color vector.

Enumerator:
LUMINANCE 
X 
Y 


Constructor & Destructor Documentation

Eaagles::Basic::LcCie::LcCie ( const LcMonitorMetrics m,
const LCreal  l,
const LCreal  x,
const LCreal  y 
)

Special constuctor to initialize the CIE color with the given values.

Eaagles::Basic::LcCie::LcCie (  ) 


Member Function Documentation

LCreal Eaagles::Basic::LcCie::luminance (  )  const

Data access routine. Returns the CIE component.

LCreal Eaagles::Basic::LcCie::x (  )  const

Data access routine. Returns the Green component (0.0 to 1.0).

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

Data access routine. Returns the Blue component (0.0 to 1.0, x+y<=1).

void Eaagles::Basic::LcCie::getCIE ( osg::Vec3 &  cie  )  const

Returns the CIE components in a vector.

bool Eaagles::Basic::LcCie::setMonitor ( LcMonitorMetrics *const   msg  )  [virtual]

Sets the monitor characteristics.

bool Eaagles::Basic::LcCie::setLuminance ( LcNumber *const  msg  )  [virtual]

Sets the luminance component.

bool Eaagles::Basic::LcCie::setX ( LcNumber *const  msg  )  [virtual]

Sets the Green component.

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

Set the Blue component.

void Eaagles::Basic::LcCie::cie2rgb ( osg::Vec4 &  rgba,
const osg::Vec3 &  cie,
const LcMonitorMetrics m 
) [static]

Static function to convert a CIE color into RGB.


Member Data Documentation

osg::Vec3 Eaagles::Basic::LcCie::cie [protected]

SPtr<const LcMonitorMetrics> Eaagles::Basic::LcCie::monitor [protected]


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