OpendTect-6_4  6.4
seispscubetr.h
Go to the documentation of this file.
1 #ifndef seispscubetr_h
2 #define seispscubetr_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: Dec 2004
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "seismod.h"
16 #include "seistrctr.h"
17 #include "binid.h"
18 class IOObj;
19 class SeisPS3DReader;
20 namespace PosInfo { class CubeData; }
21 
22 
25  isTranslator(SeisPSCube,SeisTrc)
26 public:
27 
28  SeisPSCubeSeisTrcTranslator(const char*,const char*);
30 
31  virtual bool readInfo(SeisTrcInfo&);
32  virtual bool read(SeisTrc&);
33  virtual bool skip(int);
34  virtual bool forRead() const { return true; }
35 
36  virtual bool supportsGoTo() const { return true; }
37  virtual bool goTo(const BinID&);
38  virtual int bytesOverheadPerTrace() const { return 52; }
39 
40  virtual bool implRemove(const IOObj*) const { return false; }
41  virtual bool implRename(const IOObj*,const char*,
42  const CallBack*) const { return false; }
43  virtual bool implSetReadOnly(const IOObj*,bool) const
44  { return false; }
45 
46  virtual const char* connType() const;
47  virtual bool isUserSelectable( bool fr ) const { return fr; }
48 
49 protected:
50 
55  bool inforead_;
56 
57  virtual bool initRead_();
58  virtual bool initWrite_(const SeisTrc&)
59  { errmsg_ = tr( "No write to PS Cube" ); return false; }
60  virtual bool commitSelections_();
61 
62  bool doRead(SeisTrc&,TypeSet<float>* offss=0);
63  bool toNext();
64 
66 
67 };
68 
69 
70 #endif
BinID curbinid_
Definition: seispscubetr.h:54
#define mExpClass(module)
Definition: commondefs.h:160
Summary for a Seismic object.
Definition: segydirectdef.h:23
virtual bool supportsGoTo() const
Definition: seispscubetr.h:36
Definition: ioobj.h:58
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
virtual bool forRead() const
Definition: seispscubetr.h:34
Definition: seispscubetr.h:23
PosInfo::CubeData & posdata_
Definition: seispscubetr.h:53
reads from a 3D prestack seismic data store.
Definition: seispsread.h:56
virtual bool isUserSelectable(bool fr) const
Definition: seispscubetr.h:47
virtual int bytesOverheadPerTrace() const
Definition: seispscubetr.h:38
Definition: seistrctr.h:90
Information for a seismic trace, AKA trace header info.
Definition: seisinfo.h:27
SeisPS3DReader * psrdr_
Definition: seispscubetr.h:51
SeisTrc & trc_
Definition: seispscubetr.h:52
Position info, often segmented.
Definition: posinfo.h:40
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
bool inforead_
Definition: seispscubetr.h:55
virtual bool initWrite_(const SeisTrc &)
Definition: seispscubetr.h:58
TypeSet< int > trcnrs_
Definition: seispscubetr.h:65
virtual bool implSetReadOnly(const IOObj *, bool) const
Definition: seispscubetr.h:43
CallBacks object-oriented (object + method).
Definition: callback.h:57
Position info for an entire 3D cube. The LineData&#39;s are not sorted.
Definition: posinfo.h:95
virtual bool implRemove(const IOObj *) const
Definition: seispscubetr.h:40
#define isTranslator(spec, clss)
Definition: transl.h:230
virtual bool implRename(const IOObj *, const char *, const CallBack *) const
Definition: seispscubetr.h:41

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