29 colors_ = Qwt3D::ColorVector(size);
34 for (i = 0; i != size; ++i)
37 elem.g = i / dsize / 4;
38 elem.b = 1 - i / dsize;
61 for (i = 0; i !=
colors_.size(); ++i)
76 if ((
unsigned int)index >
colors_.size() - 1)
77 index = (
int)(
colors_.size() - 1);
void setAlpha(double a)
Sets unitary alpha value for all colors.
void setColorVector(Qwt3D::ColorVector const &cv)
Qwt3D::ColorVector colors_
BarColor(Qwt3D::Plot3D *data, unsigned size=100, double min=0, double max=0)
Initializes with data and set up a ColorVector with a size of 100 z values (default);.
void reset(unsigned size=100)
Resets the standard colors;.
Qwt3D::RGBA operator()(double x, double y, double z) const
Receives z-dependend color from ColorVector.