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

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