OpendTect  6.3
horizonmerger.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: Nanne Hemstra
8  Date: January 2010
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "earthmodelmod.h"
14 #include "paralleltask.h"
15 #include "emposid.h"
16 #include "enums.h"
17 #include "trckeysampling.h"
18 
19 template <class T> class Array2D;
20 
21 namespace EM
22 {
23 
24 class Horizon3D;
25 
30 mExpClass(EarthModel) HorizonMerger : public ParallelTask
31 {
32 public:
33  enum Mode { Average, Top, Base };
35 
36  void setMode( Mode m ) { mode_ = m; }
37  Mode getMode() const { return mode_; }
38 
39 protected:
40  HorizonMerger() : mode_(Average) {}
41 
43 };
44 
45 
51 {
52 public:
54  ~Horizon3DMerger();
55 
56  Horizon3D* getOutputHorizon();
57 
58 protected:
59  od_int64 nrIterations() const;
60 
61 private:
62  bool doWork(od_int64 start,od_int64 stop,int threadid);
63  bool doFinish(bool success);
64 
68 
70  bool ownsarray_;
71 };
72 
73 } // namespace EM
#define mExpClass(module)
Definition: commondefs.h:157
mDeclareEnumUtils(Mode) void setMode(Mode m)
Definition: horizonmerger.h:34
bool ownsarray_
Definition: horizonmerger.h:70
#define od_int64
Definition: plftypes.h:34
A subclass of ParallelTask that merges horizons.
Definition: horizonmerger.h:30
Generalization of a task that can be run in parallel.
Definition: paralleltask.h:64
Set of pointers to objects.
Definition: commontypes.h:28
HorizonMerger()
Definition: horizonmerger.h:40
Set of (small) copyable elements.
Definition: commontypes.h:26
Definition: horizonmerger.h:33
Array2D ( Subclass of ArrayND ) is a two dimensional array.
Definition: arraynd.h:127
Horizontal sampling (inline and crossline range and steps).
Definition: trckeysampling.h:25
ObjectSet< Horizon3D > inputhors_
Definition: horizonmerger.h:67
Array2D< float > * depths_
Definition: horizonmerger.h:65
TrcKeySampling hs_
Definition: horizonmerger.h:69
Definition: stattype.h:22
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:23
3D HorizonMerger
Definition: horizonmerger.h:50
Mode mode_
Definition: horizonmerger.h:42
3D Horizon. A Horizon is made up of one or more grids (so they can overlap at faults). The grids are defined by knot-points in a matrix and fillstyle in between the knots.
Definition: emhorizon3d.h:94
Horizon3D * outputhor_
Definition: horizonmerger.h:66
Mode getMode() const
Definition: horizonmerger.h:37
Mode
Definition: horizonmerger.h:33

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