The implementation of an isotopic pattern simulator (graphics).
More...
#include <cPatternSimulatorSceneWidget.h>
|
void | updateMZInterval (double minmz, double maxmz) |
| The signal is emitted when the range of m/z ratios has been changed. More...
|
|
The implementation of an isotopic pattern simulator (graphics).
◆ cPatternSimulatorSceneWidget()
cPatternSimulatorSceneWidget::cPatternSimulatorSceneWidget |
( |
QWidget * |
parent = 0 | ) |
|
The constructor.
- Parameters
-
parent | pointer to a parent widget |
◆ exportToPDF()
void cPatternSimulatorSceneWidget::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 cPatternSimulatorSceneWidget::exportToPNG |
( |
QString |
filename | ) |
|
Export spectrum scene into a PNG file.
- Parameters
-
◆ exportToSVG()
void cPatternSimulatorSceneWidget::exportToSVG |
( |
QString |
filename | ) |
|
Export spectrum scene into a SVG file.
- Parameters
-
◆ hidePeakLabels()
void cPatternSimulatorSceneWidget::hidePeakLabels |
( |
bool |
state | ) |
|
Hide/Show labels of peaks.
- Parameters
-
state | the peak labels are hidden when state is true |
◆ initialize()
void cPatternSimulatorSceneWidget::initialize |
( |
cPeaksList |
isotopicpattern, |
|
|
double |
fwhm |
|
) |
| |
Initialize the widget.
- Parameters
-
isotopicpattern | an isotopic pattern |
fwhm | fwhm |
◆ mouseMoveEvent()
void cPatternSimulatorSceneWidget::mouseMoveEvent |
( |
QMouseEvent * |
event | ) |
|
|
protected |
Handle the mouse move event.
- Parameters
-
event | pointer to QMouseEvent |
◆ mousePressEvent()
void cPatternSimulatorSceneWidget::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
protected |
Handle the mouse press event.
- Parameters
-
event | pointer to QMouseEvent |
◆ mouseReleaseEvent()
void cPatternSimulatorSceneWidget::mouseReleaseEvent |
( |
QMouseEvent * |
event | ) |
|
|
protected |
Handle the mouse release event.
- Parameters
-
event | pointer to QMouseEvent |
◆ resizeEvent()
void cPatternSimulatorSceneWidget::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
protected |
Handle the widget resize event.
- Parameters
-
event | pointer to QResizeEvent |
◆ showEvent()
void cPatternSimulatorSceneWidget::showEvent |
( |
QShowEvent * |
event | ) |
|
|
protected |
Handle the widget show event.
- Parameters
-
event | pointer to QShowEvent |
◆ updateMZInterval
void cPatternSimulatorSceneWidget::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 cPatternSimulatorSceneWidget::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: