 |
OpenMS
3.0.0
|
|
Go to the documentation of this file.
41 #include <QtGui/QColor>
66 void draw(
Plot1DCanvas*
const canvas, QPainter& painter,
bool flipped =
false)
override;
96 QPoint & position_widget,
97 QPoint & peak_position_widget,
98 double & horizontal_shift,
99 double & vertical_shift);
void move(const PointType &) override
Docu in base class.
Canvas for visualization of one or several spectra.
Definition: Plot1DCanvas.h:70
void setPosition(const PointType &position)
Sets the position of the label (in MZ/intensity coordinates)
PointType position_
The position of the label (in MZ / intensity coordinates)
Definition: Annotation1DPeakItem.h:105
const QColor & getColor() const
Returns the color of the label.
QColor color_
The color of the label.
Definition: Annotation1DPeakItem.h:108
void draw(Plot1DCanvas *const canvas, QPainter &painter, bool flipped=false) override
Docu in base class.
void setColor(const QColor &color)
Set the color of the label.
Annotation1DPeakItem(const PointType &peak_position, const QString &text, const QColor &color)
Constructor.
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
A peak annotation item.
Definition: Annotation1DPeakItem.h:49
PointType peak_position_
The position of the anchor (peak) (in MZ / intensity coordinates)
Definition: Annotation1DPeakItem.h:102
const PointType & getPeakPosition() const
Returns the position of the label (peak) (in MZ/intensity coordinates)
const PointType & getPosition() const
Returns the position of the annotated peak (in MZ/intensity coordinates)
An abstract class acting as an interface for the different 1D annotation items.
Definition: Annotation1DItem.h:59
PeptideHit::PeakAnnotation toPeakAnnotation() const
Convert the 'text()' to a Peptide::PeakAnnotation.
void ensureWithinDataRange(Plot1DCanvas *const canvas) override
Docu in base class.
~Annotation1DPeakItem() override
Destructor.
static QRectF calculateBoundingBox(const PointType &peak_position, const PointType &position, const QString &text, Plot1DCanvas *const canvas, bool flipped, QPoint &position_widget, QPoint &peak_position_widget, double &horizontal_shift, double &vertical_shift)
Calculate bounding box in widget coordinates.
Contains annotations of a peak.
Definition: PeptideHit.h:83