![]() |
OpendTect
6.3
|
Table of colors at regular value positions. More...
Public Types | |
| typedef TypeSet< Color > | SetType |
Public Member Functions | |
| Table (const Sequence &, int sz, SeqUseMode) | |
| Table (const Sequence &, int sz, const Mapper &) | |
| Table (const SetType &, SamplingType) | |
| int | size () const |
| Color | color (int idx) const |
| SamplingType | sampling () const |
| int | indexFor (ValueType) const |
| no udf protection More... | |
| Color | colorAt (ValueType) const |
| no udf protection More... | |
| Color | snappedColorAt (ValueType val) const |
Protected Member Functions | |
| void | setColor (const Sequence &, const Mapper &, int) |
Protected Attributes | |
| SetType | cols_ |
| SamplingType | sampling_ |
Private Member Functions | |
| void | createTable (const Sequence &seq, const Mapper &, int) |
Friends | |
| class | TableFiller |
Table of colors at regular value positions.
You usually create the table from a Sequence and a Mapper. The Mapper::seqPosition() and Sequence::color() calls can be quite costly. For standard jobs involving a lot of data you cannot afford that. So, you need to pre-calculate a fixed number of exact colors and snap to those, or, if you can want to and you can afford it, interpolate. So, you use this class.
The indexFor() and getColorAt() functions do not check on undef or rubbish being passed. Check this yourself and take appropriate action. You can pass values outside the range though (returns first or last index or color).
| typedef TypeSet<Color> ColTab::Table::SetType |
| ColTab::Table::Table | ( | const Sequence & | , |
| int | sz, | ||
| SeqUseMode | |||
| ) |
| ColTab::Table::Table | ( | const SetType & | , |
| SamplingType | |||
| ) |
|
inline |
| int ColTab::Table::indexFor | ( | ValueType | ) | const |
no udf protection
|
inline |
|
inline |
|
friend |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2017