OpendTect  6.6
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Survey::Geometry2D Class Reference

Geometry of a 2D Line. More...

Inheritance diagram for Survey::Geometry2D:
[legend]

Public Member Functions

 Geometry2D (const char *lnm)
 
 Geometry2D (PosInfo::Line2DData *)
 Line2DData becomes mine. More...
 
void add (const Coord &, int trcnr, float spnr)
 
void add (double x, double y, int trcnr, float spnr)
 
Geometry2Das2D ()
 
float averageTrcDist () const
 
RelationType compare (const Geometry &, bool usezrg) const
 
const PosInfo::Line2DDatadata () const
 
PosInfo::Line2DDatadataAdmin ()
 If data is changed, call touch afterwards. More...
 
virtual const char * getName () const
 
bool getPosByCoord (const Coord &, int &trc, float &sp) const
 
bool getPosBySPNr (float spnr, Coord &, int &trcnr) const
 
bool getPosByTrcNr (int trcnr, Coord &, float &spnr) const
 
bool hasValidSPNrs () const
 
virtual bool includes (int linenr, int tracenr) const
 
virtual bool is2D () const
 
bool isEmpty () const
 
float lineLength () const
 
virtual TrcKey nearestTrace (const Coord &, float *dist) const
 
void setAverageTrcDist (float)
 
void setEmpty ()
 
void setLineLength (float)
 
int size () const
 
TypeSet< float > & spnrs ()
 
const TypeSet< float > & spnrs () const
 
virtual Coord toCoord (int linenr, int tracenr) const
 
Coord toCoord (int tracenr) const
 
void touch ()
 
StepInterval< float > zRange () const
 
- Public Member Functions inherited from Survey::Geometry
const Geometry2Das2D () const
 
virtual Geometry3Das3D ()
 
const Geometry3Das3D () const
 
ID getID () const
 
Pos::SurvID 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
 
const TrcKeyZSamplingsampling () const
 
void setID (ID id)
 
Coord toCoord (const BinID &b) const
 
virtual Coord toCoord (Pos::LineID, Pos::TraceID) const =0
 

Static Public Member Functions

static BufferString makeUniqueLineName (const char *lsnm, const char *lnm)
 
static float udfSPNr ()
 
- Static Public Member Functions inherited from Survey::Geometry
static const Geometrydefault3D ()
 
static bool exists (const TrcKey &)
 
static Coord toCoord (const TrcKey &)
 

Protected Member Functions

 ~Geometry2D ()
 
- Protected Member Functions inherited from Survey::Geometry
 Geometry ()
 

Protected Attributes

PosInfo::Line2DDatadata_
 
float linelength_
 
Threads::Lock lock_
 
TypeSet< float > spnrs_
 
float trcdist_
 
- Protected Attributes inherited from Survey::Geometry
TrcKeyZSampling sampling_
 

Additional Inherited Members

- Public Types inherited from Survey::Geometry
typedef Pos::GeomID ID
 
enum  RelationType {
  UnRelated =0 , Related , SubSet , SuperSet ,
  Identical
}
 

Detailed Description

Geometry of a 2D Line.

<>

Constructor & Destructor Documentation

◆ Geometry2D() [1/2]

Survey::Geometry2D::Geometry2D ( const char *  lnm)

◆ Geometry2D() [2/2]

Survey::Geometry2D::Geometry2D ( PosInfo::Line2DData )

Line2DData becomes mine.

◆ ~Geometry2D()

Survey::Geometry2D::~Geometry2D ( )
protected

Member Function Documentation

◆ add() [1/2]

void Survey::Geometry2D::add ( const Coord ,
int  trcnr,
float  spnr 
)

◆ add() [2/2]

void Survey::Geometry2D::add ( double  x,
double  y,
int  trcnr,
float  spnr 
)

◆ as2D()

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

Reimplemented from Survey::Geometry.

◆ averageTrcDist()

float Survey::Geometry2D::averageTrcDist ( ) const
virtual

Implements Survey::Geometry.

◆ compare()

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

Reimplemented from Survey::Geometry.

◆ data()

const PosInfo::Line2DData& Survey::Geometry2D::data ( ) const
inline

◆ dataAdmin()

PosInfo::Line2DData& Survey::Geometry2D::dataAdmin ( )
inline

If data is changed, call touch afterwards.

◆ getName()

virtual const char* Survey::Geometry2D::getName ( ) const
virtual

Implements Survey::Geometry.

◆ getPosByCoord()

bool Survey::Geometry2D::getPosByCoord ( const Coord ,
int &  trc,
float &  sp 
) const

◆ getPosBySPNr()

bool Survey::Geometry2D::getPosBySPNr ( float  spnr,
Coord ,
int &  trcnr 
) const

◆ getPosByTrcNr()

bool Survey::Geometry2D::getPosByTrcNr ( int  trcnr,
Coord ,
float &  spnr 
) const

◆ hasValidSPNrs()

bool Survey::Geometry2D::hasValidSPNrs ( ) const

◆ includes()

virtual bool Survey::Geometry2D::includes ( int  linenr,
int  tracenr 
) const
virtual

◆ is2D()

virtual bool Survey::Geometry2D::is2D ( ) const
inlinevirtual

Implements Survey::Geometry.

◆ isEmpty()

bool Survey::Geometry2D::isEmpty ( ) const

◆ lineLength()

float Survey::Geometry2D::lineLength ( ) const

◆ makeUniqueLineName()

static BufferString Survey::Geometry2D::makeUniqueLineName ( const char *  lsnm,
const char *  lnm 
)
static

◆ nearestTrace()

virtual TrcKey Survey::Geometry2D::nearestTrace ( const Coord ,
float *  dist 
) const
virtual

Implements Survey::Geometry.

◆ setAverageTrcDist()

void Survey::Geometry2D::setAverageTrcDist ( float  )

◆ setEmpty()

void Survey::Geometry2D::setEmpty ( )

◆ setLineLength()

void Survey::Geometry2D::setLineLength ( float  )

◆ size()

int Survey::Geometry2D::size ( ) const

◆ spnrs() [1/2]

TypeSet<float>& Survey::Geometry2D::spnrs ( )
inline

◆ spnrs() [2/2]

const TypeSet<float>& Survey::Geometry2D::spnrs ( ) const
inline

◆ toCoord() [1/2]

virtual Coord Survey::Geometry2D::toCoord ( int  linenr,
int  tracenr 
) const
virtual

◆ toCoord() [2/2]

Coord Survey::Geometry2D::toCoord ( int  tracenr) const

◆ touch()

void Survey::Geometry2D::touch ( )

◆ udfSPNr()

static float Survey::Geometry2D::udfSPNr ( )
inlinestatic

◆ zRange()

StepInterval<float> Survey::Geometry2D::zRange ( ) const

Member Data Documentation

◆ data_

PosInfo::Line2DData& Survey::Geometry2D::data_
protected

◆ linelength_

float Survey::Geometry2D::linelength_
mutableprotected

◆ lock_

Threads::Lock Survey::Geometry2D::lock_
mutableprotected

◆ spnrs_

TypeSet<float> Survey::Geometry2D::spnrs_
protected

◆ trcdist_

float Survey::Geometry2D::trcdist_
mutableprotected

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