Loading...
Searching...
No Matches
colormapplotconfig.h
Go to the documentation of this file.
// Copyright Filippo Rusconi, GPLv3+
/////////////////////// StdLib includes
#include <limits>
/////////////////////// Qt includes
#include <QString>
/////////////////////// Local includes
#include "../../core/types.h"
#include "pappsomspp/core/utils.h"
#include "pappsomspp/export-import-config.h"
#pragma once
namespace pappso
{
struct PMSPP_LIB_DECL ColorMapPlotConfig
{
Enums::DataKind xAxisDataKind = Enums::DataKind::unset;
Enums::DataKind yAxisDataKind = Enums::DataKind::unset;
Enums::AxisScale xAxisScale = Enums::AxisScale::orig;
Enums::AxisScale yAxisScale = Enums::AxisScale::orig;
Enums::AxisScale zAxisScale = Enums::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();
ColorMapPlotConfig();
ColorMapPlotConfig(const ColorMapPlotConfig &other);
ColorMapPlotConfig(Enums::DataKind x_axis_data_kind,
Enums::DataKind y_axis_data_kind,
Enums::AxisScale x_axis_scale,
Enums::AxisScale y_axis_scale,
Enums::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);
ColorMapPlotConfig &operator=(const ColorMapPlotConfig &other);
void setOrigMinZValue(double value);
void setOrigAndLastMinZValue(double value);
void setOrigMaxZValue(double value);
void setOrigAndLastMaxZValue(double value);
QString toString() const;
};
} // namespace pappso
export-import-config.h
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition export-import-config.h:14
pappso::Enums::DataKind
DataKind
Definition types.h:249
pappso::Enums::DataKind::unset
@ unset
not set
Definition types.h:250
pappso::Enums::AxisScale
AxisScale
Definition types.h:267
pappso::Enums::AxisScale::orig
@ orig
Definition types.h:269
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39
pappso::ColorMapPlotConfig::maxMzValue
double maxMzValue
Definition colormapplotconfig.h:41
pappso::ColorMapPlotConfig::xAxisScale
Enums::AxisScale xAxisScale
Definition colormapplotconfig.h:27
pappso::ColorMapPlotConfig::lastMaxZFilterThresholdPercentage
double lastMaxZFilterThresholdPercentage
Definition colormapplotconfig.h:35
pappso::ColorMapPlotConfig::setOrigAndLastMaxZValue
void setOrigAndLastMaxZValue(double value)
Definition colormapplotconfig.cpp:144
pappso::ColorMapPlotConfig::setOrigAndLastMinZValue
void setOrigAndLastMinZValue(double value)
Definition colormapplotconfig.cpp:130
pappso::ColorMapPlotConfig::origMaxZValue
double origMaxZValue
Definition colormapplotconfig.h:46
pappso::ColorMapPlotConfig::xAxisDataKind
Enums::DataKind xAxisDataKind
Definition colormapplotconfig.h:24
pappso::ColorMapPlotConfig::yAxisScale
Enums::AxisScale yAxisScale
Definition colormapplotconfig.h:28
pappso::ColorMapPlotConfig::ColorMapPlotConfig
ColorMapPlotConfig()
Definition colormapplotconfig.cpp:16
pappso::ColorMapPlotConfig::setOrigMinZValue
void setOrigMinZValue(double value)
Definition colormapplotconfig.cpp:124
pappso::ColorMapPlotConfig::origMinZValue
double origMinZValue
Definition colormapplotconfig.h:43
pappso::ColorMapPlotConfig::yAxisDataKind
Enums::DataKind yAxisDataKind
Definition colormapplotconfig.h:25
pappso::ColorMapPlotConfig::maxKeyValue
double maxKeyValue
Definition colormapplotconfig.h:38
pappso::ColorMapPlotConfig::lastMaxZValue
double lastMaxZValue
Definition colormapplotconfig.h:47
pappso::ColorMapPlotConfig::mzCellCount
std::size_t mzCellCount
Definition colormapplotconfig.h:32
pappso::ColorMapPlotConfig::lastMinZValue
double lastMinZValue
Definition colormapplotconfig.h:44
pappso::ColorMapPlotConfig::operator=
ColorMapPlotConfig & operator=(const ColorMapPlotConfig &other)
Definition colormapplotconfig.cpp:92
pappso::ColorMapPlotConfig::minKeyValue
double minKeyValue
Definition colormapplotconfig.h:37
pappso::ColorMapPlotConfig::lastMinZFilterThresholdPercentage
double lastMinZFilterThresholdPercentage
Definition colormapplotconfig.h:34
pappso::ColorMapPlotConfig::toString
QString toString() const
Definition colormapplotconfig.cpp:152
pappso::ColorMapPlotConfig::zAxisScale
Enums::AxisScale zAxisScale
Definition colormapplotconfig.h:29
pappso::ColorMapPlotConfig::setOrigMaxZValue
void setOrigMaxZValue(double value)
Definition colormapplotconfig.cpp:138
pappso::ColorMapPlotConfig::minMzValue
double minMzValue
Definition colormapplotconfig.h:40
pappso::ColorMapPlotConfig::keyCellCount
std::size_t keyCellCount
Definition colormapplotconfig.h:31
types.h
utils.h