OpendTect  6.6
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  RCS: $Id$
10 ________________________________________________________________________
11 
12 
13 -*/
14 
15 #include "algomod.h"
16 #include "executor.h"
17 
18 template <class T> class Array1D;
19 
20 
27 public:
28  virtual ~Array1DInterpol();
29 
30  void setMaxGapSize(float);
31  float getMaxGapSize() const;
32 
34 
35  od_int64 nrDone() const { return nrdone_; }
37  void setExtrapol( bool yn ) { doextrapol_ = yn; }
38  void setFillWithExtremes( bool yn )
39  { fillwithextremes_ = yn; }
40  void reset();
41 
42 protected:
45  { return tr("Points interpolated"); }
46 
50  bool fillwithextremes_; //extrapolate with last valid values
52  unsigned int nrdone_;
53 };
54 
55 
61 {
62 public:
64 protected:
65  int nextStep();
66  void extrapolate(bool start);
67 };
68 
69 
75 {
76 public:
78 protected:
79  int nextStep();
80  bool getPositions(int pos,TypeSet<float>& posidxs);
81  void extrapolate(bool start);
82 };
83 
Array1DInterpol::setExtrapol
void setExtrapol(bool yn)
Definition: array1dinterpol.h:37
Array1DInterpol::doextrapol_
bool doextrapol_
Definition: array1dinterpol.h:49
Array1DInterpol::arrstarted_
bool arrstarted_
Definition: array1dinterpol.h:48
Array1DInterpol::maxgapsize_
int maxgapsize_
Definition: array1dinterpol.h:51
Array1DInterpol::~Array1DInterpol
virtual ~Array1DInterpol()
Array1DInterpol::setMaxGapSize
void setMaxGapSize(float)
Array1DInterpol::reset
void reset()
od_int64
#define od_int64
Definition: plftypes.h:35
Array1DInterpol
Base class for one dimensional array interpolators.
Definition: array1dinterpol.h:26
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
Array1DInterpol::getMaxGapSize
float getMaxGapSize() const
Array1DInterpol::nrdone_
unsigned int nrdone_
Definition: array1dinterpol.h:52
Array1DInterpol::setFillWithExtremes
void setFillWithExtremes(bool yn)
Definition: array1dinterpol.h:38
Array1D
Array1D ( Subclass of ArrayND ) is a one dimensional array.
Definition: arraynd.h:111
Array1DInterpol::setArray
void setArray(Array1D< float > &)
LinearArray1DInterpol::nextStep
int nextStep()
PolyArray1DInterpol
Uses a 3rd degree polynomial for interpolation of one dimensional arrays.
Definition: array1dinterpol.h:75
PolyArray1DInterpol::extrapolate
void extrapolate(bool start)
PolyArray1DInterpol::nextStep
int nextStep()
PolyArray1DInterpol::PolyArray1DInterpol
PolyArray1DInterpol()
Executor
Specification to enable chunkwise execution of a process.
Definition: executor.h:39
Array1DInterpol::arr_
Array1D< float > * arr_
Definition: array1dinterpol.h:47
Array1DInterpol::nrDone
od_int64 nrDone() const
Definition: array1dinterpol.h:35
PolyArray1DInterpol::getPositions
bool getPositions(int pos, TypeSet< float > &posidxs)
Array1DInterpol::mODTextTranslationClass
mODTextTranslationClass(Array1DInterpol)
executor.h
Array1DInterpol::nrIterations
od_int64 nrIterations() const
uiString
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
Array1DInterpol::Array1DInterpol
Array1DInterpol()
Array1DInterpol::fillwithextremes_
bool fillwithextremes_
Definition: array1dinterpol.h:50
LinearArray1DInterpol::extrapolate
void extrapolate(bool start)
LinearArray1DInterpol::LinearArray1DInterpol
LinearArray1DInterpol()
LinearArray1DInterpol
Does linear interpolation of one dimensional arrays.
Definition: array1dinterpol.h:61
TypeSet< float >
Array1DInterpol::uiNrDoneText
uiString uiNrDoneText() const
will be nrDoneText() in 7.x
Definition: array1dinterpol.h:44

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