14 #include "generalmod.h" 49 Location(
double x=0,
double y=0,
double z=0);
50 Location(
const Coord&,
float z=0);
54 Location(
const Location&);
58 {
return pos_ == oth.
pos_ && dir_ == oth.
dir_; }
60 {
return !(*
this == oth); }
61 void operator =(
const Location&);
63 inline bool hasPos()
const {
return pos_.isDefined(); }
64 bool hasTrcKey()
const;
65 inline bool hasDir()
const {
return !dir_.isNull(); }
69 inline float z()
const {
return (
float)pos_.z; }
73 const TrcKey& trcKey()
const;
76 const BinID& binID()
const;
81 { pos_ = c;
return *
this; }
83 { pos_.x = c.
x; pos_.y = c.
y;
return *
this; }
84 inline Location&
setPos(
double x,
double y,
double zval )
85 { setPos(
Coord3(x,y,zval) );
return *
this; }
87 { setPos( c.
x, c.
y, zval );
return *
this; }
89 inline Location&
setZ( FT zval )
90 { pos_.
z = zval;
return *
this; }
92 Location& setTrcKey(
const TrcKey&);
93 Location& setDir(
const Sphere&);
94 Location& setDir(
const Coord&);
98 Location& setBinID(
const BinID&,
bool updcoord=
false);
99 Location& setSurvID(
Pos::SurvID,
bool updfromcoord=
true);
101 bool hasTextKey(
const char* key)
const;
103 void setKeyedText(
const char* key,
const char* txt);
104 void removeTextKey(
const char* key);
105 Location& setText(
const char*);
108 bool fromString(
const char*);
113 void setText(
const char* key,
const char* txt);
114 void unSetText(
const char* key);
118 void setDip(
float,
float);
119 float inlDip()
const;
120 float crlDip()
const;
#define mExpClass(module)
Definition: commondefs.h:160
Location & setPos(const Coord &c, float zval)
Definition: picklocation.h:86
Index_Type LineID
Definition: commontypes.h:50
Location & setPos(double x, double y, double zval)
Definition: picklocation.h:84
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
Location & setPos(const Coord &c)
Definition: picklocation.h:82
Index_Type TraceID
Definition: commontypes.h:51
Pick location in space,.
Definition: picklocation.h:46
float z() const
Definition: picklocation.h:69
Coord3 pos_
Definition: picklocation.h:123
A cartesian coordinate in 2D space.
Definition: coord.h:25
Definition: coordsystem.h:31
bool hasDir() const
Definition: picklocation.h:65
TrcKey trckey_
Definition: picklocation.h:124
Sphere dir_
Definition: picklocation.h:125
Index_Type SurvID
Definition: commontypes.h:49
T y
Definition: geometry.h:67
Location & setZ(FT zval)
Definition: picklocation.h:89
bool operator!=(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:62
A cartesian coordinate in 3D space.
Definition: coord.h:72
Index_Type GeomID
Definition: commontypes.h:52
bool hasPos() const
Definition: picklocation.h:63
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
T x
Definition: geometry.h:66
bool is2D(const PicksType &picks)
Definition: pickset.h:142
Definition: picklocation.h:21
Represents a point in spherical coordinates. The angle phi lies in the horizontal plane...
Definition: trigonometry.h:582
Represents a unique trace position in one of the surveys that OpendTect is managing.
Definition: trckey.h:28
BufferString * text_
Definition: picklocation.h:126
const Coord3 & pos() const
Definition: picklocation.h:68
Export_Basic const char * toString(ViewStyle)
Location & setPos(const Coord3 &c)
Definition: picklocation.h:80