![]() |
OpendTect
6.3
|
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 |
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).
| typedef TypeSet<int> ColTab::IndexTable::SetType |
| ColTab::IndexTable::IndexTable | ( | int | sz, |
| SeqUseMode | |||
| ) |
| ColTab::IndexTable::IndexTable | ( | int | sz, |
| const Mapper & | |||
| ) |
| ColTab::IndexTable::IndexTable | ( | const SetType & | , |
| SamplingType | |||
| ) |
|
inline |
|
private |
| int ColTab::IndexTable::indexFor | ( | ValueType | ) | const |
no udf protection
|
inline |
|
protected |
|
inline |
|
friend |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2017