#include <massspectrumcombiner.h>
|
| | 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 |
| |
| | 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 |
| |
Definition at line 25 of file massspectrumcombiner.h.
◆ MassSpectrumCombiner() [1/6]
| pappso::MassSpectrumCombiner::MassSpectrumCombiner |
( |
QObject * |
parent_p = nullptr | ) |
|
◆ MassSpectrumCombiner() [2/6]
| pappso::MassSpectrumCombiner::MassSpectrumCombiner |
( |
int |
decimal_places, |
|
|
QObject * |
parent_p = nullptr |
|
) |
| |
◆ MassSpectrumCombiner() [3/6]
| pappso::MassSpectrumCombiner::MassSpectrumCombiner |
( |
std::vector< pappso_double > |
bins, |
|
|
int |
decimalPlaces = -1, |
|
|
QObject * |
parent_p = nullptr |
|
) |
| |
◆ MassSpectrumCombiner() [4/6]
◆ MassSpectrumCombiner() [5/6]
| pappso::MassSpectrumCombiner::MassSpectrumCombiner |
( |
const MassSpectrumCombiner & |
other, |
|
|
QObject * |
parent_p = nullptr |
|
) |
| |
◆ MassSpectrumCombiner() [6/6]
| pappso::MassSpectrumCombiner::MassSpectrumCombiner |
( |
const MassSpectrumCombiner && |
other, |
|
|
QObject * |
parent_p = nullptr |
|
) |
| |
◆ ~MassSpectrumCombiner()
| pappso::MassSpectrumCombiner::~MassSpectrumCombiner |
( |
| ) |
|
|
virtual |
◆ binCount()
| std::size_t pappso::MassSpectrumCombiner::binCount |
( |
| ) |
const |
◆ binCountChanged
| void pappso::MassSpectrumCombiner::binCountChanged |
( |
| ) |
|
|
signal |
◆ binsAsString()
| QString pappso::MassSpectrumCombiner::binsAsString |
( |
| ) |
const |
Definition at line 113 of file massspectrumcombiner.cpp.
114{
115 QString text;
116
118 text += QString("%1\n").arg(bin, 0, 'f', 6);
119
120 text += "\n";
121
122 return text;
123}
References m_bins.
◆ findBin()
Find the bin that will contain mz.
Definition at line 105 of file massspectrumcombiner.cpp.
106{
108 return (mz <= bin);
109 });
110}
double pappso_double
A type definition for doubles.
References m_bins.
◆ getBins()
| const std::vector< pappso_double > & pappso::MassSpectrumCombiner::getBins |
( |
| ) |
const |
◆ registerJsConstructor()
| void pappso::MassSpectrumCombiner::registerJsConstructor |
( |
QJSEngine * |
engine | ) |
|
|
static |
Definition at line 126 of file massspectrumcombiner.cpp.
127{
128
129
130 if(engine == nullptr)
131 {
132 qFatal() << "Cannot register class: engine is null";
133 }
134
135
136 QJSValue jsMetaObject =
137 engine->newQMetaObject(&MassSpectrumCombiner::staticMetaObject);
138 engine->globalObject().setProperty("MassSpectrumCombiner", jsMetaObject);
139}
◆ setBins()
| void pappso::MassSpectrumCombiner::setBins |
( |
std::vector< pappso_double > |
bins | ) |
|
◆ m_bins
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().
◆ size
| int pappso::MassSpectrumCombiner::size |
|
read |
The documentation for this class was generated from the following files: