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.
|
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...
|
|
Visualization of a cyclic peptide.
◆ 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
-
nterminal | if true only nterminal fragment ions are drawn, if false only cterminal fragment ions are drawn |
rotationid | id of a sequence rotation |
rotationstart | starting point on a ring to draw a series |
fragmentstart | first fragment to draw |
fragmentend | last fragment to draw |
numberofringblocks | number of building blocks on the ring |
labels | labels of fragment ions |
parameters | a pointer to parameters of the application |
theoreticalspectrum | a theoretical spectrum |
centerx | x coordinate of a center of the ring |
centery | y coordinate of a center of the ring |
radius | radius of the ring |
angle | an angle between two building blocks |
linesize | length of separators between building blocks |
cornerlinesize | length of endings of separators between building blocks |
visibleionseries | name of a ion series to be visualized |
visibleneutralloss | name of a neutral loss to be visualized |
visiblerotationid | id of a rotation whose fragment ions are visualized |
branchstart | starting position of a branch |
branchend | end 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
-
nterminal | if true only nterminal fragment ions are drawn, if false only cterminal fragment ions are drawn |
rotationid | id of a sequence rotation |
rotationstart | starting point on a ring to draw a series |
fragmentstart | first fragment to draw |
fragmentend | last fragment to draw |
numberofringblocks | number of building blocks on the ring |
labels | labels of fragment ions |
parameters | a pointer to parameters of the application |
theoreticalspectrum | a theoretical spectrum |
centerx | x coordinate of a center of the ring |
centery | y coordinate of a center of the ring |
radius | radius of the ring |
angle | an angle between two building blocks |
linesize | length of separators between building blocks |
cornerlinesize | length of endings of separators between building blocks |
visibleionseries | name of a ion series to be visualized |
visibleneutralloss | name of a neutral loss to be visualized |
visiblerotationid | id of a rotation whose fragment ions are visualized |
branchstart | starting position of a branch |
branchend | end 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
-
painter | a reference to current QPainter |
acronymsofblocks | acronyms of building blocks |
centerx | x coordinate of a center of the ring |
centery | y coordinate of a center of the ring |
radius | radius of the ring |
angle | an angle between two building blocks |
horizontalstep | determine width of rectangles with the acronyms of building blocks |
linesize | length of separators between building blocks |
cornerlinesize | length of endings of separators between building blocks |
drawdashlines | true when dashed lines between blocks and numbers of blocks are painted, false otherwise |
visiblerotationid | an identifier of a rotation of a cyclic peptide |
labels | labels of fragment ions |