 |
OpendTect
6.6
|
Go to the documentation of this file.
76 : lidx_(iln), segnr_(isn), sidx_(sidx) {}
83 void toStart() { lidx_ = segnr_ = sidx_ = 0; }
84 bool isValid()
const {
return lidx_>=0 && segnr_>=0 && sidx_>=0; }
100 { generate(start,stop,step); }
105 { copyContents(cd);
return *
this; }
111 virtual int indexOf(
int inl,
int* newidx=0)
const;
138 bool allowreversed=
false);
170 { copyContents(scd);
return *
this; }
172 { copyContents(cd);
return *
this; }
174 virtual int indexOf(
int inl,
int* newidx=0)
const;
229 const bool rv = cd_.toNext( cdp_ );
230 bid = binID();
return rv;
232 inline void reset() { cdp_.toPreStart(); }
Position info for an entire 3D cube. The LineData's are not sorted.
Definition: posinfo.h:95
Horizontal sampling (inline and crossline range and steps).
Definition: trckeysampling.h:35
void toStart()
Definition: posinfo.h:83
Position info for an entire 3D cube. The LineData's are sorted.
Definition: posinfo.h:159
void reset()
Definition: posinfo.h:232
CubeData(BinID start, BinID stop, BinID step)
Definition: posinfo.h:99
void generate(BinID start, BinID stop, BinID step, bool allowreversed=false)
LineData * ld_
Definition: posinfo.h:205
StepInterval< int > Segment
Definition: posinfo.h:50
bool next(BinID &bid)
Definition: posinfo.h:227
int segnr_
Definition: posinfo.h:79
bool includes(const BinID &) const
LineData::Segment seg_
Definition: posinfo.h:206
CubeData()
Definition: posinfo.h:98
int totalSizeInside(const TrcKeySampling &hrg) const
void merge(const CubeData &, bool incl)
incl=union, !incl=intersection
SortedCubeData & add(LineData *)
#define od_int64
Definition: plftypes.h:35
void limitTo(const TrcKeySampling &)
#define mExpClass(module)
Definition: commondefs.h:177
virtual CubeData & doAdd(LineData *)
SortedCubeData()
Definition: posinfo.h:161
bool getInlRange(StepInterval< int > &, bool sorted=true) const
Returns whether fully regular.
OD class for stream read common access to the std::cin.
Definition: od_istream.h:24
void merge(const LineData &, bool incl)
incl=union, !incl=intersection
bool haveInlStepInfo() const
Definition: posinfo.h:129
bool haveCrlStepInfo() const
virtual int indexOf(int inl, int *newidx=0) const
newidx only filled if not null and -1 is returned
CubeData(const CubeData &cd)
Definition: posinfo.h:101
bool toNext(CubeDataPos &) const
SortedCubeData(const BinID &start, const BinID &stop, const BinID &step)
Definition: posinfo.h:162
Position in a CubeData.
Definition: posinfo.h:73
SortedCubeData(const CubeData &cd)
Definition: posinfo.h:168
CubeDataPos(int iln=0, int isn=0, int sidx=-1)
Definition: posinfo.h:75
Fills CubeData object. Requires inline- and crossline-sorting.
Definition: posinfo.h:194
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:31
virtual int indexOf(const LineData *l) const
Definition: posinfo.h:143
Iterates through CubeData.
Definition: posinfo.h:221
int prevcrl
Definition: posinfo.h:207
void getRanges(Interval< int > &inl, Interval< int > &crl) const
bool isValid() const
Definition: posinfo.h:84
bool isCrlReversed() const
bool isValid(const CubeDataPos &) const
TypeSet< Segment > segments_
Definition: posinfo.h:55
bool isFullyRectAndReg() const
const int linenr_
Definition: posinfo.h:54
bool read(od_istream &, bool asc)
int sidx_
Definition: posinfo.h:80
int nearestSegment(double) const
bool isValid(int64_t globalidx, const TrcKeySampling &) const
int lidx_
Definition: posinfo.h:78
CubeDataPos cdp_
Definition: posinfo.h:236
bool write(od_ostream &, bool asc) const
CubeDataPos cubeDataPos(const BinID &) const
Interval< int > range() const
virtual int indexOf(const LineData *l) const
Definition: posinfo.h:179
bool getCrlRange(StepInterval< int > &, bool sorted=true) const
Returns whether fully regular.
bool isValid(const BinID &) const
LineData(int i)
Definition: posinfo.h:52
virtual idx_type indexOf(const T *) const
Definition: objectset.h:420
CubeDataIterator(const CubeData &cd)
Definition: posinfo.h:224
Position info, often segmented.
Definition: posinfo.h:40
void copyContents(const CubeData &)
BinID binID() const
Definition: posinfo.h:233
CubeDataFiller(CubeData &)
SortedCubeData(const SortedCubeData &cd)
Definition: posinfo.h:165
bool includes(int inl, int crl) const
void toPreStart()
Definition: posinfo.h:82
const CubeData & cd_
Definition: posinfo.h:235
OD class for stream write common access to the user log file, or std::cout in other than od_main.
Definition: od_ostream.h:26
Position info for a line - in a 3D cube, that would be an inline. Stored as (crossline-)number segmen...
Definition: posinfo.h:48
CubeData & cd_
Definition: posinfo.h:204
BinID binID(const CubeDataPos &) const
Sets of (small) copyable elements.
Definition: commontypes.h:29
virtual int indexOf(int inl, int *newidx=0) const
newidx only filled if not null and -1 is returned
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021