libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
integrationscopebase.cpp
Go to the documentation of this file.
1// Copyright 2021 Filippo Rusconi
2// GPLv3+
3
4
5/////////////////////// StdLib includes
6#include <limits>
7#include <cmath>
8
9
10/////////////////////// Qt includes
11#include <QDebug>
12
13
14/////////////////////// Local includes
16
17
18namespace pappso
19{
20
22{
23 // qDebug() << "Constructing" << this;
24}
25
27{
28 Q_UNUSED(other)
29
30 // qDebug() << "Constructing" << this;
31}
32
34{
35 // qDebug() << "Destructing" << this;
36}
37
40{
41 return new IntegrationScopeBase(*this);
42}
43
46{
47 Q_UNUSED(other);
48 if(&other == this)
49 return *this;
50
51 return *this;
52}
53
54bool
55IntegrationScopeBase::getPoint([[maybe_unused]] QPointF &point) const
56{
57 return false;
58}
59
60bool
61IntegrationScopeBase::getPoints([[maybe_unused]] std::vector<QPointF> &points) const
62{
63 return false;
64}
65
67IntegrationScopeBase::getLeftMostPoint([[maybe_unused]] QPointF &point) const
68{
71
73IntegrationScopeBase::getLeftMostPoints([[maybe_unused]] std::vector<QPointF> &points) const
74{
76}
77
79IntegrationScopeBase::getLeftMostTopPoint([[maybe_unused]] QPointF &point) const
80{
82}
83
85IntegrationScopeBase::getLeftMostBottomPoint([[maybe_unused]] QPointF &point) const
86{
88}
89
91IntegrationScopeBase::getRightMostPoint([[maybe_unused]] QPointF &point) const
92{
94}
95
97IntegrationScopeBase::getRightMostPoints([[maybe_unused]] std::vector<QPointF> &points) const
98{
100}
101
103IntegrationScopeBase::getRightMostTopPoint([[maybe_unused]] QPointF &point) const
104{
106}
107
109IntegrationScopeBase::getRightMostBottomPoint([[maybe_unused]] QPointF &point) const
110{
112}
113
115IntegrationScopeBase::getTopMostPoint([[maybe_unused]] QPointF &point) const
116{
118}
119
121IntegrationScopeBase::getTopMostPoints([[maybe_unused]] std::vector<QPointF> &points) const
122{
124}
125
127IntegrationScopeBase::getBottomMostPoint([[maybe_unused]] QPointF &point) const
128{
130}
131
133IntegrationScopeBase::getBottomMostPoints([[maybe_unused]] std::vector<QPointF> &points) const
134{
136}
137
139IntegrationScopeBase::getWidth([[maybe_unused]] double &width) const
140{
142}
143
145IntegrationScopeBase::getHeight([[maybe_unused]] double &height) const
146{
148}
149
151IntegrationScopeBase::getRhombHorizontalSize([[maybe_unused]] double &size) const
152{
154}
155
157IntegrationScopeBase::getRhombVerticalSize([[maybe_unused]] double &size) const
158{
160}
161
162bool
164 [[maybe_unused]] double &start,
165 [[maybe_unused]] double &end) const
166{
167 return false;
168}
169
170void
172{
173}
174
175void
177{
178}
179
180bool
182{
183 return false;
184}
185
186bool
188{
189 return false;
190}
191
192bool
194{
195 return false;
196}
197
198bool
200{
201 return false;
202}
203
204bool
206{
207 return false;
208}
209
210bool
212{
213 return false;
214}
215
216bool
218{
219 return false;
220}
221
222bool
223IntegrationScopeBase::contains([[maybe_unused]] const QPointF &point) const
224{
225 return false;
226}
227
228QString
230{
231 return QString();
232}
233
234void
238
239} // namespace pappso
virtual IntegrationScopeFeatures getBottomMostPoint(QPointF &point) const
virtual bool range(Enums::Axis axis, double &start, double &end) const
virtual void setDataKindY(Enums::DataKind data_kind)
virtual IntegrationScopeFeatures getLeftMostPoints(std::vector< QPointF > &points) const
virtual IntegrationScopeFeatures getWidth(double &width) const
virtual IntegrationScopeFeatures getLeftMostPoint(QPointF &point) const
virtual IntegrationScopeFeatures getHeight(double &height) const
virtual bool contains(const QPointF &point) const
virtual IntegrationScopeFeatures getRightMostTopPoint(QPointF &point) const
virtual IntegrationScopeFeatures getRightMostPoint(QPointF &point) const
virtual IntegrationScopeFeatures getBottomMostPoints(std::vector< QPointF > &points) const
virtual IntegrationScopeFeatures getTopMostPoint(QPointF &point) const
virtual void setDataKindX(Enums::DataKind data_kind)
virtual IntegrationScopeBase * clone() const
virtual bool getDataKindX(Enums::DataKind &data_kind)
virtual bool getPoints(std::vector< QPointF > &points) const
virtual bool getDataKindY(Enums::DataKind &data_kind)
virtual IntegrationScopeFeatures getRightMostBottomPoint(QPointF &point) const
virtual IntegrationScopeFeatures getRhombHorizontalSize(double &size) const
virtual IntegrationScopeFeatures getLeftMostBottomPoint(QPointF &point) const
virtual IntegrationScopeFeatures getRhombVerticalSize(double &size) const
virtual IntegrationScopeBase & operator=(const IntegrationScopeBase &other)
virtual IntegrationScopeFeatures getRightMostPoints(std::vector< QPointF > &points) const
virtual IntegrationScopeFeatures getTopMostPoints(std::vector< QPointF > &points) const
virtual bool getPoint(QPointF &point) const
virtual IntegrationScopeFeatures getLeftMostTopPoint(QPointF &point) const
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39