libpappsomspp
Library for mass spectrometry
pappso::ColorMapPlotConfig Struct Reference

#include <colormapplotconfig.h>

Public Member Functions

 ColorMapPlotConfig ()
 
 ColorMapPlotConfig (const ColorMapPlotConfig &other)
 
 ColorMapPlotConfig (DataKind x_axis_data_kind, DataKind y_axis_data_kind, AxisScale x_axis_scale, AxisScale y_axis_scale, AxisScale z_axis_scale, 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, double min_z_value, double max_z_value)
 
ColorMapPlotConfigoperator= (const ColorMapPlotConfig &other)
 
QString toString () const
 

Public Attributes

DataKind xAxisDataKind = DataKind::unset
 
DataKind yAxisDataKind = DataKind::unset
 
AxisScale xAxisScale = AxisScale::orig
 
AxisScale yAxisScale = AxisScale::orig
 
AxisScale zAxisScale = AxisScale::orig
 
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()
 
double minZValue = std::numeric_limits<double>::max()
 
double maxZValue = std::numeric_limits<double>::min()
 

Detailed Description

Definition at line 22 of file colormapplotconfig.h.

Constructor & Destructor Documentation

◆ ColorMapPlotConfig() [1/3]

pappso::ColorMapPlotConfig::ColorMapPlotConfig ( )

Definition at line 16 of file colormapplotconfig.cpp.

17 {
18 }

◆ ColorMapPlotConfig() [2/3]

pappso::ColorMapPlotConfig::ColorMapPlotConfig ( const ColorMapPlotConfig other)

Definition at line 60 of file colormapplotconfig.cpp.

61 {
62  xAxisDataKind = other.xAxisDataKind;
63  yAxisDataKind = other.yAxisDataKind;
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 }

References keyCellCount, maxKeyValue, maxMzValue, maxZValue, minKeyValue, minMzValue, minZValue, mzCellCount, xAxisDataKind, xAxisScale, yAxisDataKind, yAxisScale, and zAxisScale.

◆ ColorMapPlotConfig() [3/3]

pappso::ColorMapPlotConfig::ColorMapPlotConfig ( DataKind  x_axis_data_kind,
DataKind  y_axis_data_kind,
AxisScale  x_axis_scale,
AxisScale  y_axis_scale,
AxisScale  z_axis_scale,
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,
double  min_z_value,
double  max_z_value 
)

Definition at line 20 of file colormapplotconfig.cpp.

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 }

Member Function Documentation

◆ operator=()

ColorMapPlotConfig & pappso::ColorMapPlotConfig::operator= ( const ColorMapPlotConfig other)

Definition at line 84 of file colormapplotconfig.cpp.

85 {
86  if(this == &other)
87  return *this;
88 
89  xAxisDataKind = other.xAxisDataKind;
90  yAxisDataKind = other.yAxisDataKind;
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 }

References keyCellCount, maxKeyValue, maxMzValue, maxZValue, minKeyValue, minMzValue, minZValue, mzCellCount, xAxisDataKind, xAxisScale, yAxisDataKind, yAxisScale, and zAxisScale.

◆ toString()

QString pappso::ColorMapPlotConfig::toString ( ) const

Definition at line 113 of file colormapplotconfig.cpp.

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 }

References keyCellCount, maxKeyValue, maxMzValue, maxZValue, minKeyValue, minMzValue, minZValue, mzCellCount, xAxisDataKind, xAxisScale, yAxisDataKind, yAxisScale, and zAxisScale.

Referenced by pappso::BaseColorMapPlotWidget::zAxisFilterHighPassPercentage().

Member Data Documentation

◆ keyCellCount

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

◆ maxKeyValue

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

◆ maxMzValue

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

◆ maxZValue

◆ minKeyValue

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

◆ minMzValue

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

◆ minZValue

◆ mzCellCount

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

◆ xAxisDataKind

◆ xAxisScale

◆ yAxisDataKind

◆ yAxisScale

◆ zAxisScale


The documentation for this struct was generated from the following files: