OpendTect  6.3
velocityfunctionstored.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: Umesh Sinha
8 Date: Sep 2008
9 ________________________________________________________________________
10 
11 
12 -*/
13 
14 #include "velocitymod.h"
15 #include "velocityfunction.h"
16 #include "binidvalset.h"
17 
18 class BinIDValueSet;
19 class IOObjContext;
20 
21 namespace Vel
22 {
23 
24 class StoredFunctionSource;
25 
26 
29 mExpClass(Velocity) StoredFunction : public Function
30 {
31 public:
33  bool moveTo(const BinID&);
34  StepInterval<float> getAvailableZ() const;
35 
36 
37 protected:
38  bool computeVelocity(float z0, float dz, int nr,
39  float* res) const;
40 
41  bool zit_;
44 };
45 
46 
49 public:
51  "StoredVelFunc",
52  toUiString(sFactoryKeyword()));
53 
55  static IOObjContext& ioContext();
56 
57  const VelocityDesc& getDesc() const { return desc_; }
58 
59  bool zIsTime() const;
60  bool load(const DBKey&);
61  bool store(const DBKey&);
62 
63  StoredFunction* createFunction(const BinID&);
64 
65  void getAvailablePositions(BinIDValueSet&) const;
66  bool getVel(const BinID&,TypeSet<float>& zvals,
67  TypeSet<float>& vel);
68 
69  void setData(const BinIDValueSet&,
70  const VelocityDesc&,bool zit);
71 
72  static const char* sKeyZIsTime();
73  static const char* sKeyVelocityFunction();
74  static const char* sKeyVelocityType();
75 
76 protected:
77  void fillIOObjPar(IOPar&) const;
78 
79  static FunctionSource* create(const DBKey&);
81 
83  bool zit_;
85 };
86 
87 } // namespace Vel
#define mExpClass(module)
Definition: commondefs.h:157
Velocity.
Definition: velocityfunction.h:30
const VelocityDesc & getDesc() const
Definition: velocityfunctionstored.h:57
Definition: velocityfunction.h:79
BinIDValueSet veldata_
Definition: velocityfunctionstored.h:82
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
Definition: veldesc.h:36
Definition: velocityfunctionstored.h:47
Definition: velocityfunctionstored.h:29
VelocityDesc desc_
Definition: velocityfunctionstored.h:84
bool zit_
Definition: velocityfunctionstored.h:83
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
#define mDefaultFactoryInstanciationBase(keywrd, usernm)
Definition: factory.h:278
TypeSet< float > zval_
Definition: velocityfunctionstored.h:42
uiString toUiString(const DBKey &ky)
Definition: dbkey.h:117
static uiHor3DInterpol * create(uiParent *)
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:28
A Pos::IdxPairValueSet with BinIDs.
Definition: binidvalset.h:21
Full key to any object in the OpendTect data store.
Definition: dbkey.h:36
bool zit_
Definition: velocityfunctionstored.h:41
Definition: velocityfunction.h:39
Holds the context for selecting and/or creating IOObjs.
Definition: ioobjctxt.h:59
TypeSet< float > vel_
Definition: velocityfunctionstored.h:43

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