26 : colorsP(cols), boundsP(bnds) {}
28 : colorsP(cols), boundsP(0) {}
31 Colorb getColor(
int index)
const;
33 Colorb getColor(
float s,
float sBegin,
float sEnd,
int iBegin,
int iEnd)
const;
34 Colorb getColor(
float s,
float sBegin,
float sEnd)
const;
35 Colorb getColor(
float s,
int iBegin,
int iEnd)
const;
36 Colorb getColor(
float s)
const;
39 bool setColorMap(
const QString &
map,
uint sz = 0);
41 QStringList getColorMapList()
const;
45 std::vector<Colorb> &
colors() {
return *colorsP; }
46 const std::vector<Colorb> &
colors()
const {
return *colorsP; }
48 const Point2f &
bounds()
const {
return hasBounds() ? *boundsP : dummyBounds; }
51 std::vector<Colorb> *colorsP;