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

Static Public Member Functions

static BufferString makeUniqueLineName (const char *lsnm, const char *lnm)
 
- 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_
 
TypeSet< int > spnrs_
 
float trcdist_
 
float linelength_
 
Threads::Lock lock_
 
- Protected Attributes inherited from Survey::Geometry
TrcKeyZSampling sampling_
 

Additional Inherited Members

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

Detailed Description

Geometry of a 2D Line.

Constructor & Destructor Documentation

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

Line2DData becomes mine.

Survey::Geometry2D::~Geometry2D ( )
protected

Member Function Documentation

void Survey::Geometry2D::add ( const Coord ,
int  trcnr,
int  spnr 
)
void Survey::Geometry2D::add ( double  x,
double  y,
int  trcnr,
int  spnr 
)
Geometry2D* Survey::Geometry2D::as2D ( )
inlinevirtual

Reimplemented from Survey::Geometry.

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

Implements Survey::Geometry.

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

Reimplemented from Survey::Geometry.

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

If data is changed, call touch afterwards.

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

Implements Survey::Geometry.

bool Survey::Geometry2D::getPosByCoord ( const Coord ,
int &  trc,
int &  sp 
) const
bool Survey::Geometry2D::getPosBySPNr ( int  spnr,
Coord ,
int &  trcnr 
) const
bool Survey::Geometry2D::getPosByTrcNr ( int  trcnr,
Coord ,
int &  spnr 
) const
virtual bool Survey::Geometry2D::includes ( int  linenr,
int  tracenr 
) const
virtual
virtual bool Survey::Geometry2D::is2D ( ) const
inlinevirtual

Implements Survey::Geometry.

float Survey::Geometry2D::lineLength ( ) const
static BufferString Survey::Geometry2D::makeUniqueLineName ( const char *  lsnm,
const char *  lnm 
)
static
virtual TrcKey Survey::Geometry2D::nearestTrace ( const Coord ,
float *  dist 
) const
virtual

Implements Survey::Geometry.

void Survey::Geometry2D::setAverageTrcDist ( float  )
void Survey::Geometry2D::setEmpty ( )
void Survey::Geometry2D::setLineLength ( float  )
int Survey::Geometry2D::size ( ) const
TypeSet<int>& Survey::Geometry2D::spnrs ( )
inline
const TypeSet<int>& Survey::Geometry2D::spnrs ( ) const
inline
virtual Coord Survey::Geometry2D::toCoord ( int  linenr,
int  tracenr 
) const
virtual
void Survey::Geometry2D::touch ( )
StepInterval<float> Survey::Geometry2D::zRange ( ) const

Member Data Documentation

PosInfo::Line2DData& Survey::Geometry2D::data_
protected
float Survey::Geometry2D::linelength_
mutableprotected
Threads::Lock Survey::Geometry2D::lock_
mutableprotected
TypeSet<int> Survey::Geometry2D::spnrs_
protected
float Survey::Geometry2D::trcdist_
mutableprotected

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