25 namespace Coords {
class CoordSystem; }
62 float inlDistance()
const;
63 float crlDistance()
const;
66 float getArea(
bool work)
const ;
68 Coord3 oneStepTranslation(
const Coord3& planenormal)
const;
71 {
return work ? wcs_ : tkzs_; }
77 bool xyInFeet()
const;
78 const char* getXYUnitString(
bool withparens=
true)
const;
79 uiString getUiXYUnitString(
bool abbrviated=
true,
80 bool withparens=
true)
const;
89 {
return zDomain().
isDepth() && !depthsinfeet_;}
92 {
return zDomain().
isDepth() && depthsinfeet_;}
96 {
return zDomain().
unitStr( withparens ); }
98 {
return zDomain().
uiUnitStr( withparens ); }
99 enum Unit { Second, Meter, Feet };
105 Coord minCoord(
bool work)
const;
106 Coord maxCoord(
bool work)
const;
107 bool isInside(
const BinID&,
bool work)
const;
108 bool isReasonable(
const BinID&)
const;
110 bool isReasonable(
const Coord&)
const;
113 int maxNrTraces(
bool work)
const;
121 bool includes(
const BinID&,
const float,
bool work)
const;
128 void snapZ(
float&,
int direction=0)
const;
137 void putZDomain(
IOPar&)
const;
198 static void setSurveyName(
const char*);
200 static const char* surveyFileName();
210 void get3Pts(
Coord c[3],
BinID b[2],
int& xline)
const;
214 bool isRightHandSystem()
const;
217 float angleXInl()
const;
220 float angleXCrl()
const;
225 void setZUnit(
bool istime,
bool infeet=
false);
226 static float defaultXYtoZScale(
Unit,
Unit);
229 float zScale()
const;
233 static const char* sKeyInlRange();
234 static const char* sKeyCrlRange();
235 static const char* sKeyXRange();
236 static const char* sKeyYRange();
237 static const char* sKeyZRange();
238 static const char* sKeyXYInFt();
239 static const char* sKeyDpthInFt();
240 static const char* sKeySurvDataType();
241 static const char* sKeySeismicRefDatum();
247 void updateDirName();
252 { survdatatype_ = typ; survdatatypeknown_ =
true; }
266 {
return const_cast<SurveyInfo*
>(
this)->b2c_; }
268 {
return const_cast<SurveyInfo*
>(
this)->ll2c_; }
270 {
return const_cast<SurveyInfo*
>(
this)->pars_; }
272 bool write(
const char* basedir=0)
const;
274 void savePars(
const char* basedir=0)
const;
277 static SurveyInfo* read(
const char* path,
bool pathisfile);
279 const char* set3Pts(
const Coord c[3],
const BinID b[2],
int xline);
282 void readSavedCoordSystem()
const;
285 void update3DGeometry();
287 static const char* curSurveyName();
#define mExpClass(module)
Definition: commondefs.h:160
bool zInFeet() const
Definition: survinfo.h:91
Threads::AtomicPointer< Survey::Geometry3D > s3dgeom_
Definition: survinfo.h:164
BufferString dirname_
Definition: survinfo.h:153
const Pos::IdxPair2Coord & binID2Coord() const
Definition: survinfo.h:209
LatLong2Coord & getLatlong2Coord() const
Definition: survinfo.h:267
The main survey selection dialog.
Definition: uisurvey.h:32
Pos::IdxPair2Coord b2c_
Definition: survinfo.h:167
#define mGlobal(module)
Definition: commondefs.h:163
const LatLong2Coord & latlong2Coord() const
Definition: survinfo.h:211
TrcKeyZSampling & wcs_
Definition: survinfo.h:159
Pol2D survDataType() const
Definition: survinfo.h:250
BufferString getDataDirName() const
Definition: survinfo.h:246
Unit
Definition: survinfo.h:99
Pos::IdxPair2Coord::DirTransform rdxtr_
Definition: survinfo.h:194
bool depthsInFeet() const
Definition: survinfo.h:82
LatLong2Coord & ll2c_
Definition: survinfo.h:168
OpendTect standard ascii format file writing.
Definition: ascstream.h:32
manages the 'Meta-'data store for the IOObj's. This info is read from the .omf files.
Definition: ioman.h:36
BufferString getDirName() const
Definition: survinfo.h:245
Notifier< SurveyInfo > workRangeChg
Definition: survinfo.h:207
const char * getZUnitString(bool withparens=true) const
<Legacy, don't use
Definition: survinfo.h:94
Definition: uistring.h:89
Holds survey general information.
Definition: survinfo.h:45
A cartesian coordinate in 2D space.
Definition: coord.h:25
bool survdatatypeknown_
Definition: survinfo.h:173
Definition: coordsystem.h:31
bool depthsinfeet_
Definition: survinfo.h:157
bool zInMeter() const
Legacy, don't use.
Definition: survinfo.h:88
#define mDeclareEnumUtils(enm)
Some utilities surrounding the often needed enum <-> string table.
Definition: enums.h:258
Pos::IdxPair2Coord & getBinID2Coord() const
Definition: survinfo.h:265
BufferString datadir_
Definition: survinfo.h:152
Pol2D
Definition: survinfo.h:143
Definition: commontypes.h:39
void setSurvDataType(Pol2D typ)
Definition: survinfo.h:251
IOPar & pars_
Definition: survinfo.h:161
void setXYInFeet(bool yn=true)
Definition: survinfo.h:223
TrcKeyZSampling & tkzs_
Definition: survinfo.h:158
const uiString getUiZUnitString(bool withparens=true) const
Definition: survinfo.h:97
uiString uiUnitStr(bool withparens=false) const
Definition: coordsystem.h:22
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Pol2D survdatatype_
Definition: survinfo.h:172
static const char * sKeySetupFileName()
Definition: survinfo.h:242
SurveyInfo & eSI()
Definition: survinfo.h:298
The survey info editor.
Definition: uisurvinfoed.h:35
Definition: uisurvmap.h:82
const TrcKeyZSampling & sampling(bool work) const
Definition: survinfo.h:70
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
Threads::AtomicPointer< Survey::Geometry3D > work_s3dgeom_
Definition: survinfo.h:165
RefMan< Coords::CoordSystem > coordsystem_
Definition: survinfo.h:162
float seisrefdatum_
Definition: survinfo.h:160
bool xyinfeet_
Definition: survinfo.h:156
#define mExternC(module)
Definition: commondefs.h:167
void setSipName(BufferString sipnm)
Definition: survinfo.h:257
static void deleteInstance()
Definition: survinfo.h:292
A cartesian coordinate in 3D space.
Definition: coord.h:72
const char * buf() const
Definition: odstring.h:47
BufferString sipName() const
Definition: survinfo.h:256
void setSeismicReferenceDatum(float d)
Definition: survinfo.h:134
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
BufferString sipnm_
Definition: survinfo.h:176
Object with a name.
Definition: namedobj.h:35
Export_Basic const char * GetSurveyName(void)
Definition: commontypes.h:39
const IOPar & pars() const
Definition: survinfo.h:136
BufferString comment_
Definition: survinfo.h:175
int userFactor() const
Definition: zdomain.h:51
TrcKeyZSampling::Dir direction(TrcKeyZSampling::Dir slctype, int dimnr)
Definition: trckeyzsampling.h:139
ZDomain::Def & zdef_
Definition: survinfo.h:155
const char * unitStr(bool withparens=false) const
IOPar & getPars() const
Definition: survinfo.h:269
void setDepthInFeet(bool yn=true)
Definition: survinfo.h:224
bool isClockWise() const
Don't use. Will be removed.
Definition: survinfo.h:212
Definition of z-domain.
Definition: zdomain.h:41
const char * comment() const
Definition: survinfo.h:255
Encapsulates linear transform from (i,j) index to (x,y) coordinates.
Definition: posidxpair2coord.h:26
static const char * sKeyBasicSurveyName()
Definition: survinfo.h:243
Estimates to/from LatLong coordinates.
Definition: latlong.h:68
void setComment(const char *s)
Definition: survinfo.h:258
Pos::IdxPair2Coord::DirTransform rdytr_
Definition: survinfo.h:195
float seismicReferenceDatum() const
Definition: survinfo.h:131
float showZ2UserFactor() const
Definition: survinfo.h:83