15 #include "generalmod.h" 36 IndexedLookUpTable(
const Sequence&,
int nrcols=0,
43 {
return colorForIndex( indexForValue(v) ); }
44 int indexForValue(
float)
const;
45 Color colorForIndex(
int)
const;
#define mExpClass(module)
Definition: commondefs.h:160
Color color(float v) const
Definition: coltabindex.h:42
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Maps from [0,1] -> Color.
Definition: coltabsequence.h:37
const Sequence & seq_
Definition: coltabindex.h:53
void setMapper(const Mapper *m)
Definition: coltabindex.h:47
int nrcols_
Definition: coltabindex.h:55
Maps data values to colortable positions: [0,1].
Definition: coltabmapper.h:84
Looks up color for certain value. Keeps a pre-calc list of colors.
Definition: coltabindex.h:32
TypeSet< Color > cols_
Definition: coltabindex.h:56
Color Table
Definition: coltab.h:22
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
int nrCols()
Definition: coltabindex.h:49
void setNrCols(int n)
Definition: coltabindex.h:48
const Mapper * mapper_
Definition: coltabindex.h:54