libpappsomspp
Library for mass spectrometry
|
#include <qcpspectrum.h>
Protected Member Functions | |
QCPSpectrum (MassSpectrumWidget *parent, bool visible) | |
~QCPSpectrum () | |
void | clearData () |
void | rescale () |
void | setSpectrumP (const MassSpectrum *spectrum) |
void | addMassDelta (const PeakIonIsotopeMatch &peak_ion_match) |
void | addMs1IsotopePattern (const std::vector< pappso::PeptideNaturalIsotopeAverageSp > &isotope_mass_list, pappso_double intensity) |
void | addPeakIonIsotopeMatch (const PeakIonIsotopeMatch &peak_ion_match) |
void | highlightPrecursorPeaks (double precursor_mz, int charge, PrecisionPtr ms2_precision) |
virtual void | mouseMoveEvent (QMouseEvent *event) override |
virtual void | mousePressEvent (QMouseEvent *event) override |
virtual void | mouseReleaseEvent (QMouseEvent *event) override |
virtual void | keyPressEvent (QKeyEvent *event) override |
virtual void | keyReleaseEvent (QKeyEvent *event) override |
Private Member Functions | |
void | getNearestPeakBetween (pappso_double mz, pappso_double mouse_mz_range) const |
void | getMostIntensePeakBetween (pappso_double mz, pappso_double mouse_mz_range) const |
Q_SLOT void | setMzRangeChanged (QCPRange range) |
Private Attributes | |
MassSpectrumWidget * | _parent |
const MassSpectrum * | _p_spectrum = nullptr |
QCPRange | _mz_range |
QCPRange | _intensity_range |
QCPRange | _mass_delta_range |
QCPBars * | _p_peak_bars |
QCPBars * | _p_peak_bars_isotope |
QCPBars * | mp_peak_bars_precursor |
std::map< PeptideIon, QCPBars * > | _map_ion_type_bars |
QCPAxisRect * | _p_delta_axis_rect |
QCPGraph * | _p_delta_graph |
double | _bar_width = 0.5 |
bool | _click = false |
bool | _control_key = false |
pappso::pappso_double | _old_x |
pappso::pappso_double | _old_y |
Friends | |
class | MassSpectrumWidget |
Definition at line 45 of file qcpspectrum.h.
|
protected |
< Cter amino ions
< Cter amino ions + NH3 loss
< Cter amino ions + H2O loss
< Cter carbocations
Definition at line 37 of file qcpspectrum.cpp.
References _bar_width, _intensity_range, _map_ion_type_bars, _mass_delta_range, _mz_range, _p_delta_axis_rect, _p_delta_graph, _p_peak_bars, _p_peak_bars_isotope, _parent, pappso::a, pappso::ao, pappso::astar, pappso::b, pappso::bo, pappso::bp, pappso::bstar, pappso::c, pappso::PeptideFragmentIon::getPeptideIonColor(), mp_peak_bars_precursor, setMzRangeChanged(), pappso::x, pappso::y, pappso::yo, pappso::yp, pappso::ystar, and pappso::z.
|
protected |
Definition at line 154 of file qcpspectrum.cpp.
|
protected |
Definition at line 454 of file qcpspectrum.cpp.
References _mass_delta_range, _p_delta_axis_rect, _p_delta_graph, pappso::PeakIonMatch::getPeak(), pappso::PeakIonIsotopeMatch::getPeptideNaturalIsotopeAverageSp(), and pappso::DataPoint::x.
Referenced by pappso::MassSpectrumWidget::plot().
|
protected |
Definition at line 482 of file qcpspectrum.cpp.
References _p_peak_bars_isotope.
Referenced by pappso::MassSpectrumWidget::plot().
|
protected |
Definition at line 475 of file qcpspectrum.cpp.
References _map_ion_type_bars, pappso::PeakIonMatch::getPeak(), pappso::PeakIonMatch::getPeptideIonType(), pappso::DataPoint::x, and pappso::DataPoint::y.
Referenced by pappso::MassSpectrumWidget::plot().
|
protected |
Definition at line 244 of file qcpspectrum.cpp.
References _map_ion_type_bars, _mass_delta_range, _mz_range, _p_delta_axis_rect, _p_delta_graph, _p_peak_bars, _p_peak_bars_isotope, and mp_peak_bars_precursor.
Referenced by pappso::MassSpectrumWidget::clearData().
|
private |
Definition at line 422 of file qcpspectrum.cpp.
References _p_spectrum, _parent, pappso::max, pappso::mz, pappso::MassSpectrumWidget::peakChangeEvent(), and pappso::DataPoint::y.
Referenced by mouseMoveEvent().
|
private |
Definition at line 389 of file qcpspectrum.cpp.
References _p_spectrum, _parent, pappso::max, pappso::mz, pappso::MassSpectrumWidget::peakChangeEvent(), and pappso::DataPoint::x.
|
protected |
Definition at line 498 of file qcpspectrum.cpp.
References pappso::DIFFC12C13(), pappso::MzRange::lower(), and pappso::MzRange::upper().
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Definition at line 325 of file qcpspectrum.cpp.
References _click, _control_key, _old_x, _old_y, _p_spectrum, _parent, getMostIntensePeakBetween(), pappso::MassSpectrumWidget::mzChangeEvent(), pappso::x, and pappso::y.
|
overrideprotectedvirtual |
Definition at line 297 of file qcpspectrum.cpp.
|
overrideprotectedvirtual |
|
protected |
Definition at line 190 of file qcpspectrum.cpp.
References _intensity_range, _mass_delta_range, _mz_range, _p_delta_axis_rect, and _p_peak_bars.
Referenced by pappso::MassSpectrumWidget::rescale().
|
private |
Definition at line 219 of file qcpspectrum.cpp.
References _mz_range, and _p_delta_axis_rect.
Referenced by QCPSpectrum().
|
protected |
Definition at line 159 of file qcpspectrum.cpp.
References _intensity_range, _mass_delta_range, _mz_range, _p_peak_bars, and _p_spectrum.
Referenced by pappso::MassSpectrumWidget::clearData().
|
friend |
Definition at line 49 of file qcpspectrum.h.
|
private |
Definition at line 93 of file qcpspectrum.h.
Referenced by QCPSpectrum().
|
private |
Definition at line 94 of file qcpspectrum.h.
Referenced by mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().
|
private |
Definition at line 95 of file qcpspectrum.h.
Referenced by keyPressEvent(), keyReleaseEvent(), and mouseMoveEvent().
|
private |
Definition at line 85 of file qcpspectrum.h.
Referenced by QCPSpectrum(), rescale(), and setSpectrumP().
|
private |
Definition at line 90 of file qcpspectrum.h.
Referenced by QCPSpectrum(), addPeakIonIsotopeMatch(), and clearData().
|
private |
Definition at line 86 of file qcpspectrum.h.
Referenced by QCPSpectrum(), addMassDelta(), clearData(), rescale(), and setSpectrumP().
|
private |
Definition at line 84 of file qcpspectrum.h.
Referenced by QCPSpectrum(), clearData(), rescale(), setMzRangeChanged(), and setSpectrumP().
|
private |
Definition at line 96 of file qcpspectrum.h.
Referenced by mouseMoveEvent(), and mousePressEvent().
|
private |
Definition at line 97 of file qcpspectrum.h.
Referenced by mouseMoveEvent(), and mousePressEvent().
|
private |
Definition at line 91 of file qcpspectrum.h.
Referenced by QCPSpectrum(), addMassDelta(), clearData(), rescale(), and setMzRangeChanged().
|
private |
Definition at line 92 of file qcpspectrum.h.
Referenced by QCPSpectrum(), addMassDelta(), and clearData().
|
private |
Definition at line 87 of file qcpspectrum.h.
Referenced by QCPSpectrum(), clearData(), rescale(), and setSpectrumP().
|
private |
Definition at line 88 of file qcpspectrum.h.
Referenced by QCPSpectrum(), addMs1IsotopePattern(), and clearData().
|
private |
Definition at line 83 of file qcpspectrum.h.
Referenced by getMostIntensePeakBetween(), getNearestPeakBetween(), mouseMoveEvent(), and setSpectrumP().
|
private |
Definition at line 82 of file qcpspectrum.h.
Referenced by QCPSpectrum(), getMostIntensePeakBetween(), getNearestPeakBetween(), and mouseMoveEvent().
|
private |
Definition at line 89 of file qcpspectrum.h.
Referenced by QCPSpectrum(), and clearData().