68 const auto& spec = getCurrentMobilogram();
70 spec_filtered.insert(spec_filtered.begin(), spec.MBBegin(partial_range.getMinMobility()), spec.MBEnd(partial_range.getMaxMobility()));
71 spec_filtered.updateRanges();
An abstract class acting as an interface for the different 1D annotation items.
Definition: Annotation1DItem.h:62
DataFilter array providing some convenience functions.
Definition: DataFilters.h:53
Base class for all 1D layers, a special case of LayerData.
Definition: LayerData1DBase.h:54
Definition: LayerData1DIonMobility.h:44
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: LayerData1DIonMobility.h:66
LayerData1DIonMobility()
Definition: LayerData1DIonMobility.h:46
LayerData1DIonMobility(const LayerDataIonMobility &base)
Definition: LayerData1DIonMobility.h:51
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...
std::unique_ptr< Painter1DBase > getPainter1D() const override
Obtain a painter which can draw the layer on a canvas.
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: LayerData1DIonMobility.h:90
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: LayerData1DIonMobility.h:61
PeakIndex findClosestDataPoint(const RangeAllType &area) const override
Find the closest datapoint within the given range and return a proxy to that datapoint.
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.
void updateRanges() override
Update ranges of the underlying data.
Definition: LayerData1DIonMobility.h:85
const Mobilogram & getCurrentMobilogram() const
Definition: LayerData1DIonMobility.h:80
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...
RangeAllType getRange1D() const override
Definition: LayerData1DIonMobility.h:75
Class that stores the data for one layer.
Definition: LayerDataBase.h:195
Class that stores the data for one layer of type IonMobility.
Definition: LayerDataIonMobility.h:54
const Mobilogram & getMobilogram(Size index) const
Definition: LayerDataIonMobility.h:100
RangeAllType getRange() const override
Definition: LayerDataIonMobility.h:87
void updateRanges() override
Update ranges of the underlying data.
Definition: LayerDataIonMobility.h:81
The representation of a 1D ion mobilogram.
Definition: Mobilogram.h:55
auto & assign(const RangeManager< RangeBasesOther... > &rhs)
Definition: RangeManager.h:612
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48
RangeManager< RangeRT, RangeMZ, RangeIntensity, RangeMobility > RangeAllType
Range which contains all known dimensions.
Definition: RangeManager.h:923
Index of a peak or feature.
Definition: PeakIndex.h:51