35 #ifndef OPENMS_VISUAL_LAYERDATA_H
36 #define OPENMS_VISUAL_LAYERDATA_H
49 #include <boost/shared_ptr.hpp>
91 std::bitset<SIZE_OF_FLAGS>
flags;
145 peaks(new ExperimentType()),
252 this->
getPeakData()->metaValueExists(
"is_chromatogram") &&
253 this->
getPeakData()->getMetaValue(
"is_chromatogram").toBool();
259 this->
getPeakData()->setMetaValue(
"is_chromatogram",
"true");
267 this->
getPeakData()->removeMetaValue(
"is_chromatogram");
MSSpectrum< PeakType > SpectrumType
Spectrum Type.
Definition: MSExperiment.h:91
FeatureMapSharedPtrType features
feature data
Definition: LayerData.h:312
const Annotations1DContainer & getCurrentAnnotations() const
Returns a const reference to the annotations of the current spectrum (1d view)
Definition: LayerData.h:204
A more convenient string class.
Definition: String.h:57
LabelType label
Label type.
Definition: LayerData.h:308
const ConsensusMapSharedPtrType & getConsensusMap() const
Returns a const reference to the consensus feature data.
Definition: LayerData.h:168
const FeatureMapSharedPtrType & getFeatureMap() const
Returns a const reference to the current feature data.
Definition: LayerData.h:156
bool modified
Flag that indicates that the layer data was modified since loading it.
Definition: LayerData.h:305
A container for features.
Definition: FeatureMap.h:93
FeatureMapSharedPtrType & getFeatureMap()
Returns a const reference to the current feature data.
Definition: LayerData.h:162
void remove_chromatogram_flag()
Definition: LayerData.h:263
ExperimentType::SpectrumType & getCurrentSpectrum()
Returns a mutable reference to the current spectrum (1d view)
Definition: LayerData.h:228
Size getCurrentSpectrumIndex() const
Get the index of the current spectrum.
Definition: LayerData.h:234
A container for consensus elements.
Definition: ConsensusMap.h:72
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Annotations1DContainer & getCurrentAnnotations()
Returns a mutable reference to the annotations of the current spectrum (1d view)
Definition: LayerData.h:210
std::vector< Annotations1DContainer > annotations_1d
Annotations of all spectra of the experiment (1D view)
Definition: LayerData.h:299
ExperimentSharedPtrType & getPeakData()
Returns a mutable reference to the current peak data.
Definition: LayerData.h:186
String name
layer name
Definition: LayerData.h:281
bool flipped
if this layer is flipped (1d mirror view)
Definition: LayerData.h:275
ExperimentSharedPtrType & getChromatogramData()
Returns a mutable reference to the current chromatogram data.
Definition: LayerData.h:198
ExperimentSharedPtrType chromatograms
chromatogram data
Definition: LayerData.h:321
Param param
Layer parameters.
Definition: LayerData.h:290
const ExperimentSharedPtrType & getPeakData() const
Returns a const reference to the current peak data.
Definition: LayerData.h:180
Annotations1DContainer & getAnnotations(Size spectrum_index)
Returns a mutable reference to the annotations of the current spectrum (1d view)
Definition: LayerData.h:222
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
ConsensusMapSharedPtrType & getConsensusMap()
Returns current consensus map (mutable)
Definition: LayerData.h:174
String filename
file name of the file the data comes from (if available)
Definition: LayerData.h:284
const ExperimentSharedPtrType & getChromatogramData() const
Returns a const reference to the current chromatogram data.
Definition: LayerData.h:192
Size current_spectrum_
Index of the current spectrum.
Definition: LayerData.h:324
void set_chromatogram_flag()
Definition: LayerData.h:257
ExperimentSharedPtrType peaks
peak data
Definition: LayerData.h:318
const Annotations1DContainer & getAnnotations(Size spectrum_index) const
Returns a const reference to the annotations of the current spectrum (1d view)
Definition: LayerData.h:216
bool chromatogram_flag_set() const
Check whether the current layer is a chromatogram.
Definition: LayerData.h:249
Management and storage of parameters / INI files.
Definition: Param.h:75
bool modifiable
Flag that indicates if the layer data can be modified (so far used for features only) ...
Definition: LayerData.h:302
void setCurrentSpectrumIndex(Size index)
Set the index of the current spectrum.
Definition: LayerData.h:240
std::vector< PeptideIdentification > peptides
peptide identifications
Definition: LayerData.h:287
DataFilters filters
Filters to apply before painting.
Definition: LayerData.h:296
LayerData()
Default constructor.
Definition: LayerData.h:128
DataType type
data type (peak or feature data)
Definition: LayerData.h:278
const ExperimentType::SpectrumType & getCurrentSpectrum() const
Returns a const reference to the current spectrum (1d view)
DataFilter array providing some convenience functions.
Definition: DataFilters.h:51
A gradient of multiple colors and arbitrary distances between colors.
Definition: MultiGradient.h:68
MultiGradient gradient
Gradient for 2D and 3D views.
Definition: LayerData.h:293
Container for annotations to content of Spectrum1DCanvas.
Definition: Annotations1DContainer.h:54
ConsensusMapSharedPtrType consensus
consensus feature data
Definition: LayerData.h:315
bool visible
if this layer is visible
Definition: LayerData.h:272
Class that stores the data for one layer.
Definition: LayerData.h:61