libpappsomspp
Library for mass spectrometry
colormapplotconfig.cpp
Go to the documentation of this file.
1 // Copyright Filippo Rusconi, GPLv3+
2 
3 /////////////////////// StdLib includes
4 
5 
6 /////////////////////// Qt includes
7 
8 
9 /////////////////////// Local includes
10 #include "colormapplotconfig.h"
11 
12 
13 namespace pappso
14 {
15 
17 {
18 }
19 
21  DataKind y_axis_data_kind,
22 
23  AxisScale x_axis_scale,
24  AxisScale y_axis_scale,
25  AxisScale z_axis_scale,
26 
27  std::size_t key_cell_count,
28  std::size_t mz_cell_count,
29 
30  double min_key_value,
31  double max_key_value,
32 
33  double min_mz_value,
34  double max_mz_value,
35 
36  double min_z_value,
37  double max_z_value)
38  : xAxisDataKind(x_axis_data_kind),
39  yAxisDataKind(y_axis_data_kind),
40 
41  xAxisScale(x_axis_scale),
42  yAxisScale(y_axis_scale),
43  zAxisScale(z_axis_scale),
44 
45  keyCellCount(key_cell_count),
46  mzCellCount(mz_cell_count),
47 
48  minKeyValue(min_key_value),
49  maxKeyValue(max_key_value),
50 
51  minMzValue(min_mz_value),
52  maxMzValue(max_mz_value),
53 
54  minZValue(min_z_value),
55  maxZValue(max_z_value)
56 {
57 }
58 
59 
61 {
64 
65  xAxisScale = other.xAxisScale;
66  yAxisScale = other.yAxisScale;
67  zAxisScale = other.zAxisScale;
68 
69  keyCellCount = other.keyCellCount;
70  mzCellCount = other.mzCellCount;
71 
72  minKeyValue = other.minKeyValue;
73  maxKeyValue = other.maxKeyValue;
74 
75  minMzValue = other.minMzValue;
76  maxMzValue = other.maxMzValue;
77 
78  minZValue = other.minZValue;
79  maxZValue = other.maxZValue;
80 }
81 
82 
85 {
86  if(this == &other)
87  return *this;
88 
91 
92  xAxisScale = other.xAxisScale;
93  yAxisScale = other.yAxisScale;
94  zAxisScale = other.zAxisScale;
95 
96  keyCellCount = other.keyCellCount;
97  mzCellCount = other.mzCellCount;
98 
99  minKeyValue = other.minKeyValue;
100  maxKeyValue = other.maxKeyValue;
101 
102  minMzValue = other.minMzValue;
103  maxMzValue = other.maxMzValue;
104 
105  minZValue = other.minZValue;
106  maxZValue = other.maxZValue;
107 
108  return *this;
109 }
110 
111 
112 QString
114 {
115  QString text = QString("xAxisDataKind: %1 - yAxisDataKind: %2")
116  .arg(static_cast<int>(xAxisDataKind))
117  .arg(static_cast<int>(yAxisDataKind));
118 
119  text += QString("xAxisScale: %1 - yAxisScale: %2 - zAxisScale: %3 - ")
120  .arg(static_cast<int>(xAxisScale))
121  .arg(static_cast<int>(yAxisScale))
122  .arg(static_cast<int>(zAxisScale));
123 
124  text += QString("keyCellCount: %1 - mzCellCount: %2 - ")
125  .arg(mzCellCount)
126  .arg(minKeyValue);
127 
128  text += QString(
129  "minKeyValue: %8 - maxKeyValue: %9 - minMzValue: %10 - maxMzValue: "
130  "%11 - minZValue: %12 - maxZValue: %13")
131  .arg(keyCellCount)
132  .arg(maxKeyValue)
133  .arg(minMzValue)
134  .arg(maxMzValue)
135  .arg(minZValue)
136  .arg(maxZValue);
137 
138  return text;
139 }
140 
141 } // namespace pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition: aa.cpp:39
AxisScale
Definition: types.h:189
DataKind
Definition: types.h:171
ColorMapPlotConfig & operator=(const ColorMapPlotConfig &other)