OpendTect  6.3
veldesc.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: K. Tingdahl
8  Date: September 2007
9 ________________________________________________________________________
10 
11 */
12 
13 #include "algomod.h"
14 #include "enums.h"
15 #include "dbkey.h"
16 #include "staticsdesc.h"
17 #include "uistring.h"
18 
19 
37 { mODTextTranslationClass(VelocityDesc);
38 public:
39  enum Type { Unknown, Interval, RMS, Avg, Delta, Epsilon, Eta };
41 
42  VelocityDesc();
43  VelocityDesc(Type);
44 
47 
48  bool operator==(const VelocityDesc&) const;
49  bool operator!=(const VelocityDesc&) const;
50 
51  static bool isVelocity(Type);
53  bool isVelocity() const;
55  static bool isThomsen(Type);
57  bool isThomsen() const;
59 
60  static void removePars(IOPar&);
61  void fillPar(IOPar&) const;
62  bool usePar(const IOPar&);
63 
64  static const char* sKeyVelocityType();
65  static const char* sKeyIsFeetPerSecond();
66  static const char* sKeyIsVelocity();
67  static const char* sKeyVelocityVolume();
68 
69  static uiString getVelUnit(bool withparens=true);
70  static uiString getVelVolumeLabel();
71 };
#define mExpClass(module)
Definition: commondefs.h:157
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:51
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
Definition: veldesc.h:36
Definition: veldesc.h:39
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:200
StaticsDesc statics_
Definition: veldesc.h:46
Definition: uistring.h:88
Type
Definition: veldesc.h:39
#define mDeclareEnumUtils(enm)
Some utilities surrounding the often needed enum <-> string table.
Definition: enums.h:188
Interval of values.
Definition: commontypes.h:27
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
Specifies Statics as a horizon and either a horizon attribute or a constant velocity. Velocity is always in m/s.
Definition: staticsdesc.h:22
Definition: stattype.h:22
bool operator!=(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:60
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:187
Type type_
Definition: veldesc.h:45

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