 |
OpendTect
6.6
|
Go to the documentation of this file.
13 #include "generalmod.h"
57 {
return pos_ == oth.
pos_ && dir_ == oth.
dir_; }
59 {
return !(*
this == oth); }
62 inline bool hasPos()
const {
return pos_.isDefined(); }
64 inline bool hasDir()
const {
return !dir_.isNull(); }
68 inline float z()
const {
return (
float)pos_.z; }
80 { pos_ = c;
return *
this; }
82 { pos_.x = c.
x; pos_.y = c.
y;
return *
this; }
84 { setPos(
Coord3(x,y,zval) );
return *
this; }
86 { setPos( c.
x, c.
y, zval );
return *
this; }
89 { pos_.
z = zval;
return *
this; }
112 void setText(
const char* key,
const char* txt);
Location(const Coord &, float z=0)
Location & setDir(const Coord &)
A cartesian coordinate in 3D space.
Definition: coord.h:72
BufferString * text_
Definition: picklocation.h:125
void setText(const char *key, const char *txt)
bool fromString(const char *)
Location & setText(const char *)
make sure it's compatible with the keying system
Pos::TraceID trcNr() const
Location(double x=0, double y=0, double z=0)
Location & setSurvID(Pos::SurvID, bool updfromcoord=true)
Location & setLineNr(Pos::LineID)
const TrcKey & trcKey() const
Location & setZ(FT zval)
Definition: picklocation.h:88
Location & setDir(const Sphere &)
Definition: picklocation.h:21
#define mExpClass(module)
Definition: commondefs.h:177
Index_Type SurvID
Definition: commontypes.h:84
void setDip(float, float)
TrcKey trckey_
Definition: picklocation.h:123
bool fndKeyTxt(const char *, BufferString *) const
Location(const Location &)
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:81
Index_Type LineID
Definition: commontypes.h:85
const Sphere & dir() const
Location & setPos(const Coord3 &c)
Definition: picklocation.h:79
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:31
A cartesian coordinate in 2D space.
Definition: coord.h:25
void toString(BufferString &, bool forexport=false, const Coords::CoordSystem *crs=0) const
Location & setPos(double x, double y, double zval)
Definition: picklocation.h:83
Index_Type TraceID
Definition: commontypes.h:86
Pos::SurvID survID() const
bool operator!=(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:90
Pos::LineID lineNr() const
bool getKeyedText(const char *key, BufferString &) const
float z() const
Definition: picklocation.h:68
Definition: coordsystem.h:31
Location & setGeomID(Pos::GeomID)
Coord3 pos_
Definition: picklocation.h:122
Location & setTrcKey(const TrcKey &)
Pick location in space,.
Definition: picklocation.h:46
bool hasTextKey(const char *key) const
Location & setTrcNr(Pos::LineID)
bool hasDir() const
Definition: picklocation.h:64
void setKeyedText(const char *key, const char *txt)
Location(const Coord3 &pos, const Sphere &dir)
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
Location & setPos(const Coord &c, float zval)
Definition: picklocation.h:85
Represents a unique trace position in one of the surveys that OpendTect is managing.
Definition: trckey.h:28
Location(const Coord3 &pos, const Coord3 &dir)
Pos::GeomID geomID() const
Location & setBinID(const BinID &, bool updcoord=false)
T y
Definition: geometry.h:68
void removeTextKey(const char *key)
const BinID & binID() const
Sphere dir_
Definition: picklocation.h:124
T x
Definition: geometry.h:67
bool hasPos() const
Definition: picklocation.h:62
const Coord3 & pos() const
Definition: picklocation.h:67
Represents a point in spherical coordinates. The angle phi lies in the horizontal plane,...
Definition: trigonometry.h:582
bool getText(const char *key, BufferString &) const
const BufferString & text() const
void unSetText(const char *key)
Index_Type GeomID
Definition: commontypes.h:87
Location & setPos(const Coord &c)
Definition: picklocation.h:81
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021