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

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

To OOO.

Definition at line 244 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(), Color(), Impala::Core::Array::Element::ColRGB2OOO(), Impala::Core::Array::Element::ColXYZ2OOO(), 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().

00245     { 
00246         switch (mSpace) {
00247         case RGB:
00248             return Color(ColRGB2OOO(mValue), OOO);
00249         case CMY: {
00250             Vec3Real64 rgb = ColCMY2RGB(mValue);
00251             return Color(ColRGB2OOO(rgb), OOO);
00252         }
00253         case XYZ:
00254             return Color(ColXYZ2OOO(mValue), OOO);
00255         case Lab: {
00256             Vec3Real64 xyz = ColLab2XYZ(mValue);
00257             return Color(ColXYZ2OOO(mValue), OOO);
00258         }
00259         case Luv: {
00260             Vec3Real64 xyz = ColLuv2XYZ(mValue);
00261             return Color(ColXYZ2OOO(mValue), OOO);
00262         }
00263         case OOO:
00264             return *this;
00265         case HSI: {
00266             Vec3Real64 rgb = ColHSI2RGB(mValue);
00267             return Color(ColRGB2OOO(rgb), OOO);
00268         }
00269         }
00270 
00271         return Color();
00272     }

Here is the call graph for this function:


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