OpendTect
7.0
|
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) | |
~IndexedLookUpTable () | |
OD::Color | color (float v) const |
OD::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< OD::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 |
||
) |
ColTab::IndexedLookUpTable::~IndexedLookUpTable | ( | ) |
|
inline |
OD::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-2024