CycloBranch
cSpectrumSceneWidget Class Reference

The widget representing a 2D mass spectrum. More...

#include <cSpectrumSceneWidget.h>

Inheritance diagram for cSpectrumSceneWidget:

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

 cSpectrumSceneWidget (QWidget *parent=0)
 The constructor. More...
 
 ~cSpectrumSceneWidget ()
 The destructor.
 
void initialize (cParameters *parameters, cTheoreticalSpectrum *theoreticalspectrum, cPeakListSeries *rawdata, int rowid, int activefileid)
 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 hideUnmatchedPeaks (bool state)
 Hide/Show unmatched peaks. More...
 
void hideMatchedPeaks (bool state)
 Hide/Show matched peaks. More...
 
void hideScrambledPeaks (bool state)
 Hide/Show scrambled peaks. 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 widget representing a 2D mass spectrum.

Constructor & Destructor Documentation

◆ cSpectrumSceneWidget()

cSpectrumSceneWidget::cSpectrumSceneWidget ( QWidget *  parent = 0)

The constructor.

Parameters
parentpointer to a parent widget

Member Function Documentation

◆ exportToPDF()

void cSpectrumSceneWidget::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 cSpectrumSceneWidget::exportToPNG ( QString  filename)

Export spectrum scene into a PNG file.

Parameters
filenamefilename

◆ exportToSVG()

void cSpectrumSceneWidget::exportToSVG ( QString  filename)

Export spectrum scene into a SVG file.

Parameters
filenamefilename

◆ hideMatchedPeaks()

void cSpectrumSceneWidget::hideMatchedPeaks ( bool  state)

Hide/Show matched peaks.

Parameters
statethe peaks are hidden when state is true

◆ hidePeakLabels()

void cSpectrumSceneWidget::hidePeakLabels ( bool  state)

Hide/Show labels of peaks.

Parameters
statethe peak labels are hidden when state is true

◆ hideScrambledPeaks()

void cSpectrumSceneWidget::hideScrambledPeaks ( bool  state)

Hide/Show scrambled peaks.

Parameters
statethe peaks are hidden when state is true

◆ hideUnmatchedPeaks()

void cSpectrumSceneWidget::hideUnmatchedPeaks ( bool  state)

Hide/Show unmatched peaks.

Parameters
statethe peaks are hidden when state is true

◆ initialize()

void cSpectrumSceneWidget::initialize ( cParameters parameters,
cTheoreticalSpectrum theoreticalspectrum,
cPeakListSeries rawdata,
int  rowid,
int  activefileid 
)

Initialize the widget.

Parameters
parametersa pointer to parameters
theoreticalspectruma pointer to a theoretical spectrum
rawdataa pointer to a structure handling raw data
rowidid of a row
activefileidid of an active file

◆ mouseMoveEvent()

void cSpectrumSceneWidget::mouseMoveEvent ( QMouseEvent *  event)
protected

Handle the mouse move event.

Parameters
eventpointer to QMouseEvent

◆ mousePressEvent()

void cSpectrumSceneWidget::mousePressEvent ( QMouseEvent *  event)
protected

Handle the mouse press event.

Parameters
eventpointer to QMouseEvent

◆ mouseReleaseEvent()

void cSpectrumSceneWidget::mouseReleaseEvent ( QMouseEvent *  event)
protected

Handle the mouse release event.

Parameters
eventpointer to QMouseEvent

◆ resizeEvent()

void cSpectrumSceneWidget::resizeEvent ( QResizeEvent *  event)
protected

Handle the widget resize event.

Parameters
eventpointer to QResizeEvent

◆ showEvent()

void cSpectrumSceneWidget::showEvent ( QShowEvent *  event)
protected

Handle the widget show event.

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

◆ wheelEvent()

void cSpectrumSceneWidget::wheelEvent ( QWheelEvent *  event)
protected

Handle the mouse wheel event.

Parameters
eventpointer to QWheelEvent

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