Eaagles::Basic::LcMonitorMetrics Class Reference

Inherits Eaagles::Basic::LcObject.

Inheritance diagram for Eaagles::Basic::LcMonitorMetrics:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LcMonitorMetrics ()
 LcMonitorMetrics (const LcTable1 *redLuminance, const LcTable1 *greenLuminance, const LcTable1 *blueLuminance, const osg::Matrix &phosphorCoordinates, const osg::Vec3 &whiteRGB, const osg::Vec3 &whiteCIE)
bool setSlotRed (const LcTable1 *red)
bool setSlotGreen (const LcTable1 *green)
bool setSlotBlue (const LcTable1 *blue)
bool setSlotPhosphors (const LcList *phosphors)
bool setSlotWhiteRGB (const LcList *whiteRGB)
bool setSlotWhiteCIE (const LcList *whiteCIE)
void cie2rgb (osg::Vec4 &rgba, const osg::Vec3 &cie) const

Private Member Functions

bool computeMatrix ()

Private Attributes

osg::Matrix transform
SPtr< const LcTable1redLuminance
SPtr< const LcTable1greenLuminance
SPtr< const LcTable1blueLuminance
osg::Matrix phosphorCoordinates
osg::Vec3 refwhiteRGB
osg::Vec3 refwhiteCIE

Detailed Description

Defines the characteristics of a monitor, needed to accurately match color.

    Slots:
       1. red       (Table1) Red luminance vs RGB level ( both luminance and RGB level range from 0..1 )
       2. green     (Table1) Green luminance vs RGB level
       3. blue      (Table1) Blue luminance vs RGB level
       4. phosphors (List)   Phosphor coordinates ( 6 element list, 2 each for red, green, blue )
       5. whiteRGB  (List)   RGB value of reference white ( 3 element list )
       6. whiteCIE  (List)   CIE coordinate of reference white ( 3 element list )

    Events: None 


Constructor & Destructor Documentation

Eaagles::Basic::LcMonitorMetrics::LcMonitorMetrics (  ) 

Eaagles::Basic::LcMonitorMetrics::LcMonitorMetrics ( const LcTable1 redLuminance,
const LcTable1 greenLuminance,
const LcTable1 blueLuminance,
const osg::Matrix &  phosphorCoordinates,
const osg::Vec3 &  whiteRGB,
const osg::Vec3 &  whiteCIE 
)

Special constuctor to initialize the object with the given values.


Member Function Documentation

bool Eaagles::Basic::LcMonitorMetrics::setSlotRed ( const LcTable1 red  ) 

Slot table function to set 'red' slot.

bool Eaagles::Basic::LcMonitorMetrics::setSlotGreen ( const LcTable1 green  ) 

Slot table function to set 'green' slot.

bool Eaagles::Basic::LcMonitorMetrics::setSlotBlue ( const LcTable1 blue  ) 

Slot table function to set 'blue' slot.

bool Eaagles::Basic::LcMonitorMetrics::setSlotPhosphors ( const LcList *  phosphors  ) 

Slot table function to set phosphor coordinates.

bool Eaagles::Basic::LcMonitorMetrics::setSlotWhiteRGB ( const LcList *  whiteRGB  ) 

Slot table function to set RGB value of reference white.

bool Eaagles::Basic::LcMonitorMetrics::setSlotWhiteCIE ( const LcList *  whiteCIE  ) 

Slot table function to set CIE coordinate of reference white.

void Eaagles::Basic::LcMonitorMetrics::cie2rgb ( osg::Vec4 &  rgba,
const osg::Vec3 &  cie 
) const

Convert a CIE color into an RGB value for this monitor.

bool Eaagles::Basic::LcMonitorMetrics::computeMatrix (  )  [private]


Member Data Documentation

osg::Matrix Eaagles::Basic::LcMonitorMetrics::transform [private]

transform matrix from CIE to RGB for this monitor

SPtr<const LcTable1> Eaagles::Basic::LcMonitorMetrics::redLuminance [private]

RGB luminances vs RGB level on this monitor.

SPtr<const LcTable1> Eaagles::Basic::LcMonitorMetrics::greenLuminance [private]

SPtr<const LcTable1> Eaagles::Basic::LcMonitorMetrics::blueLuminance [private]

osg::Matrix Eaagles::Basic::LcMonitorMetrics::phosphorCoordinates [private]

CIE coordinates of Red, Green, and Blue for this monitor.

osg::Vec3 Eaagles::Basic::LcMonitorMetrics::refwhiteRGB [private]

RGB coordinates of a reference white.

osg::Vec3 Eaagles::Basic::LcMonitorMetrics::refwhiteCIE [private]

CIE coordinates of a reference white.


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