OpendTect-6_4  6.4
velocityfunctioninterval.h
Go to the documentation of this file.
1 #ifndef velocityfunctioninterval_h
2 #define velocityfunctioninterval_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: K. Tingdahl
9  Date: December 2008
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "velocitymod.h"
17 #include "samplingdata.h"
18 #include "thread.h"
19 #include "velocityfunction.h"
20 
21 class BinIDValueSet;
22 class Gridder2D;
23 
24 namespace Vel
25 {
26 
27 class IntervalSource;
28 
33 {
34 public:
36 
37  StepInterval<float> getAvailableZ() const;
38  bool moveTo(const BinID&);
39  void setInput(Function*);
40 
41 protected:
43 
44  bool computeVelocity(float z0, float dz, int nr,
45  float* res ) const;
46 
47  Function* inputfunc_;
48 };
49 
50 
52 {
53 public:
55  const VelocityDesc& getDesc() const;
56  const char* factoryKeyword() const { return sType(); }
57  static const char* sType() { return "Interval"; }
58 
59  void setInput(FunctionSource*);
60  void getSources(TypeSet<MultiID>&) const;
61  void getAvailablePositions(BinIDValueSet&) const;
62 
63  NotifierAccess* changeNotifier();
64  BinID changeBinID() const;
65 
66 protected:
67  void sourceChangeCB(CallBacker*);
68  IntervalFunction* createFunction(const BinID&);
69  ~IntervalSource();
70 
71  FunctionSource* inputsource_;
73 };
74 
75 } // namespace Vel
76 
77 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Velocity.
Definition: velocityfunction.h:32
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Definition: velocityfunction.h:85
Interface class for Notifier. See comments there.
Definition: callback.h:161
Definition: veldesc.h:38
Generic interface for 2D gridding.
Definition: gridder2d.h:32
VelocityDesc veldesc_
Definition: velocityfunctioninterval.h:72
void getSources(const EM::PosID &, TypeSet< EM::PosID > &) const
FunctionSource * inputsource_
Definition: velocityfunctioninterval.h:71
const char * factoryKeyword() const
Definition: velocityfunctioninterval.h:56
static const char * sType()
Definition: velocityfunctioninterval.h:57
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
Function * inputfunc_
Definition: velocityfunctioninterval.h:47
A Pos::IdxPairValueSet with BinIDs.
Definition: binidvalset.h:23
Definition: velocityfunctioninterval.h:32
Definition: velocityfunctioninterval.h:51
Definition: velocityfunction.h:41

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