Go to the documentation of this file.
   26 #ifndef __TERRALIB_COLOR_INTERNAL_COLOR_TRANSFORM_H 
   27 #define __TERRALIB_COLOR_INTERNAL_COLOR_TRANSFORM_H 
   54         enum Spec { Invalid, Rgb, Hsv, Cmyk, Hsl };
 
  139         void getRgba(
int* r, 
int* g, 
int* b, 
int* a=0) 
const;
 
  276         void getHsv(
int *h, 
int *s, 
int *v, 
int *a = 0) 
const;
 
  288         void setHsv(
int h, 
int s, 
int v, 
int a = 255);
 
  329         void getCmyk(
int *c, 
int *m, 
int *y, 
int *k, 
int *a = 0);
 
  342         void setCmyk(
int c, 
int m, 
int y, 
int k, 
int a = 255);
 
  381         void getHsl(
int *h, 
int *s, 
int *l, 
int *a = 0) 
const;
 
  393         void setHsl(
int h, 
int s, 
int l, 
int a = 255);
 
  427         inline bool isValid() 
const;
 
  434         int round(
double d) 
const;
 
  444         bool fuzzyCompare(
double p1, 
double p2) 
const;
 
  453         bool fuzzyIsNull(
double d) 
const;
 
  455         template <
typename T>
 
  456         const T& 
vMin(
const T &a, 
const T &b)
 const {
if (a < b) 
return a; 
return b;}
 
  475             unsigned short alpha;
 
  484             unsigned short alpha;
 
  493             unsigned short alpha;
 
  495             unsigned short saturation;
 
  500           unsigned short array[5];
 
  521       return d >= 0.0 ? int(d + 0.5) : int(d - 
int(d-1) + 0.5) + int(d-1); 
 
  526         return (fabs(p1 - p2) <= 0.000000000001 * 
vMin(fabs(p1), fabs(p2)));
 
  531         return fabs(d) <= 0.000000000001;
 
  545 #endif  // __TERRALIB_COLOR_INTERNAL_COLOR_TRANSFORM_H 
  
 
A helper class for 24-bit RGBA (Red-Green-Blue-Alpha channel) color.
 
#define TECOLOREXPORT
You can use this macro in order to export/import classes and functions from this module.
 
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.
 
Proxy configuration file for TerraView (see terraview_config.h).