35 std::unique_ptr<LayerData1DBase>
to1DLayer()
const override;
47 chromatogram_map_->updateRanges();
53 r.
assign(*chromatogram_map_);
57 std::unique_ptr<LayerStatistics>
getStats()
const override;
65 return chromatogram_map_->getChromatogram(idx);
74 chromatogram_map_ = p;
80 return chromatogram_map_;
86 return chromatogram_map_;
98 return on_disc_peaks_;
103 return chrom_annotation_;
108 return chrom_annotation_;
DataFilter array providing some convenience functions.
Definition: DataFilters.h:27
Class that stores the data for one layer.
Definition: LayerDataBase.h:169
Class that stores the data for one layer of type Chromatogram.
Definition: LayerDataChrom.h:24
const ExperimentType::ChromatogramType & getChromatogram(Size idx) const
Definition: LayerDataChrom.h:63
const OSWDataSharedPtrType & getChromatogramAnnotation() const
Definition: LayerDataChrom.h:106
const ExperimentSharedPtrType & getChromatogramData() const
Returns a mutable reference to the current chromatogram data.
Definition: LayerDataChrom.h:78
std::unique_ptr< LayerStatistics > getStats() const override
Compute layer statistics (via visitor)
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...
void setOnDiscPeakData(ODExperimentSharedPtrType p)
Set the current on-disc data.
Definition: LayerDataChrom.h:90
PeakIndex findHighestDataPoint(const RangeAllType &area) const override
Find the datapoint with the highest intensity within the given range and return a proxy to that datap...
void setChromatogramAnnotation(OSWData &&data)
add annotation from an OSW sqlite file.
LayerDataChrom(const LayerDataChrom &ld)=default
Copy-ctor.
OSWDataSharedPtrType & getChromatogramAnnotation()
Definition: LayerDataChrom.h:101
std::unique_ptr< LayerData1DBase > to1DLayer() const override
Create a shallow copy (i.e. shared experimental data using shared_ptr) of the current layer,...
const ODExperimentSharedPtrType & getOnDiscPeakData() const
Returns a mutable reference to the on-disc data.
Definition: LayerDataChrom.h:96
PointXYType peakIndexToXY(const PeakIndex &peak, const DimMapper< 2 > &mapper) const override
Convert a PeakIndex to a XY coordinate (via mapper).
ProjectionData getProjection(const DIM_UNIT unit_x, const DIM_UNIT unit_y, const RangeAllType &area) const override
RangeAllType getRange() const override
Definition: LayerDataChrom.h:50
ExperimentSharedPtrType & getChromatogramData()
Returns a mutable reference to the current chromatogram data.
Definition: LayerDataChrom.h:84
LayerDataChrom & operator=(const LayerDataChrom &ld)=delete
no assignment operator (should not be needed)
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.
OSWDataSharedPtrType chrom_annotation_
Chromatogram annotation data.
Definition: LayerDataChrom.h:122
std::unique_ptr< Painter2DBase > getPainter2D() const override
Obtain a painter which can draw the layer on a 2D canvas.
void updateRanges() override
Update ranges of the underlying data.
Definition: LayerDataChrom.h:45
LayerDataChrom()
Default constructor.
String getDataArrayDescription(const PeakIndex &peak_index) override
Get name and value of all data-arrays corresponding to the given datapoint.
void setChromData(ExperimentSharedPtrType p)
Set the current in-memory chrom data.
Definition: LayerDataChrom.h:72
The representation of a chromatogram.
Definition: MSChromatogram.h:30
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:46
Holds all or partial information from an OSW file.
Definition: OSWData.h:279
Representation of a mass spectrometry experiment on disk.
Definition: OnDiscMSExperiment.h:41
auto & assign(const RangeManager< RangeBasesOther... > &rhs)
Definition: RangeManager.h:597
A more convenient string class.
Definition: String.h:34
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
DIM_UNIT
Definition: CommonEnums.h:20
boost::shared_ptr< OSWData > OSWDataSharedPtrType
SharedPtr on OSWData.
Definition: LayerDataChrom.h:16
Result of computing a projection on X and Y axis in a 2D Canvas; see LayerDataBase::getProjection()
Definition: LayerDataBase.h:51
boost::shared_ptr< ExperimentType > ExperimentSharedPtrType
SharedPtr on MSExperiment.
Definition: LayerDataBase.h:126
boost::shared_ptr< OnDiscMSExperiment > ODExperimentSharedPtrType
SharedPtr on On-Disc MSExperiment.
Definition: LayerDataBase.h:131
boost::shared_ptr< OSWData > OSWDataSharedPtrType
SharedPtr on OSWData.
Definition: LayerDataBase.h:134
Index of a peak or feature.
Definition: PeakIndex.h:25