The widget representing a 2D mass spectrum.
More...
#include <cSpectrumSceneWidget.h>
|
void | updateMZInterval (double minmz, double maxmz) |
| The signal is emitted when the range of m/z ratios has been changed. More...
|
|
The widget representing a 2D mass spectrum.
◆ cSpectrumSceneWidget()
cSpectrumSceneWidget::cSpectrumSceneWidget |
( |
QWidget * |
parent = 0 | ) |
|
The constructor.
- Parameters
-
parent | pointer to a parent widget |
◆ exportToPDF()
void cSpectrumSceneWidget::exportToPDF |
( |
QString |
filename, |
|
|
bool |
postscript |
|
) |
| |
Export spectrum scene into a PDF or a PS file.
- Parameters
-
filename | filename |
postscript | if true then PS file is generated instead of PDF |
◆ exportToPNG()
void cSpectrumSceneWidget::exportToPNG |
( |
QString |
filename | ) |
|
Export spectrum scene into a PNG file.
- Parameters
-
◆ exportToSVG()
void cSpectrumSceneWidget::exportToSVG |
( |
QString |
filename | ) |
|
Export spectrum scene into a SVG file.
- Parameters
-
◆ hideMatchedPeaks()
void cSpectrumSceneWidget::hideMatchedPeaks |
( |
bool |
state | ) |
|
Hide/Show matched peaks.
- Parameters
-
state | the peaks are hidden when state is true |
◆ hidePeakLabels()
void cSpectrumSceneWidget::hidePeakLabels |
( |
bool |
state | ) |
|
Hide/Show labels of peaks.
- Parameters
-
state | the peak labels are hidden when state is true |
◆ hideScrambledPeaks()
void cSpectrumSceneWidget::hideScrambledPeaks |
( |
bool |
state | ) |
|
Hide/Show scrambled peaks.
- Parameters
-
state | the peaks are hidden when state is true |
◆ hideUnmatchedPeaks()
void cSpectrumSceneWidget::hideUnmatchedPeaks |
( |
bool |
state | ) |
|
Hide/Show unmatched peaks.
- Parameters
-
state | the peaks are hidden when state is true |
◆ initialize()
Initialize the widget.
- Parameters
-
parameters | a pointer to parameters |
theoreticalspectrum | a pointer to a theoretical spectrum |
rawdata | a pointer to a structure handling raw data |
rowid | id of a row |
activefileid | id of an active file |
◆ mouseMoveEvent()
void cSpectrumSceneWidget::mouseMoveEvent |
( |
QMouseEvent * |
event | ) |
|
|
protected |
Handle the mouse move event.
- Parameters
-
event | pointer to QMouseEvent |
◆ mousePressEvent()
void cSpectrumSceneWidget::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
protected |
Handle the mouse press event.
- Parameters
-
event | pointer to QMouseEvent |
◆ mouseReleaseEvent()
void cSpectrumSceneWidget::mouseReleaseEvent |
( |
QMouseEvent * |
event | ) |
|
|
protected |
Handle the mouse release event.
- Parameters
-
event | pointer to QMouseEvent |
◆ resizeEvent()
void cSpectrumSceneWidget::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
protected |
Handle the widget resize event.
- Parameters
-
event | pointer to QResizeEvent |
◆ showEvent()
void cSpectrumSceneWidget::showEvent |
( |
QShowEvent * |
event | ) |
|
|
protected |
Handle the widget show event.
- Parameters
-
event | pointer to QShowEvent |
◆ updateMZInterval
void cSpectrumSceneWidget::updateMZInterval |
( |
double |
minmz, |
|
|
double |
maxmz |
|
) |
| |
|
signal |
The signal is emitted when the range of m/z ratios has been changed.
- Parameters
-
minmz | a minimum threshold of m/z ratio |
maxmz | a maximum threshold of m/z ratio |
◆ wheelEvent()
void cSpectrumSceneWidget::wheelEvent |
( |
QWheelEvent * |
event | ) |
|
|
protected |
Handle the mouse wheel event.
- Parameters
-
event | pointer to QWheelEvent |
The documentation for this class was generated from the following files: