34 return index < chromatogram_map_->getMSExperiment().getNrChromatograms();
40 if (partial_range.RangeRT::isEmpty())
43 r.extend(getCurrentChrom().getRange());
46 const auto& chrom = getCurrentChrom();
48 chrom_filtered.insert(chrom_filtered.begin(), chrom.RTBegin(partial_range.getMinRT()), chrom.RTEnd(partial_range.getMaxRT()));
49 chrom_filtered.updateRanges();
60 return getChromatogram(current_idx_);
65 LayerDataChrom::updateRanges();
72 return LayerDataChrom::getRange();
An abstract class acting as an interface for the different 1D annotation items.
Definition Annotation1DItem.h:36
DataFilter array providing some convenience functions.
Definition DataFilters.h:27
Base class for all 1D layers, a special case of LayerData.
Definition LayerData1DBase.h:28
Definition LayerData1DChrom.h:17
std::unique_ptr< Painter1DBase > getPainter1D() const override
Obtain a painter which can draw the layer on a canvas.
std::unique_ptr< LayerStoreData > storeFullData() const override
Returns a visitor which contains the the full data of the layer and can write the data to disk in the...
RangeAllType getRangeForArea(const RangeAllType partial_range) const override
Given a partial_range for the current 1D layer (e.g. an m/z range), fill in the other dimensions (usu...
Definition LayerData1DChrom.h:37
const ExperimentType::ChromatogramType & getCurrentChrom() const
Definition LayerData1DChrom.h:58
QMenu * getContextMenuAnnotation(Annotation1DItem *annot_item, bool &need_repaint) override
Get a context menu (with lambda actions included) for this 1D layer, when a Annotation1DItem was righ...
RangeAllType getRange() const override
Definition LayerData1DChrom.h:68
LayerData1DChrom(const LayerDataChrom &base)
Definition LayerData1DChrom.h:23
std::unique_ptr< LayerStoreData > storeVisibleData(const RangeAllType &visible_range, const DataFilters &layer_filters) const override
Returns a visitor which contains the current visible data and can write the data to disk.
bool hasIndex(Size index) const override
Does the layer have at least index items (e.g. spectra, chroms, etc), so a call to setCurrentIndex() ...
Definition LayerData1DChrom.h:32
PeakIndex findClosestDataPoint(const RangeAllType &area) const override
Find the closest datapoint within the given range and return a proxy to that datapoint.
Annotation1DItem * addPeakAnnotation(const PeakIndex &peak_index, const QString &text, const QColor &color) override
Add a Annotation1DPeakItem to getCurrentAnnotations(). The specific type is determined by the derived...
LayerData1DChrom()
Definition LayerData1DChrom.h:19
void updateRanges() override
Update ranges of the underlying data.
Definition LayerData1DChrom.h:63
RangeAllType getRange1D() const override
Definition LayerData1DChrom.h:53
Class that stores the data for one layer.
Definition LayerDataBase.h:170
Class that stores the data for one layer of type Chromatogram.
Definition LayerDataChrom.h:24
The representation of a chromatogram.
Definition MSChromatogram.h:30
auto & assign(const RangeManager< RangeBasesOther... > &rhs)
Definition RangeManager.h:615
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Index of a peak or feature.
Definition PeakIndex.h:25