OpendTect  6.3
posauxinfo.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: A.H.Bril
8  Date: Jul 2002
9  Contents: PAuxiliary info on position
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "generalmod.h"
15 #include "position.h"
16 
18 
22 {
23 public:
24 
26  : coord( coord_ )
27  , startpos( startpos_ )
28  , offset( offset_)
29  , azimuth( azimuth_ )
30  , pick( pick_ )
31  , refnr( refnr_ )
32  , binid( const_cast<BinID&>(trckey_.binID()) )
33  { clear(); }
34 
35  PosAuxInfo( const PosAuxInfo& b)
36  : coord_( b.coord_ )
37  , startpos_( b.startpos_ )
38  , offset_( b.offset_)
39  , azimuth_( b.azimuth_ )
40  , pick_( b.pick_ )
41  , refnr_( b.refnr_ )
42  , coord( coord_ )
43  , startpos( startpos_ )
44  , offset( offset_)
45  , azimuth( azimuth_ )
46  , pick( pick_ )
47  , refnr( refnr_ )
48  , binid( const_cast<BinID&>(trckey_.binID()) )
49  {}
50 
51  void clear()
52  {
53  trckey_.setBinID(BinID(0,0))
54  .setSurvID( mUdf(Pos::SurvID) );
55  coord_.x_ = coord_.y_ = 0;
56  startpos_ = offset_ = azimuth_ = 0;
57  pick_ = refnr_ = mUdf(float);
58  }
59 
62  float startpos_;
63  float offset_;
64  float azimuth_;
65  float pick_;
66  float refnr_;
67 
73  mDeprecated float& pick;
74  mDeprecated float& refnr;
75 
76 };
77 
78 
83 {
84 public:
86  : startpos_(false), coord_(false)
87  , offset_(false), azimuth_(false)
88  , pick_(false), refnr_(false)
89  , startpos(startpos_), coord(coord_)
90  , offset(offset_), azimuth(azimuth_)
91  , pick(pick_), refnr(refnr_)
92  {}
93 
94  PosAuxInfoSelection( const PosAuxInfoSelection& b)
95  : startpos_(b.startpos_), coord_(b.coord_)
96  , offset_(b.offset_), azimuth_(b.azimuth_)
97  , pick_(b.pick_), refnr_(b.refnr_)
98  , startpos(startpos_), coord(coord_)
99  , offset(offset_), azimuth(azimuth_)
100  , pick(pick_), refnr(refnr_)
101  {}
102 
103  PosAuxInfoSelection& operator=(const PosAuxInfoSelection& b)
104  {
105  startpos_ = b.startpos_;
106  coord_ = b.coord_;
107  offset_ = b.offset_;
108  azimuth_ = b.azimuth_;
109  pick_ = b.pick_;
110  refnr_ = b.refnr_;
111  return *this;
112  }
113 
114  void setAll( bool yn )
115  {startpos_ = coord_ = offset_ = azimuth_ = pick_ = refnr_ = yn;}
116 
117  bool startpos_;
118  bool coord_;
119  bool offset_;
120  bool azimuth_;
121  bool pick_;
122  bool refnr_;
123 
130 };
131 
#define mExpClass(module)
Definition: commondefs.h:157
void clear()
Definition: posauxinfo.h:51
mDeprecated bool & startpos
Old syntax. Will be deprecated.
Definition: posauxinfo.h:124
PosAuxInfoSelection()
Definition: posauxinfo.h:85
bool pick_
Definition: posauxinfo.h:121
mDeprecated float & startpos
Old syntax. Will be deprecated.
Definition: posauxinfo.h:70
void clear(std::ios &)
bool azimuth_
Definition: posauxinfo.h:120
mDeprecated float & refnr
Old syntax. Will be deprecated.
Definition: posauxinfo.h:74
mDeprecated bool & coord
Old syntax. Will be deprecated.
Definition: posauxinfo.h:125
TrcKey trckey_
Definition: posauxinfo.h:60
float azimuth_
Definition: posauxinfo.h:64
Selection of aux info at location. Note that BinID is always selected.
Definition: posauxinfo.h:82
mDeprecated Coord & coord
Old syntax. Will be deprecated.
Definition: posauxinfo.h:69
mDeprecated bool & offset
Old syntax. Will be deprecated.
Definition: posauxinfo.h:126
bool refnr_
Definition: posauxinfo.h:122
#define mStartAllowDeprecatedSection
Definition: plfdefs.h:215
Index_Type SurvID
Definition: commontypes.h:45
PosAuxInfo()
Definition: posauxinfo.h:25
mDeprecated bool & pick
Old syntax. Will be deprecated.
Definition: posauxinfo.h:128
#define mStopAllowDeprecatedSection
Definition: plfdefs.h:218
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:270
PosAuxInfo(const PosAuxInfo &b)
Definition: posauxinfo.h:35
mDeprecated float & pick
Old syntax. Will be deprecated.
Definition: posauxinfo.h:73
bool offset_
Definition: posauxinfo.h:119
float pick_
Definition: posauxinfo.h:65
PosAuxInfoSelection(const PosAuxInfoSelection &b)
Definition: posauxinfo.h:94
mDeprecated bool & refnr
Old syntax. Will be deprecated.
Definition: posauxinfo.h:129
mDeprecated float & offset
Old syntax. Will be deprecated.
Definition: posauxinfo.h:71
float startpos_
Definition: posauxinfo.h:62
float refnr_
Definition: posauxinfo.h:66
#define mDeprecated
Definition: plfdefs.h:213
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:28
Auxiliary data possibly needed at location. Mostly a seismic thing.
Definition: posauxinfo.h:21
void setAll(bool yn)
Definition: posauxinfo.h:114
Coord coord_
Definition: posauxinfo.h:61
float offset_
Definition: posauxinfo.h:63
Represents a unique trace position in one of the surveys that OpendTect is managing.
Definition: trckey.h:26
bool startpos_
Definition: posauxinfo.h:117
2D point or vector class.
Definition: commontypes.h:58
bool coord_
Definition: posauxinfo.h:118
mDeprecated bool & azimuth
Old syntax. Will be deprecated.
Definition: posauxinfo.h:127
mDeprecated float & azimuth
Old syntax. Will be deprecated.
Definition: posauxinfo.h:72
PosAuxInfoSelection & operator=(const PosAuxInfoSelection &b)
Definition: posauxinfo.h:103
mDeprecated BinID & binid
Old syntax. Will be deprecated.
Definition: posauxinfo.h:68

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