1 #ifndef uidpscrossplottools_h 2 #define uidpscrossplottools_h 23 enum SelAxisType { Y1, Y2, Both };
25 SelectionArea(
const uiRect&);
27 SelectionArea(
bool isrect);
28 SelectionArea() : axistype_(SelectionArea::Y1) {}
32 bool isInside(
const uiPoint&)
const;
37 float selectedness(
uiPoint)
const;
46 SelAxisType axistype_;
53 void geomChanged() { maxdistest_ =
mUdf(
double); }
59 mutable double maxdistest_;
60 double minDisToBorder(
uiPoint)
const;
62 double maxDisToBorder()
const;
70 : NamedObject(nm), col_(col) {}
77 bool hasAltAxis()
const;
78 bool isValidIdx(
int idx)
const;
79 int isInside(
const uiPoint&)
const;
81 int validIdx(
int selareaid)
const;
82 void addSelection(
const SelectionArea&);
83 void removeSelection(
int);
86 void setSelectionArea(
const SelectionArea&);
87 bool getSelectionArea(SelectionArea&,
int id)
const;
88 SelectionArea& getSelectionArea(
int idx);
89 const SelectionArea& getSelectionArea(
int idx)
const;
90 SelectionArea::SelAxisType getSelectionAxis(
int selareaid)
const;
#define mExpClass(module)
Definition: commondefs.h:160
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
#define mStruct(module)
Definition: commondefs.h:165
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
Color col_
Definition: uidpscrossplottools.h:75
Set of BufferString objects.
Definition: bufstringset.h:28
~SelectionGrp()
Definition: uidpscrossplottools.h:73
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
SelectionGrp(const char *nm, const Color &col)
Definition: uidpscrossplottools.h:69
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:272
Definition: uidpscrossplottools.h:66
SelectionGrp()
Definition: uidpscrossplottools.h:71
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Object with a name.
Definition: namedobj.h:35
TypeSet< SelectionArea > selareas_
Definition: uidpscrossplottools.h:95
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26