OpendTect
7.0
|
Maps data values to colortable positions: [0,1]. More...
Public Member Functions | |
Mapper () | |
defaults maps from [0,1] to [0,1] More... | |
Mapper (const Mapper &) | |
Mapper (const Mapper &, bool shareclipper) | |
~Mapper () | |
const ValueSeries< float > * | data () const |
od_int64 | dataSize () const |
bool | isFlipped () const |
Mapper & | operator= (const Mapper &) |
float | position (float val) const |
returns position in ColorTable More... | |
const Interval< float > & | range () const |
void | setData (const ArrayND< float > &, TaskRunner *=nullptr) |
If data changes, call update() More... | |
void | setData (const float *, od_int64 sz, TaskRunner *=nullptr) |
void | setData (const ValueSeries< float > &, TaskRunner *=nullptr) |
void | setFlipped (bool yn) |
void | setRange (const Interval< float > &) |
void | update (bool full=true, TaskRunner *=nullptr) |
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 | |
const ArrayND< float > * | arrnd_ = nullptr |
DataClipper * | clipper_ |
bool | clipperismine_ |
const float * | dataptr_ = nullptr |
od_int64 | datasz_ = -1 |
const ValueSeries< float > * | vs_ = nullptr |
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 | ( | const Mapper & | ) |
ColTab::Mapper::Mapper | ( | const Mapper & | , |
bool | shareclipper | ||
) |
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 ArrayND< float > & | , |
TaskRunner * | = nullptr |
||
) |
If data changes, call update()
void ColTab::Mapper::setData | ( | const float * | , |
od_int64 | sz, | ||
TaskRunner * | = nullptr |
||
) |
void ColTab::Mapper::setData | ( | const ValueSeries< float > & | , |
TaskRunner * | = nullptr |
||
) |
|
inline |
void ColTab::Mapper::setRange | ( | const Interval< float > & | ) |
|
static |
void ColTab::Mapper::update | ( | bool | full = true , |
TaskRunner * | = nullptr |
||
) |
If !full, will assume data is unchanged.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
MapperSetup ColTab::Mapper::setup_ |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024