39 TrcKey(SurvID,
const BinID&);
45 static bool is2D(SurvID);
54 inline bool isUdf()
const {
return *
this==udf(); }
55 static const TrcKey& udf();
56 static SurvID std2DSurvID();
57 static SurvID std3DSurvID();
58 static SurvID cUndefSurvID();
60 double distTo(
const TrcKey&)
const;
61 SurvID
survID()
const {
return survid_; }
63 { survid_ = id;
return *
this; }
66 IdxType lineNr()
const;
67 IdxType trcNr()
const;
69 IdxType
inl()
const {
return lineNr(); }
70 IdxType
crl()
const {
return trcNr(); }
72 { pos_ = bid;
return *
this; }
74 { pos_.row() = nr;
return *
this; }
76 { pos_.col() = nr;
return *
this; }
78 {
return setPosition(bid); }
80 {
return setLineNr(nr); }
82 {
return setTrcNr(nr); }
84 TrcKey& setFrom(
const Coord&);
85 Coord getCoord()
const;
#define mExpClass(module)
Definition: commondefs.h:160
IdxType inl() const
Definition: trckey.h:69
TrcKey & setBinID(const BinID &bid)
Definition: trckey.h:77
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
Index_Type TraceID
Definition: commontypes.h:51
void setPos(const BinID &bid)
Will go after 6.0. Use setPosition()
Definition: trckey.h:89
TrcKey & setCrl(IdxType nr)
Definition: trckey.h:81
Pos::SurvID SurvID
Definition: trckey.h:32
A cartesian coordinate in 2D space.
Definition: coord.h:25
const BinID & binID() const
Definition: trckey.h:68
SurvID survID() const
Definition: trckey.h:61
const BinID & pos() const
Will go after 6.0. Use position() or binID()
Definition: trckey.h:87
Index_Type SurvID
Definition: commontypes.h:49
TrcKey & setPosition(const BinID &bid)
Definition: trckey.h:71
TrcKey & setInl(IdxType nr)
Definition: trckey.h:79
Index_Type GeomID
Definition: commontypes.h:52
const BinID & position() const
Definition: trckey.h:65
IdxType crl() const
Definition: trckey.h:70
TrcKey & setTrcNr(IdxType nr)
Definition: trckey.h:75
Index_Type IdxType
Definition: idxpair.h:34
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
bool is2D(const PicksType &picks)
Definition: pickset.h:142
bool isUdf() const
Definition: trckey.h:54
BinID pos_
Definition: trckey.h:99
bool is2D() const
Definition: trckey.h:44
Represents a unique trace position in one of the surveys that OpendTect is managing.
Definition: trckey.h:28
TrcKey & setLineNr(IdxType nr)
Definition: trckey.h:73
SurvID survid_
< Will go after 6.0. Use a set function
Definition: trckey.h:98
IdxPair::IdxType IdxType
Definition: trckey.h:33
TrcKey & setSurvID(SurvID id)
Definition: trckey.h:62
TrcKey()
Definition: trckey.h:35