OpendTect  6.3
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Friends | List of all members
ColTab::IndexTable Class Reference

Table of color indexes at regular value positions. the indexes point direcly into the colors from a ColTab::Sequence. More...

Public Types

typedef TypeSet< int > SetType
 

Public Member Functions

 IndexTable (int sz, SeqUseMode)
 
 IndexTable (int sz, const Mapper &)
 
 IndexTable (const SetType &, SamplingType)
 
int size () const
 
int colIndex (int idx) const
 
SamplingType sampling () const
 
int indexFor (ValueType) const
 no udf protection More...
 

Protected Member Functions

void setIndex (const Mapper &, int)
 

Protected Attributes

SetType idxs_
 
SamplingType sampling_
 

Private Member Functions

void createTable (const Mapper &, int)
 

Friends

class IndexTableFiller
 

Detailed Description

Table of color indexes at regular value positions. the indexes point direcly into the colors from a ColTab::Sequence.

You usually create the index table from a Mapper. The Mapper::seqPosition() call can be quite costly. So here you can pre-create a table of indexes.

The object does not check on undef or rubbish values. Check this yourself and take appropriate action. You can pass values outside the range though (returns first or last index).

Member Typedef Documentation

Constructor & Destructor Documentation

ColTab::IndexTable::IndexTable ( int  sz,
SeqUseMode   
)
ColTab::IndexTable::IndexTable ( int  sz,
const Mapper  
)
ColTab::IndexTable::IndexTable ( const SetType ,
SamplingType   
)

Member Function Documentation

int ColTab::IndexTable::colIndex ( int  idx) const
inline
void ColTab::IndexTable::createTable ( const Mapper ,
int   
)
private
int ColTab::IndexTable::indexFor ( ValueType  ) const

no udf protection

SamplingType ColTab::IndexTable::sampling ( ) const
inline
void ColTab::IndexTable::setIndex ( const Mapper ,
int   
)
protected
int ColTab::IndexTable::size ( ) const
inline

Friends And Related Function Documentation

friend class IndexTableFiller
friend

Member Data Documentation

SetType ColTab::IndexTable::idxs_
protected
SamplingType ColTab::IndexTable::sampling_
protected

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