CycloBranch
cBranchCyclicWidget.h File Reference

Visualization of a branch-cyclic peptide. More...

#include <math.h>
#include <QWidget>
#include <QPalette>
#include "core/cTheoreticalSpectrum.h"
#include "gui/cLinearWidget.h"
#include "gui/cCyclicWidget.h"

Go to the source code of this file.

Classes

class  cBranchCyclicWidget
 Visualization of a branch-cyclic peptide. More...
 

Functions

void generateBranchLabelsDown (bool nterminal, int rotationid, unordered_set< cIonLabel, hash_cIonLabel > &labels, cParameters *parameters, cTheoreticalSpectrum *theoreticalspectrum, int centerx, int topmargin, int horizontalstep, int verticalstep, string visibleionseries, string visibleneutralloss, int visiblerotationid, int branchstart)
 Generate labels of fragment ions on a branch of a branch-cyclic peptide (direction down). More...
 
void generateBranchLabelsUp (bool nterminal, int rotationid, unordered_set< cIonLabel, hash_cIonLabel > &labels, cParameters *parameters, cTheoreticalSpectrum *theoreticalspectrum, int centerx, int topmargin, int horizontalstep, int verticalstep, string visibleionseries, string visibleneutralloss, int visiblerotationid, int branchend, int fragmentend)
 Generate labels of fragment ions on a branch of a branch-cyclic peptide (direction up). More...
 

Detailed Description

Visualization of a branch-cyclic peptide.

Function Documentation

◆ generateBranchLabelsDown()

void generateBranchLabelsDown ( bool  nterminal,
int  rotationid,
unordered_set< cIonLabel, hash_cIonLabel > &  labels,
cParameters parameters,
cTheoreticalSpectrum theoreticalspectrum,
int  centerx,
int  topmargin,
int  horizontalstep,
int  verticalstep,
string  visibleionseries,
string  visibleneutralloss,
int  visiblerotationid,
int  branchstart 
)

Generate labels of fragment ions on a branch of a branch-cyclic peptide (direction down).

Parameters
nterminalif true only nterminal fragment ions are drawn, if false only cterminal fragment ions are drawn
rotationidid of a sequence rotation
labelslabels of fragment ions
parametersa pointer to parameters of the application
theoreticalspectruma theoretical spectrum
centerxx coordinate of a center of the ring
topmargintop margin in pixels
horizontalstephorizontal step (determine width of blocks)
verticalstepvertical step (determine height of blocks)
visibleionseriesname of a ion series to be visualized
visibleneutrallossname of a neutral loss to be visualized
visiblerotationidid of a rotation whose fragment ions are visualized
branchstartstarting position of a branch

◆ generateBranchLabelsUp()

void generateBranchLabelsUp ( bool  nterminal,
int  rotationid,
unordered_set< cIonLabel, hash_cIonLabel > &  labels,
cParameters parameters,
cTheoreticalSpectrum theoreticalspectrum,
int  centerx,
int  topmargin,
int  horizontalstep,
int  verticalstep,
string  visibleionseries,
string  visibleneutralloss,
int  visiblerotationid,
int  branchend,
int  fragmentend 
)

Generate labels of fragment ions on a branch of a branch-cyclic peptide (direction up).

Parameters
nterminalif true only nterminal fragment ions are drawn, if false only cterminal fragment ions are drawn
rotationidid of a sequence rotation
labelslabels of fragment ions
parametersa pointer to parameters of the application
theoreticalspectruma theoretical spectrum
centerxx coordinate of a center of the ring
topmargintop margin in pixels
horizontalstephorizontal step (determine width of blocks)
verticalstepvertical step (determine height of blocks)
visibleionseriesname of a ion series to be visualized
visibleneutrallossname of a neutral loss to be visualized
visiblerotationidid of a rotation whose fragment ions are visualized
branchendend position of a branch
fragmentendlast fragment to draw