CycloBranch
cCyclicWidget.h File Reference

Visualization of a cyclic peptide. More...

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

Go to the source code of this file.

Classes

class  cCyclicWidget
 Visualization of a cyclic peptide. More...
 

Functions

void paintCircle (QPainter &painter, vector< string > &acronymsofblocks, int centerx, int centery, int radius, double angle, int horizontalstep, int linesize, int cornerlinesize, bool drawdashlines, int visiblerotationid, unordered_set< cIonLabel, hash_cIonLabel > &labels)
 Paint the circle of a cyclic or a branch-cyclic peptide. More...
 
void generateCyclicLabelsToRight (bool nterminal, int rotationid, int rotationstart, int fragmentstart, int fragmentend, int numberofringblocks, unordered_set< cIonLabel, hash_cIonLabel > &labels, cParameters *parameters, cTheoreticalSpectrum *theoreticalspectrum, int centerx, int centery, int radius, double angle, int linesize, int cornerlinesize, string visibleionseries, string visibleneutralloss, int visiblerotationid, int branchstart, int branchend)
 Generate labels of fragment ions of a cyclic peptide (direction right). More...
 
void generateCyclicLabelsToLeft (bool nterminal, int rotationid, int rotationstart, int fragmentstart, int fragmentend, int numberofringblocks, unordered_set< cIonLabel, hash_cIonLabel > &labels, cParameters *parameters, cTheoreticalSpectrum *theoreticalspectrum, int centerx, int centery, int radius, double angle, int linesize, int cornerlinesize, string visibleionseries, string visibleneutralloss, int visiblerotationid, int branchstart, int branchend)
 Generate labels of fragment ions of a cyclic peptide (direction left). More...
 

Detailed Description

Visualization of a cyclic peptide.

Function Documentation

◆ generateCyclicLabelsToLeft()

void generateCyclicLabelsToLeft ( bool  nterminal,
int  rotationid,
int  rotationstart,
int  fragmentstart,
int  fragmentend,
int  numberofringblocks,
unordered_set< cIonLabel, hash_cIonLabel > &  labels,
cParameters parameters,
cTheoreticalSpectrum theoreticalspectrum,
int  centerx,
int  centery,
int  radius,
double  angle,
int  linesize,
int  cornerlinesize,
string  visibleionseries,
string  visibleneutralloss,
int  visiblerotationid,
int  branchstart,
int  branchend 
)

Generate labels of fragment ions of a cyclic peptide (direction left).

Parameters
nterminalif true only nterminal fragment ions are drawn, if false only cterminal fragment ions are drawn
rotationidid of a sequence rotation
rotationstartstarting point on a ring to draw a series
fragmentstartfirst fragment to draw
fragmentendlast fragment to draw
numberofringblocksnumber of building blocks on the ring
labelslabels of fragment ions
parametersa pointer to parameters of the application
theoreticalspectruma theoretical spectrum
centerxx coordinate of a center of the ring
centeryy coordinate of a center of the ring
radiusradius of the ring
anglean angle between two building blocks
linesizelength of separators between building blocks
cornerlinesizelength of endings of separators between building 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
branchendend position of a branch

◆ generateCyclicLabelsToRight()

void generateCyclicLabelsToRight ( bool  nterminal,
int  rotationid,
int  rotationstart,
int  fragmentstart,
int  fragmentend,
int  numberofringblocks,
unordered_set< cIonLabel, hash_cIonLabel > &  labels,
cParameters parameters,
cTheoreticalSpectrum theoreticalspectrum,
int  centerx,
int  centery,
int  radius,
double  angle,
int  linesize,
int  cornerlinesize,
string  visibleionseries,
string  visibleneutralloss,
int  visiblerotationid,
int  branchstart,
int  branchend 
)

Generate labels of fragment ions of a cyclic peptide (direction right).

Parameters
nterminalif true only nterminal fragment ions are drawn, if false only cterminal fragment ions are drawn
rotationidid of a sequence rotation
rotationstartstarting point on a ring to draw a series
fragmentstartfirst fragment to draw
fragmentendlast fragment to draw
numberofringblocksnumber of building blocks on the ring
labelslabels of fragment ions
parametersa pointer to parameters of the application
theoreticalspectruma theoretical spectrum
centerxx coordinate of a center of the ring
centeryy coordinate of a center of the ring
radiusradius of the ring
anglean angle between two building blocks
linesizelength of separators between building blocks
cornerlinesizelength of endings of separators between building 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
branchendend position of a branch

◆ paintCircle()

void paintCircle ( QPainter &  painter,
vector< string > &  acronymsofblocks,
int  centerx,
int  centery,
int  radius,
double  angle,
int  horizontalstep,
int  linesize,
int  cornerlinesize,
bool  drawdashlines,
int  visiblerotationid,
unordered_set< cIonLabel, hash_cIonLabel > &  labels 
)

Paint the circle of a cyclic or a branch-cyclic peptide.

Parameters
paintera reference to current QPainter
acronymsofblocksacronyms of building blocks
centerxx coordinate of a center of the ring
centeryy coordinate of a center of the ring
radiusradius of the ring
anglean angle between two building blocks
horizontalstepdetermine width of rectangles with the acronyms of building blocks
linesizelength of separators between building blocks
cornerlinesizelength of endings of separators between building blocks
drawdashlinestrue when dashed lines between blocks and numbers of blocks are painted, false otherwise
visiblerotationidan identifier of a rotation of a cyclic peptide
labelslabels of fragment ions