libpappsomspp
Library for mass spectrometry
|
#include <xicwidget.h>
Signals | |
void | rtChanged (double rt) const |
announce the current retention time (under mouse) in seconds More... | |
void | xicPeakListChanged (pappso::XicXicPeakPairList xic_peak_list) const |
void | clicked (double rt, double intensity) const |
announce mouse position on click (rt in seconds, intensity) More... | |
void | operateNewRange (QCPRange new_range) |
get the new Range when its change More... | |
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 More... | |
QCPAxis * | getIntensityAxisP () |
void | rescaleOneRange (QString axis_name, QCPRange new_range) |
![]() | |
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.
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, pappso::QCPXic::addMsMsEvent(), getXicCstSPtr(), and pappso::rt.
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, pappso::QCPXic::addXicPeakList(), and getXicCstSPtr().
QCPGraph * XicWidget::addXicSp | ( | XicCstSPtr | xic_sp | ) |
Definition at line 67 of file xicwidget.cpp.
References _qcp_xic, _xic_sp_list, and pappso::QCPXic::addXicP().
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, _xic_sp_list, and pappso::QCPXic::clear().
void XicWidget::clearXicPeakBorders | ( | ) |
Definition at line 281 of file xicwidget.cpp.
References _qcp_xic, and pappso::QCPXic::clearXicPeakBorders().
|
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, _xic_sp_list, and pappso::QCPXic::drawXicPeakBorders().
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(), 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, pappso::QCPXic::addMsMsEvent(), pappso::QCPXic::addXicP(), pappso::QCPXic::addXicPeakList(), pappso::QCPXic::clear(), rescale(), and setName().
Referenced by setRetentionTimeInMinutes(), and setRetentionTimeInSeconds().
void XicWidget::rescale | ( | ) |
Definition at line 95 of file xicwidget.cpp.
References _qcp_xic, and pappso::QCPXic::rescale().
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, pappso::rt, rtChanged(), and xicPeakListChanged().
Referenced by pappso::QCPXic::mouseMoveEvent().
void XicWidget::setName | ( | const Xic * | xic_p, |
const QString & | name | ||
) |
Definition at line 81 of file xicwidget.cpp.
References _map_xic_name, _qcp_xic, getXicCstSPtr(), and pappso::QCPXic::setName().
Referenced by replotAll().
void XicWidget::setRetentionTimeInMinutes | ( | ) |
void XicWidget::setRetentionTimeInSeconds | ( | ) |
|
overridevirtual |
|
protected |
Definition at line 243 of file xicwidget.cpp.
References clicked(), and pappso::rt.
Referenced by pappso::QCPXic::mouseReleaseEvent().
|
signal |
Referenced by rtChangeEvent().
|
friend |
Definition at line 89 of file xicwidget.h.
Referenced by XicWidget().
|
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 pappso::QCPXic::QCPXic(), pappso::QCPXic::getRetentionTimeFromSecondsToLocal(), setRetentionTimeInMinutes(), setRetentionTimeInSeconds(), and pappso::QCPXic::xAxisToSeconds().
|
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().