Eaagles::Basic::LcHsva Class Reference

Inherits Eaagles::Basic::LcHsv.

Inheritance diagram for Eaagles::Basic::LcHsva:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LcHsva (const LCreal h, const LCreal s, const LCreal v, const LCreal a)
 LcHsva ()
void getHSVA (osg::Vec4 &hsva) const
bool setHSVA (const osg::Vec4 &vec)
bool colorInterpolate (const LCreal value, const LCreal minValue, const LCreal maxValue, const LcHsva &minColor, const LcHsva &maxColor)

Detailed Description

 Defines a color by Hue, Saturation, Value and Alpha

    Form name: hsva
    Slots:
       1. hue        (Number)  Set the hue component (0.0 to 360.0)
       2. saturation (Number)  Set the saturation component (0.0 to 1.0)
       3. value      (Number)  Set the value component (0.0 to 1.0)
       4. alpha      (Number)  Set the alpha 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
           HSVA color vector. 


Constructor & Destructor Documentation

Eaagles::Basic::LcHsva::LcHsva ( const LCreal  h,
const LCreal  s,
const LCreal  v,
const LCreal  a 
)

Special constuctor that initializes the object to h, s, v and a.

Eaagles::Basic::LcHsva::LcHsva (  ) 


Member Function Documentation

void Eaagles::Basic::LcHsva::getHSVA ( osg::Vec4 &  hsva  )  const [inline]

Returns the HSVA components in a vector.

Reimplemented from Eaagles::Basic::LcHsv.

bool Eaagles::Basic::LcHsva::setHSVA ( const osg::Vec4 &  vec  )  [inline]

Reimplemented from Eaagles::Basic::LcHsv.

bool Eaagles::Basic::LcHsva::colorInterpolate ( const LCreal  value,
const LCreal  minValue,
const LCreal  maxValue,
const LcHsva minColor,
const LcHsva maxColor 
)


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