OpendTect-6_4  6.4
velocityfunctionstored.h
Go to the documentation of this file.
1 #ifndef velocityfunctionstored_h
2 #define velocityfunctionstored_h
3 
4 /*+
5 ________________________________________________________________________
6 
7 (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8 Author: Umesh Sinha
9 Date: Sep 2008
10 RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "velocitymod.h"
17 #include "velocityfunction.h"
18 #include "binidvalset.h"
19 
20 class BinIDValueSet;
21 class IOObjContext;
22 
23 namespace Vel
24 {
25 
26 class StoredFunctionSource;
27 
28 
31 mExpClass(Velocity) StoredFunction : public Function
32 {
33 public:
35  bool moveTo(const BinID&);
36  StepInterval<float> getAvailableZ() const;
37 
38 
39 protected:
40  bool computeVelocity(float z0, float dz, int nr,
41  float* res) const;
42 
43  bool zit_;
46 };
47 
48 
51 public:
53  "StoredVelFunc",
54  toUiString(sFactoryKeyword()));
55 
57  static IOObjContext& ioContext();
58 
59  const VelocityDesc& getDesc() const { return desc_; }
60 
61  bool zIsTime() const;
62  bool load(const MultiID&);
63  bool store(const MultiID&);
64 
65  StoredFunction* createFunction(const BinID&);
66 
67  void getAvailablePositions(BinIDValueSet&) const;
68  bool getVel(const BinID&,TypeSet<float>& zvals,
69  TypeSet<float>& vel);
70 
71  void setData(const BinIDValueSet&,
72  const VelocityDesc&,bool zit);
73 
74  static const char* sKeyZIsTime();
75  static const char* sKeyVelocityFunction();
76  static const char* sKeyVelocityType();
77 
78 protected:
79  void fillIOObjPar(IOPar&) const;
80 
81  static FunctionSource* create(const MultiID&);
83 
85  bool zit_;
87 };
88 
89 } // namespace Vel
90 
91 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Velocity.
Definition: velocityfunction.h:32
const VelocityDesc & getDesc() const
Definition: velocityfunctionstored.h:59
Definition: velocityfunction.h:85
BinIDValueSet veldata_
Definition: velocityfunctionstored.h:84
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Export_Basic uiString toUiString(ViewStyle)
Definition: veldesc.h:38
Definition: velocityfunctionstored.h:49
Definition: velocityfunctionstored.h:31
VelocityDesc desc_
Definition: velocityfunctionstored.h:86
bool zit_
Definition: velocityfunctionstored.h:85
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
#define mDefaultFactoryInstanciationBase(keywrd, usernm)
Definition: factory.h:280
TypeSet< float > zval_
Definition: velocityfunctionstored.h:44
static uiHor3DInterpol * create(uiParent *)
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
A Pos::IdxPairValueSet with BinIDs.
Definition: binidvalset.h:23
bool zit_
Definition: velocityfunctionstored.h:43
Compound key consisting of ints.
Definition: multiid.h:25
Definition: velocityfunction.h:41
Holds the context for selecting and/or creating IOObjs.
Definition: ctxtioobj.h:62
TypeSet< float > vel_
Definition: velocityfunctionstored.h:45

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