CycloBranch
cBranchedWidget Class Reference

Visualization of a branched peptide. More...

#include <cBranchedWidget.h>

Inheritance diagram for cBranchedWidget:

Public Member Functions

 cBranchedWidget ()
 The constructor.
 
void initialize (cParameters *parameters, cTheoreticalSpectrum *theoreticalspectrum)
 Initialize the widget. More...
 
void exportToPDF (QString filename, bool postscript)
 Export peptide into a PDF or a PS file. More...
 
void exportToPNG (QString filename)
 Export peptide scene into a PNG file. More...
 
void exportToSVG (QString filename)
 Export peptide scene into a SVG file. More...
 
void setReportIsomers (bool reportisomers)
 Set the report isomers state. More...
 
void hidePeakLabels (bool state)
 Hide/Show labels of peaks. More...
 

Protected Member Functions

void paintEvent (QPaintEvent *event)
 Handle the paint event. More...
 

Detailed Description

Visualization of a branched peptide.

Member Function Documentation

◆ exportToPDF()

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

Export peptide into a PDF or a PS file.

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

◆ exportToPNG()

void cBranchedWidget::exportToPNG ( QString  filename)

Export peptide scene into a PNG file.

Parameters
filenamefilename

◆ exportToSVG()

void cBranchedWidget::exportToSVG ( QString  filename)

Export peptide scene into a SVG file.

Parameters
filenamefilename

◆ hidePeakLabels()

void cBranchedWidget::hidePeakLabels ( bool  state)

Hide/Show labels of peaks.

Parameters
statethe peak labels are hidden when state is true

◆ initialize()

void cBranchedWidget::initialize ( cParameters parameters,
cTheoreticalSpectrum theoreticalspectrum 
)

Initialize the widget.

Parameters
parametersa pointer to parameters
theoreticalspectruma pointer to a theoretical spectrum

◆ paintEvent()

void cBranchedWidget::paintEvent ( QPaintEvent *  event)
protected

Handle the paint event.

Parameters
eventpointer to QPaintEvent

◆ setReportIsomers()

void cBranchedWidget::setReportIsomers ( bool  reportisomers)

Set the report isomers state.

Parameters
reportisomerstrue if isomers are reported; false otherwise

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