OpendTect-6_4  6.4
stratlayseqattribcalc.h
Go to the documentation of this file.
1 #ifndef stratlayseqattribcalc_h
2 #define stratlayseqattribcalc_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert
9  Date: Jan 2011
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "stratmod.h"
16 #include "stattype.h"
17 #include "ranges.h"
18 #include "executor.h"
19 class DataPointSet;
20 
21 namespace Strat
22 {
23 class Level;
24 class UnitRef;
25 class Lithology;
26 class LayerModel;
27 class LaySeqAttrib;
28 class LayerSequence;
29 
36 { mODTextTranslationClass(LaySeqAttribCalc);
37 public:
38 
39  LaySeqAttribCalc(const LaySeqAttrib&,const LayerModel&);
40 
41  float getValue(const LayerSequence&,
42  const Interval<float>& zrange) const;
43 
44  bool isDist() const;
45  bool isVel() const;
46 
47 protected:
48 
50 
52  Stats::UpscaleType statupscl_;
53  int validx_;
56 
57  float getLocalValue(const LayerSequence&,
58  const Interval<float>&) const;
59  float getGlobalValue(const LayerSequence&) const;
60  void applyTransform(TypeSet<float>&) const;
61 
62  friend class LayModAttribCalc;
63 };
64 
65 
68 public:
69 
71 
73  const LaySeqAttribSet&,
74  DataPointSet&);
76 
77  // will use nearest layer if no extraction gates
78  void setExtrGates(const ObjectSet<ExtrGateSet>&,
79  const Strat::Level* stoplvl=0);
80 
81  uiString uiMessage() const { return msg_; }
82  uiString uiNrDoneText() const { return tr("Models handled");}
83  od_int64 nrDone() const { return seqidx_; }
84  od_int64 totalNr() const;
85  int nextStep();
86 
87  static const char* sKeyModelIdx() { return "Model Index"; }
88 
89 protected:
90 
91  const LayerModel& lm_;
99 
100  int doFinish();
101 
102 };
103 
104 }; // namespace Strat
105 
106 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Stats::UpscaleType statupscl_
Definition: stratlayseqattribcalc.h:52
A sequence of layers.
Definition: stratlayersequence.h:36
Set of data points with group selection.
Definition: datapointset.h:48
DataPointSet & dps_
Definition: stratlayseqattribcalc.h:95
Definition: stratlayseqattribcalc.h:66
FixedString Level()
Definition: keystrs.h:78
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Stats::Type stattype_
Definition: stratlayseqattribcalc.h:51
#define od_int64
Definition: plftypes.h:36
attribs to extract from layer sequences
Definition: stratlayseqattrib.h:91
Definition: uistring.h:89
TypeSet< Interval< float > > ExtrGateSet
Definition: stratlayseqattribcalc.h:70
ObjectSet< const Strat::UnitRef > units_
Definition: stratlayseqattribcalc.h:54
Type
Definition: stattype.h:21
ObjectSet< ExtrGateSet > extrgates_
Definition: stratlayseqattribcalc.h:97
Set of pointers to objects.
Definition: commontypes.h:32
Stratigraphic level.
Definition: stratlevel.h:42
const LaySeqAttrib & attr_
Definition: stratlayseqattribcalc.h:49
int validx_
Definition: stratlayseqattribcalc.h:53
od_int64 nrDone() const
Definition: stratlayseqattribcalc.h:83
uiString uiNrDoneText() const
will be nrDoneText() in 7.x
Definition: stratlayseqattribcalc.h:82
ObjectSet< LaySeqAttribCalc > calcs_
Definition: stratlayseqattribcalc.h:92
Stratigraphy.
Definition: stratlevel.h:26
uiString msg_
Definition: stratlayseqattribcalc.h:96
calculates attributes from layer sequences
Definition: stratlayseqattribcalc.h:35
TypeSet< int > dpscidxs_
Definition: stratlayseqattribcalc.h:94
const LayerModel & lm_
Definition: stratlayseqattribcalc.h:91
static const char * sKeyModelIdx()
Definition: stratlayseqattribcalc.h:87
attrib to extract from layer sequences
Definition: stratlayseqattrib.h:37
od_int64 seqidx_
Definition: stratlayseqattribcalc.h:93
A model consisting of layer sequences.
Definition: stratlayermodel.h:36
const Strat::Level * stoplvl_
Definition: stratlayseqattribcalc.h:98
ObjectSet< const Strat::Lithology > liths_
Definition: stratlayseqattribcalc.h:55
uiString uiMessage() const
will be message() again in 7.x
Definition: stratlayseqattribcalc.h:81
Specification to enable chunkwise execution of a process.
Definition: executor.h:39

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