39 #include <QtGui/QColor> An abstract class acting as an interface for the different 1D annotation items.
Definition: Annotation1DItem.h:59
~Annotation1DPeakItem() override
Destructor.
Size< TNeedle >::Type position(const PatternAuxData< TNeedle > &dh)
Definition: AhoCorasickAmbiguous.h:561
void setPosition(const PointType &position)
Sets the position of the label (in MZ/intensity coordinates)
const PointType & getPosition() const
Returns the position of the annotated peak (in MZ/intensity coordinates)
PointType position_
The position of the label (in MZ / intensity coordinates)
Definition: Annotation1DPeakItem.h:87
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
void move(const PointType &) override
Docu in base class.
QColor color_
The color of the label.
Definition: Annotation1DPeakItem.h:90
void draw(Spectrum1DCanvas *const canvas, QPainter &painter, bool flipped=false) override
Docu in base class.
const PointType & getPeakPosition() const
Returns the position of the label (peak) (in MZ/intensity coordinates)
void setColor(const QColor &color)
Set the color of the label.
Annotation1DPeakItem(const PointType &peak_position, const QString &text, const QColor &color)
Constructor.
Canvas for visualization of one or several spectra.
Definition: Spectrum1DCanvas.h:67
const QColor & getColor() const
Returns the color of the label.
void ensureWithinDataRange(Spectrum1DCanvas *const canvas) override
Docu in base class.
A peak annotation item.
Definition: Annotation1DPeakItem.h:46
PointType peak_position_
The position of the anchor (peak) (in MZ / intensity coordinates)
Definition: Annotation1DPeakItem.h:84