Loading...
Searching...
No Matches
massdatacombinerinterface.h
Go to the documentation of this file.
#pragma once
/////////////////////// StdLib includes
/////////////////////// Qt includes
/////////////////////// pappsomspp includes
/////////////////////// Local includes
#include "../../types.h"
#include "selectionpolygon.h"
#include "../../trace/maptrace.h"
#include "../../massspectrum/qualifiedmassspectrum.h"
#include "../filters/filterresample.h"
#include "pappsomspp/export-import-config.h"
namespace pappso
{
class PMSPP_LIB_DECL MassDataCombinerInterface
{
public:
MassDataCombinerInterface(int decimal_places = -1);
virtual ~MassDataCombinerInterface();
void setDecimalPlaces(int value);
int getDecimalPlaces() const;
using Iterator = std::vector<const Trace *>::const_iterator;
virtual MapTrace &combine(MapTrace &map_trace, Iterator begin, Iterator end);
virtual MapTrace &combine(MapTrace &map_trace, const Trace &trace) const = 0;
virtual MapTrace &combine(MapTrace &map_trace_out,
const MapTrace &map_trace_in) const = 0;
protected:
//! Number of decimals to use for the keys (x values)
int m_decimalPlaces = -1;
};
} // namespace pappso
pappso::MapTrace
Definition maptrace.h:36
pappso::MassDataCombinerInterface::Iterator
std::vector< const Trace * >::const_iterator Iterator
Definition massdatacombinerinterface.h:35
pappso::MassDataCombinerInterface::combine
virtual MapTrace & combine(MapTrace &map_trace, Iterator begin, Iterator end)
Definition massdatacombinerinterface.cpp:46
pappso::MassDataCombinerInterface::getDecimalPlaces
int getDecimalPlaces() const
Definition massdatacombinerinterface.cpp:38
pappso::MassDataCombinerInterface::m_decimalPlaces
int m_decimalPlaces
Number of decimals to use for the keys (x values).
Definition massdatacombinerinterface.h:44
pappso::MassDataCombinerInterface::setDecimalPlaces
void setDecimalPlaces(int value)
Definition massdatacombinerinterface.cpp:31
pappso::MassDataCombinerInterface::MassDataCombinerInterface
MassDataCombinerInterface(int decimal_places=-1)
Definition massdatacombinerinterface.cpp:19
pappso::MassDataCombinerInterface::combine
virtual MapTrace & combine(MapTrace &map_trace_out, const MapTrace &map_trace_in) const =0
pappso::MassDataCombinerInterface::combine
virtual MapTrace & combine(MapTrace &map_trace, const Trace &trace) const =0
pappso::Trace
A simple container of DataPoint instances.
Definition trace.h:152
export-import-config.h
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition export-import-config.h:14
filterresample.h
maptrace.h
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39
qualifiedmassspectrum.h
selectionpolygon.h
types.h