OpendTect  6.6
cbvsinfo.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: A.H.Bril
8  Date: 12-3-2001
9  Contents: Common Binary Volume Storage format header
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "generalmod.h"
16 #include "generalmod.h"
17 #include "posauxinfo.h"
18 #include "posidxpair2coord.h"
19 #include "basiccompinfo.h"
20 #include "samplingdata.h"
21 #include "posinfo.h"
22 #include "scaler.h"
23 class TrcKeyZSampling;
24 
25 
34 {
35 public:
36 
38  : seqnr_(0), nrtrcsperposn_(1) {}
39  ~CBVSInfo() { deepErase(compinfo_); }
40  CBVSInfo( const CBVSInfo& ci )
41  { *this = ci; }
43 
44  mStruct(General) SurvGeom
45  {
46  SurvGeom()
47  : fullyrectandreg(false) {}
48 
49  bool fullyrectandreg;
50  BinID start, stop, step;
52  PosInfo::SortedCubeData cubedata;
53 
54  void merge(const SurvGeom&);
55  void reCalcBounds();
56 
57  int excludes(const BinID&) const;
58  inline bool includes( const BinID& bid ) const
59  { return !excludes(bid); }
60  bool includesInline(int) const;
61  void clean()
62  { fullyrectandreg = false; deepErase(cubedata);}
63 
64  bool moveToNextPos(BinID&) const;
65  bool moveToNextInline(BinID&) const;
66 
67 protected:
68 
69  void toIrreg();
70  void mergeIrreg(const SurvGeom&);
71  int outOfRange(const BinID&) const;
72 
73  };
74 
75  int seqnr_;
77 
82  SurvGeom geom_;
83 
86 
87  bool contributesTo(const TrcKeyZSampling&) const;
88  void clean()
89  { deepErase(compinfo_); geom_.clean();
90  usertext_ = ""; }
91 
92 };
93 
94 
basiccompinfo.h
CBVSInfo::usertext_
BufferString usertext_
Definition: cbvsinfo.h:85
posauxinfo.h
PosInfo::SortedCubeData
Position info for an entire 3D cube. The LineData's are sorted.
Definition: posinfo.h:159
CBVSInfo::auxinfosel_
PosAuxInfoSelection auxinfosel_
Definition: cbvsinfo.h:78
PosAuxInfoSelection
Selection of aux info at location. Note that BinID is always selected.
Definition: posauxinfo.h:49
ObjectSet< BasicComponentInfo >
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
samplingdata.h
posidxpair2coord.h
CBVSInfo::nrsamples_
int nrsamples_
Definition: cbvsinfo.h:81
scaler.h
CBVSInfo::sd_
SamplingData< float > sd_
Definition: cbvsinfo.h:80
TrcKeyZSampling
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
CBVSInfo::compinfo_
ObjectSet< BasicComponentInfo > compinfo_
Definition: cbvsinfo.h:79
BinID
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:31
CBVSInfo::seqnr_
int seqnr_
Definition: cbvsinfo.h:73
CBVSInfo::~CBVSInfo
~CBVSInfo()
Definition: cbvsinfo.h:39
TrcKeyZSampling::operator=
TrcKeyZSampling & operator=(const TrcKeyZSampling &)
CBVSInfo::nrtrcsperposn_
int nrtrcsperposn_
Definition: cbvsinfo.h:76
posinfo.h
mStruct
#define mStruct(module)
Definition: commondefs.h:182
SamplingData< float >
CBVSInfo::geom_
SurvGeom geom_
Definition: cbvsinfo.h:82
CBVSInfo::stdtext_
BufferString stdtext_
Definition: cbvsinfo.h:84
CBVSInfo::clean
void clean()
Definition: cbvsinfo.h:88
BufferString
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
CBVSInfo::CBVSInfo
CBVSInfo()
Definition: cbvsinfo.h:37
deepErase
void deepErase(BufferStringSet &)
CBVSInfo::CBVSInfo
CBVSInfo(const CBVSInfo &ci)
Definition: cbvsinfo.h:40
Pos::IdxPair2Coord
Encapsulates linear transform from (i,j) index to (x,y) coordinates.
Definition: posidxpair2coord.h:26
CBVSInfo
Data available in CBVS format header and trailer.
Definition: cbvsinfo.h:34
TrcKeyZSampling::includes
bool includes(const TrcKeyZSampling &) const
CBVSInfo::contributesTo
bool contributesTo(const TrcKeyZSampling &) const

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