Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

Color Impala::Core::Array::Element::Color::ToRGB (  )  const [inline]

To RGB.

Definition at line 88 of file Color.h.

References Impala::Core::Array::Element::CMY, Impala::Core::Array::Element::ColCMY2RGB(), Impala::Core::Array::Element::ColHSI2RGB(), Impala::Core::Array::Element::ColLab2XYZ(), Impala::Core::Array::Element::ColLuv2XYZ(), Impala::Core::Array::Element::ColOOO2RGB(), Color(), Impala::Core::Array::Element::ColXYZ2RGB(), Impala::Core::Array::Element::HSI, Impala::Core::Array::Element::Lab, Impala::Core::Array::Element::Luv, mSpace, mValue, Impala::Core::Array::Element::OOO, Impala::Core::Array::Element::RGB, and Impala::Core::Array::Element::XYZ.

Referenced by Convert().

00089     { 
00090         switch (mSpace) {
00091         case RGB:
00092             return *this;
00093         case CMY:
00094             return Color(ColCMY2RGB(mValue), RGB);
00095         case XYZ:
00096             return Color(ColXYZ2RGB(mValue), RGB);
00097         case Lab: {
00098             Vec3Real64 xyz = ColLab2XYZ(mValue);
00099             return Color(ColXYZ2RGB(xyz), RGB);
00100         }
00101         case Luv: {
00102             Vec3Real64 xyz = ColLuv2XYZ(mValue);
00103             return Color(ColXYZ2RGB(xyz), RGB);
00104         }
00105         case OOO:
00106             return Color(ColOOO2RGB(mValue), RGB);
00107         case HSI:
00108             return Color(ColHSI2RGB(mValue), RGB);
00109         }
00110 
00111         return Color();
00112     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:17:28 2011 for ImpalaSrc by  doxygen 1.5.1