OpendTect  6.3
prestackmute.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 "prestackprocessingmod.h"
15 #include "prestackprocessor.h"
16 #include "dbkey.h"
17 
18 class Muter;
19 
20 namespace PreStack
21 {
22 
23 class MuteDef;
24 
29 mExpClass(PreStackProcessing) Mute : public Processor
31 public:
33  Processor, Mute,
34  "Mute", toUiString(sFactoryKeyword()))
35 
36  Mute();
37  ~Mute();
38 
39  bool prepareWork();
40 
41  uiString errMsg() const { return errmsg_; }
42 
43  static const char* sTaperLength() { return "Taper Length";}
44  static const char* sTailMute() { return "Tail Mute";}
45  static const char* sMuteDef() { return "Mute Definition";}
46 
47  const DBKey& muteDefID() const { return id_; }
48  const MuteDef& muteDef() const { return def_; }
49  MuteDef& muteDef() { return def_; }
50  bool isTailMute() const { return tail_; }
51  float taperLength() const { return taperlen_; }
52  bool setMuteDefID(const DBKey&);
53  void setEmptyMute();
54  void setTailMute(bool yn=true);
55  void setTaperLength(float);
56 
57  void fillPar(IOPar&) const;
58  bool usePar(const IOPar&);
59 
60 protected:
61 
66 
67  od_int64 nrIterations() const { return outidx_.size(); }
68  bool doWork(od_int64,od_int64,int);
69 
70  bool tail_;
71  float taperlen_;
72 
75 };
76 
77 } // namespace PreStack
#define mExpClass(module)
Definition: commondefs.h:157
od_int64 nrIterations() const
Definition: prestackmute.h:67
static const char * sTaperLength()
Definition: prestackmute.h:43
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
TypeSet< int > outidx_
Definition: prestackmute.h:73
Processes PreStack data at one cdp location. The algorithm is implemented in subclasses, and can be created by the PreStack::PF() factory.
Definition: prestackprocessor.h:34
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:200
#define od_int64
Definition: plftypes.h:34
Definition: prestackagc.h:18
Processor for PreStack muting.
Definition: prestackmute.h:29
#define mDefaultFactoryInstantiation(baseclss, clss, keywrd, usernm)
Definition: factory.h:287
Definition: uistring.h:88
NamedObject for definition of a mute function.
Definition: prestackmutedef.h:30
static const char * sTailMute()
Definition: prestackmute.h:44
bool tail_
Definition: prestackmute.h:70
DBKey id_
Definition: prestackmute.h:64
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
MuteDef & def_
Definition: prestackmute.h:62
MuteDef & muteDef()
Definition: prestackmute.h:49
uiString toUiString(const DBKey &ky)
Definition: dbkey.h:117
uiString errmsg_
Definition: prestackmute.h:65
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:187
float taperLength() const
Definition: prestackmute.h:51
float taperlen_
Definition: prestackmute.h:71
Muter * muter_
Definition: prestackmute.h:63
BufferString errmsg_
Definition: horizontracker.h:117
const MuteDef & muteDef() const
Definition: prestackmute.h:48
static const char * sMuteDef()
Definition: prestackmute.h:45
TypeSet< int > offsets_
Definition: prestackmute.h:74
Full key to any object in the OpendTect data store.
Definition: dbkey.h:36
const DBKey & muteDefID() const
Definition: prestackmute.h:47
bool isTailMute() const
Definition: prestackmute.h:50
uiString errMsg() const
Definition: prestackmute.h:41
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