OpendTect-6_4  6.4
posauxinfo.h
Go to the documentation of this file.
1 #ifndef posauxinfo_h
2 #define posauxinfo_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: A.H.Bril
9  Date: Jul 2002
10  Contents: PAuxiliary info on position
11  RCS: $Id$
12 ________________________________________________________________________
13 
14 -*/
15 
16 #include "generalmod.h"
17 #include "position.h"
18 
19 
23 {
24 public:
25 
26  PosAuxInfo() { clear(); }
27 
28  void clear()
29  {
30  binid.inl() = binid.crl() = 0; coord.x = coord.y = 0;
31  startpos = offset = azimuth = 0;
32  pick = refnr = mUdf(float);
33  }
34 
37  float startpos;
38  float offset;
39  float azimuth;
40  float pick;
41  float refnr;
42 
43 };
44 
45 
50 {
51 public:
53  : startpos(false), coord(false)
54  , offset(false), azimuth(false)
55  , pick(false), refnr(false) {}
56 
57  void setAll( bool yn )
58  { startpos = coord = offset = azimuth = pick = refnr = yn; }
59 
60  bool startpos;
61  bool coord;
62  bool offset;
63  bool azimuth;
64  bool pick;
65  bool refnr;
66 };
67 
68 
69 #endif
#define mExpClass(module)
Definition: commondefs.h:160
void clear()
Definition: posauxinfo.h:28
bool refnr
Definition: posauxinfo.h:65
bool coord
Definition: posauxinfo.h:61
bool azimuth
Definition: posauxinfo.h:63
PosAuxInfoSelection()
Definition: posauxinfo.h:52
BinID binid
Definition: posauxinfo.h:35
bool startpos
Definition: posauxinfo.h:60
void clear(std::ios &)
float startpos
Definition: posauxinfo.h:37
float offset
Definition: posauxinfo.h:38
A cartesian coordinate in 2D space.
Definition: coord.h:25
Selection of aux info at location. Note that BinID is always selected.
Definition: posauxinfo.h:49
PosAuxInfo()
Definition: posauxinfo.h:26
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:272
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
Auxiliray data possibly needed at location. Mostly a seismic thing.
Definition: posauxinfo.h:22
Coord coord
Definition: posauxinfo.h:36
void setAll(bool yn)
Definition: posauxinfo.h:57
bool pick
Definition: posauxinfo.h:64
float azimuth
Definition: posauxinfo.h:39
float pick
Definition: posauxinfo.h:40
bool offset
Definition: posauxinfo.h:62
float refnr
Definition: posauxinfo.h:41

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019