35 #ifndef OPENMS_VISUAL_ANNOTATION_ANNOTATION1DPEAKITEM_H 
   36 #define OPENMS_VISUAL_ANNOTATION_ANNOTATION1DPEAKITEM_H 
   40 #include <QtGui/QColor> 
An abstract class acting as an interface for the different 1D annotation items. 
Definition: Annotation1DItem.h:60
virtual void ensureWithinDataRange(Spectrum1DCanvas *const canvas)
Docu in base class. 
virtual ~Annotation1DPeakItem()
Destructor. 
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:88
virtual void draw(Spectrum1DCanvas *const canvas, QPainter &painter, bool flipped=false)
Docu in base class. 
QColor color_
The color of the label. 
Definition: Annotation1DPeakItem.h:91
DPosition< 2 > PointType
Type of the Points. 
Definition: Annotation1DItem.h:65
const QColor & getColor() const 
Returns the color of the label. 
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:63
A peak annotation item. 
Definition: Annotation1DPeakItem.h:47
virtual void move(const PointType &)
Docu in base class. 
const PointType & getPeakPosition() const 
Sets the anker position of the label (peak) (in MZ / intensity coordinates) 
const PointType & getPosition() const 
Returns the position of the peak (in MZ / intensity coordinates) 
PointType peak_position_
The position of the anker (peak) (in MZ / intensity coordinates) 
Definition: Annotation1DPeakItem.h:85