OpendTect-6_4  6.4
horizonmerger.h
Go to the documentation of this file.
1 #ifndef horizonmerger_h
2 #define horizonmerger_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Nanne Hemstra
9  Date: January 2010
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "earthmodelmod.h"
16 #include "paralleltask.h"
17 #include "emposid.h"
18 #include "enums.h"
19 #include "trckeysampling.h"
20 
21 template <class T> class Array2D;
22 
23 namespace EM
24 {
25 
26 class Horizon3D;
27 
32 mExpClass(EarthModel) HorizonMerger : public ParallelTask
33 {
34 public:
35  enum Mode { Average, Top, Base };
37 
38  void setMode( Mode m ) { mode_ = m; }
39  Mode getMode() const { return mode_; }
40 
41 protected:
42  HorizonMerger() : mode_(Average) {}
43 
45 };
46 
47 
53 {
54 public:
56  ~Horizon3DMerger();
57 
58  Horizon3D* getOutputHorizon();
59 
60 protected:
61  od_int64 nrIterations() const;
62 
63 private:
64  bool doWork(od_int64 start,od_int64 stop,int threadid);
65  bool doFinish(bool success);
66 
70 
72  bool ownsarray_;
73 };
74 
75 } // namespace EM
76 
77 #endif
#define mExpClass(module)
Definition: commondefs.h:160
mDeclareEnumUtils(Mode) void setMode(Mode m)
Definition: horizonmerger.h:36
bool ownsarray_
Definition: horizonmerger.h:72
#define od_int64
Definition: plftypes.h:36
A subclass of ParallelTask that merges horizons.
Definition: horizonmerger.h:32
Generalization of a task that can be run in parallel.
Definition: paralleltask.h:66
Set of pointers to objects.
Definition: commontypes.h:32
HorizonMerger()
Definition: horizonmerger.h:42
Set of (small) copyable elements.
Definition: commontypes.h:30
Definition: horizonmerger.h:35
Array2D ( Subclass of ArrayND ) is a two dimensional array.
Definition: arraynd.h:131
Horizontal sampling (inline and crossline range and steps).
Definition: trckeysampling.h:27
ObjectSet< Horizon3D > inputhors_
Definition: horizonmerger.h:69
Array2D< float > * depths_
Definition: horizonmerger.h:67
TrcKeySampling hs_
Definition: horizonmerger.h:71
Definition: stattype.h:24
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:25
3D HorizonMerger
Definition: horizonmerger.h:52
Mode mode_
Definition: horizonmerger.h:44
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:96
Horizon3D * outputhor_
Definition: horizonmerger.h:68
Mode getMode() const
Definition: horizonmerger.h:39
Mode
Definition: horizonmerger.h:35

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