libpappsomspp
Library for mass spectrometry
massdatacombinerinterface.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 /////////////////////// StdLib includes
5 
6 
7 /////////////////////// Qt includes
8 
9 
10 /////////////////////// pappsomspp includes
11 
12 
13 /////////////////////// Local includes
14 #include "../../trace/maptrace.h"
15 #include "../filters/filterresample.h"
16 #include "../../exportinmportconfig.h"
17 
18 
19 namespace pappso
20 {
21 
22 
24 {
25 
26  public:
27  MassDataCombinerInterface(int decimal_places = -1);
28  virtual ~MassDataCombinerInterface();
29 
30  void setDecimalPlaces(int value);
31  int getDecimalPlaces() const;
32 
33  void setFilterResampleKeepXRange(const FilterResampleKeepXRange &range);
34 
35  virtual MapTrace &combine(MapTrace &map_trace, const Trace &trace) const = 0;
36  virtual MapTrace &combine(MapTrace &map_trace_out,
37  const MapTrace &map_trace_in) const = 0;
38 
39  using Iterator = std::vector<const Trace *>::const_iterator;
40  virtual MapTrace &combine(MapTrace &map_trace, Iterator begin, Iterator end);
41 
42  protected:
43  //! Number of decimals to use for the keys (x values)
44  int m_decimalPlaces = -1;
45 
46  bool m_isApplyXRangeFilter = false;
47 
49 };
50 
51 
52 } // namespace pappso
pappso::MassDataCombinerInterface::Iterator
std::vector< const Trace * >::const_iterator Iterator
Definition: massdatacombinerinterface.h:39
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition: exportinmportconfig.h:14
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks
Definition: aa.cpp:39
pappso::MassDataCombinerInterface
Definition: massdatacombinerinterface.h:24
pappso::MapTrace
Definition: maptrace.h:33
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:132
pappso::MassDataCombinerInterface::m_filterXRange
FilterResampleKeepXRange m_filterXRange
Definition: massdatacombinerinterface.h:48
pappso::MassDataCombinerInterface::combine
virtual MapTrace & combine(MapTrace &map_trace_out, const MapTrace &map_trace_in) const =0
pappso::FilterResampleKeepXRange
Definition: filterresample.h:82