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;
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");
Flags
Flags that determine which information is shown.
Definition: LayerData.h:78
boost::shared_ptr< FeatureMap > FeatureMapSharedPtrType
SharedPtr on feature map.
Definition: LayerData.h:111
Consensus features: Show elements.
Definition: LayerData.h:85
static const std::string NamesOfLabelType[SIZE_OF_LABEL_TYPE]
Label names.
Definition: LayerData.h:105
Features: Convex hulls of single mass traces.
Definition: LayerData.h:81
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
std::bitset< SIZE_OF_FLAGS > flags
Actual state of each flag.
Definition: LayerData.h:91
Features: Overall convex hull.
Definition: LayerData.h:80
Definition: LayerData.h:87
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
DataType
Dataset types.
Definition: LayerData.h:67
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
MSExperiment ExperimentType
Main data type (experiment)
Definition: LayerData.h:120
All peptide hits of the first identification run are used.
Definition: LayerData.h:100
Size getCurrentSpectrumIndex() const
Get the index of the current spectrum.
Definition: LayerData.h:234
A container for consensus elements.
Definition: ConsensusMap.h:72
Undefined data type indicating an error.
Definition: LayerData.h:74
Peptide identification data.
Definition: LayerData.h:73
Annotations1DContainer & getCurrentAnnotations()
Returns a mutable reference to the annotations of the current spectrum (1d view)
Definition: LayerData.h:210
boost::shared_ptr< ExperimentType > ExperimentSharedPtrType
SharedPtr on MSExperiment.
Definition: LayerData.h:123
Chromatogram data.
Definition: LayerData.h:72
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
The 'label' meta information is used.
Definition: LayerData.h:98
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
Feature data.
Definition: LayerData.h:70
Annotations1DContainer & getAnnotations(Size spectrum_index)
Returns a mutable reference to the annotations of the current spectrum (1d view)
Definition: LayerData.h:222
boost::shared_ptr< ConsensusMap > ConsensusMapSharedPtrType
SharedPtr on consensus features.
Definition: LayerData.h:117
Consensus feature data.
Definition: LayerData.h:71
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
ConsensusMap ConsensusMapType
consensus features
Definition: LayerData.h:114
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
Peaks: Show projections.
Definition: LayerData.h:84
bool modifiable
Flag that indicates if the layer data can be modified (so far used for features only) ...
Definition: LayerData.h:302
Peaks: Mark precursor peaks of MS/MS scans.
Definition: LayerData.h:83
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
LabelType
Label used in visualization.
Definition: LayerData.h:94
The best peptide hit of the first identification run is used.
Definition: LayerData.h:99
Spectrum profile or centroided data.
Definition: LayerData.h:69
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
The element number is used.
Definition: LayerData.h:97
MultiGradient gradient
Gradient for 2D and 3D views.
Definition: LayerData.h:293
Container for annotations to content of Spectrum1DCanvas.
Definition: Annotations1DContainer.h:54
No label is displayed.
Definition: LayerData.h:96
ConsensusMapSharedPtrType consensus
consensus feature data
Definition: LayerData.h:315
Features: Unassigned peptide hits.
Definition: LayerData.h:82
bool visible
if this layer is visible
Definition: LayerData.h:272
Definition: LayerData.h:101
Class that stores the data for one layer.
Definition: LayerData.h:61
Identifications: m/z source.
Definition: LayerData.h:86
FeatureMap FeatureMapType
Features.
Definition: LayerData.h:108