OpendTect  7.0
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
TrcKeyZSampling Class Reference

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 Pos::GeomID &)
 
 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 fillInfoSet (StringPairSet &, float zscale=Values::Undef< float >::val()) const
 
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...
 
bool getIntersection (const TrcKeyZSampling &, TrcKeyZSampling &, bool ignoresteps) 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
 
TrcKeyZSamplingoperator= (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 ()
 
std::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

TrcKeySamplinghrg
 
TrcKeySampling hsamp_
 
StepInterval< float > & zrg
 
StepInterval< float > zsamp_
 

Detailed Description

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.

<>

Member Enumeration Documentation

◆ Dir

Enumerator
Inl 
Crl 

Constructor & Destructor Documentation

◆ TrcKeyZSampling() [1/4]

TrcKeyZSampling::TrcKeyZSampling ( )

◆ TrcKeyZSampling() [2/4]

TrcKeyZSampling::TrcKeyZSampling ( const TrcKeyZSampling )

◆ TrcKeyZSampling() [3/4]

TrcKeyZSampling::TrcKeyZSampling ( bool  settoSI)

◆ TrcKeyZSampling() [4/4]

TrcKeyZSampling::TrcKeyZSampling ( const Pos::GeomID )
explicit

Member Function Documentation

◆ adjustTo()

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.

◆ crlIdx()

int TrcKeyZSampling::crlIdx ( int  crl) const
inline

◆ defaultDir()

Dir TrcKeyZSampling::defaultDir ( ) const

'flattest' direction, i.e. direction with smallest size. If equal, prefer Inl then Crl then Z

◆ expand()

void TrcKeyZSampling::expand ( int  nrlines,
int  nrtrcs,
int  nrz 
)

◆ fillInfoSet()

void TrcKeyZSampling::fillInfoSet ( StringPairSet ,
float  zscale = Values::Undef< float >::val() 
) const

◆ fillJSON()

void TrcKeyZSampling::fillJSON ( OD::JSON::Object ) const

◆ fillPar()

void TrcKeyZSampling::fillPar ( IOPar ) const

◆ getDefaultNormal()

void TrcKeyZSampling::getDefaultNormal ( Coord3 ) const

◆ getIntersection() [1/2]

bool TrcKeyZSampling::getIntersection ( const TrcKeyZSampling ,
TrcKeyZSampling  
) const

Returns false if intersection is empty.

◆ getIntersection() [2/2]

bool TrcKeyZSampling::getIntersection ( const TrcKeyZSampling ,
TrcKeyZSampling ,
bool  ignoresteps 
) const

Returns false if intersection is empty.

◆ growTo()

void TrcKeyZSampling::growTo ( const TrcKeyZSampling outertkzs,
float  releps = 1e-4 
)

grows "this" tkzs up to but not across outertkzs boundaries. Counterpart of shrinkTo(.) function.

◆ include() [1/3]

void TrcKeyZSampling::include ( const BinID bid,
float  z 
)

◆ include() [2/3]

void TrcKeyZSampling::include ( const TrcKey ,
float  z 
)

◆ include() [3/3]

void TrcKeyZSampling::include ( const TrcKeyZSampling )

◆ includes()

bool TrcKeyZSampling::includes ( const TrcKeyZSampling ) const

◆ init()

void TrcKeyZSampling::init ( bool  settoSI = true)

Sets hrg_.init and zrg_ to survey values or zeros.

◆ inlIdx()

int TrcKeyZSampling::inlIdx ( int  inl) const
inline

◆ is2D()

bool TrcKeyZSampling::is2D ( ) const
inline

◆ isDefined()

bool TrcKeyZSampling::isDefined ( ) const

◆ isEmpty()

bool TrcKeyZSampling::isEmpty ( ) const

◆ isEqual()

bool TrcKeyZSampling::isEqual ( const TrcKeyZSampling ,
float  zeps = Values::Undef< float >::val() 
) const

◆ isFlat()

bool TrcKeyZSampling::isFlat ( ) const

is one of directions size 1?

◆ limitTo()

void TrcKeyZSampling::limitTo ( const TrcKeyZSampling ,
bool  ignoresteps = false 
)

◆ limitToWithUdf()

void TrcKeyZSampling::limitToWithUdf ( const TrcKeyZSampling )

handles undef values + returns reference cube nearest limit if the 2 cubes do not intersect

◆ lineIdx()

int TrcKeyZSampling::lineIdx ( Pos::LineID  ) const

◆ makeCompatibleWith()

bool TrcKeyZSampling::makeCompatibleWith ( const TrcKeyZSampling othertkzs)

makes "this" tkzs compatible to othertkzs. Only keeps locations lying on the grid of othertkzs.

◆ normalise()

void TrcKeyZSampling::normalise ( )

◆ normalize()

void TrcKeyZSampling::normalize ( )

Makes sure start<stop and steps are non-zero.

◆ nrCrl()

int TrcKeyZSampling::nrCrl ( ) const
inline

◆ nrInl()

int TrcKeyZSampling::nrInl ( ) const
inline

◆ nrLines()

int TrcKeyZSampling::nrLines ( ) const

◆ nrTrcs()

int TrcKeyZSampling::nrTrcs ( ) const

◆ nrZ()

int TrcKeyZSampling::nrZ ( ) const

◆ operator!=()

bool TrcKeyZSampling::operator!= ( const TrcKeyZSampling ) const

◆ operator=()

TrcKeyZSampling& TrcKeyZSampling::operator= ( const TrcKeyZSampling )

◆ operator==()

bool TrcKeyZSampling::operator== ( const TrcKeyZSampling ) const

◆ removeInfo()

static void TrcKeyZSampling::removeInfo ( IOPar )
static

◆ set2DDef()

void TrcKeyZSampling::set2DDef ( )

Sets to survey zrange and.

◆ setEmpty()

void TrcKeyZSampling::setEmpty ( )
inline

◆ shrinkTo()

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.

◆ size()

int TrcKeyZSampling::size ( Dir  d) const

◆ snapToSurvey()

void TrcKeyZSampling::snapToSurvey ( )

Checks if it is on valid bids and sample positions. If not, it will expand until it is

◆ totalNr()

std::int64_t TrcKeyZSampling::totalNr ( ) const

◆ trcIdx()

int TrcKeyZSampling::trcIdx ( Pos::TraceID  ) const

◆ useJSON()

bool TrcKeyZSampling::useJSON ( const OD::JSON::Object )

◆ usePar()

bool TrcKeyZSampling::usePar ( const IOPar )

◆ zAtIndex()

float TrcKeyZSampling::zAtIndex ( int  idx) const

◆ zIdx()

int TrcKeyZSampling::zIdx ( float  z) const

Member Data Documentation

◆ hrg

TrcKeySampling& TrcKeyZSampling::hrg

◆ hsamp_

TrcKeySampling TrcKeyZSampling::hsamp_

◆ zrg

StepInterval<float>& TrcKeyZSampling::zrg

◆ zsamp_

StepInterval<float> TrcKeyZSampling::zsamp_

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