OpendTect-6_4  6.4
prestackeventascio.h
Go to the documentation of this file.
1 #ifndef prestackeventascio_h
2 #define prestackeventascio_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: K. Tingdahl
9  Date: November 2008
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "prestackprocessingmod.h"
16 
17 #include "binidvalset.h"
18 #include "prestackevents.h"
19 #include "tableascio.h"
20 #include "task.h"
21 #include "trckeysampling.h"
22 
23 namespace Table { class FormatDesc; }
24 
25 namespace PreStack
26 {
27 
28 class EventManager;
29 
46 mExpClass(PreStackProcessing) EventExporter : public SequentialTask
48 public:
50  ~EventExporter();
51 
52  void setHRange(const TrcKeySampling&);
53 
54  od_int64 nrDone() const { return nrdone_; }
55  od_int64 totalNr() const { return locations_.totalSize(); }
56 
57  uiString uiMessage() const { return message_; }
58  int nextStep();
59  uiString uiNrDoneText() const;
60 
61 protected:
62 
66 
68  BinIDValueSet::SPos pos_;
69 
70  int nrdone_;
71  int fileidx_;
73 };
74 
75 
80 mExpClass(PreStackProcessing) EventAscIO : public Table::AscIO
82 public:
84  od_istream&);
85 
86  static Table::FormatDesc* getDesc();
87  static void updateDesc(Table::FormatDesc&);
88  static void createDescBody(Table::FormatDesc*);
89 
90  bool isXY() const;
91  int getNextLine(BinID& bid,int& horid,
92  float& off,float& val);
93 
94 protected:
95 
97  float udfval_;
98  bool isxy_;
100 };
101 
102 
107 mExpClass(PreStackProcessing) EventImporter : public SequentialTask
109 public:
110  EventImporter(const char*,const Table::FormatDesc&,
111  EventManager&);
112  ~EventImporter();
113 
114  od_int64 nrDone() const;
115  od_int64 totalNr() const { return totalnr_; }
116 
117  uiString uiMessage() const { return message_; }
118  int nextStep();
119  uiString uiNrDoneText() const;
120 
121 protected:
122 
127 
132 };
133 
134 } // namespace PreStack
135 
136 #endif
od_istream & strm_
Definition: prestackeventascio.h:123
#define mExpClass(module)
Definition: commondefs.h:160
EventAscIO * ascio_
Definition: prestackeventascio.h:124
OD class for stream write common access to the user log file, or std::cout in batch progs...
Definition: od_ostream.h:26
EventManager & evmgr_
Definition: prestackeventascio.h:126
BinIDValueSet::SPos pos_
Definition: prestackeventascio.h:68
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
#define od_int64
Definition: plftypes.h:36
Definition: synthseis.h:36
Event * event_
Definition: prestackeventascio.h:125
description of input our output data content
Definition: tabledef.h:220
Definition: uistring.h:89
od_int64 totalnr_
Definition: prestackeventascio.h:129
uiString message_
Definition: prestackeventascio.h:72
Outputs an ascii string with all PreStack event, each pick on one row. The columns are as follows: ...
Definition: prestackeventascio.h:46
OD class for stream read.
Definition: od_istream.h:24
bool isxy_
Definition: prestackeventascio.h:98
int nrdone_
Definition: prestackeventascio.h:70
od_istream & strm_
Definition: prestackeventascio.h:96
uiString message_
Definition: prestackeventascio.h:128
od_int64 totalNr() const
Definition: prestackeventascio.h:55
BinID lastbid_
Definition: prestackeventascio.h:130
The generalization of something (e.g. a computation) where the steps must be done in sequence...
Definition: task.h:124
Definition: geom2dascio.h:21
Horizontal sampling (inline and crossline range and steps).
Definition: trckeysampling.h:27
int lasthorid_
Definition: prestackeventascio.h:131
uiString uiMessage() const
will be message() again in 7.x
Definition: prestackeventascio.h:117
int fileidx_
Definition: prestackeventascio.h:71
Ascii I/O for PreStack event.
Definition: prestackeventascio.h:80
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
A Pos::IdxPairValueSet with BinIDs.
Definition: binidvalset.h:23
uiString uiMessage() const
will be message() again in 7.x
Definition: prestackeventascio.h:57
od_ostream & strm_
Definition: prestackeventascio.h:63
bool finishedreadingheader_
Definition: prestackeventascio.h:99
EventManager & events_
Definition: prestackeventascio.h:64
float udfval_
Definition: prestackeventascio.h:97
BinIDValueSet locations_
Definition: prestackeventascio.h:67
PreStack event importer.
Definition: prestackeventascio.h:107
TrcKeySampling tks_
Definition: prestackeventascio.h:65
A Event is a set of picks on an event on a single PreStack gather.
Definition: prestackevents.h:49
od_int64 nrDone() const
Definition: prestackeventascio.h:54
od_int64 totalNr() const
Definition: prestackeventascio.h:115
A EventManager is a set of EventsSet on multiple PreStack gathers, and are identified under the same ...
Definition: prestackevents.h:102

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