OpendTect  6.3
muter.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: Bert Bril
8  Date: Nov 2006
9 ________________________________________________________________________
10 
11 
12 -*/
13 
14 #include "algomod.h"
15 #include "samplingdata.h"
16 template <class T> class ValueSeries;
17 
18 
28 {
29 public:
30  Muter( float taperlen, bool tail=false )
31  : taperlen_(taperlen)
32  , tail_(tail) {}
33 
34  inline static float mutePos( float z, const SamplingData<double>& sd )
35  { return sd.getfIndex(z); }
36 
37  void mute(ValueSeries<float>&,int sz,float mutepos) const;
38 
39 
40  static void muteIntervalsPos(const TypeSet< Interval<float> >&,
42  const SamplingData<double>&);
43  void muteIntervals(ValueSeries<float>&,int sz,
44  const TypeSet< Interval<float> >&) const;
45 
46 protected:
47 
48  float taperlen_;
49  bool tail_;
50 
51  void topMute(ValueSeries<float>&,int,float) const;
52  void tailMute(ValueSeries<float>&,int,float) const;
53  void itvMute(ValueSeries<float>&,int,Interval<float>) const;
54 
55 };
static float mutePos(float z, const SamplingData< double > &sd)
Definition: muter.h:34
#define mExpClass(module)
Definition: commondefs.h:157
Muter(float taperlen, bool tail=false)
Definition: muter.h:30
bool tail_
Definition: muter.h:49
Set of (small) copyable elements.
Definition: commontypes.h:26
Interface to a series of values.
Definition: odmemory.h:15
float getfIndex(FT) const
Definition: samplingdata.h:124
float taperlen_
Definition: muter.h:48
Sets start or end part of a float series to 0.
Definition: muter.h:27

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