OpendTect-6_4  6.4
seis2dlinemerge.h
Go to the documentation of this file.
1 #ifndef seis2dlinemerge_h
2 #define seis2dlinemerge_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert
9  Date: Dec 2009
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "seismod.h"
16 #include "executor.h"
17 #include "samplingdata.h"
18 #include "uistring.h"
19 class SeisTrcBuf;
20 class SeisIOObjInfo;
21 class BufferStringSet;
22 class Seis2DLinePutter;
23 namespace PosInfo { class Line2DData; }
24 
25 
30 public:
31 
32  enum Opt { MatchTrcNr, MatchCoords, SimpleAppend };
33 
34  Seis2DLineMerger(const BufferStringSet& datanms,
35  const Pos::GeomID&);
37 
38  uiString uiMessage() const { return msg_; }
39  uiString uiNrDoneText() const { return nrdonemsg_; }
40  od_int64 totalNr() const { return totnr_; }
41  od_int64 nrDone() const { return nrdone_; }
42  int nextStep();
43 
44 
49  bool renumber_;
50  bool stckdupl_;
52  double snapdist_;
53 
54 protected:
55 
63  Executor* fetcher_;
69  bool have1_, have2_;
71 
76 
77  int doWork();
78  int doIO();
79  bool getLineID(const char*,int&) const;
80  bool nextAttr();
81  bool nextFetcher();
82  void mergeBufs();
83  void makeBufsCompat();
84  void mergeOnCoords();
85  void doMerge(const TypeSet<int>&,bool);
86 
87 };
88 
89 
90 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Summary for a Seismic object.
Definition: segydirectdef.h:23
od_int64 nrdone_
Definition: seis2dlinemerge.h:74
Info on IOObj for seismics.
Definition: seisioobjinfo.h:94
bool stckdupl_
Definition: seis2dlinemerge.h:50
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
BufferString lnm1_
Definition: seis2dlinemerge.h:46
#define od_int64
Definition: plftypes.h:36
PosInfo::Line2DData & l2dd1_
Definition: seis2dlinemerge.h:57
bool have2_
Definition: seis2dlinemerge.h:69
Position info for a 2D line.
Definition: posinfo2d.h:65
Definition: uistring.h:89
od_int64 nrDone() const
Definition: seis2dlinemerge.h:41
Set of BufferString objects.
Definition: bufstringset.h:28
SeisTrcBuf & tbuf1_
Definition: seis2dlinemerge.h:60
PosInfo::Line2DData & l2dd2_
Definition: seis2dlinemerge.h:58
BufferString outlnm_
Definition: seis2dlinemerge.h:48
Pos::GeomID lid2_
Definition: seis2dlinemerge.h:68
uiString msg_
Definition: seis2dlinemerge.h:72
Seis2DLinePutter * putter_
Definition: seis2dlinemerge.h:64
uiString uiMessage() const
will be message() again in 7.x
Definition: seis2dlinemerge.h:38
Executor * fetcher_
Definition: seis2dlinemerge.h:63
Seis2DDataSet * ds_
Definition: seis2dlinemerge.h:56
interface for object that writes 2D seismic data
Definition: seis2dlineio.h:41
int currentlyreading_
Definition: seis2dlinemerge.h:67
SeisTrcBuf & tbuf2_
Definition: seis2dlinemerge.h:61
SamplingData< int > numbering_
Definition: seis2dlinemerge.h:51
const Pos::GeomID & outgeomid_
Definition: seis2dlinemerge.h:70
Opt
Definition: seis2dlinemerge.h:32
PosInfo::Line2DData & outl2dd_
Definition: seis2dlinemerge.h:59
uiString uiNrDoneText() const
will be nrDoneText() in 7.x
Definition: seis2dlinemerge.h:39
double snapdist_
Definition: seis2dlinemerge.h:52
Index_Type GeomID
Definition: commontypes.h:52
BufferStringSet & attrnms_
Definition: seis2dlinemerge.h:65
uiString nrdonemsg_
Definition: seis2dlinemerge.h:73
Position info, often segmented.
Definition: posinfo.h:40
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
merges two 2D lines into a new one (same Line Set)
Definition: seis2dlinemerge.h:28
od_int64 totnr_
Definition: seis2dlinemerge.h:75
set of seismic traces.
Definition: seisbuf.h:31
BufferString lnm2_
Definition: seis2dlinemerge.h:47
Opt opt_
Definition: seis2dlinemerge.h:45
od_int64 totalNr() const
Definition: seis2dlinemerge.h:40
int curattridx_
Definition: seis2dlinemerge.h:66
bool renumber_
Definition: seis2dlinemerge.h:49
Set of 2D lines comparable with 3D seismic cube.
Definition: seis2ddata.h:37
Specification to enable chunkwise execution of a process.
Definition: executor.h:39
SeisTrcBuf & outbuf_
Definition: seis2dlinemerge.h:62

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