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  std::size_t key_cell_count,
23  std::size_t mz_cell_count,
24  double min_key_value,
25  double max_key_value,
26  double min_mz_value,
27  double max_mz_value)
28  : xAxisDataKind(x_axis_data_kind),
29  yAxisDataKind(y_axis_data_kind),
30  keyCellCount(key_cell_count),
31  mzCellCount(mz_cell_count),
32  minKeyValue(min_key_value),
33  maxKeyValue(max_key_value),
34  minMzValue(min_mz_value),
35  maxMzValue(max_mz_value)
36 {
37 }
38 
39 
40 QString
42 {
43  QString text = QString(
44  "xAxisDataKind: %1 - yAxisDataKind: %2 - "
45  "keyCellCount: %3 - mzCellCount: %4 - minKeyValue: %5 - "
46  "maxKeyValue: %6 - "
47  "minMzValue: %7 - maxMzValue: %8")
48  .arg(static_cast<int>(xAxisDataKind))
49  .arg(static_cast<int>(yAxisDataKind))
50  .arg(keyCellCount)
51  .arg(mzCellCount)
52  .arg(minKeyValue)
53  .arg(maxKeyValue)
54  .arg(minMzValue)
55  .arg(maxMzValue);
56 
57  return text;
58 }
59 
60 } // namespace pappso
pappso::ColorMapPlotConfig::keyCellCount
std::size_t keyCellCount
Definition: colormapplotconfig.h:26
pappso::ColorMapPlotConfig::ColorMapPlotConfig
ColorMapPlotConfig()
Definition: colormapplotconfig.cpp:16
pappso::ColorMapPlotConfig::yAxisDataKind
DataKind yAxisDataKind
Definition: colormapplotconfig.h:24
colormapplotconfig.h
pappso::ColorMapPlotConfig::toString
QString toString() const
Definition: colormapplotconfig.cpp:41
pappso::ColorMapPlotConfig::maxKeyValue
double maxKeyValue
Definition: colormapplotconfig.h:30
pappso
Definition: aa.cpp:38
pappso::DataKind
DataKind
Definition: types.h:191
pappso::ColorMapPlotConfig::minKeyValue
double minKeyValue
Definition: colormapplotconfig.h:29
pappso::ColorMapPlotConfig::xAxisDataKind
DataKind xAxisDataKind
Definition: colormapplotconfig.h:23
pappso::ColorMapPlotConfig::maxMzValue
double maxMzValue
Definition: colormapplotconfig.h:33
pappso::ColorMapPlotConfig::minMzValue
double minMzValue
Definition: colormapplotconfig.h:32
pappso::ColorMapPlotConfig::mzCellCount
std::size_t mzCellCount
Definition: colormapplotconfig.h:27