|
libpappsomspp
Library for mass spectrometry
|
#include <xicwidget.h>
Signals | |
| void | rtChanged (double rt) const |
| announce the current retention time (under mouse) in seconds | |
| void | xicPeakListChanged (pappso::XicXicPeakPairList xic_peak_list) const |
| void | clicked (double rt, double intensity) const |
| announce mouse position on click (rt in seconds, intensity) | |
| void | operateNewRange (QCPRange new_range) |
| get the new Range when its change | |
Public Member Functions | |
| XicWidget (QWidget *parent=0) | |
| ~XicWidget () | |
| QCPGraph * | addXicSp (XicCstSPtr xic_sp) |
| void | addMsMsEvent (const Xic *xic_p, pappso::pappso_double rt) |
| void | addXicPeakList (const Xic *xic_p, const std::vector< pappso::TracePeakCstSPtr > &xic_peak_list) |
| void | setName (const Xic *xic_p, const QString &name) |
| const QString & | getName (const Xic *xic_p) const |
| void | clear () |
| void | plot () |
| void | rescale () |
| void | toQPaintDevice (QPaintDevice *device, const QSize &size) override |
| void | setRetentionTimeInSeconds () |
| void | setRetentionTimeInMinutes () |
| void | drawXicPeakBorders (pappso::TracePeakCstSPtr xic_peak) |
| void | clearXicPeakBorders () |
| QCPAxis * | getRtAxisP () |
| get the plots axis and rescale one axis with the given range | |
| QCPAxis * | getIntensityAxisP () |
| void | rescaleOneRange (QString axis_name, QCPRange new_range) |
Public Member Functions inherited from GraphicDeviceWidget | |
| GraphicDeviceWidget (QWidget *parent) | |
| virtual | ~GraphicDeviceWidget () |
| virtual void | toSvgFile (const QString &filename, const QString &title, const QString &description, const QSize &size) final |
Protected Member Functions | |
| void | rtChangeEvent (pappso::pappso_double rt) const |
| void | xicClickEvent (pappso::pappso_double rt, pappso::pappso_double intensity) const |
| void | replotAll () |
| XicCstSPtr | getXicCstSPtr (const Xic *xic_p) const |
Protected Attributes | |
| bool | _rt_in_seconds = true |
Private Attributes | |
| std::map< const Xic *, QString > | _map_xic_name |
| std::map< const Xic *, pappso::pappso_double > | _map_xic_msms_event |
| std::vector< XicCstSPtr > | _xic_sp_list |
| XicXicPeakPairList | _xic_peak_sp_list |
| QCPXic * | _qcp_xic |
Friends | |
| class | QCPXic |
Definition at line 47 of file xicwidget.h.
| XicWidget::XicWidget | ( | QWidget * | parent = 0 | ) |
Definition at line 41 of file xicwidget.cpp.
References GraphicDeviceWidget::GraphicDeviceWidget(), _qcp_xic, and QCPXic.
| XicWidget::~XicWidget | ( | ) |
Definition at line 55 of file xicwidget.cpp.
| void XicWidget::addMsMsEvent | ( | const Xic * | xic_p, |
| pappso::pappso_double | rt ) |
Definition at line 60 of file xicwidget.cpp.
References _map_xic_msms_event, _qcp_xic, and getXicCstSPtr().
| void XicWidget::addXicPeakList | ( | const Xic * | xic_p, |
| const std::vector< pappso::TracePeakCstSPtr > & | xic_peak_list ) |
Definition at line 153 of file xicwidget.cpp.
References _qcp_xic, _xic_peak_sp_list, and getXicCstSPtr().
| QCPGraph * XicWidget::addXicSp | ( | XicCstSPtr | xic_sp | ) |
Definition at line 67 of file xicwidget.cpp.
References _qcp_xic, and _xic_sp_list.
| void XicWidget::clear | ( | ) |
Definition at line 129 of file xicwidget.cpp.
References _map_xic_msms_event, _map_xic_name, _qcp_xic, _xic_peak_sp_list, and _xic_sp_list.
| void XicWidget::clearXicPeakBorders | ( | ) |
Definition at line 281 of file xicwidget.cpp.
References _qcp_xic.
|
signal |
announce mouse position on click (rt in seconds, intensity)
Referenced by xicClickEvent().
| void XicWidget::drawXicPeakBorders | ( | pappso::TracePeakCstSPtr | xic_peak | ) |
Definition at line 251 of file xicwidget.cpp.
References _qcp_xic, _xic_peak_sp_list, and _xic_sp_list.
| QCPAxis * XicWidget::getIntensityAxisP | ( | ) |
Definition at line 109 of file xicwidget.cpp.
References _qcp_xic.
| const QString & XicWidget::getName | ( | const Xic * | xic_p | ) | const |
Definition at line 74 of file xicwidget.cpp.
References _map_xic_name, and getXicCstSPtr().
| QCPAxis * XicWidget::getRtAxisP | ( | ) |
get the plots axis and rescale one axis with the given range
Definition at line 103 of file xicwidget.cpp.
References _qcp_xic.
|
protected |
Definition at line 139 of file xicwidget.cpp.
References _xic_sp_list.
Referenced by addMsMsEvent(), addXicPeakList(), getName(), QCPXic, and setName().
|
signal |
get the new Range when its change
| void XicWidget::plot | ( | ) |
|
protected |
Definition at line 213 of file xicwidget.cpp.
References _map_xic_msms_event, _map_xic_name, _qcp_xic, _xic_peak_sp_list, _xic_sp_list, rescale(), and setName().
Referenced by QCPXic, setRetentionTimeInMinutes(), and setRetentionTimeInSeconds().
| void XicWidget::rescale | ( | ) |
Definition at line 95 of file xicwidget.cpp.
References _qcp_xic.
Referenced by replotAll().
| void XicWidget::rescaleOneRange | ( | QString | axis_name, |
| QCPRange | new_range ) |
|
signal |
announce the current retention time (under mouse) in seconds
Referenced by rtChangeEvent().
|
protected |
Definition at line 165 of file xicwidget.cpp.
References _xic_peak_sp_list, rtChanged(), and xicPeakListChanged().
Referenced by QCPXic.
| void XicWidget::setName | ( | const Xic * | xic_p, |
| const QString & | name ) |
Definition at line 81 of file xicwidget.cpp.
References _map_xic_name, _qcp_xic, and getXicCstSPtr().
Referenced by replotAll().
| void XicWidget::setRetentionTimeInMinutes | ( | ) |
Definition at line 205 of file xicwidget.cpp.
References _qcp_xic, _rt_in_seconds, and replotAll().
| void XicWidget::setRetentionTimeInSeconds | ( | ) |
Definition at line 198 of file xicwidget.cpp.
References _qcp_xic, _rt_in_seconds, and replotAll().
|
overridevirtual |
Implements GraphicDeviceWidget.
Definition at line 184 of file xicwidget.cpp.
References _qcp_xic.
|
protected |
Definition at line 243 of file xicwidget.cpp.
References clicked().
Referenced by QCPXic.
|
signal |
Referenced by rtChangeEvent().
|
friend |
Definition at line 89 of file xicwidget.h.
References getXicCstSPtr(), QCPXic, replotAll(), rtChangeEvent(), and xicClickEvent().
Referenced by XicWidget(), and QCPXic.
|
private |
Definition at line 101 of file xicwidget.h.
Referenced by addMsMsEvent(), clear(), and replotAll().
|
private |
Definition at line 100 of file xicwidget.h.
Referenced by clear(), getName(), replotAll(), and setName().
|
private |
Definition at line 104 of file xicwidget.h.
Referenced by XicWidget(), addMsMsEvent(), addXicPeakList(), addXicSp(), clear(), clearXicPeakBorders(), drawXicPeakBorders(), getIntensityAxisP(), getRtAxisP(), plot(), replotAll(), rescale(), rescaleOneRange(), setName(), setRetentionTimeInMinutes(), setRetentionTimeInSeconds(), and toQPaintDevice().
|
protected |
Definition at line 97 of file xicwidget.h.
Referenced by setRetentionTimeInMinutes(), and setRetentionTimeInSeconds().
|
private |
Definition at line 103 of file xicwidget.h.
Referenced by addXicPeakList(), clear(), drawXicPeakBorders(), replotAll(), and rtChangeEvent().
|
private |
Definition at line 102 of file xicwidget.h.
Referenced by addXicSp(), clear(), drawXicPeakBorders(), getXicCstSPtr(), and replotAll().