OpendTect  7.0
Public Member Functions | Protected Attributes | Friends | List of all members
ColTab::IndexedLookUpTable Class Reference

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::Colorcols_
 
const Mappermapper_
 
int nrcols_
 
const Sequenceseq_
 

Friends

class Indexer
 

Detailed Description

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.

<>

Constructor & Destructor Documentation

◆ IndexedLookUpTable()

ColTab::IndexedLookUpTable::IndexedLookUpTable ( const Sequence ,
int  nrcols = 0,
const Mapper m = 0 
)

◆ ~IndexedLookUpTable()

ColTab::IndexedLookUpTable::~IndexedLookUpTable ( )

Member Function Documentation

◆ color()

OD::Color ColTab::IndexedLookUpTable::color ( float  v) const
inline

◆ colorForIndex()

OD::Color ColTab::IndexedLookUpTable::colorForIndex ( int  ) const

◆ indexForValue()

int ColTab::IndexedLookUpTable::indexForValue ( float  ) const

◆ nrCols()

int ColTab::IndexedLookUpTable::nrCols ( )
inline

◆ setMapper()

void ColTab::IndexedLookUpTable::setMapper ( const Mapper m)
inline

◆ setNrCols()

void ColTab::IndexedLookUpTable::setNrCols ( int  n)
inline

◆ update()

void ColTab::IndexedLookUpTable::update ( )

Call when sequence, mapper, or nr cols changed.

Friends And Related Function Documentation

◆ Indexer

friend class Indexer
friend

Member Data Documentation

◆ cols_

TypeSet<OD::Color> ColTab::IndexedLookUpTable::cols_
protected

◆ mapper_

const Mapper* ColTab::IndexedLookUpTable::mapper_
protected

◆ nrcols_

int ColTab::IndexedLookUpTable::nrcols_
protected

◆ seq_

const Sequence& ColTab::IndexedLookUpTable::seq_
protected

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