|
libpappsomspp
Library for mass spectrometry
|
#include <massspectrumcombiner.h>
Signals | |
| void | binCountChanged () |
Public Member Functions | |
| MassSpectrumCombiner (QObject *parent_p=nullptr) | |
| Construct an uninitialized instance. | |
| MassSpectrumCombiner (int decimal_places, QObject *parent_p=nullptr) | |
| MassSpectrumCombiner (std::vector< pappso_double > bins, int decimalPlaces=-1, QObject *parent_p=nullptr) | |
| MassSpectrumCombiner (MassSpectrumCombinerCstSPtr other, QObject *parent_p=nullptr) | |
| MassSpectrumCombiner (const MassSpectrumCombiner &other, QObject *parent_p=nullptr) | |
| MassSpectrumCombiner (const MassSpectrumCombiner &&other, QObject *parent_p=nullptr) | |
| virtual | ~MassSpectrumCombiner () |
| Destruct the instance. | |
| Q_INVOKABLE void | setBins (std::vector< pappso_double > bins) |
| Q_INVOKABLE const std::vector< pappso_double > & | getBins () const |
| Q_INVOKABLE std::size_t | binCount () const |
| Q_INVOKABLE QString | binsAsString () const |
| Public Member Functions inherited from pappso::MassDataCombinerInterface | |
| MassDataCombinerInterface (int decimal_places=-1) | |
| virtual | ~MassDataCombinerInterface () |
| void | setDecimalPlaces (int value) |
| int | getDecimalPlaces () const |
| 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 |
Static Public Member Functions | |
| static void | registerJsConstructor (QJSEngine *engine) |
Protected Member Functions | |
| std::vector< pappso_double >::iterator | findBin (pappso_double mz) |
Find the bin that will contain mz. | |
Protected Attributes | |
| std::vector< pappso_double > | m_bins |
| Protected Attributes inherited from pappso::MassDataCombinerInterface | |
| int | m_decimalPlaces = -1 |
| Number of decimals to use for the keys (x values). | |
Properties | |
| int | size |
Additional Inherited Members | |
| Public Types inherited from pappso::MassDataCombinerInterface | |
| using | Iterator = std::vector<const Trace *>::const_iterator |
Definition at line 25 of file massspectrumcombiner.h.
| pappso::MassSpectrumCombiner::MassSpectrumCombiner | ( | QObject * | parent_p = nullptr | ) |
Construct an uninitialized instance.
Definition at line 19 of file massspectrumcombiner.cpp.
Referenced by MassSpectrumCombiner(), MassSpectrumCombiner(), pappso::MassSpectrumMinusCombiner::MassSpectrumMinusCombiner(), pappso::MassSpectrumMinusCombiner::MassSpectrumMinusCombiner(), pappso::MassSpectrumMinusCombiner::MassSpectrumMinusCombiner(), pappso::MassSpectrumMinusCombiner::MassSpectrumMinusCombiner(), pappso::MassSpectrumPlusCombiner::MassSpectrumPlusCombiner(), pappso::MassSpectrumPlusCombiner::MassSpectrumPlusCombiner(), pappso::MassSpectrumPlusCombiner::MassSpectrumPlusCombiner(), and pappso::MassSpectrumPlusCombiner::MassSpectrumPlusCombiner().
| pappso::MassSpectrumCombiner::MassSpectrumCombiner | ( | int | decimal_places, |
| QObject * | parent_p = nullptr ) |
Definition at line 23 of file massspectrumcombiner.cpp.
References pappso::MassDataCombinerInterface::MassDataCombinerInterface().
| pappso::MassSpectrumCombiner::MassSpectrumCombiner | ( | std::vector< pappso_double > | bins, |
| int | decimalPlaces = -1, | ||
| QObject * | parent_p = nullptr ) |
Definition at line 29 of file massspectrumcombiner.cpp.
References pappso::MassDataCombinerInterface::MassDataCombinerInterface(), and m_bins.
| pappso::MassSpectrumCombiner::MassSpectrumCombiner | ( | MassSpectrumCombinerCstSPtr | other, |
| QObject * | parent_p = nullptr ) |
Definition at line 57 of file massspectrumcombiner.cpp.
References pappso::MassDataCombinerInterface::MassDataCombinerInterface(), m_bins, and pappso::MassDataCombinerInterface::m_decimalPlaces.
| pappso::MassSpectrumCombiner::MassSpectrumCombiner | ( | const MassSpectrumCombiner & | other, |
| QObject * | parent_p = nullptr ) |
Definition at line 37 of file massspectrumcombiner.cpp.
References pappso::MassDataCombinerInterface::MassDataCombinerInterface(), MassSpectrumCombiner(), m_bins, and pappso::MassDataCombinerInterface::m_decimalPlaces.
| pappso::MassSpectrumCombiner::MassSpectrumCombiner | ( | const MassSpectrumCombiner && | other, |
| QObject * | parent_p = nullptr ) |
References MassSpectrumCombiner(), binCount(), binsAsString(), getBins(), registerJsConstructor(), and setBins().
|
virtual |
| std::size_t pappso::MassSpectrumCombiner::binCount | ( | ) | const |
Definition at line 98 of file massspectrumcombiner.cpp.
References m_bins.
Referenced by MassSpectrumCombiner().
|
signal |
Referenced by setBins().
| QString pappso::MassSpectrumCombiner::binsAsString | ( | ) | const |
Definition at line 113 of file massspectrumcombiner.cpp.
References m_bins.
Referenced by MassSpectrumCombiner().
|
protected |
Find the bin that will contain mz.
Definition at line 105 of file massspectrumcombiner.cpp.
References m_bins.
| const std::vector< pappso_double > & pappso::MassSpectrumCombiner::getBins | ( | ) | const |
Definition at line 92 of file massspectrumcombiner.cpp.
References m_bins.
Referenced by MassSpectrumCombiner().
|
static |
Definition at line 126 of file massspectrumcombiner.cpp.
Referenced by MassSpectrumCombiner().
| void pappso::MassSpectrumCombiner::setBins | ( | std::vector< pappso_double > | bins | ) |
Definition at line 71 of file massspectrumcombiner.cpp.
References binCountChanged(), and m_bins.
Referenced by MassSpectrumCombiner().
|
protected |
Definition at line 60 of file massspectrumcombiner.h.
Referenced by MassSpectrumCombiner(), MassSpectrumCombiner(), MassSpectrumCombiner(), ~MassSpectrumCombiner(), binCount(), binsAsString(), pappso::MassSpectrumMinusCombiner::combine(), pappso::MassSpectrumPlusCombiner::combine(), findBin(), getBins(), pappso::MassSpectrumMinusCombiner::operator=(), pappso::MassSpectrumPlusCombiner::operator=(), and setBins().
|
read |
Definition at line 30 of file massspectrumcombiner.h.