OpendTect  6.3
wellinfo.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: Bert Bril
8  Date: Aug 2016
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "wellcommon.h"
14 #include "namedobj.h"
15 #include "enums.h"
16 #include "position.h"
17 #include "uistring.h"
18 
19 
20 namespace Well
21 {
22 
23 
28 public:
29 
30  typedef float VelType;
31  typedef float ElevType;
32  enum WellType { None, Oil, Gas, OilGas, Dry, PluggedOil,
33  PluggedGas, PluggedOilGas, PermLoc, CancLoc,
34  InjectDispose };
36 
37  Info(const char* nm=0);
38  ~Info();
41 
42  void fillPar(IOPar&) const;
43  void usePar(const IOPar&);
44 
45  mImplSimpleMonitoredGetSet(inline,UWI,setUWI,
46  BufferString,uwid_,cUWIDChange())
47  mImplSimpleMonitoredGetSet(inline,wellOperator,setWellOperator,
48  BufferString,oper_,cInfoChange())
49  mImplSimpleMonitoredGetSet(inline,getState,setState,
50  BufferString,state_,cInfoChange())
51  mImplSimpleMonitoredGetSet(inline,getCounty,setCounty,
52  BufferString,county_,cInfoChange())
53  mImplSimpleMonitoredGetSet(inline,wellType,setWellType,
54  WellType,welltype_,cTypeChange())
55  mImplSimpleMonitoredGetSet(inline,surfaceCoord,setSurfaceCoord,
56  Coord,surfacecoord_,cPosChg())
57  mImplSimpleMonitoredGetSet(inline,replacementVelocity,
58  setReplacementVelocity,VelType,replvel_,cVelChg())
59  mImplSimpleMonitoredGetSet(inline,groundElevation,setGroundElevation,
60  ElevType,groundelev_,cElevChg())
61  mImplSimpleMonitoredGetSet(inline,dataSource,setDataSource,
62  BufferString,source_,cSourceChg());
64 
65  static const char* sKeyDepthUnit();
66  static const char* sKeyUwid();
67  static const char* sKeyOper();
68  static const char* sKeyState();
69  static const char* sKeyCounty();
70  static const char* sKeyCoord();
71  static const char* sKeyKBElev();
72  static const char* sKeyTD();
73  static const char* sKeyReplVel();
74  static const char* sKeyGroundElev();
75  static const char* sKeyWellType();
76  static int legacyLogWidthFactor();
77  bool isdepthinfeet_;
78 
79  static uiString sUwid();
80  static uiString sOper();
81  static uiString sState();
82  static uiString sCounty();
83  static uiString sCoord();
84  static uiString sKBElev();
85  static uiString sTD();
86  static uiString sReplVel();
87  static uiString sGroundElev();
88 
89  static ChangeType cUWIDChange() { return 2; }
90  static ChangeType cInfoChange() { return 3; }
91  static ChangeType cTypeChange() { return 4; }
92  static ChangeType cPosChg() { return 5; }
93  static ChangeType cVelChg() { return 6; }
94  static ChangeType cElevChg() { return 7; }
95  static ChangeType cSourceChg() { return 8; };
96 
97 protected:
98 
105  VelType replvel_;
106  ElevType groundelev_;
108 
109 };
110 
111 
112 } // namespace Well
static ChangeType cPosChg()
Definition: wellinfo.h:92
#define mExpClass(module)
Definition: commondefs.h:157
int ChangeType
Definition: monitorable.h:80
Monitorable object with a name. All but name() are MT-safe.
Definition: namedmonitorable.h:20
BufferString oper_
Definition: wellinfo.h:100
WellType
Definition: wellinfo.h:32
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:200
static ChangeType cVelChg()
Definition: wellinfo.h:93
Information about a certain well.
Definition: wellinfo.h:26
Definition: wellinfo.h:33
Definition: uistring.h:88
#define mDeclMonitorableAssignment(clss)
like mDeclAbstractMonitorableAssignment but for non-abstract subclasses. Implements the clone() metho...
Definition: monitor.h:111
#define mDeclareEnumUtils(enm)
Some utilities surrounding the often needed enum <-> string table.
Definition: enums.h:188
FixedString None()
Definition: keystrs.h:90
WellType welltype_
Definition: wellinfo.h:103
#define mDeclInstanceCreatedNotifierAccess(clss)
Definition: notify.h:235
BufferString uwid_
Definition: wellinfo.h:95
mODTextTranslationClass(Well::Info) public typedef float ElevType
Definition: wellinfo.h:27
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
#define mImplSimpleMonitoredGetSet(pfx, fnnmget, fnnmset, typ, memb, chgtyp)
Defines simple MT-safe copyable member access.
Definition: monitor.h:39
BufferString source_
Definition: wellinfo.h:107
Definition: wellcommon.h:16
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:187
ElevType groundelev_
Definition: wellinfo.h:106
static ChangeType cTypeChange()
Definition: wellinfo.h:91
VelType replvel_
Definition: wellinfo.h:105
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
static ChangeType cElevChg()
Definition: wellinfo.h:94
BufferString state_
Definition: wellinfo.h:101
Coord surfacecoord_
Definition: wellinfo.h:104
2D point or vector class.
Definition: commontypes.h:58
static ChangeType cInfoChange()
Definition: wellinfo.h:90
BufferString county_
Definition: wellinfo.h:102

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