19 namespace PosInfo {
class Line2DData; }
34 virtual bool is2D()
const {
return true; }
35 virtual const char* getName()
const;
37 void add(
const Coord&,
int trcnr,
int spnr);
38 void add(
double x,
double y,
int trcnr,
int spnr);
41 bool getPosByTrcNr(
int trcnr,
Coord&,
int& spnr)
const;
42 bool getPosBySPNr(
int spnr,
Coord&,
int& trcnr)
const;
43 bool getPosByCoord(
const Coord&,
44 int& trc,
int& sp)
const;
46 virtual Coord toCoord(
int linenr,
int tracenr)
const;
47 virtual TrcKey nearestTrace(
const Coord&,
float* dist)
const;
49 virtual bool includes(
int linenr,
int tracenr)
const;
62 float averageTrcDist()
const;
63 void setAverageTrcDist(
float);
64 float lineLength()
const;
65 void setLineLength(
float);
#define mExpClass(module)
Definition: commondefs.h:160
virtual bool is2D() const
Definition: survgeom2d.h:34
A lock of a type that (hopefully) suits your needs. To use it, you need the Locker class...
Definition: threadlock.h:53
PosInfo::Line2DData & dataAdmin()
If data is changed, call touch afterwards.
Definition: survgeom2d.h:51
Geometry of a 2D Line.
Definition: survgeom2d.h:27
Threads::Lock lock_
Definition: survgeom2d.h:77
const PosInfo::Line2DData & data() const
Definition: survgeom2d.h:54
Position info for a 2D line.
Definition: posinfo2d.h:65
TypeSet< int > & spnrs()
Definition: survgeom2d.h:55
A cartesian coordinate in 2D space.
Definition: coord.h:25
RelationType
Definition: survgeom.h:45
PosInfo::Line2DData & data_
Definition: survgeom2d.h:73
Position info, often segmented.
Definition: posinfo.h:40
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
TypeSet< int > spnrs_
Definition: survgeom2d.h:74
const TypeSet< int > & spnrs() const
Definition: survgeom2d.h:56
Definition: survgeom.h:25
Represents a unique trace position in one of the surveys that OpendTect is managing.
Definition: trckey.h:28
float linelength_
Definition: survgeom2d.h:76
Definition: arraytesselator.h:21
Geometry2D * as2D()
Definition: survgeom2d.h:68
float trcdist_
Definition: survgeom2d.h:75