libpappsomspp
Library for mass spectrometry
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
12 #include "../../exportinmportconfig.h"
14 
15 namespace pappso
16 {
17 
18 
20 {
21 }
22 
23 
25  const MassSpecTracePlotContext &other)
26  : BasePlotContext(other.m_baseContext),
27  m_lastZ(other.m_lastZ),
28  m_lastMz(other.m_lastMz),
29  m_lastTicIntensity(other.m_lastTicIntensity),
30  m_lastMr(other.m_lastMr),
31  m_lastResolvingPower(other.m_lastResolvingPower)
32 {
33 }
34 
35 
37 {
38 }
39 
40 
43 {
44  if(this == &other)
45  return *this;
46 
48 
49  m_lastZ = other.m_lastZ;
50  m_lastMz = other.m_lastMz;
52  m_lastMr = other.m_lastMr;
54 
55  return *this;
56 }
57 
58 
59 QString
61 {
62  QString text("Base context:\n");
63 
64  text += m_baseContext.toString();
65 
66  text += "\n";
67 
68  text += QString("last z: %1").arg(m_lastZ);
69  text += QString("last m/z: %1").arg(m_lastMz, 0, 'f', 6);
70  text += QString("last TIC intensity: %1").arg(m_lastTicIntensity, 0, 'g', 0);
71  text += QString("last Mr: %1").arg(m_lastMr, 0, 'f', 6);
72  text +=
73  QString("last resolving power: %1").arg(m_lastResolvingPower, 0, 'g', 0);
74 
75  text += "\n";
76 
77  return text;
78 }
79 
80 
81 } // namespace pappso
82 
MassSpecTracePlotContext & operator=(const MassSpecTracePlotContext &other)
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition: aa.cpp:39