OpendTect  6.3
volprocregionfiller.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: Yuancheng Liu
8  Date: November 2007
9  RCS: $Id: volprocregionfiller.h 36409 2014-09-13 21:11:44Z kristofer.tingdahl@dgbes.com $
10 ________________________________________________________________________
11 
12 
13 -*/
14 
15 #include "volumeprocessingmod.h"
16 #include "volprocstep.h"
17 #include "dbkey.h"
18 
19 namespace EM { class Region3D; }
20 
21 namespace VolProc
22 {
23 
26 mExpClass(VolumeProcessing) RegionFiller : public Step
28 public:
29 
31  RegionFiller, "RegionFiller",
32  tr("Region painter") )
33 
34  RegionFiller();
35  ~RegionFiller();
36  virtual void releaseData();
37 
38  void setInsideValue(float);
39  float getInsideValue() const;
40  void setOutsideValue(float);
41  float getOutsideValue() const;
42 
43  float getStartValue() const;
44  const DBKey& getStartValueHorizonID() const;
45  int getStartValueAuxDataIdx() const;
46  float getGradientValue() const;
47  const DBKey& getGradientHorizonID() const;
48  int getGradientAuxDataIdx() const;
49 
50  EM::Region3D& region();
51  const EM::Region3D& region() const;
52 
53  virtual void fillPar(IOPar&) const;
54  virtual bool usePar(const IOPar&);
55 
56  virtual bool needsFullVolume() const { return false;}
57  virtual bool canInputAndOutputBeSame() const { return false;}
58  virtual bool areSamplesIndependent() const { return true;}
59  virtual bool needsInput() const { return false;}
60  virtual bool isInputPrevStep() const { return true; }
61  virtual bool prefersBinIDWise() const { return true; }
62 
63 protected:
64 
65  virtual bool prepareComp(int nrthreads);
66  virtual bool computeBinID(const BinID&,int);
67  virtual od_int64 extraMemoryUsage(OutputSlotID,
68  const TrcKeySampling&,
69  const StepInterval<int>&) const;
70 
72  float insideval_;
73  float outsideval_;
74 
75  float startval_;
76  float gradval_;
81 
82 };
83 
84 } // namespace VolProc
DBKey startvalkey_
Definition: volprocregionfiller.h:77
#define mExpClass(module)
Definition: commondefs.h:157
virtual bool areSamplesIndependent() const
Definition: volprocregionfiller.h:58
virtual bool needsInput() const
Definition: volprocregionfiller.h:59
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:200
#define od_int64
Definition: plftypes.h:34
float outsideval_
Definition: volprocregionfiller.h:73
#define mDefaultFactoryInstantiation(baseclss, clss, keywrd, usernm)
Definition: factory.h:287
int gradvalauxidx_
Definition: volprocregionfiller.h:80
float startval_
Definition: volprocregionfiller.h:75
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
Horizontal sampling (inline and crossline range and steps).
Definition: trckeysampling.h:25
Adapter for a VolProc chain to external attribute calculation.
Definition: velocitygridder.h:29
int OutputSlotID
Definition: volprocstep.h:47
float gradval_
Definition: volprocregionfiller.h:76
virtual bool isInputPrevStep() const
Definition: volprocregionfiller.h:60
virtual bool canInputAndOutputBeSame() const
Definition: volprocregionfiller.h:57
int startvalauxidx_
Definition: volprocregionfiller.h:79
Region filler.
Definition: volprocregionfiller.h:26
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:187
An algorithm/calculation/transformation that takes one scalar volume as input, processes it...
Definition: volprocstep.h:39
EM::Region3D & region_
Definition: volprocregionfiller.h:71
float insideval_
Definition: volprocregionfiller.h:72
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:28
DBKey gradvalkey_
Definition: volprocregionfiller.h:78
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:23
Full key to any object in the OpendTect data store.
Definition: dbkey.h:36
virtual bool prefersBinIDWise() const
Definition: volprocregionfiller.h:61
virtual bool needsFullVolume() const
Definition: volprocregionfiller.h:56
Definition: emregion.h:204

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