OpendTect
6.6
|
Looks up color for certain value. Keeps a pre-calc list of colors. More...
Public Member Functions | |
IndexedLookUpTable (const Sequence &, int nrcols=0, const Mapper *m=0) | |
Color | color (float v) const |
Color | colorForIndex (int) const |
int | indexForValue (float) const |
int | nrCols () |
void | setMapper (const Mapper *m) |
void | setNrCols (int n) |
void | update () |
Call when sequence, mapper, or nr cols changed. More... | |
Protected Attributes | |
TypeSet< Color > | cols_ |
const Mapper * | mapper_ |
int | nrcols_ |
const Sequence & | seq_ |
Friends | |
class | Indexer |
Looks up color for certain value. Keeps a pre-calc list of colors.
Note that sequence and mapper need to stay alive; no copy is made.
<>
ColTab::IndexedLookUpTable::IndexedLookUpTable | ( | const Sequence & | , |
int | nrcols = 0 , |
||
const Mapper * | m = 0 |
||
) |
|
inline |
Color ColTab::IndexedLookUpTable::colorForIndex | ( | int | ) | const |
int ColTab::IndexedLookUpTable::indexForValue | ( | float | ) | const |
|
inline |
|
inline |
|
inline |
void ColTab::IndexedLookUpTable::update | ( | ) |
Call when sequence, mapper, or nr cols changed.
|
friend |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022