47using namespace DISPLIB;
78 else if(x >= 0.375 && x < 0.625)
80 else if(x >= 0.625 && x < 0.875)
81 return (
int)floor(1.0*255);
95 else if(x >= 0.125 && x < 0.375)
97 else if(x >= 0.375 && x < 0.625)
98 return (
int)floor(1.0*255);
99 else if(x >= 0.625 && x < 0.875)
112 else if(x >= 0.125 && x < 0.375)
113 return (
int)floor(1.0*255);
114 else if(x >= 0.375 && x < 0.625)
126 return (
int)floor(
linearSlope(x, 2.5621, 0.0392)*255);
128 return (
int)floor(1.0*255);
138 else if(x >= 0.375 && x < 0.75)
139 return (
int)floor(
linearSlope(x, 2.6667, -1.0)*255);
141 return (
int)floor(1.0*255);
163 return (
int)floor(
linearSlope(x, 2.7832, -0.6090)*255);
165 return (
int)floor(1.0*255);
175 else if(x >= 0.5781 && x < 0.8125)
176 return (
int)floor(
linearSlope(x, 4.2662, -2.4663)*255);
178 return (
int)floor(1.0*255);
189 return (
int)floor(
linearSlope(x,5.3333,-4.3333)*255);
200 return (
int)floor(
linearSlope(x, 3.5549, -1.9996)*255);
202 return (
int)floor(1.0*255);
212 else if(x >= 0.8438 && x < 0.9531)
213 return (
int)floor(
linearSlope(x, 9.1491, -7.72)*255);
215 return (
int)floor(1.0*255);
226 return (
int)floor(
linearSlope(x,21.3220,-20.3220)*255);
236 else if(x >= 0.375 && x < 0.75)
237 return (
int)floor(
linearSlope(x, 0.8889, -0.0157)*255);
239 return (
int)floor(
linearSlope(x, 1.396, -0.396)*255);
249 else if(x >= 0.375 && x < 0.75)
250 return (
int)floor(
linearSlope(x, 1.2237, -0.1413)*255);
252 return (
int)floor(
linearSlope(x, 0.894, 0.106)*255);
261 return (
int)floor(
linearSlope(x, 1.1712, 0.0039)*255);
262 else if(x >= 0.375 && x < 0.75)
263 return (
int)floor(
linearSlope(x, 0.8889, 0.1098)*255);
265 return (
int)floor(
linearSlope(x, 0.8941, 0.1059)*255);
276 return (
int)floor(1.0*255);
296 return (
int)floor(1.0*255);
323 return (
int)floor(1.0*255);
ColorMap class declaration.
static int hotG(double v)
static int coolR(double v)
static int hotRNeg2(double v)
static double linearSlope(double x, double m, double n)
static int boneR(double v)
static int hotGNeg2(double v)
static int jetR(double v)
static int hotBNeg2(double v)
static int jetB(double v)
static int jetG(double v)
static int hotBNeg1(double v)
static int hotGNeg1(double v)
static int coolB(double v)
static int hotRNeg1(double v)
static int boneB(double v)
static int hotR(double v)
static int hotB(double v)
static int boneG(double v)
static int coolG(double v)