7#ifndef _CLINEARWIDGET_H
8#define _CLINEARWIDGET_H
80 return std::hash<string>()(to_string(label.
x) + to_string(label.
y));
103void insertLabel(unordered_set<cIonLabel, hash_cIonLabel>& labels,
int x,
int y,
string& description,
bool alignright);
112void drawLabels(QPainter& painter, unordered_set<cIonLabel, hash_cIonLabel>& labels,
int width);
144 void exportToPDF(QString filename,
bool postscript);
187 void paint(QPainter& painter);
192 string visibleionseries;
193 string visibleneutralloss;
201 void ionSeriesChanged(QString text);
203 void neutralLossChanged(QString text);
The representation of a theoretical mass spectrum.
The class storing parameters of the application.
Definition: cParameters.h:82
The class representing a theoretical mass spectrum.
Definition: cTheoreticalSpectrum.h:106
Auxiliary structure for visualization of labels of fragment ions.
Definition: cLinearWidget.h:22
cIonLabel()
The constructor.
Definition: cLinearWidget.h:51
int y
y coordinate.
Definition: cLinearWidget.h:33
void clear()
Clear the structure.
Definition: cLinearWidget.h:59
set< string > labelset
Set of labels to be merged.
Definition: cLinearWidget.h:39
int x
x coordinate.
Definition: cLinearWidget.h:27
bool alignright
True when the label is aligned right.
Definition: cLinearWidget.h:45
The structure defining a hash function of cIonLabel.
Definition: cLinearWidget.h:72
size_t operator()(const cIonLabel &label) const
Hash a ion label.
Definition: cLinearWidget.h:79