OpendTect  7.0
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
Survey::Geometry Class Referenceabstract

A Geometry which holds trace positions. More...

Inheritance diagram for Survey::Geometry:
[legend]

Public Types

enum  RelationType {
  UnRelated =0 , Related , SubSet , SuperSet ,
  Identical
}
 

Public Member Functions

virtual Geometry2Das2D ()
 
const Geometry2Das2D () const
 
virtual Geometry3Das3D ()
 
const Geometry3Das3D () const
 
virtual float averageTrcDist () const =0
 
virtual RelationType compare (const Geometry &, bool usezrg) const
 
OD::GeomSystem geomSystem () const
 
Pos::GeomID getID () const
 
virtual const char * getName () const =0
 
OD::GeomSystem getSurvID () const
 
virtual TrcKey getTrace (const Coord &, float maxdist) const
 
bool includes (const BinID &b) const
 
bool includes (const TrcKey &) const
 
virtual bool includes (Pos::LineID, Pos::TraceID) const =0
 
virtual bool is2D () const =0
 
virtual TrcKey nearestTrace (const Coord &, float *distance=nullptr) const =0
 
const TrcKeyZSamplingsampling () const
 
void setID (Pos::GeomID id)
 
Coord toCoord (const BinID &b) const
 
virtual Coord toCoord (Pos::LineID, Pos::TraceID) const =0
 
- Public Member Functions inherited from RefCount::Referenced
void addObserver (WeakPtrBase *obs)
 Not for normal use. May become private. More...
 
int nrRefs () const
 Only for expert use. More...
 
void ref () const
 
bool refIfReffed () const
 Don't use in production, for debugging. More...
 
void removeObserver (WeakPtrBase *obs)
 Not for normal use. May become private. More...
 
bool tryRef () const
 Not for normal use. May become private. More...
 
void unRef () const
 
void unRefNoDelete () const
 

Static Public Member Functions

static const Geometrydefault3D ()
 
static bool exists (const TrcKey &)
 
static Coord toCoord (const TrcKey &)
 
- Static Public Member Functions inherited from RefCount::Referenced
static bool isSane (const Referenced *)
 

Protected Member Functions

 Geometry ()
 
virtual ~Geometry ()
 
- Protected Member Functions inherited from RefCount::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
virtual ~Referenced ()
 
Referencedoperator= (const Referenced &)
 

Protected Attributes

TrcKeyZSampling sampling_
 

Private Attributes

Pos::GeomID id_
 

Detailed Description

A Geometry which holds trace positions.

For 3D, a geometry is an Inl/Crl System. For 2D, each line has its own Geometry.

Beware, the Pos::GeomID != OD::GeomSytem for 2D geometries. The GeomID will end up in the lineNr() of the TrcKey.

<>

Member Enumeration Documentation

◆ RelationType

Enumerator
UnRelated 
Related 
SubSet 
SuperSet 
Identical 

Constructor & Destructor Documentation

◆ Geometry()

Survey::Geometry::Geometry ( )
protected

◆ ~Geometry()

virtual Survey::Geometry::~Geometry ( )
protectedvirtual

Member Function Documentation

◆ as2D() [1/2]

virtual Geometry2D* Survey::Geometry::as2D ( )
inlinevirtual

Reimplemented in Survey::Geometry2D.

◆ as2D() [2/2]

const Geometry2D* Survey::Geometry::as2D ( ) const

◆ as3D() [1/2]

virtual Geometry3D* Survey::Geometry::as3D ( )
inlinevirtual

Reimplemented in Survey::Geometry3D.

◆ as3D() [2/2]

const Geometry3D* Survey::Geometry::as3D ( ) const

◆ averageTrcDist()

virtual float Survey::Geometry::averageTrcDist ( ) const
pure virtual

Implemented in Survey::Geometry3D, and Survey::Geometry2D.

◆ compare()

virtual RelationType Survey::Geometry::compare ( const Geometry ,
bool  usezrg 
) const
inlinevirtual

Reimplemented in Survey::Geometry3D, and Survey::Geometry2D.

◆ default3D()

static const Geometry& Survey::Geometry::default3D ( )
static

◆ exists()

static bool Survey::Geometry::exists ( const TrcKey )
static

◆ geomSystem()

OD::GeomSystem Survey::Geometry::geomSystem ( ) const

◆ getID()

Pos::GeomID Survey::Geometry::getID ( ) const
inline

◆ getName()

virtual const char* Survey::Geometry::getName ( ) const
pure virtual

Implemented in Survey::Geometry3D, and Survey::Geometry2D.

◆ getSurvID()

OD::GeomSystem Survey::Geometry::getSurvID ( ) const

◆ getTrace()

virtual TrcKey Survey::Geometry::getTrace ( const Coord ,
float  maxdist 
) const
virtual

◆ includes() [1/3]

bool Survey::Geometry::includes ( const BinID b) const
inline

◆ includes() [2/3]

bool Survey::Geometry::includes ( const TrcKey ) const

◆ includes() [3/3]

virtual bool Survey::Geometry::includes ( Pos::LineID  ,
Pos::TraceID   
) const
pure virtual

◆ is2D()

virtual bool Survey::Geometry::is2D ( ) const
pure virtual

Implemented in Survey::Geometry3D, and Survey::Geometry2D.

◆ nearestTrace()

virtual TrcKey Survey::Geometry::nearestTrace ( const Coord ,
float *  distance = nullptr 
) const
pure virtual

Implemented in Survey::Geometry3D, and Survey::Geometry2D.

◆ sampling()

const TrcKeyZSampling& Survey::Geometry::sampling ( ) const
inline

◆ setID()

void Survey::Geometry::setID ( Pos::GeomID  id)
inline

◆ toCoord() [1/3]

Coord Survey::Geometry::toCoord ( const BinID b) const
inline

◆ toCoord() [2/3]

static Coord Survey::Geometry::toCoord ( const TrcKey )
static

◆ toCoord() [3/3]

virtual Coord Survey::Geometry::toCoord ( Pos::LineID  ,
Pos::TraceID   
) const
pure virtual

Member Data Documentation

◆ id_

Pos::GeomID Survey::Geometry::id_
private

◆ sampling_

TrcKeyZSampling Survey::Geometry::sampling_
protected

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