35 #ifndef OPENMS_VISUAL_ANNOTATION_ANNOTATION1DDISTANCEITEM_H 
   36 #define OPENMS_VISUAL_ANNOTATION_ANNOTATION1DDISTANCEITEM_H 
   72     void setTicks(
const std::vector<DoubleReal> & ticks);
 
An abstract class acting as an interface for the different 1D annotation items. 
Definition: Annotation1DItem.h:60
virtual void ensureWithinDataRange(Spectrum1DCanvas *const canvas)
Ensures that the item has coordinates within the visible area of the canvas. 
PointType end_point_
The end point of the measured distance line. 
Definition: Annotation1DDistanceItem.h:77
DPosition< 2 > PointType
Type of the Points. 
Definition: Annotation1DItem.h:65
virtual ~Annotation1DDistanceItem()
Destructor. 
virtual void draw(Spectrum1DCanvas *const canvas, QPainter &painter, bool flipped=false)
Draws the item on painter. 
const PointType & getEndPoint() const 
Returns the end point as (MZ,intensity) 
const PointType & getStartPoint() const 
Returns the start point as (MZ,intensity) 
PointType start_point_
The start point of the measured distance line. 
Definition: Annotation1DDistanceItem.h:75
An annotation item which represents a measured distance between two peaks. 
Definition: Annotation1DDistanceItem.h:46
std::vector< DoubleReal > ticks_
Additional tick lines for the distance item. 
Definition: Annotation1DDistanceItem.h:79
Canvas for visualization of one or several spectra. 
Definition: Spectrum1DCanvas.h:63
void setEndPoint(const PointType &end)
Sets the peak index of the end peak of the measurement. 
virtual void move(const PointType &delta)
void setTicks(const std::vector< DoubleReal > &ticks)
Set tick lines for the distance item. 
Annotation1DDistanceItem(const QString &text, const PointType &start_point, const PointType &end_point)
Constructor. 
void setStartPoint(const PointType &start)
Sets the start point of the measured distance line.