Loading...
Searching...
No Matches
massspectraceplotcontext.h
Go to the documentation of this file.
// Copyright 2021 Filippo Rusconi
// GPLv3+
#pragma once
/////////////////////// StdLib includes
/////////////////////// Qt includes
#include <QObject>
#include <QQmlEngine>
#include <QString>
#include "pappsomspp/config.h"
#include "pappsomspp/export-import-config.h"
#include "baseplotcontext.h"
/////////////////////// Local includes
namespace pappso
{
/* BEGIN CLASS JS REFERENCE
* namespace: pappso
* class name: MassSpecTracePlotContext
*/
class PMSPP_LIB_DECL MassSpecTracePlotContext : public BasePlotContext
{
Q_OBJECT
Q_PROPERTY(int lastZ MEMBER m_lastZ)
Q_PROPERTY(double lastMz MEMBER m_lastMz)
Q_PROPERTY(double lastTicIntensity MEMBER m_lastTicIntensity)
Q_PROPERTY(double lastMr MEMBER m_lastMr)
Q_PROPERTY(double lastResolvingPower MEMBER m_lastResolvingPower)
QML_ELEMENT
public:
Q_INVOKABLE MassSpecTracePlotContext(QObject *parent = nullptr);
virtual ~MassSpecTracePlotContext();
Q_INVOKABLE MassSpecTracePlotContext *clone(QObject *parent = nullptr);
Q_INVOKABLE void initialize(const BasePlotContext &other);
Q_INVOKABLE void initialize(const MassSpecTracePlotContext &other);
MassSpecTracePlotContext(const MassSpecTracePlotContext &other) = delete;
MassSpecTracePlotContext &operator=(const BasePlotContext &other) = delete;
MassSpecTracePlotContext &operator=(const MassSpecTracePlotContext &other) = delete;
quint16 m_lastZ = std::numeric_limits<quint16>::max();
double m_lastMz = qQNaN();
double m_lastTicIntensity = qQNaN();
double m_lastMr = qQNaN();
double m_lastResolvingPower = qQNaN();
void resetDeconvolutionData();
Q_INVOKABLE QString toString() const;
static void registerJsConstructor(QJSEngine *engine);
};
/* END CLASS JS REFERENCE
* namespace: pappso
*
* class name: MassSpecTracePlotContext
*/
PAPPSO_REGISTER_JS_CLASS(pappso, MassSpecTracePlotContext)
} // namespace pappso
baseplotcontext.h
pappso::BasePlotContext::BasePlotContext
Q_INVOKABLE BasePlotContext(QObject *parent=nullptr)
Definition baseplotcontext.cpp:38
pappso::MassSpecTracePlotContext::lastMr
double lastMr
Definition massspectraceplotcontext.h:38
pappso::MassSpecTracePlotContext::m_lastMz
double m_lastMz
Definition massspectraceplotcontext.h:57
pappso::MassSpecTracePlotContext::m_lastZ
quint16 m_lastZ
Definition massspectraceplotcontext.h:56
pappso::MassSpecTracePlotContext::m_lastResolvingPower
double m_lastResolvingPower
Definition massspectraceplotcontext.h:60
pappso::MassSpecTracePlotContext::clone
Q_INVOKABLE MassSpecTracePlotContext * clone(QObject *parent=nullptr)
Definition massspectraceplotcontext.cpp:27
pappso::MassSpecTracePlotContext::toString
Q_INVOKABLE QString toString() const
Definition massspectraceplotcontext.cpp:70
pappso::MassSpecTracePlotContext::initialize
Q_INVOKABLE void initialize(const BasePlotContext &other)
Definition massspectraceplotcontext.cpp:43
pappso::MassSpecTracePlotContext::lastResolvingPower
double lastResolvingPower
Definition massspectraceplotcontext.h:39
pappso::MassSpecTracePlotContext::lastTicIntensity
double lastTicIntensity
Definition massspectraceplotcontext.h:37
pappso::MassSpecTracePlotContext::MassSpecTracePlotContext
Q_INVOKABLE MassSpecTracePlotContext(QObject *parent=nullptr)
Definition massspectraceplotcontext.cpp:18
pappso::MassSpecTracePlotContext::resetDeconvolutionData
void resetDeconvolutionData()
Definition massspectraceplotcontext.cpp:62
pappso::MassSpecTracePlotContext::lastMz
double lastMz
Definition massspectraceplotcontext.h:36
pappso::MassSpecTracePlotContext::m_lastMr
double m_lastMr
Definition massspectraceplotcontext.h:59
pappso::MassSpecTracePlotContext::registerJsConstructor
static void registerJsConstructor(QJSEngine *engine)
Definition massspectraceplotcontext.cpp:92
pappso::MassSpecTracePlotContext::lastZ
int lastZ
Definition massspectraceplotcontext.h:35
pappso::MassSpecTracePlotContext::m_lastTicIntensity
double m_lastTicIntensity
Definition massspectraceplotcontext.h:58
config.h
export-import-config.h
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition export-import-config.h:14
PAPPSO_REGISTER_JS_CLASS
#define PAPPSO_REGISTER_JS_CLASS(NS_IDENT, CLASS_NAME)
Definition jsclassregistrar.h:35
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39