OpendTect  6.3
bodyvolumecalc.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Y. Liu
8  Date: April 2012
9 ________________________________________________________________________
10 
11 -*/
12 
13 
14 #include "algomod.h"
15 #include "paralleltask.h"
16 
17 class TrcKeyZSampling;
18 template <class T> class Array3D;
19 
20 
28 public:
30  const Array3D<float>&,
31  float threshold,
32  float velocityinmeter);
33  float getVolume() const { return volsum_; }
34  //unit in meter^3
35 
36 protected:
37 
38  od_int64 nrIterations() const;
39  uiString nrDoneText() const;
40  bool doWork(od_int64 start,od_int64 stop,int threadid);
41  uiString message() const;
42 
44  float threshold_;
45  float unitvol_;
46  float volsum_;
47  float nrunits_;
49 };
#define mExpClass(module)
Definition: commondefs.h:157
float threshold_
Definition: bodyvolumecalc.h:44
A lock of a type that (hopefully) suits your needs. To use it, you need the Locker class...
Definition: threadlock.h:51
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
Threads::Lock lock_
Definition: bodyvolumecalc.h:48
#define od_int64
Definition: plftypes.h:34
Definition: uistring.h:88
Generalization of a task that can be run in parallel.
Definition: paralleltask.h:64
mODTextTranslationClass(BodyVolumeCalculator) public float getVolume() const
Definition: bodyvolumecalc.h:33
void message(const char *)
default: to stderr
const Array3D< float > & arr_
Definition: bodyvolumecalc.h:43
Volume estimation for implicit bodies. getVolume returns the volume in cubic meters.
Definition: bodyvolumecalc.h:26
float volsum_
Definition: bodyvolumecalc.h:46
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:32
float nrunits_
Definition: bodyvolumecalc.h:47
float unitvol_
Definition: bodyvolumecalc.h:45
Array3D ( Subclass of ArrayND ) is a three dimensional array.
Definition: arraynd.h:149

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