OpendTect  6.6
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  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "prestackprocessingmod.h"
15 
16 #include "binidvalset.h"
17 #include "prestackevents.h"
18 #include "tableascio.h"
19 #include "task.h"
20 #include "trckeysampling.h"
21 
22 namespace Table { class FormatDesc; }
23 
24 namespace PreStack
25 {
26 
27 class EventManager;
28 
45 mExpClass(PreStackProcessing) EventExporter : public SequentialTask
47 public:
50 
51  void setHRange(const TrcKeySampling&);
52 
53  od_int64 nrDone() const { return nrdone_; }
54  od_int64 totalNr() const { return locations_.totalSize(); }
55 
56  uiString uiMessage() const { return message_; }
57  int nextStep();
59 
60 protected:
61 
65 
67  BinIDValueSet::SPos pos_;
68 
69  int nrdone_;
70  int fileidx_;
72 };
73 
74 
79 mExpClass(PreStackProcessing) EventAscIO : public Table::AscIO
81 public:
83  od_istream&);
84 
88 
89  bool isXY() const;
90  int getNextLine(BinID& bid,int& horid,
91  float& off,float& val);
92 
93 protected:
94 
96  float udfval_;
97  bool isxy_;
99 };
100 
101 
106 mExpClass(PreStackProcessing) EventImporter : public SequentialTask
108 public:
109  EventImporter(const char*,const Table::FormatDesc&,
110  EventManager&);
112 
113  od_int64 nrDone() const;
114  od_int64 totalNr() const { return totalnr_; }
115 
116  uiString uiMessage() const { return message_; }
117  int nextStep();
119 
120 protected:
121 
126 
131 };
132 
133 } // namespace PreStack
134 
TrcKeySampling
Horizontal sampling (inline and crossline range and steps).
Definition: trckeysampling.h:35
binidvalset.h
prestackevents.h
task.h
PreStack::EventExporter::mODTextTranslationClass
mODTextTranslationClass(EventExporter)
PreStack::EventExporter::strm_
od_ostream & strm_
Definition: prestackeventascio.h:62
tableascio.h
BinIDValueSet
A Pos::IdxPairValueSet with BinIDs.
Definition: binidvalset.h:23
PreStack::EventImporter::event_
Event * event_
Definition: prestackeventascio.h:124
PreStack::EventExporter::fileidx_
int fileidx_
Definition: prestackeventascio.h:70
PreStack::EventImporter::EventImporter
EventImporter(const char *, const Table::FormatDesc &, EventManager &)
od_int64
#define od_int64
Definition: plftypes.h:35
PreStack::EventExporter
Outputs an ascii string with all PreStack event, each pick on one row. The columns are as follows:
Definition: prestackeventascio.h:46
PreStack::Event
A Event is a set of picks on an event on a single PreStack gather.
Definition: prestackevents.h:49
PreStack::EventImporter::uiMessage
uiString uiMessage() const
will be message() again in 7.x
Definition: prestackeventascio.h:116
PreStack::EventExporter::tks_
TrcKeySampling tks_
Definition: prestackeventascio.h:64
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
od_istream
OD class for stream read common access to the std::cin.
Definition: od_istream.h:24
PreStack::EventImporter::~EventImporter
~EventImporter()
PreStack::EventImporter::uiNrDoneText
uiString uiNrDoneText() const
will be nrDoneText() in 7.x
PreStack::EventAscIO::mODTextTranslationClass
mODTextTranslationClass(EventAscIO)
PreStack::EventAscIO::udfval_
float udfval_
Definition: prestackeventascio.h:96
PreStack::EventAscIO::createDescBody
static void createDescBody(Table::FormatDesc *)
Table
Definition: geom2dascio.h:20
PreStack::EventImporter::message_
uiString message_
Definition: prestackeventascio.h:127
PreStack::EventAscIO::finishedreadingheader_
bool finishedreadingheader_
Definition: prestackeventascio.h:98
PreStack::EventImporter::totalnr_
od_int64 totalnr_
Definition: prestackeventascio.h:128
BinID
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:31
PreStack::EventExporter::events_
EventManager & events_
Definition: prestackeventascio.h:63
PreStack::EventExporter::locations_
BinIDValueSet locations_
Definition: prestackeventascio.h:66
PreStack::EventImporter::ascio_
EventAscIO * ascio_
Definition: prestackeventascio.h:123
PreStack::EventImporter::strm_
od_istream & strm_
Definition: prestackeventascio.h:122
PreStack::EventImporter::lastbid_
BinID lastbid_
Definition: prestackeventascio.h:129
PreStack::EventImporter::evmgr_
EventManager & evmgr_
Definition: prestackeventascio.h:125
PreStack::EventImporter::mODTextTranslationClass
mODTextTranslationClass(EventImporter)
PreStack::EventImporter::totalNr
od_int64 totalNr() const
Definition: prestackeventascio.h:114
PreStack::EventExporter::pos_
BinIDValueSet::SPos pos_
Definition: prestackeventascio.h:67
PreStack
Definition: synthseis.h:35
PreStack::EventAscIO::getNextLine
int getNextLine(BinID &bid, int &horid, float &off, float &val)
PreStack::EventAscIO::updateDesc
static void updateDesc(Table::FormatDesc &)
PreStack::EventExporter::uiNrDoneText
uiString uiNrDoneText() const
will be nrDoneText() in 7.x
PreStack::EventAscIO::getDesc
static Table::FormatDesc * getDesc()
PreStack::EventExporter::nrdone_
int nrdone_
Definition: prestackeventascio.h:69
uiString
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
PreStack::EventImporter::lasthorid_
int lasthorid_
Definition: prestackeventascio.h:130
PreStack::EventImporter::nextStep
int nextStep()
PreStack::EventAscIO::isXY
bool isXY() const
PreStack::EventManager
A EventManager is a set of EventsSet on multiple PreStack gathers, and are identified under the same ...
Definition: prestackevents.h:102
PreStack::EventAscIO::isxy_
bool isxy_
Definition: prestackeventascio.h:97
PreStack::EventAscIO
Ascii I/O for PreStack event.
Definition: prestackeventascio.h:80
PreStack::EventExporter::nrDone
od_int64 nrDone() const
Definition: prestackeventascio.h:53
PreStack::EventExporter::uiMessage
uiString uiMessage() const
will be message() again in 7.x
Definition: prestackeventascio.h:56
Table::FormatDesc
description of input our output data content
Definition: tabledef.h:220
trckeysampling.h
PreStack::EventAscIO::strm_
od_istream & strm_
Definition: prestackeventascio.h:95
PreStack::EventExporter::EventExporter
EventExporter(od_ostream &strm, EventManager &)
PreStack::EventImporter::nrDone
od_int64 nrDone() const
od_ostream
OD class for stream write common access to the user log file, or std::cout in other than od_main.
Definition: od_ostream.h:26
PreStack::EventExporter::~EventExporter
~EventExporter()
PreStack::EventImporter
PreStack event importer.
Definition: prestackeventascio.h:107
PreStack::EventExporter::setHRange
void setHRange(const TrcKeySampling &)
SequentialTask
The generalization of something (e.g. a computation) where the steps must be done in sequence,...
Definition: task.h:125
PreStack::EventExporter::totalNr
od_int64 totalNr() const
Definition: prestackeventascio.h:54
Table::AscIO
Ascii I/O using Format Description.
Definition: tableascio.h:42
PreStack::EventExporter::nextStep
int nextStep()
PreStack::EventExporter::message_
uiString message_
Definition: prestackeventascio.h:71
PreStack::EventAscIO::EventAscIO
EventAscIO(const Table::FormatDesc &, od_istream &)

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