OpendTect  6.6
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 RCS: $Id$
10 ________________________________________________________________________
11 
12 
13 -*/
14 
15 #include "velocitymod.h"
16 #include "velocityfunction.h"
17 #include "binidvalset.h"
18 
19 class BinIDValueSet;
20 class IOObjContext;
21 
22 namespace Vel
23 {
24 
25 class StoredFunctionSource;
26 
27 
30 mExpClass(Velocity) StoredFunction : public Function
31 {
32 public:
34  bool moveTo(const BinID&);
36 
37 
38 protected:
39  bool computeVelocity(float z0, float dz, int nr,
40  float* res) const;
41 
42  bool zit_;
45 };
46 
47 
50 public:
52  "StoredVelFunc",
53  toUiString(sFactoryKeyword()));
54 
57 
58  const VelocityDesc& getDesc() const { return desc_; }
59 
60  bool zIsTime() const;
61  bool load(const MultiID&);
62  bool store(const MultiID&);
63 
65 
67  bool getVel(const BinID&,TypeSet<float>& zvals,
68  TypeSet<float>& vel);
69 
70  void setData(const BinIDValueSet&,
71  const VelocityDesc&,bool zit);
72 
73  static const char* sKeyZIsTime();
74  static const char* sKeyVelocityFunction();
75  static const char* sKeyVelocityType();
76 
77 protected:
78  void fillIOObjPar(IOPar&) const;
79 
80  static FunctionSource* create(const MultiID&);
82 
84  bool zit_;
86 };
87 
88 } // namespace Vel
89 
binidvalset.h
Vel
Velocity.
Definition: velocityfunction.h:32
Vel::Function
Definition: velocityfunction.h:41
Vel::StoredFunctionSource::create
static FunctionSource * create(const MultiID &)
Vel::StoredFunctionSource::zIsTime
bool zIsTime() const
Vel::StoredFunctionSource::getDesc
const VelocityDesc & getDesc() const
Definition: velocityfunctionstored.h:58
Vel::StoredFunctionSource::mODTextTranslationClass
mODTextTranslationClass(StoredFunctionSource)
Vel::StoredFunctionSource::getVel
bool getVel(const BinID &, TypeSet< float > &zvals, TypeSet< float > &vel)
velocityfunction.h
BinIDValueSet
A Pos::IdxPairValueSet with BinIDs.
Definition: binidvalset.h:23
File::toUiString
Export_Basic uiString toUiString(ViewStyle)
Vel::StoredFunctionSource::desc_
VelocityDesc desc_
Definition: velocityfunctionstored.h:85
Vel::StoredFunctionSource::createFunction
StoredFunction * createFunction(const BinID &)
Vel::StoredFunction::moveTo
bool moveTo(const BinID &)
Vel::StoredFunctionSource
Definition: velocityfunctionstored.h:49
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
Vel::StoredFunctionSource::sKeyVelocityType
static const char * sKeyVelocityType()
Vel::StoredFunction::zit_
bool zit_
Definition: velocityfunctionstored.h:42
Vel::StoredFunctionSource::ioContext
static IOObjContext & ioContext()
Vel::StoredFunction
Definition: velocityfunctionstored.h:31
BinID
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:31
StepInterval< float >
VelocityDesc
Definition: veldesc.h:38
Vel::StoredFunction::zval_
TypeSet< float > zval_
Definition: velocityfunctionstored.h:43
Vel::StoredFunctionSource::load
bool load(const MultiID &)
Vel::StoredFunctionSource::zit_
bool zit_
Definition: velocityfunctionstored.h:84
Vel::StoredFunctionSource::veldata_
BinIDValueSet veldata_
Definition: velocityfunctionstored.h:83
IOObjContext
Holds the context for selecting and/or creating IOObjs.
Definition: ctxtioobj.h:62
Vel::StoredFunctionSource::setData
void setData(const BinIDValueSet &, const VelocityDesc &, bool zit)
Vel::StoredFunctionSource::sKeyVelocityFunction
static const char * sKeyVelocityFunction()
MultiID
Compound key consisting of ints.
Definition: multiid.h:24
Vel::StoredFunctionSource::StoredFunctionSource
StoredFunctionSource()
Vel::StoredFunctionSource::fillIOObjPar
void fillIOObjPar(IOPar &) const
Vel::StoredFunction::vel_
TypeSet< float > vel_
Definition: velocityfunctionstored.h:44
Vel::StoredFunction::StoredFunction
StoredFunction(StoredFunctionSource &)
Vel::StoredFunctionSource::mDefaultFactoryInstanciationBase
mDefaultFactoryInstanciationBase("StoredVelFunc", toUiString(sFactoryKeyword()))
Vel::StoredFunctionSource::~StoredFunctionSource
~StoredFunctionSource()
Vel::StoredFunction::computeVelocity
bool computeVelocity(float z0, float dz, int nr, float *res) const
IOPar
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
Vel::StoredFunction::getAvailableZ
StepInterval< float > getAvailableZ() const
Vel::StoredFunctionSource::sKeyZIsTime
static const char * sKeyZIsTime()
Vel::StoredFunctionSource::store
bool store(const MultiID &)
Vel::FunctionSource
Definition: velocityfunction.h:85
TypeSet< float >
Vel::StoredFunctionSource::getAvailablePositions
void getAvailablePositions(BinIDValueSet &) const

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