OpendTect-6_4  6.4
array1dinterpol.h
Go to the documentation of this file.
1 #ifndef array1dinterpol_h
2 #define array1dinterpol_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Satyaki Maitra
9  Date: December 2009
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "algomod.h"
17 #include "executor.h"
18 
19 template <class T> class Array1D;
20 
21 
28 public:
29  virtual ~Array1DInterpol();
30 
31  void setMaxGapSize(float);
32  float getMaxGapSize() const;
33 
34  void setArray(Array1D<float>&);
35 
36  od_int64 nrDone() const { return nrdone_; }
37  od_int64 nrIterations() const;
38  void setExtrapol( bool yn ) { doextrapol_ = yn; }
39  void setFillWithExtremes( bool yn )
40  { fillwithextremes_ = yn; }
41  void reset();
42 
43 protected:
46  { return tr("Points interpolated"); }
47 
51  bool fillwithextremes_; //extrapolate with last valid values
53  unsigned int nrdone_;
54 };
55 
56 
62 {
63 public:
65 protected:
66  int nextStep();
67  void extrapolate(bool start);
68 };
69 
70 
76 {
77 public:
79 protected:
80  int nextStep();
81  bool getPositions(int pos,TypeSet<float>& posidxs);
82  void extrapolate(bool start);
83 };
84 
85 #endif
Array1D ( Subclass of ArrayND ) is a one dimensional array.
Definition: arraynd.h:101
#define mExpClass(module)
Definition: commondefs.h:160
od_int64 nrDone() const
Definition: array1dinterpol.h:36
Base class for one dimensional array interpolators.
Definition: array1dinterpol.h:26
bool fillwithextremes_
Definition: array1dinterpol.h:51
Does linear interpolation of one dimensional arrays.
Definition: array1dinterpol.h:61
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
#define od_int64
Definition: plftypes.h:36
uiString uiNrDoneText() const
will be nrDoneText() in 7.x
Definition: array1dinterpol.h:45
Definition: uistring.h:89
Uses a 3rd degree polynomial for interpolation of one dimensional arrays.
Definition: array1dinterpol.h:75
void setExtrapol(bool yn)
Definition: array1dinterpol.h:38
unsigned int nrdone_
Definition: array1dinterpol.h:53
void setFillWithExtremes(bool yn)
Definition: array1dinterpol.h:39
bool doextrapol_
Definition: array1dinterpol.h:50
bool arrstarted_
Definition: array1dinterpol.h:49
Array1D< float > * arr_
Definition: array1dinterpol.h:48
Specification to enable chunkwise execution of a process.
Definition: executor.h:39
int maxgapsize_
Definition: array1dinterpol.h:52

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