OpendTect-6_4  6.4
seiszaxisstretcher.h
Go to the documentation of this file.
1 #ifndef seiszaxisstretcher_h
2 #define seiszaxisstretcher_h
3 
4 /*
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: K. Tingdahl
9  Date: January 2008
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 */
14 
15 
16 #include "seismod.h"
17 #include "trckeyzsampling.h"
18 #include "paralleltask.h"
19 #include "thread.h"
20 
21 class IOObj;
22 class SeisTrc;
23 class SeisTrcReader;
24 class SeisTrcWriter;
26 class ZAxisTransform;
27 
28 
35 public:
36  SeisZAxisStretcher( const IOObj& in,
37  const IOObj& out,
38  const TrcKeyZSampling& outcs,
40  bool forward,
41  bool stretchz);
43 
44  bool isOK() const;
45 
46  void setGeomID(Pos::GeomID);
47  uiString uiMessage() const { return tr("Stretching data"); }
48 
49  void setVelTypeIsVint( bool yn ) { isvint_ = yn; }
50  void setVelTypeIsVrms( bool yn ) { isvrms_ = yn; }
51 
52 protected:
53 
54  void init(const IOObj& in,const IOObj& out);
55  bool doPrepare(int);
56  bool doFinish(bool);
57  bool doWork(od_int64,od_int64,int);
58  od_int64 nrIterations() const { return totalnr_; }
59 
60  bool getInputTrace(SeisTrc&,TrcKey&);
61  bool getModelTrace(SeisTrc&,TrcKey&);
62  bool loadTransformChunk(int firstinl);
63 
67 
69 
75 
79  int voiid_;
80  bool ist2d_;
81  bool is2d_;
82  bool stretchz_;
83 
84  int totalnr_;
85  bool isvint_;
86  bool isvrms_;
87 
88 };
89 
90 #endif
#define mExpClass(module)
Definition: commondefs.h:160
int totalnr_
Definition: seiszaxisstretcher.h:84
Summary for a Seismic object.
Definition: segydirectdef.h:23
Is an object that faciliates many threads to wait for something to happen.
Definition: thread.h:108
Threads::ConditionVar readerlock_
Definition: seiszaxisstretcher.h:65
Definition: ioobj.h:58
void setVelTypeIsVint(bool yn)
Definition: seiszaxisstretcher.h:49
SeisTrcWriter * seiswriter_
Definition: seiszaxisstretcher.h:70
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Threads::ConditionVar readerlockmodel_
Definition: seiszaxisstretcher.h:66
#define od_int64
Definition: plftypes.h:36
bool init()
Definition: seiswrite.h:41
bool isvrms_
Definition: seiszaxisstretcher.h:86
Definition: uistring.h:89
uiString uiMessage() const
will be message() again in 7.x
Definition: seiszaxisstretcher.h:47
Generalization of a task that can be run in parallel.
Definition: paralleltask.h:66
TrcKeySampling curhrg_
Definition: seiszaxisstretcher.h:77
Definition: seiszaxisstretcher.h:33
reads from a seismic data store.
Definition: seisread.h:50
bool waitforall_
Definition: seiszaxisstretcher.h:72
SeisTrcReader * seisreader_
Definition: seiszaxisstretcher.h:64
Horizontal sampling (inline and crossline range and steps).
Definition: trckeysampling.h:27
void setVelTypeIsVrms(bool yn)
Definition: seiszaxisstretcher.h:50
int nrwaiting_
Definition: seiszaxisstretcher.h:73
ZAxisTransform * ztransform_
Definition: seiszaxisstretcher.h:78
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
bool isvint_
Definition: seiszaxisstretcher.h:85
bool ist2d_
Definition: seiszaxisstretcher.h:80
virtual bool isOK() const
Definition: zaxistransform.h:46
int nrthreads_
Definition: seiszaxisstretcher.h:74
Index_Type GeomID
Definition: commontypes.h:52
int voiid_
Definition: seiszaxisstretcher.h:79
Seismic trace.
Definition: seistrc.h:34
Definition: seiswrite.h:126
bool stretchz_
Definition: seiszaxisstretcher.h:82
bool is2d_
Definition: seiszaxisstretcher.h:81
Represents a unique trace position in one of the surveys that OpendTect is managing.
Definition: trckey.h:28
od_int64 nrIterations() const
Definition: seiszaxisstretcher.h:58
Base class for z-axis transforms.
Definition: zaxistransform.h:37
TrcKeyZSampling outcs_
Definition: seiszaxisstretcher.h:76
SeisTrcReader * seisreadertdmodel_
Definition: seiszaxisstretcher.h:68
SeisSequentialWriter * sequentialwriter_
Definition: seiszaxisstretcher.h:71

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