Loading...
Searching...
No Matches
integrationscopebase.cpp
Go to the documentation of this file.
// Copyright 2021 Filippo Rusconi
// GPLv3+
/////////////////////// StdLib includes
#include <limits>
#include <cmath>
/////////////////////// Qt includes
#include <QDebug>
/////////////////////// Local includes
#include "integrationscopebase.h"
namespace pappso
{
IntegrationScopeBase::IntegrationScopeBase(QObject *parent_p)
: QObject(parent_p)
{
// qDebug() << "Constructing" << this;
}
IntegrationScopeBase::IntegrationScopeBase([[maybe_unused]] const IntegrationScopeBase &other,
QObject *parent_p)
: QObject(parent_p)
{
// qDebug() << "Constructing" << this;
}
IntegrationScopeBase::~IntegrationScopeBase()
{
// qDebug() << "Destructing" << this;
}
bool
IntegrationScopeBase::getPoint([[maybe_unused]] QPointF &point) const
{
return false;
}
bool
IntegrationScopeBase::getPoints([[maybe_unused]] std::vector<QPointF> &points) const
{
return false;
}
IntegrationScopeFeatures
IntegrationScopeBase::getLeftMostPoint([[maybe_unused]] QPointF &point) const
{
return IntegrationScopeFeatures::FAILURE;
}
IntegrationScopeFeatures
IntegrationScopeBase::getLeftMostPoints([[maybe_unused]] std::vector<QPointF> &points) const
{
return IntegrationScopeFeatures::FAILURE;
}
IntegrationScopeFeatures
IntegrationScopeBase::getLeftMostTopPoint([[maybe_unused]] QPointF &point) const
{
return IntegrationScopeFeatures::FAILURE;
}
IntegrationScopeFeatures
IntegrationScopeBase::getLeftMostBottomPoint([[maybe_unused]] QPointF &point) const
{
return IntegrationScopeFeatures::FAILURE;
}
IntegrationScopeFeatures
IntegrationScopeBase::getRightMostPoint([[maybe_unused]] QPointF &point) const
{
return IntegrationScopeFeatures::FAILURE;
}
IntegrationScopeFeatures
IntegrationScopeBase::getRightMostPoints([[maybe_unused]] std::vector<QPointF> &points) const
{
return IntegrationScopeFeatures::FAILURE;
}
IntegrationScopeFeatures
IntegrationScopeBase::getRightMostTopPoint([[maybe_unused]] QPointF &point) const
{
return IntegrationScopeFeatures::FAILURE;
}
IntegrationScopeFeatures
IntegrationScopeBase::getRightMostBottomPoint([[maybe_unused]] QPointF &point) const
{
return IntegrationScopeFeatures::FAILURE;
}
IntegrationScopeFeatures
IntegrationScopeBase::getTopMostPoint([[maybe_unused]] QPointF &point) const
{
return IntegrationScopeFeatures::FAILURE;
}
IntegrationScopeFeatures
IntegrationScopeBase::getTopMostPoints([[maybe_unused]] std::vector<QPointF> &points) const
{
return IntegrationScopeFeatures::FAILURE;
}
IntegrationScopeFeatures
IntegrationScopeBase::getBottomMostPoint([[maybe_unused]] QPointF &point) const
{
return IntegrationScopeFeatures::FAILURE;
}
IntegrationScopeFeatures
IntegrationScopeBase::getBottomMostPoints([[maybe_unused]] std::vector<QPointF> &points) const
{
return IntegrationScopeFeatures::FAILURE;
}
IntegrationScopeFeatures
IntegrationScopeBase::getWidth([[maybe_unused]] double &width) const
{
return IntegrationScopeFeatures::FAILURE;
}
IntegrationScopeFeatures
IntegrationScopeBase::getHeight([[maybe_unused]] double &height) const
{
return IntegrationScopeFeatures::FAILURE;
}
IntegrationScopeFeatures
IntegrationScopeBase::getRhombHorizontalSize([[maybe_unused]] double &size) const
{
return IntegrationScopeFeatures::FAILURE;
}
IntegrationScopeFeatures
IntegrationScopeBase::getRhombVerticalSize([[maybe_unused]] double &size) const
{
return IntegrationScopeFeatures::FAILURE;
}
bool
IntegrationScopeBase::range([[maybe_unused]] Enums::Axis axis,
[[maybe_unused]] double &start,
[[maybe_unused]] double &end) const
{
return false;
}
void
IntegrationScopeBase::setDataKindX([[maybe_unused]] Enums::DataKind data_kind)
{
}
void
IntegrationScopeBase::setDataKindY([[maybe_unused]] Enums::DataKind data_kind)
{
}
bool
IntegrationScopeBase::getDataKindX([[maybe_unused]] Enums::DataKind &data_kind)
{
return false;
}
bool
IntegrationScopeBase::getDataKindY([[maybe_unused]] Enums::DataKind &data_kind)
{
return false;
}
bool
IntegrationScopeBase::is1D() const
{
return false;
}
bool
IntegrationScopeBase::is2D() const
{
return false;
}
bool
IntegrationScopeBase::isRectangle() const
{
return false;
}
bool
IntegrationScopeBase::isRhomboid() const
{
return false;
}
bool
IntegrationScopeBase::transpose()
{
return false;
}
bool
IntegrationScopeBase::contains([[maybe_unused]] const QPointF &point) const
{
return false;
}
QString
IntegrationScopeBase::toString() const
{
return QString();
}
void
IntegrationScopeBase::reset()
{
}
} // namespace pappso
pappso::IntegrationScopeBase::is2D
virtual bool is2D() const
Definition integrationscopebase.cpp:185
pappso::IntegrationScopeBase::getBottomMostPoint
virtual IntegrationScopeFeatures getBottomMostPoint(QPointF &point) const
Definition integrationscopebase.cpp:113
pappso::IntegrationScopeBase::isRectangle
virtual bool isRectangle() const
Definition integrationscopebase.cpp:191
pappso::IntegrationScopeBase::range
virtual bool range(Enums::Axis axis, double &start, double &end) const
Definition integrationscopebase.cpp:149
pappso::IntegrationScopeBase::isRhomboid
virtual bool isRhomboid() const
Definition integrationscopebase.cpp:197
pappso::IntegrationScopeBase::setDataKindY
virtual void setDataKindY(Enums::DataKind data_kind)
Definition integrationscopebase.cpp:162
pappso::IntegrationScopeBase::~IntegrationScopeBase
virtual ~IntegrationScopeBase()
Definition integrationscopebase.cpp:34
pappso::IntegrationScopeBase::getLeftMostPoints
virtual IntegrationScopeFeatures getLeftMostPoints(std::vector< QPointF > &points) const
Definition integrationscopebase.cpp:59
pappso::IntegrationScopeBase::getWidth
virtual IntegrationScopeFeatures getWidth(double &width) const
Definition integrationscopebase.cpp:125
pappso::IntegrationScopeBase::getLeftMostPoint
virtual IntegrationScopeFeatures getLeftMostPoint(QPointF &point) const
Definition integrationscopebase.cpp:53
pappso::IntegrationScopeBase::getHeight
virtual IntegrationScopeFeatures getHeight(double &height) const
Definition integrationscopebase.cpp:131
pappso::IntegrationScopeBase::contains
virtual bool contains(const QPointF &point) const
Definition integrationscopebase.cpp:209
pappso::IntegrationScopeBase::getRightMostTopPoint
virtual IntegrationScopeFeatures getRightMostTopPoint(QPointF &point) const
Definition integrationscopebase.cpp:89
pappso::IntegrationScopeBase::getRightMostPoint
virtual IntegrationScopeFeatures getRightMostPoint(QPointF &point) const
Definition integrationscopebase.cpp:77
pappso::IntegrationScopeBase::toString
virtual QString toString() const
Definition integrationscopebase.cpp:215
pappso::IntegrationScopeBase::getBottomMostPoints
virtual IntegrationScopeFeatures getBottomMostPoints(std::vector< QPointF > &points) const
Definition integrationscopebase.cpp:119
pappso::IntegrationScopeBase::getTopMostPoint
virtual IntegrationScopeFeatures getTopMostPoint(QPointF &point) const
Definition integrationscopebase.cpp:101
pappso::IntegrationScopeBase::setDataKindX
virtual void setDataKindX(Enums::DataKind data_kind)
Definition integrationscopebase.cpp:157
pappso::IntegrationScopeBase::reset
virtual void reset()
Definition integrationscopebase.cpp:221
pappso::IntegrationScopeBase::getDataKindX
virtual bool getDataKindX(Enums::DataKind &data_kind)
Definition integrationscopebase.cpp:167
pappso::IntegrationScopeBase::getPoints
virtual bool getPoints(std::vector< QPointF > &points) const
Definition integrationscopebase.cpp:47
pappso::IntegrationScopeBase::getDataKindY
virtual bool getDataKindY(Enums::DataKind &data_kind)
Definition integrationscopebase.cpp:173
pappso::IntegrationScopeBase::getRightMostBottomPoint
virtual IntegrationScopeFeatures getRightMostBottomPoint(QPointF &point) const
Definition integrationscopebase.cpp:95
pappso::IntegrationScopeBase::getRhombHorizontalSize
virtual IntegrationScopeFeatures getRhombHorizontalSize(double &size) const
Definition integrationscopebase.cpp:137
pappso::IntegrationScopeBase::getLeftMostBottomPoint
virtual IntegrationScopeFeatures getLeftMostBottomPoint(QPointF &point) const
Definition integrationscopebase.cpp:71
pappso::IntegrationScopeBase::getRhombVerticalSize
virtual IntegrationScopeFeatures getRhombVerticalSize(double &size) const
Definition integrationscopebase.cpp:143
pappso::IntegrationScopeBase::getRightMostPoints
virtual IntegrationScopeFeatures getRightMostPoints(std::vector< QPointF > &points) const
Definition integrationscopebase.cpp:83
pappso::IntegrationScopeBase::getTopMostPoints
virtual IntegrationScopeFeatures getTopMostPoints(std::vector< QPointF > &points) const
Definition integrationscopebase.cpp:107
pappso::IntegrationScopeBase::getPoint
virtual bool getPoint(QPointF &point) const
Definition integrationscopebase.cpp:41
pappso::IntegrationScopeBase::IntegrationScopeBase
IntegrationScopeBase(QObject *parent_p=nullptr)
Definition integrationscopebase.cpp:21
pappso::IntegrationScopeBase::is1D
virtual bool is1D() const
Definition integrationscopebase.cpp:179
pappso::IntegrationScopeBase::getLeftMostTopPoint
virtual IntegrationScopeFeatures getLeftMostTopPoint(QPointF &point) const
Definition integrationscopebase.cpp:65
pappso::IntegrationScopeBase::transpose
virtual bool transpose()
Definition integrationscopebase.cpp:203
integrationscopebase.h
pappso::Enums::DataKind
DataKind
Definition types.h:249
pappso::Enums::Axis
Axis
Definition types.h:258
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39
pappso::IntegrationScopeFeatures
IntegrationScopeFeatures
Definition integrationscopebase.h:47
pappso::FAILURE
@ FAILURE
Definition integrationscopebase.h:49