OpendTect  6.3
embody.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: Kristofer Tingdahl
8  Date: 4-11-2002
9 ________________________________________________________________________
10 
11 
12 -*/
13 
14 #include "earthmodelmod.h"
15 #include "arraynd.h"
16 #include "emobject.h"
17 #include "samplingdata.h"
18 
19 class TaskRunner;
20 
23 namespace EM
24 {
25 
31 {
32 public:
33  ImplicitBody();
34  ImplicitBody(const ImplicitBody& nb);
35  virtual ~ImplicitBody();
36  ImplicitBody operator =(const ImplicitBody&);
37 
39  float threshold_;//Any value above threshold is inside
40  TrcKeyZSampling tkzs_; //has same size as arr_
41 };
42 
43 
48 mExpClass(EarthModel) Body
49 {
50 public:
51 
52  virtual ImplicitBody* createImplicitBody(TaskRunner*,
53  bool smooth) const;
54  virtual const char* type() const = 0;
55 
56  const IOObjContext& getBodyContext() const;
57  virtual bool getBodyRange(TrcKeyZSampling&) = 0;
58 
59  virtual DBKey storageID() const = 0;
60  virtual BufferString storageName()const = 0;
61 
62  virtual void refBody() = 0;
64  virtual void unRefBody() = 0;
66  virtual bool useBodyPar(const IOPar&) { return true; }
68  virtual void fillBodyPar(IOPar&) const = 0;
70 
71 protected:
72  ~Body() {}
73 };
74 
75 } // namespace EM
TrcKeyZSampling tkzs_
Definition: embody.h:40
#define mExpClass(module)
Definition: commondefs.h:157
Array3D< float > * arr_
Definition: embody.h:38
float threshold_
Definition: embody.h:39
virtual bool useBodyPar(const IOPar &)
Should be mapped to EMObject::usePar;.
Definition: embody.h:66
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
Class that can execute a task.
Definition: task.h:193
~Body()
Definition: embody.h:72
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:32
A body that can deliver an implicit body.
Definition: embody.h:48
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:23
Implicit representation of a body.
Definition: embody.h:30
Full key to any object in the OpendTect data store.
Definition: dbkey.h:36
Holds the context for selecting and/or creating IOObjs.
Definition: ioobjctxt.h:59

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