OpendTect-6_4  6.4
seisrandlineto2d.h
Go to the documentation of this file.
1 #ifndef seisrandlineto2d_h
2 #define seisrandlineto2d_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Raman Singh
9  Date: May 2008
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "seismod.h"
16 #include "executor.h"
17 #include "binidvalset.h"
18 #include "randomlinegeom.h"
19 #include "uistring.h"
20 
21 class IOObj;
22 class od_ostream;
23 class LineKey;
24 class SeisTrcReader;
25 class SeisTrcWriter;
26 class SeisTrcBuf;
27 
28 namespace Seis { class TableSelData; }
29 namespace Geometry { class RandomLine; }
30 
33 public:
34  SeisRandLineTo2D(const IOObj&,const IOObj&,
35  const Pos::GeomID, int trcinit,
36  const Geometry::RandomLine&);
38 
39  uiString uiMessage() const;
40  uiString uiNrDoneText() const;
41  od_int64 totalNr() const;
42  od_int64 nrDone() const;
43  int nextStep();
44 
45 protected:
46 
49  int nrdone_;
50  int totnr_;
51 
54 
55 private:
56 
58 
59  bool writeTraces();
60 };
61 
62 
64 { mODTextTranslationClass(SeisRandLineTo2DGrid)
65 public:
66  SeisRandLineTo2DGrid(const IOPar&,od_ostream&);
67  ~SeisRandLineTo2DGrid();
68 
69  bool isOK() { return isok_; }
70  bool createGrid();
71 
72  static const char* sKeyInputID() { return "Input ID"; }
73  static const char* sKeyOutputID() { return "Output ID"; }
74  static const char* sKeyOutpAttrib() { return "Output attribute"; }
75  static const char* sKeyGridSpacing() { return "Grid Spacing"; }
76  static const char* sKeyParPrefix() { return "Parallel prefix"; }
77  static const char* sKeyPerpPrefix() { return "Perp prefix"; }
78  static const char* sKeyRandomLine() { return "Random line"; }
79  static const char* sKeyStartBinID() { return "Start BinID"; }
80  static const char* sKeyStopBinID() { return "Stop BinID"; }
81 
82 protected:
83 
84  bool isok_;
86 
92  double gridspacing_;
93 
95 
96  bool mk2DLines(const Geometry::RandomLineSet&,bool);
97 };
98 
99 
100 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Summary for a Seismic object.
Definition: segydirectdef.h:23
OD class for stream write common access to the user log file, or std::cout in batch progs...
Definition: od_ostream.h:26
static const char * sKeyInputID()
Definition: seisrandlineto2d.h:72
Definition: ioobj.h:58
Definition: seisrandlineto2d.h:31
static const char * sKeyStartBinID()
Definition: seisrandlineto2d.h:79
BufferString parprefix_
Definition: seisrandlineto2d.h:90
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
static const char * sKeyPerpPrefix()
Definition: seisrandlineto2d.h:77
BinIDValueSet::SPos pos_
Definition: seisrandlineto2d.h:52
Seis::TableSelData & seldata_
Definition: seisrandlineto2d.h:53
#define od_int64
Definition: plftypes.h:36
Definition: randomlinegeom.h:31
Definition: seiswrite.h:41
static const char * sKeyStopBinID()
Definition: seisrandlineto2d.h:80
Definition: uistring.h:89
position in IdxPairValueSet; an iterator.
Definition: posidxpairvalset.h:96
BufferString perprefix_
Definition: seisrandlineto2d.h:91
static const char * sKeyGridSpacing()
Definition: seisrandlineto2d.h:75
int nrdone_
Definition: seisrandlineto2d.h:49
Key for a line in a line set.
Definition: linekey.h:22
Geometry::RandomLine & rln_
Definition: seisrandlineto2d.h:94
bool isok_
Definition: seisrandlineto2d.h:84
reads from a seismic data store.
Definition: seisread.h:50
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
IOObj * outpobj_
Definition: seisrandlineto2d.h:88
static const char * sKeyRandomLine()
Definition: seisrandlineto2d.h:78
static const char * sKeyOutpAttrib()
Definition: seisrandlineto2d.h:74
bool isOK()
Definition: seisrandlineto2d.h:69
double gridspacing_
Definition: seisrandlineto2d.h:92
Index_Type GeomID
Definition: commontypes.h:52
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
SeisTrcReader * rdr_
Definition: seisrandlineto2d.h:47
set of seismic traces.
Definition: seisbuf.h:31
Definition: randomlinegeom.h:122
static const char * sKeyParPrefix()
Definition: seisrandlineto2d.h:76
selection data in a table
Definition: seisselectionimpl.h:77
static const char * sKeyOutputID()
Definition: seisrandlineto2d.h:73
SeisTrcBuf * buf_
Definition: seisrandlineto2d.h:57
int totnr_
Definition: seisrandlineto2d.h:50
IOObj * inpobj_
Definition: seisrandlineto2d.h:87
Definition: arraytesselator.h:21
od_ostream & strm_
Definition: seisrandlineto2d.h:85
SeisTrcWriter * wrr_
Definition: seisrandlineto2d.h:48
Definition: seisrandlineto2d.h:63
Specification to enable chunkwise execution of a process.
Definition: executor.h:39
BufferString outpattrib_
Definition: seisrandlineto2d.h:89

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