OpendTect  6.6
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | List of all members
ColTab::Mapper Class Reference

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

DataClipperclipper_
 
const ValueSeries< float > * vs_
 
od_int64 vssz_
 

Detailed Description

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.

<>

Constructor & Destructor Documentation

◆ Mapper()

ColTab::Mapper::Mapper ( )

defaults maps from [0,1] to [0,1]

◆ ~Mapper()

ColTab::Mapper::~Mapper ( )

Member Function Documentation

◆ data()

const ValueSeries<float>* ColTab::Mapper::data ( ) const
inline

◆ dataSize()

od_int64 ColTab::Mapper::dataSize ( ) const
inline

◆ isFlipped()

bool ColTab::Mapper::isFlipped ( ) const
inline

◆ position()

float ColTab::Mapper::position ( float  val) const

returns position in ColorTable

◆ range()

const Interval<float>& ColTab::Mapper::range ( ) const

◆ setData()

void ColTab::Mapper::setData ( const ValueSeries< float > *  ,
od_int64  sz,
TaskRunner = 0 
)

If data changes, call update()

◆ setFlipped()

void ColTab::Mapper::setFlipped ( bool  yn)
inline

◆ setRange()

void ColTab::Mapper::setRange ( const Interval< float > &  rg)

◆ snappedPosition()

static int ColTab::Mapper::snappedPosition ( const Mapper ,
float  val,
int  nrsteps,
int  udfval 
)
static

◆ update()

void ColTab::Mapper::update ( bool  full = true,
TaskRunner = 0 
)

If !full, will assume data is unchanged.

Member Data Documentation

◆ clipper_

DataClipper& ColTab::Mapper::clipper_
protected

◆ setup_

MapperSetup ColTab::Mapper::setup_

◆ vs_

const ValueSeries<float>* ColTab::Mapper::vs_
protected

◆ vssz_

od_int64 ColTab::Mapper::vssz_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022