CycloBranch
cPatternSimulatorSceneWidget Class Reference

The implementation of an isotopic pattern simulator (graphics). More...

#include <cPatternSimulatorSceneWidget.h>

Inheritance diagram for cPatternSimulatorSceneWidget:

Signals

void updateMZInterval (double minmz, double maxmz)
 The signal is emitted when the range of m/z ratios has been changed. More...
 

Public Member Functions

 cPatternSimulatorSceneWidget (QWidget *parent=0)
 The constructor. More...
 
 ~cPatternSimulatorSceneWidget ()
 The destructor.
 
void initialize (cPeaksList isotopicpattern, double fwhm)
 Initialize the widget. More...
 
void exportToPDF (QString filename, bool postscript)
 Export spectrum scene into a PDF or a PS file. More...
 
void exportToSVG (QString filename)
 Export spectrum scene into a SVG file. More...
 
void exportToPNG (QString filename)
 Export spectrum scene into a PNG file. More...
 
void hidePeakLabels (bool state)
 Hide/Show labels of peaks. More...
 

Protected Member Functions

void wheelEvent (QWheelEvent *event)
 Handle the mouse wheel event. More...
 
void mouseMoveEvent (QMouseEvent *event)
 Handle the mouse move event. More...
 
void mouseReleaseEvent (QMouseEvent *event)
 Handle the mouse release event. More...
 
void mousePressEvent (QMouseEvent *event)
 Handle the mouse press event. More...
 
void showEvent (QShowEvent *event)
 Handle the widget show event. More...
 
void resizeEvent (QResizeEvent *event)
 Handle the widget resize event. More...
 

Detailed Description

The implementation of an isotopic pattern simulator (graphics).

Constructor & Destructor Documentation

◆ cPatternSimulatorSceneWidget()

cPatternSimulatorSceneWidget::cPatternSimulatorSceneWidget ( QWidget *  parent = 0)

The constructor.

Parameters
parentpointer to a parent widget

Member Function Documentation

◆ exportToPDF()

void cPatternSimulatorSceneWidget::exportToPDF ( QString  filename,
bool  postscript 
)

Export spectrum scene into a PDF or a PS file.

Parameters
filenamefilename
postscriptif true then PS file is generated instead of PDF

◆ exportToPNG()

void cPatternSimulatorSceneWidget::exportToPNG ( QString  filename)

Export spectrum scene into a PNG file.

Parameters
filenamefilename

◆ exportToSVG()

void cPatternSimulatorSceneWidget::exportToSVG ( QString  filename)

Export spectrum scene into a SVG file.

Parameters
filenamefilename

◆ hidePeakLabels()

void cPatternSimulatorSceneWidget::hidePeakLabels ( bool  state)

Hide/Show labels of peaks.

Parameters
statethe peak labels are hidden when state is true

◆ initialize()

void cPatternSimulatorSceneWidget::initialize ( cPeaksList  isotopicpattern,
double  fwhm 
)

Initialize the widget.

Parameters
isotopicpatternan isotopic pattern
fwhmfwhm

◆ mouseMoveEvent()

void cPatternSimulatorSceneWidget::mouseMoveEvent ( QMouseEvent *  event)
protected

Handle the mouse move event.

Parameters
eventpointer to QMouseEvent

◆ mousePressEvent()

void cPatternSimulatorSceneWidget::mousePressEvent ( QMouseEvent *  event)
protected

Handle the mouse press event.

Parameters
eventpointer to QMouseEvent

◆ mouseReleaseEvent()

void cPatternSimulatorSceneWidget::mouseReleaseEvent ( QMouseEvent *  event)
protected

Handle the mouse release event.

Parameters
eventpointer to QMouseEvent

◆ resizeEvent()

void cPatternSimulatorSceneWidget::resizeEvent ( QResizeEvent *  event)
protected

Handle the widget resize event.

Parameters
eventpointer to QResizeEvent

◆ showEvent()

void cPatternSimulatorSceneWidget::showEvent ( QShowEvent *  event)
protected

Handle the widget show event.

Parameters
eventpointer 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
minmza minimum threshold of m/z ratio
maxmza maximum threshold of m/z ratio

◆ wheelEvent()

void cPatternSimulatorSceneWidget::wheelEvent ( QWheelEvent *  event)
protected

Handle the mouse wheel event.

Parameters
eventpointer to QWheelEvent

The documentation for this class was generated from the following files: