OpendTect-6_4  6.4
segyscanner.h
Go to the documentation of this file.
1 #ifndef segyscanner_h
2 #define segyscanner_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert
9  Date: Jul 2008
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "seismod.h"
16 #include "executor.h"
17 #include "seistype.h"
18 #include "bufstringset.h"
19 #include "segyfiledef.h"
20 #include "uistring.h"
21 class SeisTrc;
22 class DataClipSampler;
24 namespace PosInfo { class Detector; }
25 
26 
27 namespace SEGY
28 {
29 class FileDataSet;
30 
35 public:
36 
38  Scanner(const FileSpec&,Seis::GeomType,const IOPar&);
39  ~Scanner();
40 
41  Seis::GeomType geomType() const { return geom_; }
42  const IOPar& pars() const { return pars_; }
43  void setMaxNrtraces( int n ) { nrtrcs_ = n; }
44  void setForceRev0( bool yn ) { forcerev0_ = yn; }
45  void setRichInfo( bool yn ) { richinfo_ = yn; }
46  void collectInfoPerTrace( bool yn ) { notrcinfo_ = !yn; }
47 
48  int nextStep();
49  uiString uiMessage() const { return msg_; }
50  od_int64 nrDone() const { return nrdone_; }
51  od_int64 totalNr() const;
52  uiString uiNrDoneText() const { return tr("Traces scanned"); }
53 
54  const FileDataSet& fileDataSet() const { return fds_; }
55  FileDataSet& fileDataSet() { return fds_; }
56 
62 
63  void getReport(IOPar&,const IOPar* inppars=0) const;
64  StepInterval<float> zRange() const;
65  const PosInfo::Detector& posInfoDetector() const { return dtctor_; }
66 
67  const BufferStringSet& warnings() const { return trwarns_; }
68  const SEGYSeisTrcTranslator* translator() const { return tr_; }
69 
70 protected:
71 
73  const IOPar& pars_;
77  int nrtrcs_;
78  bool forcerev0_;
79  bool richinfo_;
80 
82  int curfidx_;
85  mutable od_int64 totnr_;
88  bool notrcinfo_;
89 
90  int openNext();
91  int readNext();
92  void closeTr();
93 
94  void init(const FileSpec&);
95  int finish(bool);
96  void addFailed(const uiString&);
97  void initFileData();
98  void addErrReport(IOPar&) const;
99  uiString Openff() { return tr("Opening first file"); }
100 };
101 
102 } // namespace
103 
104 #endif
BufferStringSet fnms_
Actually used, possibly with errs.
Definition: segyscanner.h:57
#define mExpClass(module)
Definition: commondefs.h:160
Summary for a Seismic object.
Definition: segydirectdef.h:23
const PosInfo::Detector & posInfoDetector() const
Definition: segyscanner.h:65
BufferStringSet scanerrfnms_
Error during scan (but in fnms_)
Definition: segyscanner.h:60
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
BufferStringSet trwarns_
Definition: segyscanner.h:87
void setRichInfo(bool yn)
Definition: segyscanner.h:45
uiStringSet scanerrmsgs_
Err Msgs for &#39;Error during scan&#39;.
Definition: segyscanner.h:61
#define od_int64
Definition: plftypes.h:36
bool init()
Definition: segytr.h:32
Definition: uistring.h:89
Set of BufferString objects.
Definition: bufstringset.h:28
void setMaxNrtraces(int n)
Definition: segyscanner.h:43
Seis::GeomType geom_
Definition: segyscanner.h:72
Definition: segyfiledata.h:39
const IOPar & pars_
Definition: segyscanner.h:73
const BufferStringSet & warnings() const
Definition: segyscanner.h:67
bool notrcinfo_
Definition: segyscanner.h:88
DataClipSampler & clipsmplr_
Definition: segyscanner.h:76
GeomType
Definition: seistype.h:33
BufferStringSet failedfnms_
Failed to open or read.
Definition: segyscanner.h:58
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
SEGYSeisTrcTranslator * tr_
Definition: segyscanner.h:75
const FileDataSet & fileDataSet() const
Definition: segyscanner.h:54
bool forcerev0_
Definition: segyscanner.h:78
Scans SEG-Y file(s). For reports, you&#39;d want to set rich info.
Definition: segyscanner.h:33
uiString uiMessage() const
will be message() again in 7.x
Definition: segyscanner.h:49
od_int64 nrDone() const
Definition: segyscanner.h:50
uiString Openff()
Definition: segyscanner.h:99
SeisTrc & trc_
Definition: segyscanner.h:81
Data clipping sampler.
Definition: dataclipper.h:134
Position info, often segmented.
Definition: posinfo.h:40
Seismic trace.
Definition: seistrc.h:34
uiString msg_
Definition: segyscanner.h:83
const SEGYSeisTrcTranslator * translator() const
Definition: segyscanner.h:68
Determines many geometry parameters from a series of Coords with corresponding BinID or trace numbers...
Definition: posinfodetector.h:53
const IOPar & pars() const
Definition: segyscanner.h:42
int curfidx_
Definition: segyscanner.h:82
void setForceRev0(bool yn)
Definition: segyscanner.h:44
Keys that should be used with od_process_segyio.cc.
Definition: segybatchio.h:22
int nrtrcs_
Definition: segyscanner.h:77
Definition: uistring.h:218
od_int64 totnr_
Definition: segyscanner.h:85
FileDataSet & fds_
Definition: segyscanner.h:74
uiString uiNrDoneText() const
will be nrDoneText() in 7.x
Definition: segyscanner.h:52
PosInfo::Detector & dtctor_
Definition: segyscanner.h:86
uiStringSet failerrmsgs_
Err Msgs for failed.
Definition: segyscanner.h:59
bool richinfo_
Definition: segyscanner.h:79
void collectInfoPerTrace(bool yn)
Definition: segyscanner.h:46
Definition: segyfiledef.h:37
Specification to enable chunkwise execution of a process.
Definition: executor.h:39
od_int64 nrdone_
Definition: segyscanner.h:84
FileDataSet & fileDataSet()
Definition: segyscanner.h:55
Seis::GeomType geomType() const
Definition: segyscanner.h:41

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