libpappsomspp
Library for mass spectrometry
pappso::ColorMapPlotConfig Struct Reference

#include <colormapplotconfig.h>

Public Member Functions

 ColorMapPlotConfig ()
 
 ColorMapPlotConfig (DataKind x_axis_data_kind, DataKind y_axis_data_kind, std::size_t key_cell_count, std::size_t mz_cell_count, double min_key_value, double max_key_value, double min_mz_value, double max_mz_value)
 
QString toString () const
 

Public Attributes

DataKind xAxisDataKind = DataKind::unset
 
DataKind yAxisDataKind = DataKind::unset
 
std::size_t keyCellCount = 0
 
std::size_t mzCellCount = 0
 
double minKeyValue = std::numeric_limits<double>::max()
 
double maxKeyValue = std::numeric_limits<double>::min()
 
double minMzValue = std::numeric_limits<double>::max()
 
double maxMzValue = std::numeric_limits<double>::min()
 

Detailed Description

Definition at line 21 of file colormapplotconfig.h.

Constructor & Destructor Documentation

◆ ColorMapPlotConfig() [1/2]

pappso::ColorMapPlotConfig::ColorMapPlotConfig ( )

Definition at line 16 of file colormapplotconfig.cpp.

17 {
18 }

◆ ColorMapPlotConfig() [2/2]

pappso::ColorMapPlotConfig::ColorMapPlotConfig ( DataKind  x_axis_data_kind,
DataKind  y_axis_data_kind,
std::size_t  key_cell_count,
std::size_t  mz_cell_count,
double  min_key_value,
double  max_key_value,
double  min_mz_value,
double  max_mz_value 
)

Definition at line 20 of file colormapplotconfig.cpp.

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 }

Member Function Documentation

◆ toString()

QString pappso::ColorMapPlotConfig::toString ( ) const

Definition at line 41 of file colormapplotconfig.cpp.

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 }

References keyCellCount, maxKeyValue, maxMzValue, minKeyValue, minMzValue, mzCellCount, xAxisDataKind, and yAxisDataKind.

Member Data Documentation

◆ keyCellCount

std::size_t pappso::ColorMapPlotConfig::keyCellCount = 0

Definition at line 26 of file colormapplotconfig.h.

Referenced by pappso::BaseColorMapPlotWidget::addColorMap(), and toString().

◆ maxKeyValue

double pappso::ColorMapPlotConfig::maxKeyValue = std::numeric_limits<double>::min()

Definition at line 30 of file colormapplotconfig.h.

Referenced by pappso::BaseColorMapPlotWidget::addColorMap(), and toString().

◆ maxMzValue

double pappso::ColorMapPlotConfig::maxMzValue = std::numeric_limits<double>::min()

Definition at line 33 of file colormapplotconfig.h.

Referenced by pappso::BaseColorMapPlotWidget::addColorMap(), and toString().

◆ minKeyValue

double pappso::ColorMapPlotConfig::minKeyValue = std::numeric_limits<double>::max()

Definition at line 29 of file colormapplotconfig.h.

Referenced by pappso::BaseColorMapPlotWidget::addColorMap(), and toString().

◆ minMzValue

double pappso::ColorMapPlotConfig::minMzValue = std::numeric_limits<double>::max()

Definition at line 32 of file colormapplotconfig.h.

Referenced by pappso::BaseColorMapPlotWidget::addColorMap(), and toString().

◆ mzCellCount

std::size_t pappso::ColorMapPlotConfig::mzCellCount = 0

Definition at line 27 of file colormapplotconfig.h.

Referenced by pappso::BaseColorMapPlotWidget::addColorMap(), and toString().

◆ xAxisDataKind

DataKind pappso::ColorMapPlotConfig::xAxisDataKind = DataKind::unset

◆ yAxisDataKind

DataKind pappso::ColorMapPlotConfig::yAxisDataKind = DataKind::unset

The documentation for this struct was generated from the following files:
pappso::ColorMapPlotConfig::keyCellCount
std::size_t keyCellCount
Definition: colormapplotconfig.h:26
pappso::ColorMapPlotConfig::yAxisDataKind
DataKind yAxisDataKind
Definition: colormapplotconfig.h:24
pappso::ColorMapPlotConfig::maxKeyValue
double maxKeyValue
Definition: colormapplotconfig.h:30
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