30 BinIDSorting(
bool is2d )
31 : is2d_(is2d), state_(0) {}
33 bool isValid(
const BinID& prev,
const BinID& cur)
const;
34 const char* description()
const;
37 {
return state_ < 4; }
39 {
return (state_ % 2) < 1; }
41 {
return (state_ % 4) < 2; }
43 void set(
bool inl,
bool inlupw,
bool crlupw);
46 static bool isValid(
bool is2d,
const BinID& prev,
const BinID& cur,
47 bool inlsorted,
bool inlupward,
bool crlupward);
48 static BufferString description(
bool is2d,
bool inlsorted,
bool inlupward,
56 :
is2d_(is2d), state_(st) {}
71 BinIDSortingAnalyser(
bool is2d);
int state_
Definition: binidsorting.h:58
#define mExpClass(module)
Definition: commondefs.h:160
BinIDSorting getSorting() const
Can be used after add() returns true.
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
BinID sorting parameters.
Definition: binidsorting.h:27
bool is2d_
Definition: binidsorting.h:59
uiString errmsg_
Definition: binidsorting.h:85
BinIDSorting(bool is2d, int st)
Definition: binidsorting.h:55
uiString errMsg()
Definition: binidsorting.h:78
bool crlUpward() const
Definition: binidsorting.h:40
Definition: uistring.h:89
bool inlUpward() const
< ignored in 2D
Definition: binidsorting.h:38
mODTextTranslationClass(BinIDSorting) public
Definition: binidsorting.h:28
Analyses whether input BinIDs are sorted.
Definition: binidsorting.h:68
BinID prev_
Definition: binidsorting.h:82
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
BufferString errmsg_
Definition: horizontracker.h:119
mODTextTranslationClass(BinIDSortingAnalyser) public bool add(const BinID &)
bool inlSorted() const
Definition: binidsorting.h:36
bool is2d_
Definition: binidsorting.h:83
bool st_[8]
Definition: binidsorting.h:84