Convert RGB Vec3Real64 to an ARGB integer representation.
Definition at line 384 of file ColConvert.h. References Impala::Core::Array::Element::Vec3Real64::X(), Impala::Core::Array::Element::Vec3Real64::Y(), and Impala::Core::Array::Element::Vec3Real64::Z(). 00385 { 00386 int x = (int) (v.X()); 00387 if (x < 0) 00388 x = 0; 00389 else { 00390 if (x > 255) 00391 x = 255; 00392 } 00393 int y = (int) (v.Y()); 00394 if (y < 0) 00395 y = 0; 00396 else { 00397 if (y > 255) 00398 y = 255; 00399 } 00400 int z = (int) (v.Z()); 00401 if (z < 0) 00402 z = 0; 00403 else { 00404 if (z > 255) 00405 z = 255; 00406 } 00407 return (255 << 24) | (x << 16) | (y << 8) | z; 00408 }
Here is the call graph for this function:
|