OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | List of all members
TrcKeySampling Class Reference

Horizontal sampling (inline and crossline range and steps). More...

Public Member Functions

 TrcKeySampling ()
 
 TrcKeySampling (const TrcKeySampling &)
 
 TrcKeySampling (Pos::GeomID)
 
bool is2D () const
 
Pos::GeomID getGeomID () const
 
TrcKeySamplingset (const Interval< int > &linerg, const Interval< int > &trcnrrg)
 steps copied if available More...
 
void get (Interval< int > &linerg, Interval< int > &trcnrrg) const
 steps filled if available More...
 
TrcKeySampling getLineChunk (int totalchunks, int chunknr) const
 totalchunks > 0, 0 <= chunknr < totalchunks More...
 
StepInterval< int > lineRange () const
 
StepInterval< int > trcRange () const
 
float lineDistance () const
 
float trcDistance () const
 
void setLineRange (const Interval< int > &)
 
void setTrcRange (const Interval< int > &)
 
bool includes (const TrcKeySampling &, bool ignoresteps=false) const
 
bool includes (const TrcKey &) const
 
bool includes (const TrcKey &, bool ignoresteps) const
 
bool lineOK (Pos::LineID) const
 
bool trcOK (Pos::TraceID) const
 
bool lineOK (Pos::LineID, bool ignoresteps) const
 
bool trcOK (Pos::TraceID, bool ignoresteps) const
 
void include (const TrcKey &)
 
void includeLine (Pos::LineID)
 
void includeTrc (Pos::TraceID)
 
void include (const TrcKeySampling &, bool ignoresteps=false)
 
bool isDefined () const
 
void limitTo (const TrcKeySampling &, bool ignoresteps=false)
 
void limitToWithUdf (const TrcKeySampling &)
 
void expand (int nrlines, int nrtrcs)
 
int lineIdx (Pos::LineID) const
 
int trcIdx (Pos::TraceID) const
 
Pos::LineID lineID (int) const
 
Pos::TraceID traceID (int) const
 
int64_t globalIdx (const TrcKey &) const
 
int64_t globalIdx (const BinID &) const
 
BinID atIndex (int i0, int i1) const
 
BinID atIndex (int64_t globalidx) const
 
TrcKey trcKeyAt (int i0, int i1) const
 
TrcKey trcKeyAt (int64_t globalidx) const
 
TrcKey toTrcKey (const Coord &, float *distance=0) const
 
Coord toCoord (const BinID &) const
 
TrcKey center () const
 
int nrLines () const
 
int nrTrcs () const
 
int64_t totalNr () const
 
bool isEmpty () const
 
void neighbors (int64_t globalidx, TypeSet< int64_t > &) const
 
void neighbors (const TrcKey &, TypeSet< TrcKey > &) const
 
void init (bool settoSI=true)
 Sets to survey values or mUdf(int) (but step 1) More...
 
bool init (Pos::GeomID)
 
void set2DDef ()
 Sets ranges to 0-maxint. More...
 
void normalise ()
 Makes sure start_<stop_ and steps are non-zero. More...
 
void getRandomSet (int nr, TypeSet< TrcKey > &) const
 
bool getInterSection (const TrcKeySampling &, TrcKeySampling &) const
 Returns false if intersection is empty. More...
 
BinID getNearest (const BinID &) const
 
TrcKey getNearest (const TrcKey &) const
 
void snapToSurvey ()
 
bool operator== (const TrcKeySampling &) const
 
bool operator!= (const TrcKeySampling &) const
 
TrcKeySamplingoperator= (const TrcKeySampling &)
 
bool usePar (const IOPar &)
 Keys as in keystrs.h. More...
 
void fillPar (IOPar &) const
 Keys as in keystrs.h. More...
 
void toString (BufferString &) const
 Nice text for info. More...
 
 TrcKeySampling (bool settoSI)
 
StepInterval< int > inlRange () const
 
StepInterval< int > crlRange () const
 
void setInlRange (const Interval< int > &rg)
 
void setCrlRange (const Interval< int > &rg)
 
int nrInl () const
 
int nrCrl () const
 
int inlIdx (Pos::LineID lid) const
 
int crlIdx (Pos::TraceID tid) const
 
void include (const BinID &bid)
 
void includeInl (int inl)
 
void includeCrl (int crl)
 
bool includes (const BinID &bid) const
 
bool inlOK (int inl) const
 
bool crlOK (int crl) const
 
bool includes (const BinID &bid, bool ignoresteps) const
 
void shrinkTo (const TrcKeySampling &innertks)
 
void growTo (const TrcKeySampling &outertks)
 

Static Public Member Functions

static void removeInfo (IOPar &)
 

Public Attributes

Pos::SurvID survid_
 
BinID start_
 
BinID stop_
 
BinID step_
 
BinIDstart
 
BinIDstop
 
BinIDstep
 

Private Member Functions

bool doLimitTo (StepInterval< int > &, const StepInterval< int > &, const bool ignoresteps, const bool nostephandling)
 

Detailed Description

Horizontal sampling (inline and crossline range and steps).

Constructor & Destructor Documentation

TrcKeySampling::TrcKeySampling ( )
TrcKeySampling::TrcKeySampling ( const TrcKeySampling )
TrcKeySampling::TrcKeySampling ( Pos::GeomID  )
TrcKeySampling::TrcKeySampling ( bool  settoSI)

Member Function Documentation

BinID TrcKeySampling::atIndex ( int  i0,
int  i1 
) const
BinID TrcKeySampling::atIndex ( int64_t  globalidx) const
TrcKey TrcKeySampling::center ( ) const
int TrcKeySampling::crlIdx ( Pos::TraceID  tid) const
inline
bool TrcKeySampling::crlOK ( int  crl) const
inline
StepInterval<int> TrcKeySampling::crlRange ( ) const
inline
bool TrcKeySampling::doLimitTo ( StepInterval< int > &  ,
const StepInterval< int > &  ,
const bool  ignoresteps,
const bool  nostephandling 
)
private
void TrcKeySampling::expand ( int  nrlines,
int  nrtrcs 
)
void TrcKeySampling::fillPar ( IOPar ) const

Keys as in keystrs.h.

void TrcKeySampling::get ( Interval< int > &  linerg,
Interval< int > &  trcnrrg 
) const

steps filled if available

Pos::GeomID TrcKeySampling::getGeomID ( ) const
bool TrcKeySampling::getInterSection ( const TrcKeySampling ,
TrcKeySampling  
) const

Returns false if intersection is empty.

TrcKeySampling TrcKeySampling::getLineChunk ( int  totalchunks,
int  chunknr 
) const

totalchunks > 0, 0 <= chunknr < totalchunks

BinID TrcKeySampling::getNearest ( const BinID ) const
TrcKey TrcKeySampling::getNearest ( const TrcKey ) const

step_-snap and outside -> edge. Assumes inldist == crldist

void TrcKeySampling::getRandomSet ( int  nr,
TypeSet< TrcKey > &   
) const
int64_t TrcKeySampling::globalIdx ( const TrcKey ) const
int64_t TrcKeySampling::globalIdx ( const BinID ) const
void TrcKeySampling::growTo ( const TrcKeySampling outertks)
void TrcKeySampling::include ( const TrcKey )
void TrcKeySampling::include ( const TrcKeySampling ,
bool  ignoresteps = false 
)
void TrcKeySampling::include ( const BinID bid)
inline
void TrcKeySampling::includeCrl ( int  crl)
inline
void TrcKeySampling::includeInl ( int  inl)
inline
void TrcKeySampling::includeLine ( Pos::LineID  )
bool TrcKeySampling::includes ( const TrcKeySampling ,
bool  ignoresteps = false 
) const
bool TrcKeySampling::includes ( const TrcKey ) const
bool TrcKeySampling::includes ( const TrcKey ,
bool  ignoresteps 
) const
bool TrcKeySampling::includes ( const BinID bid) const
inline
bool TrcKeySampling::includes ( const BinID bid,
bool  ignoresteps 
) const
inline
void TrcKeySampling::includeTrc ( Pos::TraceID  )
void TrcKeySampling::init ( bool  settoSI = true)

Sets to survey values or mUdf(int) (but step 1)

bool TrcKeySampling::init ( Pos::GeomID  )
int TrcKeySampling::inlIdx ( Pos::LineID  lid) const
inline
bool TrcKeySampling::inlOK ( int  inl) const
inline
StepInterval<int> TrcKeySampling::inlRange ( ) const
inline
bool TrcKeySampling::is2D ( ) const
inline
bool TrcKeySampling::isDefined ( ) const
bool TrcKeySampling::isEmpty ( ) const
void TrcKeySampling::limitTo ( const TrcKeySampling ,
bool  ignoresteps = false 
)
void TrcKeySampling::limitToWithUdf ( const TrcKeySampling )

handles undef values +returns reference HS nearest limit if HS's do not intersect

float TrcKeySampling::lineDistance ( ) const

real world distance between 2 lines incremented by one times the step_

Pos::LineID TrcKeySampling::lineID ( int  lidx) const
inline
int TrcKeySampling::lineIdx ( Pos::LineID  line) const
inline
bool TrcKeySampling::lineOK ( Pos::LineID  ) const
bool TrcKeySampling::lineOK ( Pos::LineID  ,
bool  ignoresteps 
) const
StepInterval<int> TrcKeySampling::lineRange ( ) const
void TrcKeySampling::neighbors ( int64_t  globalidx,
TypeSet< int64_t > &   
) const
void TrcKeySampling::neighbors ( const TrcKey ,
TypeSet< TrcKey > &   
) const
void TrcKeySampling::normalise ( )

Makes sure start_<stop_ and steps are non-zero.

int TrcKeySampling::nrCrl ( ) const
inline
int TrcKeySampling::nrInl ( ) const
inline
int TrcKeySampling::nrLines ( ) const
int TrcKeySampling::nrTrcs ( ) const
bool TrcKeySampling::operator!= ( const TrcKeySampling ) const
TrcKeySampling& TrcKeySampling::operator= ( const TrcKeySampling )
bool TrcKeySampling::operator== ( const TrcKeySampling ) const
static void TrcKeySampling::removeInfo ( IOPar )
static
TrcKeySampling& TrcKeySampling::set ( const Interval< int > &  linerg,
const Interval< int > &  trcnrrg 
)

steps copied if available

void TrcKeySampling::set2DDef ( )

Sets ranges to 0-maxint.

void TrcKeySampling::setCrlRange ( const Interval< int > &  rg)
inline
void TrcKeySampling::setInlRange ( const Interval< int > &  rg)
inline
void TrcKeySampling::setLineRange ( const Interval< int > &  )
void TrcKeySampling::setTrcRange ( const Interval< int > &  )
void TrcKeySampling::shrinkTo ( const TrcKeySampling innertks)
void TrcKeySampling::snapToSurvey ( )

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

Coord TrcKeySampling::toCoord ( const BinID ) const
void TrcKeySampling::toString ( BufferString ) const

Nice text for info.

int64_t TrcKeySampling::totalNr ( ) const
TrcKey TrcKeySampling::toTrcKey ( const Coord ,
float *  distance = 0 
) const
Pos::TraceID TrcKeySampling::traceID ( int  tidx) const
inline
float TrcKeySampling::trcDistance ( ) const

real world distance between 2 traces incremented by one times the step_

int TrcKeySampling::trcIdx ( Pos::TraceID  trcid) const
inline
TrcKey TrcKeySampling::trcKeyAt ( int  i0,
int  i1 
) const
TrcKey TrcKeySampling::trcKeyAt ( int64_t  globalidx) const
bool TrcKeySampling::trcOK ( Pos::TraceID  ) const
bool TrcKeySampling::trcOK ( Pos::TraceID  ,
bool  ignoresteps 
) const
StepInterval<int> TrcKeySampling::trcRange ( ) const
bool TrcKeySampling::usePar ( const IOPar )

Keys as in keystrs.h.

Member Data Documentation

BinID& TrcKeySampling::start
BinID TrcKeySampling::start_
BinID& TrcKeySampling::step
BinID TrcKeySampling::step_
BinID& TrcKeySampling::stop
BinID TrcKeySampling::stop_
Pos::SurvID TrcKeySampling::survid_

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