OpendTect  6.3
array1dinterpol.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: Satyaki Maitra
8  Date: December 2009
9 ________________________________________________________________________
10 
11 
12 -*/
13 
14 #include "algomod.h"
15 #include "executor.h"
16 
17 template <class T> class Array1D;
18 
19 
26 public:
27  virtual ~Array1DInterpol();
28 
29  void setMaxGapSize(float);
30  float getMaxGapSize() const;
31 
32  void setArray(Array1D<float>&);
33 
35  { return tr("Points interpolated"); }
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:
45 
49  bool fillwithextremes_; //extrapolate with last valid values
51  unsigned int nrdone_;
52 };
53 
54 
61 public:
62 
64 
65  uiString message() const
66  { return tr("Interpolating points (Linear)"); }
67 protected:
68 
69  int nextStep();
70  void extrapolate(bool start);
71 
72 };
73 
74 
81 public:
82 
84 
85  uiString message() const
86  { return tr("Interpolating points (Polynomial)"); }
87  int nextStep();
88 
89 protected:
90 
91  bool getPositions(int pos,TypeSet<float>& posidxs);
92  void extrapolate(bool start);
93 
94 };
Array1D ( Subclass of ArrayND ) is a one dimensional array.
Definition: arraynd.h:97
#define mExpClass(module)
Definition: commondefs.h:157
od_int64 nrDone() const
Definition: array1dinterpol.h:36
Base class for one dimensional array interpolators.
Definition: array1dinterpol.h:24
bool fillwithextremes_
Definition: array1dinterpol.h:49
Does linear interpolation of one dimensional arrays.
Definition: array1dinterpol.h:59
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
#define od_int64
Definition: plftypes.h:34
Definition: uistring.h:88
uiString message() const
Definition: array1dinterpol.h:65
Uses a 3rd degree polynomial for interpolation of one dimensional arrays.
Definition: array1dinterpol.h:79
uiString message() const
Definition: array1dinterpol.h:85
void setExtrapol(bool yn)
Definition: array1dinterpol.h:38
unsigned int nrdone_
Definition: array1dinterpol.h:51
void setFillWithExtremes(bool yn)
Definition: array1dinterpol.h:39
uiString nrDoneText() const
Definition: array1dinterpol.h:34
bool doextrapol_
Definition: array1dinterpol.h:48
bool arrstarted_
Definition: array1dinterpol.h:47
Array1D< float > * arr_
Definition: array1dinterpol.h:46
Specification to enable chunkwise execution of a process.
Definition: executor.h:38
int maxgapsize_
Definition: array1dinterpol.h:50

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