OpendTect-6_4  6.4
seisbufadapters.h
Go to the documentation of this file.
1 #ifndef seisbufadapters_h
2 #define seisbufadapters_h
3 
4 /*
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: A.H. Bril
9  Date: Feb 2007
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 */
14 
15 
16 #include "seismod.h"
17 #include "seisbuf.h"
18 #include "arraynd.h"
19 #include "datapackbase.h"
20 #include "seisinfo.h"
21 
22 class TrcKeyZSampling;
23 
24 
28 {
29 public:
30 
31  SeisTrcBufArray2D(SeisTrcBuf*,bool mine,int compnr);
32  SeisTrcBufArray2D(const SeisTrcBuf*,int compnr);
34 
35  bool isOK() const { return true; }
36 
37  const Array2DInfo& info() const { return *info_; }
38  float* getData() const { return 0; }
39  void set(int,int,float);
40  float get(int,int) const;
41 
42  void getAuxInfo(Seis::GeomType,int,IOPar&) const;
43 
44  SeisTrcBuf& trcBuf() { return *buf_; }
45  const SeisTrcBuf& trcBuf() const { return *buf_; }
46 
47  void setComp( int ic ) { comp_ = ic; }
48  int getComp() const { return comp_; }
49 
50  bool bufIsMine() const { return bufmine_; }
51  void setBufMine( bool yn ) { bufmine_ = yn; }
52 
53 protected:
54 
57  bool bufmine_;
58  int comp_;
59 
60 };
61 
62 
66 {
67 public:
68 
70  SeisTrcInfo::Fld,const char* categry,
71  int compnr=0);
74  SeisTrcInfo::Fld,const char* categry,
75  int compnr=0);
78 
80  int icomp=0,bool manage_buf=true);
81 
82  bool getTrcKeyZSampling(TrcKeyZSampling&) const;
83 
84  const char* dimName(bool) const;
85  Coord3 getCoord(int,int) const;
86  void getAltDim0Keys(BufferStringSet&) const;
87  bool dimValuesInInt(const char* key) const;
88  double getAltDim0Value(int,int) const;
89  void getAuxInfo(int,int,IOPar&) const;
90  bool posDataIsCoord() const { return false; }
91 
93  { return *((SeisTrcBufArray2D*)arr2d_); }
95  { return *((SeisTrcBufArray2D*)arr2d_); }
97  { return trcBufArr2D().trcBuf(); }
98  const SeisTrcBuf& trcBuf() const
99  { return trcBufArr2D().trcBuf(); }
100 
101 protected:
102 
106 
107 };
108 
109 
110 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Summary for a Seismic object.
Definition: segydirectdef.h:23
void setComp(int ic)
Definition: seisbufadapters.h:47
SeisTrcBuf & trcBuf()
Definition: seisbufadapters.h:44
const SeisTrcBuf & trcBuf() const
Definition: seisbufadapters.h:98
int comp_
Definition: seisbufadapters.h:58
bool posDataIsCoord() const
Definition: seisbufadapters.h:90
SeisTrcBufArray2D & trcBufArr2D()
Definition: seisbufadapters.h:92
const SeisTrcBuf & trcBuf() const
Definition: seisbufadapters.h:45
SeisTrcBuf & trcBuf()
Definition: seisbufadapters.h:96
Set of BufferString objects.
Definition: bufstringset.h:28
const Array2DInfo & info() const
Definition: seisbufadapters.h:37
Array2DInfo * info_
Definition: seisbufadapters.h:56
Array2D based on SeisTrcBuf.
Definition: seisbufadapters.h:27
GeomType
Definition: seistype.h:33
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
Fld
Definition: seisinfo.h:66
float * getData() const
Definition: seisbufadapters.h:38
bool bufIsMine() const
Definition: seisbufadapters.h:50
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
void setBufMine(bool yn)
Definition: seisbufadapters.h:51
FlatDataPack based on SeisTrcBuf.
Definition: seisbufadapters.h:65
Contains the information about the size of Array2D, and in what order the data is stored (if accessab...
Definition: arrayndinfo.h:95
A cartesian coordinate in 3D space.
Definition: coord.h:72
bool bufmine_
Definition: seisbufadapters.h:57
const SeisTrcBufArray2D & trcBufArr2D() const
Definition: seisbufadapters.h:94
SeisTrcBuf * buf_
Definition: seisbufadapters.h:55
Seis::GeomType gt_
Definition: seisbufadapters.h:103
set of seismic traces.
Definition: seisbuf.h:31
DataPack for flat data.
Definition: datapackbase.h:64
bool isOK() const
Definition: seisbufadapters.h:35
SeisTrcInfo::Fld posfld_
Definition: seisbufadapters.h:104
int getComp() const
Definition: seisbufadapters.h:48
TypeSet< SeisTrcInfo::Fld > flds_
Definition: seisbufadapters.h:105

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