16 #include "../../exportinmportconfig.h"
17 #include "../../types.h"
69 QPointF top_right_point,
70 QPointF bottom_right_point,
71 QPointF bottom_left_point);
78 void setPoint(
PointSpecs point_spec,
double x,
double y);
79 void setPoint(
PointSpecs point_spec, QPointF point);
82 void set1D(
double x_range_start,
double x_range_end);
83 void set2D(QPointF top_left,
89 const std::vector<QPointF> &getPoints()
const;
91 QPointF getLeftMostPoint()
const;
92 QPointF getRightMostPoint()
const;
93 QPointF getTopMostPoint()
const;
94 QPointF getBottomMostPoint()
const;
98 bool computeMinMaxCoordinates();
99 bool computeMinMaxCoordinates(
double &min_x,
102 double &max_y)
const;
104 double width(
bool &ok)
const;
105 double height(
bool &ok)
const;
107 bool rangeX(
double &range_start,
double &range_end)
const;
108 bool rangeY(
double &range_start,
double &range_end)
const;
109 bool range(
Axis axis,
double &range_start,
double &range_end)
const;
113 bool contains(
const QPointF &tested_point)
const;
122 bool isRectangle()
const;
124 QString toShort4PointsString()
const;
125 QString toString()
const;
129 const QPointF &tested_point);
139 std::vector<QPointF> m_points = {QPointF(std::numeric_limits<double>::min(),
140 std::numeric_limits<double>::max()),
141 QPointF(std::numeric_limits<double>::max(),
142 std::numeric_limits<double>::max()),
143 QPointF(std::numeric_limits<double>::max(),
144 std::numeric_limits<double>::min()),
145 QPointF(std::numeric_limits<double>::min(),
146 std::numeric_limits<double>::min())};
148 double m_minX = std::numeric_limits<double>::min();
149 double m_minY = std::numeric_limits<double>::min();
151 double m_maxX = std::numeric_limits<double>::max();
152 double m_maxY = std::numeric_limits<double>::max();
169 : selectionPolygon(selection_polygon),
175 : selectionPolygon(other.selectionPolygon),
176 dataKind(other.dataKind)
196 QString text =
"Selection polygon spec:";
197 text += selectionPolygon.
toString();
199 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)