libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
massspectraceplotcontext.h
Go to the documentation of this file.
1// Copyright 2021 Filippo Rusconi
2// GPLv3+
3
4#pragma once
5
6
7/////////////////////// StdLib includes
8
9
10
11/////////////////////// Qt includes
12#include <QObject>
13#include <QQmlEngine>
14#include <QString>
15
16
17#include "pappsomspp/config.h"
19#include "baseplotcontext.h"
20
21
22/////////////////////// Local includes
23
24namespace pappso
25{
26
27 /* BEGIN CLASS JS REFERENCE
28 * namespace: pappso
29 * class name: MassSpecTracePlotContext
30 */
31
33{
34 Q_OBJECT
35 Q_PROPERTY(int lastZ MEMBER m_lastZ)
36 Q_PROPERTY(double lastMz MEMBER m_lastMz)
37 Q_PROPERTY(double lastTicIntensity MEMBER m_lastTicIntensity)
38 Q_PROPERTY(double lastMr MEMBER m_lastMr)
39 Q_PROPERTY(double lastResolvingPower MEMBER m_lastResolvingPower)
40
41 QML_ELEMENT
42
43 public:
44 Q_INVOKABLE MassSpecTracePlotContext(QObject *parent = nullptr);
45
46 virtual ~MassSpecTracePlotContext();
47
48 Q_INVOKABLE MassSpecTracePlotContext *clone(QObject *parent = nullptr);
49 Q_INVOKABLE void initialize(const BasePlotContext &other);
50 Q_INVOKABLE void initialize(const MassSpecTracePlotContext &other);
51
53 MassSpecTracePlotContext &operator=(const BasePlotContext &other) = delete;
54 MassSpecTracePlotContext &operator=(const MassSpecTracePlotContext &other) = delete;
55
56 int m_lastZ = -1;
57 double m_lastMz = std::numeric_limits<double>::min();
58 double m_lastTicIntensity = std::numeric_limits<double>::min();
59 double m_lastMr = std::numeric_limits<double>::min();
60 double m_lastResolvingPower = std::numeric_limits<double>::min();
61
62 Q_INVOKABLE QString toString() const;
63
64 static void registerJsConstructor(QJSEngine *engine);
65};
66
67 /* END CLASS JS REFERENCE
68 * namespace: pappso
69 *
70 * class name: MassSpecTracePlotContext
71 */
73
74} // namespace pappso
Q_INVOKABLE BasePlotContext(QObject *parent=nullptr)
Q_INVOKABLE MassSpecTracePlotContext * clone(QObject *parent=nullptr)
Q_INVOKABLE void initialize(const BasePlotContext &other)
Q_INVOKABLE MassSpecTracePlotContext(QObject *parent=nullptr)
static void registerJsConstructor(QJSEngine *engine)
#define PMSPP_LIB_DECL
#define PAPPSO_REGISTER_JS_CLASS(NS_IDENT, CLASS_NAME)
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39