15 #include "../../exportinmportconfig.h"
16 #include "../../types.h"
68 QPointF top_right_point,
69 QPointF bottom_right_point,
70 QPointF bottom_left_point);
77 void setPoint(
PointSpecs point_spec,
double x,
double y);
78 void setPoint(
PointSpecs point_spec, QPointF point);
81 void set1D(
double x_range_start,
double x_range_end);
82 void set2D(QPointF top_left,
88 const std::vector<QPointF> &getPoints()
const;
90 QPointF getLeftMostPoint()
const;
91 QPointF getRightMostPoint()
const;
92 QPointF getTopMostPoint()
const;
93 QPointF getBottomMostPoint()
const;
97 bool computeMinMaxCoordinates();
98 bool computeMinMaxCoordinates(
double &min_x,
101 double &max_y)
const;
103 double width(
bool &ok)
const;
104 double height(
bool &ok)
const;
106 bool rangeX(
double &range_start,
double &range_end)
const;
107 bool rangeY(
double &range_start,
double &range_end)
const;
108 bool range(
Axis axis,
double &range_start,
double &range_end)
const;
112 bool contains(
const QPointF &tested_point)
const;
121 bool isRectangle()
const;
123 QString toShort4PointsString()
const;
124 QString toString()
const;
128 const QPointF &tested_point);
138 std::vector<QPointF> m_points = {QPointF(std::numeric_limits<double>::min(),
139 std::numeric_limits<double>::max()),
140 QPointF(std::numeric_limits<double>::max(),
141 std::numeric_limits<double>::max()),
142 QPointF(std::numeric_limits<double>::max(),
143 std::numeric_limits<double>::min()),
144 QPointF(std::numeric_limits<double>::min(),
145 std::numeric_limits<double>::min())};
147 double m_minX = std::numeric_limits<double>::min();
148 double m_minY = std::numeric_limits<double>::min();
150 double m_maxX = std::numeric_limits<double>::max();
151 double m_maxY = std::numeric_limits<double>::max();
168 : selectionPolygon(selection_polygon),
174 : selectionPolygon(other.selectionPolygon),
175 dataKind(other.dataKind)
195 QString text =
"Selection polygon spec:";
196 text += selectionPolygon.
toString();
198 text +=
" - data kind: ";
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
SelectionPolygonSpec & operator=(const SelectionPolygonSpec &other)
SelectionPolygonSpec(const SelectionPolygonSpec &other)
SelectionPolygon selectionPolygon
SelectionPolygonSpec(const SelectionPolygon &selection_polygon, DataKind data_kind)