10 #ifndef smtk_common_Color_h
11 #define smtk_common_Color_h
13 #include "smtk/CoreExports.h"
14 #include "smtk/SystemConfig.h"
30 stringToFloatRGBA(
double* rgba,
const std::string& colorSpec,
double defaultAlpha = 1.0);
33 std::vector<double>& rgba,
34 const std::string& colorSpec,
35 double defaultAlpha = 1.0)
40 static std::string floatRGBAToString(
const double* rgb);
41 static std::string floatRGBAToString(
const float* rgb);
42 static std::string floatRGBToString(
const double* rgb);
43 static std::string floatRGBToString(
const float* rgb);
44 static double floatRGBToLightness(
const double* rgb);
45 static float floatRGBToLightness(
const float* rgb);
51 #endif // smtk_common_Color_h