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

Represents a unique trace position in one of the surveys that OpendTect is managing. More...

Public Types

typedef IdxPair::IdxType IdxType
 
typedef OD::GeomSystem SurvID
 

Public Member Functions

 TrcKey ()
 
 TrcKey (const BinID &)
 
 TrcKey (const Pos::IdxPair &, bool is2d)
 
 TrcKey (OD::GeomSystem, const BinID &)
 
 TrcKey (OD::GeomSystem, const Pos::IdxPair &)
 
 TrcKey (Pos::GeomID, Pos::TraceID)
 
const BinIDbinID () const
 
IdxType crl () const
 
double distTo (const TrcKey &) const
 
bool exists () const
 checks in geometry More...
 
const Survey::Geometrygeometry () const
 
Pos::GeomID geomID () const
 
OD::GeomSystem geomSystem () const
 
Coord getCoord () const
 Uses OD::GeomSystem. More...
 
TrcKey getFor (Pos::GeomID) const
 
TrcKey getFor2D (IdxType lnr) const
 
TrcKey getFor3D () const
 
Pos::IdxPair idxPair () const
 
IdxType inl () const
 
bool is2D () const
 
bool is3D () const
 
bool isSynthetic () const
 
bool isUdf () const
 
IdxTypelineNr ()
 
IdxType lineNr () const
 
bool operator!= (const TrcKey &oth) const
 
bool operator== (const TrcKey &) const
 
const BinIDpos () const
 
const BinIDposition () const
 
TrcKeysetBinID (const BinID &bid)
 
TrcKeysetCrl (IdxType nr)
 
TrcKeysetFrom (const Coord &)
 Uses OD::GeomSystem. More...
 
TrcKeysetGeomID (Pos::GeomID)
 
TrcKeysetGeomSystem (OD::GeomSystem)
 
TrcKeysetInl (IdxType nr)
 
TrcKeysetIs2D ()
 
TrcKeysetIs2D (bool yn)
 
TrcKeysetIs3D ()
 
TrcKeysetIsSynthetic ()
 
TrcKeysetLineNr (IdxType nr)
 
void setPos (const BinID &bid)
 
TrcKeysetPosition (const BinID &)
 
TrcKeysetPosition (const Pos::IdxPair &, bool is2d)
 
TrcKeysetPosition (Pos::GeomID gid, IdxType trcnr)
 
TrcKeysetSurvID (OD::GeomSystem)
 
TrcKeysetTrcNr (IdxType tnr)
 
TrcKeysetUdf ()
 
double sqDistTo (const TrcKey &) const
 
OD::GeomSystem survID () const
 
IdxTypetrcNr ()
 
IdxType trcNr () const
 
BufferString usrDispStr () const
 

Static Public Member Functions

static OD::GeomSystem cUndefSurvID ()
 
static Pos::GeomID geomID (OD::GeomSystem, const BinID &)
 
static TrcKey getSynth (Pos::TraceID)
 
static Pos::GeomID gtGeomID (OD::GeomSystem, IdxType linenr=-1)
 
static bool is2D (OD::GeomSystem gs)
 
static OD::GeomSystem std2DSurvID ()
 
static OD::GeomSystem std3DSurvID ()
 
static const TrcKeyudf ()
 

Private Attributes

OD::GeomSystem geomsystem_
 
BinID pos_
 

Detailed Description

Represents a unique trace position in one of the surveys that OpendTect is managing.

The class is a combination of a unique survey ID and a bin position ID which is currently implemented using a BinID (2D trace number is the crossline).

<>

Member Typedef Documentation

◆ IdxType

◆ SurvID

Constructor & Destructor Documentation

◆ TrcKey() [1/6]

TrcKey::TrcKey ( )
inline

◆ TrcKey() [2/6]

TrcKey::TrcKey ( const BinID )
explicit

◆ TrcKey() [3/6]

TrcKey::TrcKey ( Pos::GeomID  ,
Pos::TraceID   
)

◆ TrcKey() [4/6]

TrcKey::TrcKey ( const Pos::IdxPair ,
bool  is2d 
)

◆ TrcKey() [5/6]

TrcKey::TrcKey ( OD::GeomSystem  ,
const Pos::IdxPair  
)

◆ TrcKey() [6/6]

TrcKey::TrcKey ( OD::GeomSystem  ,
const BinID  
)
explicit

Member Function Documentation

◆ binID()

const BinID& TrcKey::binID ( ) const
inline

◆ crl()

IdxType TrcKey::crl ( ) const
inline

◆ cUndefSurvID()

static OD::GeomSystem TrcKey::cUndefSurvID ( )
inlinestatic

◆ distTo()

double TrcKey::distTo ( const TrcKey ) const

◆ exists()

bool TrcKey::exists ( ) const

checks in geometry

◆ geometry()

const Survey::Geometry& TrcKey::geometry ( ) const

◆ geomID() [1/2]

Pos::GeomID TrcKey::geomID ( ) const

◆ geomID() [2/2]

static Pos::GeomID TrcKey::geomID ( OD::GeomSystem  ,
const BinID  
)
static

◆ geomSystem()

OD::GeomSystem TrcKey::geomSystem ( ) const
inline

◆ getCoord()

Coord TrcKey::getCoord ( ) const

◆ getFor()

TrcKey TrcKey::getFor ( Pos::GeomID  ) const

◆ getFor2D()

TrcKey TrcKey::getFor2D ( IdxType  lnr) const

◆ getFor3D()

TrcKey TrcKey::getFor3D ( ) const

◆ getSynth()

static TrcKey TrcKey::getSynth ( Pos::TraceID  )
static

◆ gtGeomID()

static Pos::GeomID TrcKey::gtGeomID ( OD::GeomSystem  ,
IdxType  linenr = -1 
)
static

◆ idxPair()

Pos::IdxPair TrcKey::idxPair ( ) const

◆ inl()

IdxType TrcKey::inl ( ) const
inline

◆ is2D() [1/2]

bool TrcKey::is2D ( ) const
inline

◆ is2D() [2/2]

static bool TrcKey::is2D ( OD::GeomSystem  gs)
inlinestatic

◆ is3D()

bool TrcKey::is3D ( ) const
inline

◆ isSynthetic()

bool TrcKey::isSynthetic ( ) const
inline

◆ isUdf()

bool TrcKey::isUdf ( ) const
inline

◆ lineNr() [1/2]

IdxType& TrcKey::lineNr ( )

◆ lineNr() [2/2]

IdxType TrcKey::lineNr ( ) const
inline

◆ operator!=()

bool TrcKey::operator!= ( const TrcKey oth) const
inline

◆ operator==()

bool TrcKey::operator== ( const TrcKey ) const

◆ pos()

const BinID& TrcKey::pos ( ) const
inline

◆ position()

const BinID& TrcKey::position ( ) const
inline

◆ setBinID()

TrcKey& TrcKey::setBinID ( const BinID bid)
inline

◆ setCrl()

TrcKey& TrcKey::setCrl ( IdxType  nr)
inline

◆ setFrom()

TrcKey& TrcKey::setFrom ( const Coord )

◆ setGeomID()

TrcKey& TrcKey::setGeomID ( Pos::GeomID  )

◆ setGeomSystem()

TrcKey& TrcKey::setGeomSystem ( OD::GeomSystem  )

◆ setInl()

TrcKey& TrcKey::setInl ( IdxType  nr)
inline

◆ setIs2D() [1/2]

TrcKey& TrcKey::setIs2D ( )
inline

◆ setIs2D() [2/2]

TrcKey& TrcKey::setIs2D ( bool  yn)
inline

◆ setIs3D()

TrcKey& TrcKey::setIs3D ( )
inline

◆ setIsSynthetic()

TrcKey& TrcKey::setIsSynthetic ( )
inline

◆ setLineNr()

TrcKey& TrcKey::setLineNr ( IdxType  nr)
inline

◆ setPos()

void TrcKey::setPos ( const BinID bid)
inline

◆ setPosition() [1/3]

TrcKey& TrcKey::setPosition ( const BinID )

◆ setPosition() [2/3]

TrcKey& TrcKey::setPosition ( const Pos::IdxPair ,
bool  is2d 
)

◆ setPosition() [3/3]

TrcKey& TrcKey::setPosition ( Pos::GeomID  gid,
IdxType  trcnr 
)
inline

◆ setSurvID()

TrcKey& TrcKey::setSurvID ( OD::GeomSystem  )

◆ setTrcNr()

TrcKey& TrcKey::setTrcNr ( IdxType  tnr)
inline

◆ setUdf()

TrcKey& TrcKey::setUdf ( )
inline

◆ sqDistTo()

double TrcKey::sqDistTo ( const TrcKey ) const

◆ std2DSurvID()

static OD::GeomSystem TrcKey::std2DSurvID ( )
inlinestatic

◆ std3DSurvID()

static OD::GeomSystem TrcKey::std3DSurvID ( )
inlinestatic

◆ survID()

OD::GeomSystem TrcKey::survID ( ) const
inline

◆ trcNr() [1/2]

IdxType& TrcKey::trcNr ( )

◆ trcNr() [2/2]

IdxType TrcKey::trcNr ( ) const
inline

◆ udf()

static const TrcKey& TrcKey::udf ( )
static

◆ usrDispStr()

BufferString TrcKey::usrDispStr ( ) const

Member Data Documentation

◆ geomsystem_

OD::GeomSystem TrcKey::geomsystem_
private

◆ pos_

BinID TrcKey::pos_
private

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