OpendTect  6.6
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  RCS: $Id$
10 ________________________________________________________________________
11 
12 
13 -*/
14 
15 #include "earthmodelmod.h"
16 #include "arraynd.h"
17 #include "emobject.h"
18 #include "samplingdata.h"
19 
20 class TaskRunner;
21 
24 namespace EM
25 {
26 
32 {
33 public:
36  virtual ~ImplicitBody();
37  ImplicitBody operator =(const ImplicitBody&);
38 
40  float threshold_;//Any value above threshold is inside
41  TrcKeyZSampling tkzs_; //has same size as arr_
42 };
43 
44 
49 mExpClass(EarthModel) Body
50 {
51 public:
52 
54  bool smooth) const;
55  virtual const char* type() const = 0;
56 
57  const IOObjContext& getBodyContext() const;
58  virtual bool getBodyRange(TrcKeyZSampling&) = 0;
59 
60  virtual MultiID storageID() const = 0;
61  virtual BufferString storageName()const = 0;
62 
63  virtual void refBody() = 0;
65  virtual void unRefBody() = 0;
67  virtual bool useBodyPar(const IOPar&) { return true; }
69  virtual void fillBodyPar(IOPar&) const = 0;
71 
72 protected:
73  ~Body() {}
74 };
75 
76 } // namespace EM
77 
emobject.h
EM::Body::getBodyRange
virtual bool getBodyRange(TrcKeyZSampling &)=0
EM::Body::fillBodyPar
virtual void fillBodyPar(IOPar &) const =0
Should be mapped to EMObject::fillPar;.
EM::Body::unRefBody
virtual void unRefBody()=0
Should be mapped to EMObject::unRef()
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
samplingdata.h
EM::ImplicitBody::arr_
Array3D< float > * arr_
Definition: embody.h:39
EM
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: bulk2dhorizonscanner.h:26
EM::Body
A body that can deliver an implicit body.
Definition: embody.h:50
TrcKeyZSampling
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
arraynd.h
Array3D< float >
EM::Body::storageID
virtual MultiID storageID() const =0
EM::Body::getBodyContext
const IOObjContext & getBodyContext() const
EM::Body::type
virtual const char * type() const =0
EM::ImplicitBody::tkzs_
TrcKeyZSampling tkzs_
Definition: embody.h:41
IOObjContext
Holds the context for selecting and/or creating IOObjs.
Definition: ctxtioobj.h:62
EM::ImplicitBody
Implicit representation of a body.
Definition: embody.h:32
TaskRunner
Class that can execute a task.
Definition: task.h:170
EM::Body::createImplicitBody
virtual ImplicitBody * createImplicitBody(TaskRunner *, bool smooth) const
MultiID
Compound key consisting of ints.
Definition: multiid.h:24
BufferString
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
EM::ImplicitBody::~ImplicitBody
virtual ~ImplicitBody()
EM::ImplicitBody::ImplicitBody
ImplicitBody()
EM::ImplicitBody::threshold_
float threshold_
Definition: embody.h:40
EM::Body::storageName
virtual BufferString storageName() const =0
EM::ImplicitBody::ImplicitBody
ImplicitBody(const ImplicitBody &nb)
EM::Body::useBodyPar
virtual bool useBodyPar(const IOPar &)
Should be mapped to EMObject::usePar;.
Definition: embody.h:67
IOPar
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
EM::Body::~Body
~Body()
Definition: embody.h:73
EM::Body::refBody
virtual void refBody()=0
Should be mapped to EMObject::ref()

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