libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
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 orig_min_z_value, double orig_max_z_value)
 
ColorMapPlotConfigoperator= (const ColorMapPlotConfig &other)
 
void setOrigMinZValue (double value)
 
void setOrigAndLastMinZValue (double value)
 
void setOrigMaxZValue (double value)
 
void setOrigAndLastMaxZValue (double value)
 
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 lastMinZFilterThresholdPercentage = 0.0
 
double lastMaxZFilterThresholdPercentage = 0.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>::max()
 
double origMinZValue = std::numeric_limits<double>::max()
 
double lastMinZValue = std::numeric_limits<double>::max()
 
double origMaxZValue = std::numeric_limits<double>::min()
 
double lastMaxZValue = 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 65 of file colormapplotconfig.cpp.

66{
67 xAxisDataKind = other.xAxisDataKind;
68 yAxisDataKind = other.yAxisDataKind;
69
70 xAxisScale = other.xAxisScale;
71 yAxisScale = other.yAxisScale;
72 zAxisScale = other.zAxisScale;
73
74 keyCellCount = other.keyCellCount;
75 mzCellCount = other.mzCellCount;
76
77 minKeyValue = other.minKeyValue;
78 maxKeyValue = other.maxKeyValue;
79
80 minMzValue = other.minMzValue;
81 maxMzValue = other.maxMzValue;
82
83 origMinZValue = other.origMinZValue;
84 lastMinZValue = other.lastMinZValue;
85
86 origMaxZValue = other.origMaxZValue;
87 lastMaxZValue = other.lastMaxZValue;
88}

References keyCellCount, lastMaxZValue, lastMinZValue, maxKeyValue, maxMzValue, minKeyValue, minMzValue, mzCellCount, origMaxZValue, origMinZValue, 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  orig_min_z_value,
double  orig_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 // Initialize both orig and last to the same value.
55 origMinZValue(orig_min_z_value),
56 lastMinZValue(orig_min_z_value),
57
58 // Initialize both orig and last to the same value.
59 origMaxZValue(orig_max_z_value),
60 lastMaxZValue(orig_max_z_value)
61{
62}

Member Function Documentation

◆ operator=()

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

Definition at line 92 of file colormapplotconfig.cpp.

93{
94 if(this == &other)
95 return *this;
96
97 xAxisDataKind = other.xAxisDataKind;
98 yAxisDataKind = other.yAxisDataKind;
99
100 xAxisScale = other.xAxisScale;
101 yAxisScale = other.yAxisScale;
102 zAxisScale = other.zAxisScale;
103
104 keyCellCount = other.keyCellCount;
105 mzCellCount = other.mzCellCount;
106
107 minKeyValue = other.minKeyValue;
108 maxKeyValue = other.maxKeyValue;
109
110 minMzValue = other.minMzValue;
111 maxMzValue = other.maxMzValue;
112
113 origMinZValue = other.origMinZValue;
114 lastMinZValue = other.lastMinZValue;
115
116 origMaxZValue = other.origMaxZValue;
117 lastMaxZValue = other.lastMaxZValue;
118
119 return *this;
120}

References keyCellCount, lastMaxZValue, lastMinZValue, maxKeyValue, maxMzValue, minKeyValue, minMzValue, mzCellCount, origMaxZValue, origMinZValue, xAxisDataKind, xAxisScale, yAxisDataKind, yAxisScale, and zAxisScale.

◆ setOrigAndLastMaxZValue()

void pappso::ColorMapPlotConfig::setOrigAndLastMaxZValue ( double  value)

◆ setOrigAndLastMinZValue()

void pappso::ColorMapPlotConfig::setOrigAndLastMinZValue ( double  value)

◆ setOrigMaxZValue()

void pappso::ColorMapPlotConfig::setOrigMaxZValue ( double  value)

Definition at line 138 of file colormapplotconfig.cpp.

139{
140 origMaxZValue = value;
141}

References origMaxZValue.

◆ setOrigMinZValue()

void pappso::ColorMapPlotConfig::setOrigMinZValue ( double  value)

Definition at line 124 of file colormapplotconfig.cpp.

125{
126 origMinZValue = value;
127}

References origMinZValue.

◆ toString()

QString pappso::ColorMapPlotConfig::toString ( ) const

Definition at line 152 of file colormapplotconfig.cpp.

153{
154 QString text = QString("xAxisDataKind: %1 - yAxisDataKind: %2")
155 .arg(static_cast<int>(xAxisDataKind))
156 .arg(static_cast<int>(yAxisDataKind));
157
158 text += QString("xAxisScale: %1 - yAxisScale: %2 - zAxisScale: %3 - ")
159 .arg(static_cast<int>(xAxisScale))
160 .arg(static_cast<int>(yAxisScale))
161 .arg(static_cast<int>(zAxisScale));
162
163 text += QString("keyCellCount: %1 - mzCellCount: %2 - ")
164 .arg(mzCellCount)
165 .arg(minKeyValue);
166
167 text += QString(
168 "minKeyValue: %8 - maxKeyValue: %9 - minMzValue: %10 - maxMzValue: "
169 "%11 - lastMinZValue: %12 - lastMaxZValue: %13")
170 .arg(keyCellCount)
171 .arg(maxKeyValue)
172 .arg(minMzValue)
173 .arg(maxMzValue)
174 .arg(lastMinZValue)
175 .arg(lastMaxZValue);
176
177 return text;
178}

References keyCellCount, lastMaxZValue, lastMinZValue, maxKeyValue, maxMzValue, minKeyValue, minMzValue, mzCellCount, xAxisDataKind, xAxisScale, yAxisDataKind, yAxisScale, and zAxisScale.

Member Data Documentation

◆ keyCellCount

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

◆ lastMaxZFilterThresholdPercentage

double pappso::ColorMapPlotConfig::lastMaxZFilterThresholdPercentage = 0.0

Definition at line 35 of file colormapplotconfig.h.

◆ lastMaxZValue

◆ lastMinZFilterThresholdPercentage

double pappso::ColorMapPlotConfig::lastMinZFilterThresholdPercentage = 0.0

Definition at line 34 of file colormapplotconfig.h.

◆ lastMinZValue

◆ maxKeyValue

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

◆ maxMzValue

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

◆ minKeyValue

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

◆ minMzValue

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

◆ mzCellCount

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

◆ origMaxZValue

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

◆ origMinZValue

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

◆ xAxisDataKind

◆ xAxisScale

◆ yAxisDataKind

◆ yAxisScale

◆ zAxisScale


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