OpendTect  6.6
stratlayseqattribcalc.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
8  Date: Jan 2011
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "stratmod.h"
15 #include "stattype.h"
16 #include "ranges.h"
17 #include "executor.h"
18 class DataPointSet;
19 
20 namespace Strat
21 {
22 class Level;
23 class UnitRef;
24 class Lithology;
25 class LayerModel;
26 class LaySeqAttrib;
27 class LayerSequence;
28 
36 public:
37 
39 
40  float getValue(const LayerSequence&,
41  const Interval<float>& zrange) const;
42 
43  bool isDist() const;
44  bool isVel() const;
45 
46 protected:
47 
49 
51  Stats::UpscaleType statupscl_;
52  int validx_;
55 
57  const Interval<float>&) const;
58  float getGlobalValue(const LayerSequence&) const;
60 
61  friend class LayModAttribCalc;
62 };
63 
64 
67 public:
68 
70 
72  const LaySeqAttribSet&,
73  DataPointSet&);
75 
76  // will use nearest layer if no extraction gates
78  const Strat::Level* stoplvl=0);
79 
80  uiString uiMessage() const { return msg_; }
81  uiString uiNrDoneText() const { return tr("Models handled");}
82  od_int64 nrDone() const { return seqidx_; }
83  od_int64 totalNr() const;
84  int nextStep();
85 
86  static const char* sKeyModelIdx() { return "Model Index"; }
87 
88 protected:
89 
90  const LayerModel& lm_;
98 
99  int doFinish();
100 
101 };
102 
103 }; // namespace Strat
104 
Strat::LaySeqAttribCalc
calculates attributes from layer sequences
Definition: stratlayseqattribcalc.h:35
Strat::LayModAttribCalc::nrDone
od_int64 nrDone() const
Definition: stratlayseqattribcalc.h:82
Strat::LaySeqAttribCalc::units_
ObjectSet< const Strat::UnitRef > units_
Definition: stratlayseqattribcalc.h:53
Strat::LaySeqAttribCalc::getLocalValue
float getLocalValue(const LayerSequence &, const Interval< float > &) const
Strat::LayModAttribCalc::setExtrGates
void setExtrGates(const ObjectSet< ExtrGateSet > &, const Strat::Level *stoplvl=0)
Strat::LaySeqAttribCalc::stattype_
Stats::Type stattype_
Definition: stratlayseqattribcalc.h:50
Strat::LayModAttribCalc::~LayModAttribCalc
~LayModAttribCalc()
Strat::LaySeqAttribCalc::validx_
int validx_
Definition: stratlayseqattribcalc.h:52
ObjectSet< const Strat::UnitRef >
od_int64
#define od_int64
Definition: plftypes.h:35
Strat::LaySeqAttribCalc::liths_
ObjectSet< const Strat::Lithology > liths_
Definition: stratlayseqattribcalc.h:54
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
Strat::LayModAttribCalc::dpscidxs_
TypeSet< int > dpscidxs_
Definition: stratlayseqattribcalc.h:93
Strat::LaySeqAttribCalc::mODTextTranslationClass
mODTextTranslationClass(LaySeqAttribCalc)
Strat::Level
Stratigraphic level.
Definition: stratlevel.h:42
Strat::LayModAttribCalc::totalNr
od_int64 totalNr() const
Strat::LayModAttribCalc::stoplvl_
const Strat::Level * stoplvl_
Definition: stratlayseqattribcalc.h:97
Strat::LayModAttribCalc::LayModAttribCalc
LayModAttribCalc(const LayerModel &, const LaySeqAttribSet &, DataPointSet &)
Strat::LayModAttribCalc::dps_
DataPointSet & dps_
Definition: stratlayseqattribcalc.h:94
Strat::LayModAttribCalc::seqidx_
od_int64 seqidx_
Definition: stratlayseqattribcalc.h:92
Strat::LaySeqAttribCalc::LaySeqAttribCalc
LaySeqAttribCalc(const LaySeqAttrib &, const LayerModel &)
Stats::Type
Type
Definition: stattype.h:21
Strat::LaySeqAttribCalc::getValue
float getValue(const LayerSequence &, const Interval< float > &zrange) const
Strat::LayModAttribCalc::nextStep
int nextStep()
Strat::LayModAttribCalc::ExtrGateSet
TypeSet< Interval< float > > ExtrGateSet
Definition: stratlayseqattribcalc.h:69
DataPointSet
Set of data points with group selection.
Definition: datapointset.h:48
Strat::LayModAttribCalc::sKeyModelIdx
static const char * sKeyModelIdx()
Definition: stratlayseqattribcalc.h:86
Strat::LayModAttribCalc::calcs_
ObjectSet< LaySeqAttribCalc > calcs_
Definition: stratlayseqattribcalc.h:91
Strat::LayerSequence
A sequence of layers.
Definition: stratlayersequence.h:36
Executor
Specification to enable chunkwise execution of a process.
Definition: executor.h:39
Strat::LaySeqAttribCalc::isDist
bool isDist() const
stattype.h
executor.h
Strat::LayModAttribCalc::uiMessage
uiString uiMessage() const
will be message() again in 7.x
Definition: stratlayseqattribcalc.h:80
Strat::LayerModel
A model consisting of layer sequences.
Definition: stratlayermodel.h:36
Strat::LaySeqAttribCalc::applyTransform
void applyTransform(TypeSet< float > &) const
Strat::LayModAttribCalc::uiNrDoneText
uiString uiNrDoneText() const
will be nrDoneText() in 7.x
Definition: stratlayseqattribcalc.h:81
Strat::LaySeqAttribCalc::statupscl_
Stats::UpscaleType statupscl_
Definition: stratlayseqattribcalc.h:51
Strat::LaySeqAttribSet
attribs to extract from layer sequences
Definition: stratlayseqattrib.h:92
Strat
Stratigraphy.
Definition: stratlevel.h:26
uiString
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
Strat::LaySeqAttribCalc::attr_
const LaySeqAttrib & attr_
Definition: stratlayseqattribcalc.h:48
Strat::LayModAttribCalc::doFinish
int doFinish()
Strat::LaySeqAttribCalc::isVel
bool isVel() const
Strat::LaySeqAttribCalc::getGlobalValue
float getGlobalValue(const LayerSequence &) const
Strat::LaySeqAttrib
attrib to extract from layer sequences
Definition: stratlayseqattrib.h:37
Strat::LayModAttribCalc::lm_
const LayerModel & lm_
Definition: stratlayseqattribcalc.h:90
Strat::LayModAttribCalc::mODTextTranslationClass
mODTextTranslationClass(LayModAttribCalc)
ranges.h
Interval< float >
Strat::LayModAttribCalc::msg_
uiString msg_
Definition: stratlayseqattribcalc.h:95
Strat::LayModAttribCalc::extrgates_
ObjectSet< ExtrGateSet > extrgates_
Definition: stratlayseqattribcalc.h:96
sKey::Level
FixedString Level()
Definition: keystrs.h:86
Strat::LayModAttribCalc
Definition: stratlayseqattribcalc.h:66
TypeSet< float >

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