libpappsomspp
Library for mass spectrometry
massdatacombinerinterface.cpp
Go to the documentation of this file.
1
2
/////////////////////// StdLib includes
3
4
5
/////////////////////// Qt includes
6
7
8
/////////////////////// pappsomspp includes
9
10
11
/////////////////////// Local includes
12
#include "
massdatacombinerinterface.h
"
13
14
15
namespace
pappso
16
{
17
18
19
MassDataCombinerInterface::MassDataCombinerInterface
(
int
decimal_places)
20
: m_decimalPlaces(decimal_places)
21
{
22
}
23
24
25
MassDataCombinerInterface::~MassDataCombinerInterface
()
26
{
27
}
28
29
void
30
MassDataCombinerInterface::setDecimalPlaces
(
int
value)
31
{
32
m_decimalPlaces
= value;
33
}
34
35
36
int
37
MassDataCombinerInterface::getDecimalPlaces
()
const
38
{
39
return
m_decimalPlaces
;
40
}
41
42
43
void
44
MassDataCombinerInterface::setFilterResampleKeepXRange
(
45
const
FilterResampleKeepXRange
&range)
46
{
47
m_filterXRange
= range;
48
m_isApplyXRangeFilter
=
true
;
49
}
50
51
52
MapTrace
&
53
MassDataCombinerInterface::combine
(
MapTrace
&map_trace,
54
Iterator
begin,
55
Iterator
end)
56
{
57
for
(
Iterator
iterator = begin; iterator != end; ++iterator)
58
combine
(map_trace, *(*iterator));
59
60
return
map_trace;
61
}
62
63
64
}
// namespace pappso
pappso::MassDataCombinerInterface::Iterator
std::vector< const Trace * >::const_iterator Iterator
Definition:
massdatacombinerinterface.h:39
pappso::MassDataCombinerInterface::m_decimalPlaces
int m_decimalPlaces
Number of decimals to use for the keys (x values)
Definition:
massdatacombinerinterface.h:44
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition:
aa.cpp:39
pappso::MapTrace
Definition:
maptrace.h:33
pappso::MassDataCombinerInterface::getDecimalPlaces
int getDecimalPlaces() const
Definition:
massdatacombinerinterface.cpp:37
pappso::MassDataCombinerInterface::setFilterResampleKeepXRange
void setFilterResampleKeepXRange(const FilterResampleKeepXRange &range)
Definition:
massdatacombinerinterface.cpp:44
pappso::MassDataCombinerInterface::combine
virtual MapTrace & combine(MapTrace &map_trace, const Trace &trace) const =0
pappso::MassDataCombinerInterface::m_filterXRange
FilterResampleKeepXRange m_filterXRange
Definition:
massdatacombinerinterface.h:48
pappso::MassDataCombinerInterface::MassDataCombinerInterface
MassDataCombinerInterface(int decimal_places=-1)
Definition:
massdatacombinerinterface.cpp:19
pappso::MassDataCombinerInterface::setDecimalPlaces
void setDecimalPlaces(int value)
Definition:
massdatacombinerinterface.cpp:30
pappso::FilterResampleKeepXRange
Definition:
filterresample.h:83
massdatacombinerinterface.h
pappso::MassDataCombinerInterface::~MassDataCombinerInterface
virtual ~MassDataCombinerInterface()
Definition:
massdatacombinerinterface.cpp:25
pappso::MassDataCombinerInterface::m_isApplyXRangeFilter
bool m_isApplyXRangeFilter
Definition:
massdatacombinerinterface.h:46
pappsomspp
processing
combiners
massdatacombinerinterface.cpp
Generated on Mon Dec 21 2020 17:05:07 for libpappsomspp by
1.8.20