OpendTect-6_4  6.4
attribprocessor.h
Go to the documentation of this file.
1 #ifndef attribprocessor_h
2 #define attribprocessor_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Kristofer Tingdahl
9  Date: 07-10-1999
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "attributeenginemod.h"
16 #include "executor.h"
17 #include "binid.h"
18 
19 class TrcKeyZSampling;
20 class SeisTrcInfo;
21 namespace Seis { class SelData; }
22 
23 namespace Attrib
24 {
25 class DataHolder;
26 class Desc;
27 class Output;
28 class Provider;
29 
34 mExpClass(AttributeEngine) Processor : public Executor
36 public:
37  Processor(Desc&,const char* linenm,
38  uiString& errmsg);
39  ~Processor();
40 
41  virtual bool isOK() const;
42  void addOutput(Output*);
43  void setLineName(const char*);
44 
45  int nextStep();
46  void init();
47  od_int64 totalNr() const;
48  od_int64 nrDone() const;
49  uiString uiMessage() const;
51  { return tr("Positions processed"); }
52 
53  void addOutputInterest(int sel);
54  bool setZIntervals(TypeSet< Interval<int> >&,
55  const BinID&,const Coord&);
56  bool setZIntervalsSpecial60(
57  TypeSet< Interval<int> >&,const BinID&,
58  const Coord&,const TrcKey&);
59  void computeAndSetRefZStepAndZ0();
60 
66  const char* getAttribName() const;
67  const char* getAttribUserRef() const;
68  Provider* getProvider() { return provider_; }
70 
71  void setRdmPaths(TypeSet<BinID>* truepath,
72  TypeSet<BinID>* snappedpath);
73  //for directional attributes
74 
75 protected:
76  void useFullProcess(int&);
77  void useSCProcess(int&);
78  void fullProcess(const SeisTrcInfo*);
79 
80  void defineGlobalOutputSpecs(TypeSet<int>&,TrcKeyZSampling&);
81  void prepareForTableOutput();
82  void computeAndSetPosAndDesVol(TrcKeyZSampling&);
83 
86  int nriter_;
87  int nrdone_;
88  bool is2d_;
91  bool isinited_;
93 
96 
97  bool isHidingDataAvailabilityError() const;
99 
100 public:
101  void showDataAvailabilityErrors(bool yn);
102 };
103 
104 
105 } // namespace Attrib
106 
107 
108 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Attribute Processor.
Definition: attribprocessor.h:34
Summary for a Seismic object.
Definition: segydirectdef.h:23
Seis::SelData * sd_
Definition: attribprocessor.h:95
int nrdone_
Definition: attribprocessor.h:87
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
#define od_int64
Definition: plftypes.h:36
bool init()
Provider * provider_
Definition: attribprocessor.h:85
Definition: uistring.h:89
Desc & desc_
Definition: attribprocessor.h:84
A cartesian coordinate in 2D space.
Definition: coord.h:25
Notifier< Attrib::Processor > moveonly
Definition: attribprocessor.h:61
Definition: callback.h:254
Set of pointers to objects.
Definition: commontypes.h:32
Provider * getProvider()
Definition: attribprocessor.h:68
FixedString Desc()
Definition: keystrs.h:62
Set of (small) copyable elements.
Definition: commontypes.h:30
int nriter_
Definition: attribprocessor.h:86
uiString uiNrDoneText() const
will be nrDoneText() in 7.x
Definition: attribprocessor.h:50
Description of an attribute in an Attrib::DescSet. Each attribute has a name (e.g. "Similarity"), a user reference (e.g. "My similarity"), and at least one output. In addition, it may have parameters and inputs. If it has multiple outputs, only one of the outputs are selected.
Definition: attribdesc.h:89
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
bool useshortcuts_
Definition: attribprocessor.h:92
Information for a seismic trace, AKA trace header info.
Definition: seisinfo.h:27
FixedString Output()
Definition: keystrs.h:97
TypeSet< int > outpinterest_
Definition: attribprocessor.h:89
bool is2d_
Definition: attribprocessor.h:88
contains input (sub-)selection data from a cube or lineset
Definition: seisselection.h:82
BinID prevbid_
Definition: attribprocessor.h:94
bool showdataavailabilityerrors_
Definition: attribprocessor.h:98
bool isinited_
Definition: attribprocessor.h:91
ObjectSet< Output > outputs_
Definition: attribprocessor.h:69
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
Provides the actual output to ...
Definition: attribprovider.h:44
Represents a unique trace position in one of the surveys that OpendTect is managing.
Definition: trckey.h:28
Base class for attribute Output.
Definition: attriboutput.h:44
Semblance Attribute.
Definition: attribdataholder.h:25
Specification to enable chunkwise execution of a process.
Definition: executor.h:39
uiString errmsg_
Definition: attribprocessor.h:90

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