28 BinIDSorting(
bool is2d )
29 : is2d_(is2d), state_(0) {}
31 bool isValid(
const BinID& prev,
const BinID& cur)
const;
32 const char* description()
const;
35 {
return state_ < 4; }
37 {
return (state_ % 2) < 1; }
39 {
return (state_ % 4) < 2; }
41 void set(
bool inl,
bool inlupw,
bool crlupw);
44 static bool isValid(
bool is2d,
const BinID& prev,
const BinID& cur,
45 bool inlsorted,
bool inlupward,
bool crlupward);
46 static BufferString description(
bool is2d,
bool inlsorted,
bool inlupward,
54 :
is2d_(is2d), state_(st) {}
69 BinIDSortingAnalyser(
bool is2d);
int state_
Definition: binidsorting.h:56
#define mExpClass(module)
Definition: commondefs.h:157
BinIDSorting getSorting() const
Can be used after add() returns true.
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
BinID sorting parameters.
Definition: binidsorting.h:25
bool is2d_
Definition: binidsorting.h:57
uiString errmsg_
Definition: binidsorting.h:83
BinIDSorting(bool is2d, int st)
Definition: binidsorting.h:53
uiString errMsg()
Definition: binidsorting.h:76
bool crlUpward() const
Definition: binidsorting.h:38
Definition: uistring.h:88
bool inlUpward() const
< ignored in 2D
Definition: binidsorting.h:36
mODTextTranslationClass(BinIDSorting) public
Definition: binidsorting.h:26
Analyses whether input BinIDs are sorted.
Definition: binidsorting.h:66
BinID prev_
Definition: binidsorting.h:80
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:28
BufferString errmsg_
Definition: horizontracker.h:117
mODTextTranslationClass(BinIDSortingAnalyser) public bool add(const BinID &)
bool inlSorted() const
Definition: binidsorting.h:34
bool is2d_
Definition: binidsorting.h:81
bool st_[8]
Definition: binidsorting.h:82