OpendTect-6_4  6.4
createattriblog.h
Go to the documentation of this file.
1 #ifndef createattriblog_h
2 #define createattriblog_h
3 /*+
4  ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Satyaki Maitra
8  Date: March 2008
9  RCS: $Id$
10  _______________________________________________________________________
11 
12 -*/
13 
14 #include "wellattribmod.h"
15 #include "binidvalset.h"
16 #include "bufstring.h"
17 #include "uistring.h"
18 
19 namespace Attrib { class DescSet; class SelSpec; class EngineMan; }
20 namespace Well { class Data; class ExtractParams; }
21 class NLAModel;
22 class TaskRunner;
23 
25 { mODTextTranslationClass(AttribLogExtractor);
26 public:
28  : wd_(&wd)
29  , bidset_(BinIDValueSet(2,true))
30  {}
31 
32  const TypeSet<BinIDValueSet::SPos>& positions() const { return positions_; }
33  const TypeSet<float>& depths() const { return depths_; }
34  const BinIDValueSet& bidset() const { return bidset_; }
35 
36  bool extractData(Attrib::EngineMan&,TaskRunner* t=0);
37  bool fillPositions(const StepInterval<float>&);
38  void setWD(const Well::Data& wd)
39  { wd_ = &wd; }
40 
41 protected:
42 
43  const Well::Data* wd_;
47 };
48 
49 
51 { mODTextTranslationClass(AttribLogCreator);
52 public:
53 
54  mExpClass(WellAttrib) Setup
55  {
56  public:
57  Setup(const Attrib::DescSet* attr,
58  const Well::ExtractParams* wep)
59  : nlamodel_(nullptr)
60  , attrib_(attr)
61  , selspec_(nullptr)
62  , tr_(nullptr)
63  , extractparams_(wep)
64  {}
65 
66  mDefSetupMemb(const NLAModel*,nlamodel)
67  mDefSetupMemb(const Attrib::DescSet*,attrib)
70  mDefSetupMemb(const Well::ExtractParams*,extractparams)
71  mDefSetupMemb(TaskRunner*,tr) //optional
72  };
73 
74 
75  AttribLogCreator(const Setup& su, int& selidx)
76  : setup_(su)
77  , extractor_(0)
78  , sellogidx_(selidx)
79  {}
81 
82  bool doWork(Well::Data&,uiString&);
83 
84 protected:
85 
86  const Setup& setup_;
88  int& sellogidx_;
89 
90  bool extractData(BinIDValueSet&);
91  bool createLog(Well::Data&,
92  const AttribLogExtractor&);
93 
94 };
95 
96 
97 
98 #endif
#define mExpClass(module)
Definition: commondefs.h:160
const Well::Data * wd_
Definition: createattriblog.h:43
void setWD(const Well::Data &wd)
Definition: createattriblog.h:38
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Minimum Interface for NLA models.
Definition: nlamodel.h:20
AttribLogExtractor * extractor_
Definition: createattriblog.h:87
Set of attribute descriptions.
Definition: attribdescset.h:35
ZRangeSelector to extract parameters.
Definition: wellextractdata.h:118
TypeSet< float > depths_
Definition: createattriblog.h:46
Definition: uistring.h:89
const Setup & setup_
Definition: createattriblog.h:86
Definition: createattriblog.h:24
The attribute engine manager.
Definition: attribengman.h:46
AttribLogCreator(const Setup &su, int &selidx)
Definition: createattriblog.h:75
Definition: createattriblog.h:50
Class that can execute a task.
Definition: task.h:169
Definition: directionalsurvey.h:19
const TypeSet< float > & depths() const
Definition: createattriblog.h:33
Setup(const Attrib::DescSet *attr, const Well::ExtractParams *wep)
Definition: createattriblog.h:57
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:137
AttribLogExtractor(const Well::Data &wd)
Definition: createattriblog.h:27
Definition: createattriblog.h:54
Definition: repos.h:25
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
const BinIDValueSet & bidset() const
Definition: createattriblog.h:34
~AttribLogCreator()
Definition: createattriblog.h:80
A Pos::IdxPairValueSet with BinIDs.
Definition: binidvalset.h:23
Specifies an attribute selection (ID or output number of NN).
Definition: attribsel.h:45
TypeSet< BinIDValueSet::SPos > positions_
Definition: createattriblog.h:44
const TypeSet< BinIDValueSet::SPos > & positions() const
Definition: createattriblog.h:32
The holder of all data concerning a certain well.
Definition: welldata.h:113
BinIDValueSet bidset_
Definition: createattriblog.h:45
int & sellogidx_
Definition: createattriblog.h:88
Semblance Attribute.
Definition: attribdataholder.h:25

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