OpendTect-6_4  6.4
prestackeventio.h
Go to the documentation of this file.
1 #ifndef prestackeventio_h
2 #define prestackeventio_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: K. Tingdahl
9  Date: March 2007
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "prestackprocessingmod.h"
17 #include "executor.h"
18 #include "bufstringset.h"
19 #include "trckeyzsampling.h"
20 #include "iopar.h"
21 #include "sets.h"
22 #include "valseriesevent.h"
23 
24 class IOObj;
25 class BinIDValueSet;
26 class TrcKeySampling;
27 template <class T> class DataInterpreter;
28 
29 namespace PreStack
30 {
31 
32 class EventManager;
33 class EventPatchReader;
34 class EventPatchWriter;
35 
40 mExpClass(PreStackProcessing) EventReader : public Executor
42 public:
43  EventReader(IOObj*,EventManager*,bool trigger);
46  ~EventReader();
47 
48  void setSelection(const BinIDValueSet*);
49  void setSelection(const TrcKeySampling*);
50 
51  bool prepareWork();
53  bool getPositions(BinIDValueSet&) const;
55 
56  bool getBoundingBox(Interval<int>& inlrg,
57  Interval<int>& crlrg ) const;
59  static bool readSamplingData(const IOObj&,SamplingData<int>& inl,
60  SamplingData<int>& crl);
61 
62  uiString uiMessage() const { return tr("Loading events"); }
63  uiString errMsg() const;
64 
65  static int encodeEventType(VSEvent::Type);
66  static VSEvent::Type decodeEventType(int);
67 
68  static const char* sFileType() { return "Prestack events"; }
69  static const char* sKeyInt16DataChar() { return "Short dc"; }
70  static const char* sKeyInt32DataChar() { return "Int dc"; }
71  static const char* sKeyFloatDataChar() { return "Float dc"; }
72  static const char* sKeyPrimaryDipSource() { return "Primary dip"; }
73  static const char* sKeySecondaryDipSource(){ return "Secondary dip"; }
74  static const char* sKeyISamp() { return "In-line sampling"; }
75  static const char* sKeyCSamp() { return "Cross-line sampling";}
76 
77  static const char* sKeyNrHorizons() { return "Nr Horizons"; }
78  static const char* sKeyHorizonID() { return "Horizon ID"; }
79  static const char* sKeyNextHorizonID() { return "Next Horizon ID"; }
80  static const char* sKeyHorizonRef() {return "Horizon EM Reference";}
81  static const char* sOldHorizonFileName() { return "horizoninfo"; }
82  static const char* sAuxDataFileName() { return "auxdata"; }
83  static const char* sHorizonFileType() { return "PS Horizon info"; }
84  static const char* sHorizonFileVersion() { return "PS Horizon version"; }
85 
86  int nextStep();
87 
88 protected:
89  bool addReader( const char* fnm );
90  bool readAuxData(const char* fnm);
91 
92  const IOObj* ioobj_;
96 
98 
100  bool trigger_;
101 };
102 
103 
108 mExpClass(PreStackProcessing) EventWriter : public Executor
110 public:
112  ~EventWriter();
113 
114  int nextStep();
115  uiString errMsg() const;
116  uiString uiMessage() const { return tr("Storing events"); }
117 
118 
119 protected:
120 
121  bool writeAuxData(const char* fnm);
122 
128 };
129 
130 
135 mExpClass(PreStackProcessing) EventDuplicator : public Executor
137 public:
138  EventDuplicator(IOObj* from,IOObj* to);
139  ~EventDuplicator();
140 
141  od_int64 totalNr() const { return totalnr_; }
142  od_int64 nrDone() const { return totalnr_ - filestocopy_.size();}
143  uiString uiMessage() const { return message_; }
144  uiString uiNrDoneText() const { return tr("Files copied"); }
145 
146  int nextStep();
147  uiString errMsg() const { return errmsg_; }
148 
149 protected:
150  void errorCleanup();
151 
152  int totalnr_;
156 
159 };
160 
161 
162 }; //namespace
163 
164 #endif
#define mExpClass(module)
Definition: commondefs.h:160
static const char * sAuxDataFileName()
Definition: prestackeventio.h:82
EventManager & eventmanager_
Definition: prestackeventio.h:126
ObjectSet< EventPatchReader > patchreaders_
Definition: prestackeventio.h:97
Definition: ioobj.h:58
T to(const F &fr)
Definition: convert.h:33
uiString errmsg_
Definition: prestackeventio.h:154
const TrcKeySampling * horsel_
Definition: prestackeventio.h:95
Reader for PreStack events.
Definition: prestackeventio.h:40
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
IOObj * ioobj_
Definition: prestackeventio.h:124
IOObj * to_
Definition: prestackeventio.h:158
static const char * sKeyISamp()
Definition: prestackeventio.h:74
#define od_int64
Definition: plftypes.h:36
static const char * sKeyHorizonID()
Definition: prestackeventio.h:78
Definition: synthseis.h:36
static const char * sKeyPrimaryDipSource()
Definition: prestackeventio.h:72
EventManager * eventmanager_
Definition: prestackeventio.h:93
Definition: uistring.h:89
uiString uiMessage() const
will be message() again in 7.x
Definition: prestackeventio.h:116
Set of BufferString objects.
Definition: bufstringset.h:28
static const char * sKeyInt32DataChar()
Definition: prestackeventio.h:70
ObjectSet< EventPatchWriter > patchwriters_
Definition: prestackeventio.h:123
const BinIDValueSet * bidsel_
Definition: prestackeventio.h:94
static const char * sKeySecondaryDipSource()
Definition: prestackeventio.h:73
od_int64 nrDone() const
Definition: prestackeventio.h:142
Duplicator for PreStack events.
Definition: prestackeventio.h:135
Byte-level data interpreter.
Definition: cbvswriter.h:22
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
BufferStringSet filestocopy_
Definition: prestackeventio.h:153
Horizontal sampling (inline and crossline range and steps).
Definition: trckeysampling.h:27
static const char * sFileType()
Definition: prestackeventio.h:68
static const char * sKeyCSamp()
Definition: prestackeventio.h:75
static const char * sOldHorizonFileName()
Definition: prestackeventio.h:81
uiString message_
Definition: prestackeventio.h:155
static const char * sKeyInt16DataChar()
Definition: prestackeventio.h:69
const IOObj * ioobj_
Definition: prestackeventio.h:92
uiString errMsg() const
Definition: prestackeventio.h:147
uiString uiNrDoneText() const
will be nrDoneText() in 7.x
Definition: prestackeventio.h:144
IOPar auxinfo_
Definition: prestackeventio.h:125
static const char * sKeyFloatDataChar()
Definition: prestackeventio.h:71
uiString errmsg_
Definition: prestackeventio.h:99
BufferString errmsg_
Definition: horizontracker.h:119
static const char * sKeyNextHorizonID()
Definition: prestackeventio.h:79
static const char * sKeyHorizonRef()
Definition: prestackeventio.h:80
uiString uiMessage() const
will be message() again in 7.x
Definition: prestackeventio.h:62
uiString uiMessage() const
will be message() again in 7.x
Definition: prestackeventio.h:143
A Pos::IdxPairValueSet with BinIDs.
Definition: binidvalset.h:23
const char * errMsg() const
Definition: horizontracker.h:61
static const char * sHorizonFileType()
Definition: prestackeventio.h:83
static const char * sKeyNrHorizons()
Definition: prestackeventio.h:77
IOObj * from_
Definition: prestackeventio.h:157
int totalnr_
Definition: prestackeventio.h:152
Writer for PreStack events.
Definition: prestackeventio.h:108
Type
Definition: valseriesevent.h:26
od_int64 totalNr() const
Definition: prestackeventio.h:141
uiString errmsg_
Definition: prestackeventio.h:127
bool trigger_
Definition: prestackeventio.h:100
static const char * sHorizonFileVersion()
Definition: prestackeventio.h:84
A EventManager is a set of EventsSet on multiple PreStack gathers, and are identified under the same ...
Definition: prestackevents.h:102
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