59 void draw(
Plot1DCanvas *
const canvas, QPainter & painter,
bool flipped =
false)
override;
71 void setTicks(
const std::vector<double> & ticks);
An annotation item which represents a measured distance between two peaks.
Definition: Annotation1DDistanceItem.h:47
void setEndPoint(const PointType &end)
Sets the peak index of the end peak of the measurement.
Annotation1DDistanceItem(const Annotation1DDistanceItem &rhs)
Copy constructor.
void draw(Plot1DCanvas *const canvas, QPainter &painter, bool flipped=false) override
Draws the item on painter.
void ensureWithinDataRange(Plot1DCanvas *const canvas) override
Ensures that the item has coordinates within the visible area of the canvas.
void move(const PointType &delta) override
Moves the item; behaviour depends on item type and is implemented in the subclasses.
const PointType & getStartPoint() const
Returns the start point as (MZ,intensity)
void setTicks(const std::vector< double > &ticks)
Set tick lines for the distance item.
Annotation1DDistanceItem(const QString &text, const PointType &start_point, const PointType &end_point)
Constructor.
~Annotation1DDistanceItem() override
Destructor.
void setStartPoint(const PointType &start)
Sets the start point of the measured distance line.
PointType end_point_
The end point of the measured distance line.
Definition: Annotation1DDistanceItem.h:76
const PointType & getEndPoint() const
Returns the end point as (MZ,intensity)
PointType start_point_
The start point of the measured distance line.
Definition: Annotation1DDistanceItem.h:74
std::vector< double > ticks_
Additional tick lines for the distance item.
Definition: Annotation1DDistanceItem.h:78
An abstract class acting as an interface for the different 1D annotation items.
Definition: Annotation1DItem.h:60
Canvas for visualization of one or several spectra.
Definition: Plot1DCanvas.h:72
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47