OpendTect-6_4  6.4
seismulticubeps.h
Go to the documentation of this file.
1 #ifndef seismulticubeps_h
2 #define seismulticubeps_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: Aug 2008
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "seismod.h"
16 #include "seispsread.h"
17 #include "seispsioprov.h"
18 #include "uistring.h"
19 class SeisTrcReader;
20 
21 
26 public:
27 
28  MultiCubeSeisPSReader(const char* fnm);
29  // Check errMsg() to see failure
31 
32  SeisTrc* getTrace(const BinID&,int) const;
33  bool getGather(const BinID&,SeisTrcBuf&) const;
34  uiString errMsg() const { return errmsg_; }
35 
36  const PosInfo::CubeData& posData() const { return posdata_; }
38  { return false; }
39 
40  void usePar(const IOPar&);
41 
42  void addReader( SeisTrcReader* rdr, float offs )
43  { rdrs_ += rdr; offs_ += offs; }
44 
45  bool getFrom(const char* fnm);
46  bool putTo(const char* fnm) const;
47 
48  static bool readData(const char* fnm,ObjectSet<MultiID>&,
50  uiString& emsg);
51  static bool writeData(const char* fnm,const ObjectSet<MultiID>&,
52  const TypeSet<float>&,const TypeSet<int>&,
53  uiString& emsg);
54 
55 protected:
56 
61  mutable uiString errmsg_;
62 
63  void getCubeData(const SeisTrcReader&,
64  PosInfo::CubeData&) const;
65 
66 };
67 
68 
70 { isTranslator(MultiCube,SeisPS3D)
71 public:
72  mDefEmptyTranslatorConstructor(MultiCube,SeisPS3D)
73 
74  virtual bool isUserSelectable( bool fr ) const { return fr; }
75  virtual const char* defExtension() const { return "mcps"; }
76 };
77 
78 
79 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Definition: seispsioprov.h:171
Summary for a Seismic object.
Definition: segydirectdef.h:23
bool getSampleNames(BufferStringSet &) const
Definition: seismulticubeps.h:37
const PosInfo::CubeData & posData() const
Definition: seismulticubeps.h:36
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
Definition: uistring.h:89
Set of BufferString objects.
Definition: bufstringset.h:28
#define mDefEmptyTranslatorConstructor(spec, clss)
Definition: transl.h:267
reads from a 3D prestack seismic data store.
Definition: seispsread.h:56
reads from a seismic data store.
Definition: seisread.h:50
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
PosInfo::CubeData & posdata_
Definition: seismulticubeps.h:57
uiString errmsg_
Definition: seismulticubeps.h:61
void addReader(SeisTrcReader *rdr, float offs)
Definition: seismulticubeps.h:42
Definition: seismulticubeps.h:69
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
Seismic trace.
Definition: seistrc.h:34
BufferString errmsg_
Definition: horizontracker.h:119
set of seismic traces.
Definition: seisbuf.h:31
TypeSet< float > offs_
Definition: seismulticubeps.h:59
Position info for an entire 3D cube. The LineData&#39;s are not sorted.
Definition: posinfo.h:95
const SeisTrc * getTrace(EM::SubID) const
ObjectSet< SeisTrcReader > rdrs_
Definition: seismulticubeps.h:58
TypeSet< int > comps_
Definition: seismulticubeps.h:60
PS data store reader based on multiple 3D CBVS cubes.
Definition: seismulticubeps.h:24
uiString errMsg() const
Definition: seismulticubeps.h:34
#define isTranslator(spec, clss)
Definition: transl.h:230

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