OpendTect-6_4  6.4
velocityvolumeconversion.h
Go to the documentation of this file.
1 #ifndef velocityvolumeconversion_h
2 #define velocityvolumeconversion_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: K. Tingdahl
9  Date: April 2005
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "velocitymod.h"
17 #include "trckeyzsampling.h"
18 #include "thread.h"
19 #include "paralleltask.h"
20 #include "veldesc.h"
21 #include "uistring.h"
22 
23 class IOObj;
24 class SeisTrc;
25 class SeisTrcReader;
26 class SeisTrcWriter;
28 
29 namespace Vel
30 {
31 
37 public:
38  VolumeConverter(const IOObj& input,
39  const IOObj& output,
40  const TrcKeySampling& ranges,
41  const VelocityDesc& outdesc);
42  ~VolumeConverter();
43 
44  uiString errMsg() const { return errmsg_; }
45 
46  static const char* sKeyInput();
47  static const char* sKeyOutput();
48 
49 protected:
50  od_int64 nrIterations() const { return totalnr_; }
51  bool doPrepare(int);
52  bool doFinish(bool);
53  bool doWork(od_int64,od_int64,int);
55  return tr("Traces written");
56  }
57 
58  char getNewTrace(SeisTrc&,int threadidx);
59 
67 
71 
73 };
74 
75 } // namespace Vel
76 
77 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Velocity.
Definition: velocityfunction.h:32
Is an object that faciliates many threads to wait for something to happen.
Definition: thread.h:108
SeisSequentialWriter * sequentialwriter_
Definition: velocityvolumeconversion.h:70
Definition: ioobj.h:58
TrcKeySampling tks_
Definition: velocityvolumeconversion.h:65
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Definition: veldesc.h:38
uiString uiNrDoneText() const
will be nrDoneText() in 7.x
Definition: velocityvolumeconversion.h:54
SeisTrcReader * reader_
Definition: velocityvolumeconversion.h:68
#define od_int64
Definition: plftypes.h:36
VelocityDesc veloutpdesc_
Definition: velocityvolumeconversion.h:64
Definition: seiswrite.h:41
uiString errmsg_
Definition: velocityvolumeconversion.h:66
Definition: uistring.h:89
Generalization of a task that can be run in parallel.
Definition: paralleltask.h:66
SeisTrcWriter * writer_
Definition: velocityvolumeconversion.h:69
reads from a seismic data store.
Definition: seisread.h:50
Horizontal sampling (inline and crossline range and steps).
Definition: trckeysampling.h:27
Definition: velocityvolumeconversion.h:35
VelocityDesc velinpdesc_
Definition: velocityvolumeconversion.h:63
IOObj * output_
Definition: velocityvolumeconversion.h:62
uiString errMsg() const
Definition: velocityvolumeconversion.h:44
Threads::ConditionVar lock_
Definition: velocityvolumeconversion.h:72
Seismic trace.
Definition: seistrc.h:34
BufferString errmsg_
Definition: horizontracker.h:119
Definition: seiswrite.h:126
od_int64 nrIterations() const
Definition: velocityvolumeconversion.h:50
od_int64 totalnr_
Definition: velocityvolumeconversion.h:60
IOObj * input_
Definition: velocityvolumeconversion.h:61

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