OpendTect-6_4  6.4
seisblockstr.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: Bert
8  Date: April 2017
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "seistrctr.h"
14 #include "datachar.h"
15 
16 namespace Seis { namespace Blocks { class Reader; } }
17 
18 
22 
23 public:
24 
25  typedef Seis::Blocks::Reader Reader;
26  typedef DataCharacteristics::UserType FPDataRepType;
27 
28  BlocksSeisTrcTranslator(const char*,const char*);
30  virtual const char* defExtension() const { return "blocks"; }
31  virtual bool forRead() const { return true; }
32 
33  virtual bool readInfo(SeisTrcInfo&);
34  virtual bool read(SeisTrc&);
35  virtual bool skip(int);
36  virtual bool supportsGoTo() const { return true; }
37  virtual bool goTo(const BinID&);
38  virtual bool isUserSelectable(bool forread) const { return forread; }
39  virtual bool getGeometryInfo(PosInfo::CubeData&) const;
40 
41  virtual void usePar(const IOPar&);
42 
43  virtual bool close();
44  virtual void cleanUp();
45  virtual const char* iconName() const { return "blockscube"; }
46  virtual void convToConnExpr(BufferString&) const;
47 
48  virtual int bytesOverheadPerTrace() const { return 0; }
49  virtual bool isSingleComponent() const { return false; }
50  virtual int estimatedNrTraces() const;
51 
52  static const char* sKeyTrName() { return "Blocks"; }
53 
54  virtual BufferStringSet auxExtensions() const;
55 
56 protected:
57 
58  Reader* rdr_;
59  FPDataRepType preselfprep_;
60 
61  virtual bool commitSelections_();
62  virtual bool initRead_();
63  virtual bool initWrite_(const SeisTrc&);
64  virtual bool writeTrc_(const SeisTrc&);
65  virtual bool wantBuffering() const { return false; }
66 
67 };
#define mExpClass(module)
Definition: commondefs.h:160
Summary for a Seismic object.
Definition: segydirectdef.h:23
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
virtual bool forRead() const
Definition: seisblockstr.h:31
virtual bool isSingleComponent() const
Definition: seisblockstr.h:49
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
virtual bool isUserSelectable(bool forread) const
Definition: seisblockstr.h:38
Reader * rdr_
Definition: seisblockstr.h:58
Set of BufferString objects.
Definition: bufstringset.h:28
virtual int bytesOverheadPerTrace() const
Definition: seisblockstr.h:48
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Definition: seistrctr.h:90
byte-level data characteristics of stored data.
Definition: datachar.h:37
Information for a seismic trace, AKA trace header info.
Definition: seisinfo.h:27
FPDataRepType preselfprep_
Definition: seisblockstr.h:59
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
Seismic trace.
Definition: seistrc.h:34
virtual bool supportsGoTo() const
Definition: seisblockstr.h:36
virtual bool wantBuffering() const
Definition: seisblockstr.h:65
virtual const char * iconName() const
Definition: seisblockstr.h:45
static const char * sKeyTrName()
Definition: seisblockstr.h:52
Position info for an entire 3D cube. The LineData&#39;s are not sorted.
Definition: posinfo.h:95
Definition: seisblockstr.h:19
#define isTranslator(spec, clss)
Definition: transl.h:230

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