OpendTect  6.6
volprocthresholder.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 : Y.C. Liu
8  DATE : Mar 2007
9  ID : $Id$
10 _________________________________________________________________________
11 
12 -*/
13 
14 #include "volumeprocessing.h"
15 #include "multiid.h"
16 
17 namespace VolProc
18 {
19 
20 mClass(VolProcTest) ThresholdStep : public ProcessingStep
21 {
22 
23 public:
24  static void initClass();
25 
26  ThresholdStep(ProcessingChain&);
27 
28  void setThreshold(float);
29  float getThreshold() const;
30 
31  const char* type() const;
32  bool needsInput(const HorSampling&) const;
33  bool compute(int start, int stop);
34 
35  void fillPar(IOPar&) const;
36  bool usePar(const IOPar&);
37 
38 
39  static const char* sKeyType() { return "Thresholder";}
40 
41  static const char* sKeyThreshold() { return "Threshold value"; }
42 
43 protected:
44 
45  static ProcessingStep* create(ProcessingChain&);
46 
47  float threshold_;
48 };
49 
50 
51 };
TrcKeySampling
Horizontal sampling (inline and crossline range and steps).
Definition: trckeysampling.h:35
VolProc
Adapter for a VolProc chain to external attribute calculation.
Definition: seisdatapackwriter.h:24
VolProc::ThresholdStep::compute
bool compute(int start, int stop)
VolProc::ThresholdStep::setThreshold
void setThreshold(float)
VolProc::ThresholdStep::type
const char * type() const
VolProc::ThresholdStep::sKeyThreshold
static const char * sKeyThreshold()
Definition: volprocthresholder.h:41
multiid.h
VolProc::ThresholdStep::needsInput
bool needsInput(const HorSampling &) const
VolProc::ThresholdStep::threshold_
float threshold_
Definition: volprocthresholder.h:47
mClass
#define mClass(module)
Definition: commondefs.h:181
VolProc::ThresholdStep::create
static ProcessingStep * create(ProcessingChain &)
VolProc::ThresholdStep::ThresholdStep
ThresholdStep(ProcessingChain &)
VolProc::ThresholdStep
Definition: volprocthresholder.h:21
VolProc::ThresholdStep::fillPar
void fillPar(IOPar &) const
VolProc::ThresholdStep::initClass
static void initClass()
VolProc::ThresholdStep::getThreshold
float getThreshold() const
VolProc::ThresholdStep::usePar
bool usePar(const IOPar &)
VolProc::ThresholdStep::sKeyType
static const char * sKeyType()
Definition: volprocthresholder.h:39
IOPar
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55

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