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) |
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 |
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::PeptideFragmentIon::getPeptideIonColor(), setMzRangeChanged(), pappso::x, and pappso::y.
|
protected |
Definition at line 148 of file qcpspectrum.cpp.
|
protected |
Definition at line 419 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 447 of file qcpspectrum.cpp.
References _p_peak_bars_isotope.
Referenced by pappso::MassSpectrumWidget::plot().
|
protected |
Definition at line 440 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 238 of file qcpspectrum.cpp.
References _map_ion_type_bars, _mass_delta_range, _mz_range, _p_delta_axis_rect, _p_delta_graph, _p_peak_bars, and _p_peak_bars_isotope.
Referenced by pappso::MassSpectrumWidget::clearData().
|
private |
Definition at line 387 of file qcpspectrum.cpp.
References _p_spectrum, _parent, pappso::MassSpectrumWidget::peakChangeEvent(), pappso::sum, pappso::unset, and pappso::DataPoint::y.
Referenced by mouseMoveEvent().
|
private |
Definition at line 354 of file qcpspectrum.cpp.
References _p_spectrum, _parent, pappso::MassSpectrumWidget::peakChangeEvent(), pappso::sum, pappso::unset, and pappso::DataPoint::x.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Definition at line 311 of file qcpspectrum.cpp.
References _click, _control_key, _old_x, _old_y, _p_spectrum, _parent, getMostIntensePeakBetween(), pappso::MassSpectrumWidget::mzChangeEvent(), and pappso::y.
|
overrideprotectedvirtual |
Definition at line 289 of file qcpspectrum.cpp.
|
overrideprotectedvirtual |
|
protected |
Definition at line 184 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 213 of file qcpspectrum.cpp.
References _mz_range, and _p_delta_axis_rect.
Referenced by QCPSpectrum().
|
protected |
Definition at line 153 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 89 of file qcpspectrum.h.
Referenced by QCPSpectrum().
|
private |
Definition at line 90 of file qcpspectrum.h.
Referenced by mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().
|
private |
Definition at line 91 of file qcpspectrum.h.
Referenced by keyPressEvent(), keyReleaseEvent(), and mouseMoveEvent().
|
private |
Definition at line 82 of file qcpspectrum.h.
Referenced by QCPSpectrum(), rescale(), and setSpectrumP().
|
private |
Definition at line 86 of file qcpspectrum.h.
Referenced by QCPSpectrum(), addPeakIonIsotopeMatch(), and clearData().
|
private |
Definition at line 83 of file qcpspectrum.h.
Referenced by QCPSpectrum(), addMassDelta(), clearData(), rescale(), and setSpectrumP().
|
private |
Definition at line 81 of file qcpspectrum.h.
Referenced by QCPSpectrum(), clearData(), rescale(), setMzRangeChanged(), and setSpectrumP().
|
private |
Definition at line 92 of file qcpspectrum.h.
Referenced by mouseMoveEvent(), and mousePressEvent().
|
private |
Definition at line 93 of file qcpspectrum.h.
Referenced by mouseMoveEvent(), and mousePressEvent().
|
private |
Definition at line 87 of file qcpspectrum.h.
Referenced by QCPSpectrum(), addMassDelta(), clearData(), rescale(), and setMzRangeChanged().
|
private |
Definition at line 88 of file qcpspectrum.h.
Referenced by QCPSpectrum(), addMassDelta(), and clearData().
|
private |
Definition at line 84 of file qcpspectrum.h.
Referenced by QCPSpectrum(), clearData(), rescale(), and setSpectrumP().
|
private |
Definition at line 85 of file qcpspectrum.h.
Referenced by QCPSpectrum(), addMs1IsotopePattern(), and clearData().
|
private |
Definition at line 80 of file qcpspectrum.h.
Referenced by getMostIntensePeakBetween(), getNearestPeakBetween(), mouseMoveEvent(), and setSpectrumP().
|
private |
Definition at line 79 of file qcpspectrum.h.
Referenced by QCPSpectrum(), getMostIntensePeakBetween(), getNearestPeakBetween(), and mouseMoveEvent().