Go to the documentation of this file.
12 #include <util/color.h>
13 #include <util/watchdog.h>
25 typedef util::Color<GLfloat>
Color;
60 Color getColor(
unsigned int ind1,
unsigned int ind2,
double w,
double alpha = 1)
const;
66 void useColor(
unsigned int index,
double alpha = 1)
const;
75 void blend(
unsigned int ind1,
unsigned int ind2,
double w,
double alpha = 1)
const;
91 void select(
unsigned int start,
unsigned int end,
double w,
double alpha = 1)
const;
101 Color selectColor(
unsigned int start,
unsigned int end,
double w,
double alpha = 1)
const;
A utility class for palettes.
void select(unsigned int start, unsigned int end, double w, double alpha=1) const
Select a color from a range in a palette and make it the current OpenGL color.
void reread()
Reread the file describing the palette.
CU_HOST_DEVICE const const T T c2
void useColor(unsigned int index, double alpha=1) const
Get a color and make it the current OpenGL color.
void blend(unsigned int ind1, unsigned int ind2, double w, double alpha=1) const
Blend two colors together and make the result the current OpenGL color.
CU_HOST_DEVICE const const T c1
util::Color< GLfloat > Color
Color getColor(unsigned int index, double alpha=1) const
Get a color from the palette.
Color selectColor(unsigned int start, unsigned int end, double w, double alpha=1) const
Select a color from a range in a palette and returns it.
Palette()
Construct an empty palette with only black colors.