OpendTect  6.3
prestackeventascio.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: November 2008
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "prestackprocessingmod.h"
14 
15 #include "binidvalset.h"
16 #include "prestackevents.h"
17 #include "tableascio.h"
18 #include "task.h"
19 #include "trckeysampling.h"
20 
21 namespace Table { class FormatDesc; }
22 
23 namespace PreStack
24 {
25 
26 class EventManager;
27 
44 mExpClass(PreStackProcessing) EventExporter : public SequentialTask
46 public:
48  ~EventExporter();
49 
50  void setHRange(const TrcKeySampling&);
51 
52  od_int64 nrDone() const { return nrdone_; }
53  od_int64 totalNr() const { return locations_.totalSize(); }
54 
55  uiString message() const { return message_; }
56  int nextStep();
57  uiString nrDoneText() const;
58 
59 protected:
60 
64 
67 
68  int nrdone_;
69  int fileidx_;
71 };
72 
73 
78 mExpClass(PreStackProcessing) EventAscIO : public Table::AscIO
80 public:
82  od_istream&);
83 
84  static Table::FormatDesc* getDesc();
85  static void updateDesc(Table::FormatDesc&);
86  static void createDescBody(Table::FormatDesc*);
87 
88  bool isXY() const;
89  int getNextLine(BinID& bid,int& horid,
90  float& off,float& val);
91 
92 protected:
93 
95  float udfval_;
96  bool isxy_;
98 };
99 
100 
105 mExpClass(PreStackProcessing) EventImporter : public SequentialTask
107 public:
108  EventImporter(const char*,const Table::FormatDesc&,
109  EventManager&);
110  ~EventImporter();
111 
112  od_int64 nrDone() const;
113  od_int64 totalNr() const { return totalnr_; }
114 
115  uiString message() const { return message_; }
116  int nextStep();
117  uiString nrDoneText() const;
118 
119 protected:
120 
125 
130 };
131 
132 } // namespace PreStack
od_istream & strm_
Definition: prestackeventascio.h:121
#define mExpClass(module)
Definition: commondefs.h:157
EventAscIO * ascio_
Definition: prestackeventascio.h:122
uiString message() const
Definition: prestackeventascio.h:55
OD class for stream write common access to the user log file, or std::cout in batch progs...
Definition: od_ostream.h:25
EventManager & evmgr_
Definition: prestackeventascio.h:124
BinIDValueSet::SPos pos_
Definition: prestackeventascio.h:66
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
#define od_int64
Definition: plftypes.h:34
Definition: prestackagc.h:18
IdxPairDataSet::SPos SPos
Definition: posidxpairvalset.h:42
Event * event_
Definition: prestackeventascio.h:123
description of input our output data content
Definition: tabledef.h:215
Definition: uistring.h:88
od_int64 totalnr_
Definition: prestackeventascio.h:127
uiString message_
Definition: prestackeventascio.h:70
Outputs an ascii string with all PreStack event, each pick on one row. The columns are as follows: ...
Definition: prestackeventascio.h:44
OD class for stream read.
Definition: od_istream.h:23
bool isxy_
Definition: prestackeventascio.h:96
int nrdone_
Definition: prestackeventascio.h:68
od_istream & strm_
Definition: prestackeventascio.h:94
uiString message_
Definition: prestackeventascio.h:126
od_int64 totalNr() const
Definition: prestackeventascio.h:53
BinID lastbid_
Definition: prestackeventascio.h:128
The generalization of something (e.g. a computation) where the steps must be done in sequence...
Definition: task.h:147
Definition: geom2dascio.h:18
Horizontal sampling (inline and crossline range and steps).
Definition: trckeysampling.h:25
int lasthorid_
Definition: prestackeventascio.h:129
uiString message() const
Definition: prestackeventascio.h:115
int fileidx_
Definition: prestackeventascio.h:69
Ascii I/O for PreStack event.
Definition: prestackeventascio.h:78
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:28
A Pos::IdxPairValueSet with BinIDs.
Definition: binidvalset.h:21
od_ostream & strm_
Definition: prestackeventascio.h:61
bool finishedreadingheader_
Definition: prestackeventascio.h:97
EventManager & events_
Definition: prestackeventascio.h:62
float udfval_
Definition: prestackeventascio.h:95
BinIDValueSet locations_
Definition: prestackeventascio.h:65
PreStack event importer.
Definition: prestackeventascio.h:105
TrcKeySampling tks_
Definition: prestackeventascio.h:63
A Event is a set of picks on an event on a single PreStack gather.
Definition: prestackevents.h:47
od_int64 nrDone() const
Definition: prestackeventascio.h:52
od_int64 totalNr() const
Definition: prestackeventascio.h:113
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. 2017