44 class Annotation1DItem;
62 virtual std::unique_ptr<Painter1DBase> getPainter1D()
const = 0;
78 virtual QMenu* getContextMenuAnnotation(
Annotation1DItem* annot_item,
bool& need_repaint) = 0;
92 String getDecoratedName()
const override;
97 return annotations_1d_[current_idx_];
103 return annotations_1d_[current_idx_];
109 return annotations_1d_[spectrum_index];
115 return annotations_1d_[spectrum_index];
124 void setCurrentIndex(
Size index);
127 virtual bool hasIndex(
Size index)
const = 0;
130 bool flipped =
false;
140 std::vector<Annotations1DContainer> annotations_1d_ = std::vector<Annotations1DContainer>(1);
An abstract class acting as an interface for the different 1D annotation items.
Definition: Annotation1DItem.h:61
A more convenient string class.
Definition: String.h:58
const Annotations1DContainer & getCurrentAnnotations() const
Returns a const reference to the annotations of the current spectrum (1D view)
Definition: LayerData1DBase.h:95
Size getCurrentIndex() const
Get the index of the current spectrum (1D view)
Definition: LayerData1DBase.h:118
const Annotations1DContainer & getAnnotations(Size spectrum_index) const
Returns a const reference to the annotations of the spectrum_index's spectrum (1D view) ...
Definition: LayerData1DBase.h:107
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Annotations1DContainer & getAnnotations(Size spectrum_index)
Returns a mutable reference to the annotations of the spectrum_index's spectrum (1D view) ...
Definition: LayerData1DBase.h:113
Base class for all 1D layers, a special case of LayerData.
Definition: LayerData1DBase.h:53
Annotations1DContainer & getCurrentAnnotations()
Returns a mutable reference to the annotations of the current spectrum (1D view)
Definition: LayerData1DBase.h:101
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
std::vector< QColor > peak_colors_1d
Peak colors of the currently shown spectrum.
Definition: LayerData1DBase.h:133
Container for annotations to content of Plot1DCanvas.
Definition: Annotations1DContainer.h:53
Class that stores the data for one layer.
Definition: LayerDataBase.h:191
Index of a peak or feature.
Definition: PeakIndex.h:50