CycloBranch
|
Visualization of a linear peptide. More...
Go to the source code of this file.
Classes | |
struct | cIonLabel |
Auxiliary structure for visualization of labels of fragment ions. More... | |
struct | hash_cIonLabel |
The structure defining a hash function of cIonLabel. More... | |
class | cLinearWidget |
Visualization of a linear peptide. More... | |
Functions | |
bool | operator== (cIonLabel const &a, cIonLabel const &b) |
Overloaded operator ==. More... | |
void | insertLabel (unordered_set< cIonLabel, hash_cIonLabel > &labels, int x, int y, string &description, bool alignright) |
Insert a fragment ion label into an unordered set of labels and concatenate descriptions of labels on the same coordinates. More... | |
void | drawLabels (QPainter &painter, unordered_set< cIonLabel, hash_cIonLabel > &labels, int width) |
Draw labels of fragment ions. More... | |
Visualization of a linear peptide.
void drawLabels | ( | QPainter & | painter, |
unordered_set< cIonLabel, hash_cIonLabel > & | labels, | ||
int | width | ||
) |
Draw labels of fragment ions.
painter | reference to a painter |
labels | unordered set of labels |
width | widget width |
void insertLabel | ( | unordered_set< cIonLabel, hash_cIonLabel > & | labels, |
int | x, | ||
int | y, | ||
string & | description, | ||
bool | alignright | ||
) |
Insert a fragment ion label into an unordered set of labels and concatenate descriptions of labels on the same coordinates.
labels | unordered set of labels |
x | x coordinate |
y | y coordinate |
description | a description of a fragment ion |
alignright | true when the description is aligned right |