OpendTect-6_4  6.4
Public Member Functions | Protected Attributes | Private Member Functions | 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)
 
void update ()
 Call when sequence, mapper, or nr cols changed. More...
 
Color color (float v) const
 
int indexForValue (float) const
 
Color colorForIndex (int) const
 
void setMapper (const Mapper *m)
 
void setNrCols (int n)
 
int nrCols ()
 

Protected Attributes

const Sequenceseq_
 
const Mappermapper_
 
int nrcols_
 
TypeSet< Colorcols_
 

Private Member Functions

 mODTextTranslationClass (IndexedLookUpTable)
 

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

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

Member Function Documentation

Color ColTab::IndexedLookUpTable::color ( float  v) const
inline
Color ColTab::IndexedLookUpTable::colorForIndex ( int  ) const
int ColTab::IndexedLookUpTable::indexForValue ( float  ) const
ColTab::IndexedLookUpTable::mODTextTranslationClass ( IndexedLookUpTable  )
private
int ColTab::IndexedLookUpTable::nrCols ( )
inline
void ColTab::IndexedLookUpTable::setMapper ( const Mapper m)
inline
void ColTab::IndexedLookUpTable::setNrCols ( int  n)
inline
void ColTab::IndexedLookUpTable::update ( )

Call when sequence, mapper, or nr cols changed.

Friends And Related Function Documentation

friend class Indexer
friend

Member Data Documentation

TypeSet<Color> ColTab::IndexedLookUpTable::cols_
protected
const Mapper* ColTab::IndexedLookUpTable::mapper_
protected
int ColTab::IndexedLookUpTable::nrcols_
protected
const Sequence& ColTab::IndexedLookUpTable::seq_
protected

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