OpendTect
6.6
|
Hor+Vert sampling in 3D surveys. More...
Public Types | |
enum | Dir { Inl =0 , Crl =1 , Z =2 } |
Public Member Functions | |
TrcKeyZSampling () | |
TrcKeyZSampling (bool settoSI) | |
TrcKeyZSampling (const TrcKeyZSampling &) | |
bool | adjustTo (const TrcKeyZSampling &availabletkzs, bool falsereturnsdummy=false) |
int | crlIdx (int crl) const |
Dir | defaultDir () const |
void | expand (int nrlines, int nrtrcs, int nrz) |
void | fillJSON (OD::JSON::Object &) const |
void | fillPar (IOPar &) const |
void | getDefaultNormal (Coord3 &) const |
bool | getIntersection (const TrcKeyZSampling &, TrcKeyZSampling &) const |
Returns false if intersection is empty. More... | |
void | growTo (const TrcKeyZSampling &outertkzs, float releps=1e-4) |
void | include (const BinID &bid, float z) |
void | include (const TrcKey &, float z) |
void | include (const TrcKeyZSampling &) |
bool | includes (const TrcKeyZSampling &) const |
void | init (bool settoSI=true) |
Sets hrg_.init and zrg_ to survey values or zeros. More... | |
int | inlIdx (int inl) const |
bool | is2D () const |
bool | isDefined () const |
bool | isEmpty () const |
bool | isEqual (const TrcKeyZSampling &, float zeps=Values::Undef< float >::val()) const |
bool | isFlat () const |
is one of directions size 1? More... | |
void | limitTo (const TrcKeyZSampling &, bool ignoresteps=false) |
void | limitToWithUdf (const TrcKeyZSampling &) |
int | lineIdx (Pos::LineID) const |
bool | makeCompatibleWith (const TrcKeyZSampling &othertkzs) |
void | normalise () |
void | normalize () |
Makes sure start<stop and steps are non-zero. More... | |
int | nrCrl () const |
int | nrInl () const |
int | nrLines () const |
int | nrTrcs () const |
int | nrZ () const |
bool | operator!= (const TrcKeyZSampling &) const |
TrcKeyZSampling & | operator= (const TrcKeyZSampling &) |
bool | operator== (const TrcKeyZSampling &) const |
void | set2DDef () |
Sets to survey zrange and. More... | |
void | setEmpty () |
void | shrinkTo (const TrcKeyZSampling &innertkzs, float releps=1e-4) |
int | size (Dir d) const |
void | snapToSurvey () |
int64_t | totalNr () const |
int | trcIdx (Pos::TraceID) const |
bool | useJSON (const OD::JSON::Object &) |
bool | usePar (const IOPar &) |
float | zAtIndex (int idx) const |
int | zIdx (float z) const |
Static Public Member Functions | |
static void | removeInfo (IOPar &) |
Public Attributes | |
TrcKeySampling & | hrg |
TrcKeySampling | hsamp_ |
StepInterval< float > & | zrg |
StepInterval< float > | zsamp_ |
Hor+Vert sampling in 3D surveys.
When slices are to be taken from a TrcKeyZSampling, they should be ordered as follows:
Dir | Dim1 | Dim2 |
---|---|---|
Inl | Crl | Z |
Crl | Inl | Z |
Z | Inl | Crl |
See also the direction() and dimension() free functions.
<>
enum TrcKeyZSampling::Dir |
TrcKeyZSampling::TrcKeyZSampling | ( | ) |
TrcKeyZSampling::TrcKeyZSampling | ( | const TrcKeyZSampling & | ) |
TrcKeyZSampling::TrcKeyZSampling | ( | bool | settoSI | ) |
bool TrcKeyZSampling::adjustTo | ( | const TrcKeyZSampling & | availabletkzs, |
bool | falsereturnsdummy = false |
||
) |
adjusts the non-flat dimensions of the desired "this" tkzs to the availabletkzs for optimal texture data display.
|
inline |
Dir TrcKeyZSampling::defaultDir | ( | ) | const |
'flattest' direction, i.e. direction with smallest size. If equal, prefer Inl then Crl then Z
void TrcKeyZSampling::expand | ( | int | nrlines, |
int | nrtrcs, | ||
int | nrz | ||
) |
void TrcKeyZSampling::fillJSON | ( | OD::JSON::Object & | ) | const |
void TrcKeyZSampling::fillPar | ( | IOPar & | ) | const |
void TrcKeyZSampling::getDefaultNormal | ( | Coord3 & | ) | const |
bool TrcKeyZSampling::getIntersection | ( | const TrcKeyZSampling & | , |
TrcKeyZSampling & | |||
) | const |
Returns false if intersection is empty.
void TrcKeyZSampling::growTo | ( | const TrcKeyZSampling & | outertkzs, |
float | releps = 1e-4 |
||
) |
grows "this" tkzs up to but not across outertkzs boundaries. Counterpart of shrinkTo(.) function.
void TrcKeyZSampling::include | ( | const BinID & | bid, |
float | z | ||
) |
void TrcKeyZSampling::include | ( | const TrcKey & | , |
float | z | ||
) |
void TrcKeyZSampling::include | ( | const TrcKeyZSampling & | ) |
bool TrcKeyZSampling::includes | ( | const TrcKeyZSampling & | ) | const |
void TrcKeyZSampling::init | ( | bool | settoSI = true | ) |
Sets hrg_.init and zrg_ to survey values or zeros.
|
inline |
|
inline |
bool TrcKeyZSampling::isDefined | ( | ) | const |
bool TrcKeyZSampling::isEmpty | ( | ) | const |
bool TrcKeyZSampling::isEqual | ( | const TrcKeyZSampling & | , |
float | zeps = Values::Undef< float >::val() |
||
) | const |
bool TrcKeyZSampling::isFlat | ( | ) | const |
is one of directions size 1?
void TrcKeyZSampling::limitTo | ( | const TrcKeyZSampling & | , |
bool | ignoresteps = false |
||
) |
void TrcKeyZSampling::limitToWithUdf | ( | const TrcKeyZSampling & | ) |
handles undef values + returns reference cube nearest limit if the 2 cubes do not intersect
int TrcKeyZSampling::lineIdx | ( | Pos::LineID | ) | const |
bool TrcKeyZSampling::makeCompatibleWith | ( | const TrcKeyZSampling & | othertkzs | ) |
makes "this" tkzs compatible to othertkzs. Only keeps locations lying on the grid of othertkzs.
void TrcKeyZSampling::normalise | ( | ) |
void TrcKeyZSampling::normalize | ( | ) |
Makes sure start<stop and steps are non-zero.
|
inline |
|
inline |
int TrcKeyZSampling::nrLines | ( | ) | const |
int TrcKeyZSampling::nrTrcs | ( | ) | const |
int TrcKeyZSampling::nrZ | ( | ) | const |
bool TrcKeyZSampling::operator!= | ( | const TrcKeyZSampling & | ) | const |
TrcKeyZSampling& TrcKeyZSampling::operator= | ( | const TrcKeyZSampling & | ) |
bool TrcKeyZSampling::operator== | ( | const TrcKeyZSampling & | ) | const |
|
static |
void TrcKeyZSampling::set2DDef | ( | ) |
Sets to survey zrange and.
|
inline |
void TrcKeyZSampling::shrinkTo | ( | const TrcKeyZSampling & | innertkzs, |
float | releps = 1e-4 |
||
) |
shrinks "this" tkzs up to but not across innertkzs boundaries. Result will be one step larger than limitTo(.) in case of non-matching steps.
int TrcKeyZSampling::size | ( | Dir | d | ) | const |
void TrcKeyZSampling::snapToSurvey | ( | ) |
Checks if it is on valid bids and sample positions. If not, it will expand until it is
int64_t TrcKeyZSampling::totalNr | ( | ) | const |
int TrcKeyZSampling::trcIdx | ( | Pos::TraceID | ) | const |
bool TrcKeyZSampling::useJSON | ( | const OD::JSON::Object & | ) |
bool TrcKeyZSampling::usePar | ( | const IOPar & | ) |
float TrcKeyZSampling::zAtIndex | ( | int | idx | ) | const |
int TrcKeyZSampling::zIdx | ( | float | z | ) | const |
TrcKeySampling& TrcKeyZSampling::hrg |
TrcKeySampling TrcKeyZSampling::hsamp_ |
StepInterval<float>& TrcKeyZSampling::zrg |
StepInterval<float> TrcKeyZSampling::zsamp_ |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022