OpendTect
6.6
|
Maps data values to colortable positions: [0,1]. More...
Public Member Functions | |
Mapper () | |
defaults maps from [0,1] to [0,1] More... | |
~Mapper () | |
const ValueSeries< float > * | data () const |
od_int64 | dataSize () const |
bool | isFlipped () const |
float | position (float val) const |
returns position in ColorTable More... | |
const Interval< float > & | range () const |
void | setData (const ValueSeries< float > *, od_int64 sz, TaskRunner *=0) |
If data changes, call update() More... | |
void | setFlipped (bool yn) |
void | setRange (const Interval< float > &rg) |
void | update (bool full=true, TaskRunner *=0) |
If !full, will assume data is unchanged. More... | |
Static Public Member Functions | |
static int | snappedPosition (const Mapper *, float val, int nrsteps, int udfval) |
Public Attributes | |
MapperSetup | setup_ |
Protected Attributes | |
DataClipper & | clipper_ |
const ValueSeries< float > * | vs_ |
od_int64 | vssz_ |
Maps data values to colortable positions: [0,1].
If nrsegs_ > 0, the mapper will return the centers of the segments only. For example, if nsegs_ == 3, only positions returned are 1/6, 3/6 and 5/6.
<>
ColTab::Mapper::Mapper | ( | ) |
defaults maps from [0,1] to [0,1]
ColTab::Mapper::~Mapper | ( | ) |
|
inline |
|
inline |
|
inline |
float ColTab::Mapper::position | ( | float | val | ) | const |
returns position in ColorTable
const Interval<float>& ColTab::Mapper::range | ( | ) | const |
void ColTab::Mapper::setData | ( | const ValueSeries< float > * | , |
od_int64 | sz, | ||
TaskRunner * | = 0 |
||
) |
If data changes, call update()
|
inline |
void ColTab::Mapper::setRange | ( | const Interval< float > & | rg | ) |
|
static |
void ColTab::Mapper::update | ( | bool | full = true , |
TaskRunner * | = 0 |
||
) |
If !full, will assume data is unchanged.
|
protected |
MapperSetup ColTab::Mapper::setup_ |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022