OpendTect-6_4  6.4
seisiosimple.h
Go to the documentation of this file.
1 #ifndef seisiosimple_h
2 #define seisiosimple_h
3 /*+
4  * (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
5  * AUTHOR : A.H. Bril
6  * DATE : Nov 2003
7  * SVN : $Id$
8 -*/
9 
10 #include "seismod.h"
11 #include "samplingdata.h"
12 #include "multiid.h"
13 #include "position.h"
14 #include "executor.h"
15 #include "seistype.h"
16 #include "od_iosfwd.h"
17 #include "uistring.h"
18 #include "coordsystem.h"
19 
20 class Scaler;
21 class SeisTrc;
22 class LineKey;
23 class SeisImporter;
24 class SeisTrcReader;
25 class SeisTrcWriter;
26 class SeisResampler;
27 namespace Seis { class SelData; }
28 
29 
32 public:
33 
35  {
36  public:
37  Data(const char*,Seis::GeomType);
38  Data(const Data&);
39  ~Data();
40  Data& operator =(const Data&);
41 
44 
45  bool isasc_;
47 
48  bool havepos_;
49  bool isxy_;
50 
51  bool havenr_;
53 
54  bool haverefnr_;
55 
56  bool havesd_;
59  int compidx_;
60 
61  // PS only
62  bool haveoffs_;
65  bool haveazim_;
66 
67  // 3D only
71 
72  // 2D only
76 
79  bool remnull_;
81 
82  void clear(bool survchanged);
83  void setScaler(Scaler*);
85  void setResampler(SeisResampler*);
88  { return coordsys_; }
90  { coordsys_ = crs; }
91  protected:
93  };
94 
95  SeisIOSimple(const Data&,bool imp);
96  ~SeisIOSimple();
97 
98  int nextStep();
99  uiString uiMessage() const;
100  od_int64 nrDone() const;
101  od_int64 totalNr() const;
102  uiString uiNrDoneText() const;
103 
104 protected:
105 
107  bool isimp_;
108  bool isps_;
109 
115  bool firsttrc_;
116  int nrdone_;
117  int offsnr_;
118  int prevnr_;
121  const bool zistm_;
122 
123  void startImpRead();
124  int readImpTrc(SeisTrc&);
125  int readExpTrc();
126  int writeExpTrc();
127  od_istream& iStream();
128  od_ostream& oStream();
129 
130  friend class SeisIOSimpleImportReader;
131 
132 };
133 
134 
135 #endif
int nrcrlperinl_
Definition: seisiosimple.h:70
#define mExpClass(module)
Definition: commondefs.h:160
Summary for a Seismic object.
Definition: segydirectdef.h:23
Coord steppos_
Definition: seisiosimple.h:74
int nrdone_
Definition: seisiosimple.h:116
OD class for stream write common access to the user log file, or std::cout in batch progs...
Definition: od_ostream.h:26
Definition: seisiosimple.h:34
SamplingData< int > crldef_
Definition: seisiosimple.h:69
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
uiString errmsg_
Definition: seisiosimple.h:120
Seis::GeomType geom_
Definition: seisiosimple.h:46
Coord startpos_
Definition: seisiosimple.h:73
bool haveazim_
Definition: seisiosimple.h:65
SeisTrc & trc_
Definition: seisiosimple.h:110
#define od_int64
Definition: plftypes.h:36
SamplingData< int > inldef_
Definition: seisiosimple.h:68
void clear(std::ios &)
bool firsttrc_
Definition: seisiosimple.h:115
bool havenr_
Definition: seisiosimple.h:51
Definition: seiswrite.h:41
int nroffsperpos_
Definition: seisiosimple.h:64
od_stream * strm_
Definition: seisiosimple.h:111
Definition: uistring.h:89
OD base class for stream read/write.
Definition: od_stream.h:53
A cartesian coordinate in 2D space.
Definition: coord.h:25
SeisResampler * resampler_
Definition: seisiosimple.h:78
bool isimp_
Definition: seisiosimple.h:107
Definition: coordsystem.h:31
Scaler * scaler_
Definition: seisiosimple.h:77
BufferString fname_
Definition: seisiosimple.h:42
OD class for stream read.
Definition: od_istream.h:24
bool havesd_
Definition: seisiosimple.h:56
Definition: seisiosimple.h:30
Key for a line in a line set.
Definition: linekey.h:22
SeisTrcWriter * wrr_
Definition: seisiosimple.h:113
GeomType
Definition: seistype.h:33
MultiID seiskey_
Definition: seisiosimple.h:43
reads from a seismic data store.
Definition: seisread.h:50
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
bool haveoffs_
Definition: seisiosimple.h:62
bool isasc_
Definition: seisiosimple.h:45
ConstRefMan< Coords::CoordSystem > const getCoordSys()
Definition: seisiosimple.h:87
bool haverefnr_
Definition: seisiosimple.h:54
Scaling of floating point numbers.
Definition: scaler.h:33
BinID prevbid_
Definition: seisiosimple.h:119
SamplingData< int > nrdef_
Definition: seisiosimple.h:52
bool remnull_
Definition: seisiosimple.h:79
void setCoordSys(const Coords::CoordSystem *crs)
Definition: seisiosimple.h:89
Definition: repos.h:25
will sub-sample in inl and crl, and re-sample in Z
Definition: seisresampler.h:29
Helps import or export of seismic data.
Definition: seisimporter.h:32
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
Seismic trace.
Definition: seistrc.h:34
int offsnr_
Definition: seisiosimple.h:117
SamplingData< float > offsdef_
Definition: seisiosimple.h:63
IOPar & subselpars_
Definition: seisiosimple.h:80
Data data_
Definition: seisiosimple.h:106
LineKey & linekey_
Definition: seisiosimple.h:75
SeisImporter * importer_
Definition: seisiosimple.h:114
int compidx_
Definition: seisiosimple.h:59
ConstRefMan< Coords::CoordSystem > coordsys_
Definition: seisiosimple.h:92
bool isxy_
Definition: seisiosimple.h:49
bool isps_
Definition: seisiosimple.h:108
int nrsamples_
Definition: seisiosimple.h:58
int prevnr_
Definition: seisiosimple.h:118
bool havepos_
Definition: seisiosimple.h:48
SamplingData< float > sd_
Definition: seisiosimple.h:57
const bool zistm_
Definition: seisiosimple.h:121
Compound key consisting of ints.
Definition: multiid.h:25
Specification to enable chunkwise execution of a process.
Definition: executor.h:39
SeisTrcReader * rdr_
Definition: seisiosimple.h:112

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