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

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

To XYZ.

Definition at line 148 of file Color.h.

References Impala::Core::Array::Element::CMY, Impala::Core::Array::Element::ColCMY2XYZ(), Impala::Core::Array::Element::ColHSI2RGB(), Impala::Core::Array::Element::ColLab2XYZ(), Impala::Core::Array::Element::ColLuv2XYZ(), Impala::Core::Array::Element::ColOOO2XYZ(), Color(), Impala::Core::Array::Element::ColRGB2XYZ(), 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().

00149     { 
00150         switch (mSpace) {
00151         case RGB:
00152             return Color(ColRGB2XYZ(mValue), XYZ);
00153         case CMY:
00154             return Color(ColCMY2XYZ(mValue), XYZ);
00155         case XYZ:
00156             return *this;
00157         case Lab:
00158             return Color(ColLab2XYZ(mValue), XYZ);
00159         case Luv:
00160             return Color(ColLuv2XYZ(mValue), XYZ);
00161         case OOO:
00162             return Color(ColOOO2XYZ(mValue), XYZ);
00163         case HSI: {
00164             Vec3Real64 rgb = ColHSI2RGB(mValue);
00165             return Color(ColRGB2XYZ(rgb), XYZ);
00166         }
00167         }
00168 
00169         return Color();
00170     }

Here is the call graph for this function:


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