libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
massspectraceplotcontext.cpp
Go to the documentation of this file.
1// Copyright 2021 Filippo Rusconi
2// GPLv3+
3
4/////////////////////// StdLib includes
5
6
7/////////////////////// Qt includes
8#include <QString>
9
10
11/////////////////////// Local includes
13
14namespace pappso
15{
16
17
21
31
35
41
42void
47
48void
59
62{
64
65 return *this;
66}
67
70{
71 initialize(other);
72
73 return *this;
74}
75
76void
78{
79 m_lastZ = std::numeric_limits<quint16>::max();
80 m_lastMz = qQNaN();
81 m_lastMr = qQNaN();
82}
83
84QString
86{
87 QString text("Base context:\n");
88
90
91 text += "\n";
92
93 text += "Mass spectrum trace plot context\n";
94
95 text += QString("last z: %1").arg(m_lastZ);
96 text += QString(" -- last m/z: %1").arg(m_lastMz, 0, 'f', 6);
97 text += QString(" -- last TIC intensity: %1").arg(m_lastTicIntensity, 0, 'f', 0);
98 text += QString(" -- last Mr: %1").arg(m_lastMr, 0, 'f', 6);
99 text += QString(" -- last resolving power: %1").arg(m_lastResolvingPower, 0, 'f', 0);
100
101 text += "\n";
102
103 return text;
104}
105
106} // namespace pappso
void initialize(const BasePlotContext &other)
void initialize(const BasePlotContext &other)
MassSpecTracePlotContext & operator=(const BasePlotContext &other)
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39