OpendTect-6_4  6.4
muter.h
Go to the documentation of this file.
1 #ifndef muter_h
2 #define muter_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert Bril
9  Date: Nov 2006
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "algomod.h"
17 #include "samplingdata.h"
18 template <class T> class ValueSeries;
19 
20 
30 {
31 public:
32  Muter( float taperlen, bool tail=false )
33  : taperlen_(taperlen)
34  , tail_(tail) {}
35 
36  inline static float mutePos( float z, const SamplingData<double>& sd )
37  { return sd.getfIndex(z); }
38 
39  void mute(ValueSeries<float>&,int sz,float mutepos) const;
40 
41 
42  static void muteIntervalsPos(const TypeSet< Interval<float> >&,
44  const SamplingData<double>&);
45  void muteIntervals(ValueSeries<float>&,int sz,
46  const TypeSet< Interval<float> >&) const;
47 
48 protected:
49 
50  float taperlen_;
51  bool tail_;
52 
53  void topMute(ValueSeries<float>&,int,float) const;
54  void tailMute(ValueSeries<float>&,int,float) const;
55  void itvMute(ValueSeries<float>&,int,Interval<float>) const;
56 
57 };
58 
59 #endif
static float mutePos(float z, const SamplingData< double > &sd)
Definition: muter.h:36
#define mExpClass(module)
Definition: commondefs.h:160
Muter(float taperlen, bool tail=false)
Definition: muter.h:32
bool tail_
Definition: muter.h:51
Set of (small) copyable elements.
Definition: commontypes.h:30
Interface to a series of values.
Definition: odmemory.h:17
float getfIndex(FT) const
Definition: samplingdata.h:126
float taperlen_
Definition: muter.h:50
Sets start or end part of a float series to 0.
Definition: muter.h:29

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