44 class Annotation1DItem;
62 virtual std::unique_ptr<Painter1DBase> getPainter1D()
const = 0;
82 virtual QMenu* getContextMenuAnnotation(
Annotation1DItem* annot_item,
bool& need_repaint) = 0;
96 String getDecoratedName()
const override;
101 return annotations_1d_[current_idx_];
107 return annotations_1d_[current_idx_];
113 return annotations_1d_[spectrum_index];
119 return annotations_1d_[spectrum_index];
128 void setCurrentIndex(
Size index);
131 virtual bool hasIndex(
Size index)
const = 0;
134 bool flipped =
false;
144 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:99
Size getCurrentIndex() const
Get the index of the current spectrum (1D view)
Definition: LayerData1DBase.h:122
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:111
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:117
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:105
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:137
Container for annotations to content of Plot1DCanvas.
Definition: Annotations1DContainer.h:53
Class that stores the data for one layer.
Definition: LayerDataBase.h:194
Index of a peak or feature.
Definition: PeakIndex.h:50