35 #ifndef OPENMS_VISUAL_ANNOTATION_ANNOTATION1DDISTANCEITEM_H 36 #define OPENMS_VISUAL_ANNOTATION_ANNOTATION1DDISTANCEITEM_H 72 void setTicks(
const std::vector<double> & 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.
void setTicks(const std::vector< double > &ticks)
Set tick lines for the distance item.
PointType end_point_
The end point of the measured distance line.
Definition: Annotation1DDistanceItem.h:77
std::vector< double > ticks_
Additional tick lines for the distance item.
Definition: Annotation1DDistanceItem.h:79
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
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 & 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
Canvas for visualization of one or several spectra.
Definition: Spectrum1DCanvas.h:68
void setEndPoint(const PointType &end)
Sets the peak index of the end peak of the measurement.
virtual void move(const PointType &delta)
const PointType & getEndPoint() const
Returns the end point as (MZ,intensity)
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.