OpendTect-6_4  6.4
emdatapack.h
Go to the documentation of this file.
1 #ifndef emdatapack_h
2 #define emdatapack_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Helene Huck
9  Date: March 2008
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "earthmodelmod.h"
16 #include "datapackbase.h"
17 
18 template <class T> class Array2D;
19 class BinIDValueSet;
20 class DataPointSet;
21 
22 namespace EM
23 {
24 
25 class EMObject;
26 class Horizon;
27 class Fault;
28 
29 
34 mExpClass(EarthModel) DataPackCommon : public ::FlatDataPack
35 {
36 public:
38  DataPackCommon(const EMObject&,
40  DataPackCommon(const EMObject&,const DataPointSet&);
41 
42  virtual const char* sourceType() const = 0;
43  virtual bool isVertical() const = 0;
44 
45  const EMObject& getEMObj() const { return emobj_; }
46 
47  void dumpInfo(IOPar&) const;
48 
49 protected:
50 
51  const EMObject& emobj_;
52 
53 };
54 
55 
60 mExpClass(EarthModel) HorDataPack : public DataPackCommon
61 {
62 public:
64  HorDataPack(const EM::Horizon&,
66  HorDataPack(const EM::Horizon&,const DataPointSet&);
67 
68  virtual const char* sourceType() const { return "Horizon"; }
69  virtual bool isVertical() const { return false;}
70 
71  Coord3 getCoord(int,int) const;
72  void getAltDim0Keys(BufferStringSet&) const;
73  double getAltDim0Value(int,int) const;
74 
75  const char* dimName(bool) const;
76 
77 protected:
78 };
79 
80 
86 {
87 public:
88 
90  FaultDataPack(const EM::Fault&,
92  FaultDataPack(const EM::Fault&,const DataPointSet&);
93 
94  virtual const char* sourceType() const { return "Fault"; }
95  virtual bool isVertical() const { return true; }
96 
97  const char* dimName(bool) const;
98 
99  Coord3 getCoord(int,int) const;
100  void getAltDim0Keys(BufferStringSet&) const;
101  double getAltDim0Value(int,int) const;
102 
103 protected:
104 };
105 
106 } // namespace EM
107 
108 #endif
#define mExpClass(module)
Definition: commondefs.h:160
virtual const char * sourceType() const
Definition: emdatapack.h:68
Fault Surface base class.
Definition: emfault.h:84
Set of data points with group selection.
Definition: datapointset.h:48
Set of BufferString objects.
Definition: bufstringset.h:28
const EMObject & getEMObj() const
Definition: emdatapack.h:45
Mixin to provide general services to Earth Model data packs.
Definition: emdatapack.h:34
virtual const char * sourceType() const
Definition: emdatapack.h:94
const EMObject & emobj_
Definition: emdatapack.h:51
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Array2D ( Subclass of ArrayND ) is a two dimensional array.
Definition: arraynd.h:131
FixedString Horizon()
Definition: keystrs.h:72
Flat data pack class for Horizons.
Definition: emdatapack.h:60
virtual bool isVertical() const
Definition: emdatapack.h:95
A cartesian coordinate in 3D space.
Definition: coord.h:72
bool isVertical(OD::Orientation orient)
Definition: oduicommon.h:88
FixedString Fault()
Definition: keystrs.h:65
Base class for all EarthModel objects.
Definition: emobject.h:158
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:25
A Pos::IdxPairValueSet with BinIDs.
Definition: binidvalset.h:23
DataPack for flat data.
Definition: datapackbase.h:64
virtual bool isVertical() const
Definition: emdatapack.h:69
Flat data pack from attribute extraction on faults.
Definition: emdatapack.h:85
Horizon Surface.
Definition: emhorizon.h:47

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