OpendTect-6_4  6.4
embody.h
Go to the documentation of this file.
1 #ifndef embody_h
2 #define embody_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Kristofer Tingdahl
9  Date: 4-11-2002
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "earthmodelmod.h"
17 #include "arraynd.h"
18 #include "emobject.h"
19 #include "samplingdata.h"
20 
21 class TaskRunner;
22 
25 namespace EM
26 {
27 
33 {
34 public:
35  ImplicitBody();
36  ImplicitBody(const ImplicitBody& nb);
37  virtual ~ImplicitBody();
38  ImplicitBody operator =(const ImplicitBody&);
39 
41  float threshold_;//Any value above threshold is inside
42  TrcKeyZSampling tkzs_; //has same size as arr_
43 };
44 
45 
50 mExpClass(EarthModel) Body
51 {
52 public:
53 
54  virtual ImplicitBody* createImplicitBody(TaskRunner*,
55  bool smooth) const;
56  virtual const char* type() const = 0;
57 
58  const IOObjContext& getBodyContext() const;
59  virtual bool getBodyRange(TrcKeyZSampling&) = 0;
60 
61  virtual MultiID storageID() const = 0;
62  virtual BufferString storageName()const = 0;
63 
64  virtual void refBody() = 0;
66  virtual void unRefBody() = 0;
68  virtual bool useBodyPar(const IOPar&) { return true; }
70  virtual void fillBodyPar(IOPar&) const = 0;
72 
73 protected:
74  ~Body() {}
75 };
76 
77 } // namespace EM
78 
79 #endif
TrcKeyZSampling tkzs_
Definition: embody.h:42
#define mExpClass(module)
Definition: commondefs.h:160
Array3D< float > * arr_
Definition: embody.h:40
float threshold_
Definition: embody.h:41
virtual bool useBodyPar(const IOPar &)
Should be mapped to EMObject::usePar;.
Definition: embody.h:68
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Class that can execute a task.
Definition: task.h:169
~Body()
Definition: embody.h:74
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
A body that can deliver an implicit body.
Definition: embody.h:50
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:25
Implicit representation of a body.
Definition: embody.h:32
Compound key consisting of ints.
Definition: multiid.h:25
Holds the context for selecting and/or creating IOObjs.
Definition: ctxtioobj.h:62

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