21 enum SelAxisType { Y1, Y2, Both };
23 SelectionArea(
const uiRect&);
25 SelectionArea(
bool isrect);
26 SelectionArea() : axistype_(SelectionArea::Y1) {}
30 bool isInside(
const uiPoint&)
const;
35 float selectedness(
uiPoint)
const;
44 SelAxisType axistype_;
51 void geomChanged() { maxdistest_ =
mUdf(
double); }
57 mutable double maxdistest_;
58 double minDisToBorder(
uiPoint)
const;
60 double maxDisToBorder()
const;
68 : NamedObject(nm), col_(col) {}
75 bool hasAltAxis()
const;
76 bool isValidIdx(
int idx)
const;
77 int isInside(
const uiPoint&)
const;
79 int validIdx(
int selareaid)
const;
80 void addSelection(
const SelectionArea&);
81 void removeSelection(
int);
84 void setSelectionArea(
const SelectionArea&);
85 bool getSelectionArea(SelectionArea&,
int id)
const;
86 SelectionArea& getSelectionArea(
int idx);
87 const SelectionArea& getSelectionArea(
int idx)
const;
88 SelectionArea::SelAxisType getSelectionAxis(
int selareaid)
const;
#define mExpClass(module)
Definition: commondefs.h:157
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:51
#define mStruct(module)
Definition: commondefs.h:162
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:200
Color col_
Definition: uidpscrossplottools.h:73
Definition: uistring.h:88
Set of BufferString objects.
Definition: bufstringset.h:25
~SelectionGrp()
Definition: uidpscrossplottools.h:71
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:270
Definition: uidpscrossplottools.h:64
SelectionGrp()
Definition: uidpscrossplottools.h:69
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:187
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
object with a name.
Definition: namedobj.h:20
TypeSet< SelectionArea > selareas_
Definition: uidpscrossplottools.h:94
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:24
mODTextTranslationClass(SelectionGrp) public
Definition: uidpscrossplottools.h:65