|
OpenMS
2.6.0
|
Go to the documentation of this file.
71 void setTicks(
const std::vector<double> & ticks);
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:74
void setStartPoint(const PointType &start)
Sets the start point of the measured distance line.
const PointType & getEndPoint() const
Returns the end point as (MZ,intensity)
Canvas for visualization of one or several spectra.
Definition: Spectrum1DCanvas.h:67
void draw(Spectrum1DCanvas *const canvas, QPainter &painter, bool flipped=false) override
Draws the item on painter.
Annotation1DDistanceItem(const QString &text, const PointType &start_point, const PointType &end_point)
Constructor.
An annotation item which represents a measured distance between two peaks.
Definition: Annotation1DDistanceItem.h:45
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
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:59
void setTicks(const std::vector< double > &ticks)
Set tick lines for the distance item.
void ensureWithinDataRange(Spectrum1DCanvas *const canvas) override
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:76
DPosition< 2 > PointType
Type of the Points.
Definition: Annotation1DItem.h:64
~Annotation1DDistanceItem() override
Destructor.
void move(const PointType &delta) override
void setEndPoint(const PointType &end)
Sets the peak index of the end peak of the measurement.