Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Member Functions | Public Attributes | Private Attributes | List of all members
LayerData Class Reference

Class that stores the data for one layer. More...

#include <OpenMS/VISUAL/LayerData.h>

Public Member Functions

 LayerData ()
 Default constructor. More...
 
const ExperimentType::SpectrumTypegetCurrentSpectrum () const
 Returns a const reference to the current spectrum (1d view) More...
 
const FeatureMapSharedPtrTypegetFeatureMap () const
 Returns a const reference to the current feature data. More...
 
FeatureMapSharedPtrTypegetFeatureMap ()
 Returns a const reference to the current feature data. More...
 
const ConsensusMapSharedPtrTypegetConsensusMap () const
 Returns a const reference to the consensus feature data. More...
 
ConsensusMapSharedPtrTypegetConsensusMap ()
 Returns current consensus map (mutable) More...
 
const ExperimentSharedPtrTypegetPeakData () const
 Returns a const reference to the current peak data. More...
 
ExperimentSharedPtrTypegetPeakData ()
 Returns a mutable reference to the current peak data. More...
 
const ExperimentSharedPtrTypegetChromatogramData () const
 Returns a const reference to the current chromatogram data. More...
 
ExperimentSharedPtrTypegetChromatogramData ()
 Returns a mutable reference to the current chromatogram data. More...
 
const Annotations1DContainergetCurrentAnnotations () const
 Returns a const reference to the annotations of the current spectrum (1d view) More...
 
Annotations1DContainergetCurrentAnnotations ()
 Returns a mutable reference to the annotations of the current spectrum (1d view) More...
 
const Annotations1DContainergetAnnotations (Size spectrum_index) const
 Returns a const reference to the annotations of the current spectrum (1d view) More...
 
Annotations1DContainergetAnnotations (Size spectrum_index)
 Returns a mutable reference to the annotations of the current spectrum (1d view) More...
 
ExperimentType::SpectrumTypegetCurrentSpectrum ()
 Returns a mutable reference to the current spectrum (1d view) More...
 
Size getCurrentSpectrumIndex () const
 Get the index of the current spectrum. More...
 
void setCurrentSpectrumIndex (Size index)
 Set the index of the current spectrum. More...
 
bool chromatogram_flag_set () const
 Check whether the current layer is a chromatogram. More...
 
void set_chromatogram_flag ()
 
void remove_chromatogram_flag ()
 

Public Attributes

bool visible
 if this layer is visible More...
 
bool flipped
 if this layer is flipped (1d mirror view) More...
 
DataType type
 data type (peak or feature data) More...
 
String name
 layer name More...
 
String filename
 file name of the file the data comes from (if available) More...
 
std::vector< PeptideIdentificationpeptides
 peptide identifications More...
 
Param param
 Layer parameters. More...
 
MultiGradient gradient
 Gradient for 2D and 3D views. More...
 
DataFilters filters
 Filters to apply before painting. More...
 
std::vector< Annotations1DContainerannotations_1d
 Annotations of all spectra of the experiment (1D view) More...
 
bool modifiable
 Flag that indicates if the layer data can be modified (so far used for features only) More...
 
bool modified
 Flag that indicates that the layer data was modified since loading it. More...
 
LabelType label
 Label type. More...
 

Private Attributes

FeatureMapSharedPtrType features
 feature data More...
 
ConsensusMapSharedPtrType consensus
 consensus feature data More...
 
ExperimentSharedPtrType peaks
 peak data More...
 
ExperimentSharedPtrType chromatograms
 chromatogram data More...
 
Size current_spectrum_
 Index of the current spectrum. More...
 

Type definitions

enum  DataType {
  DT_PEAK, DT_FEATURE, DT_CONSENSUS, DT_CHROMATOGRAM,
  DT_IDENT, DT_UNKNOWN
}
 Dataset types. More...
 
enum  Flags {
  F_HULL, F_HULLS, F_UNASSIGNED, P_PRECURSORS,
  P_PROJECTIONS, C_ELEMENTS, I_PEPTIDEMZ, SIZE_OF_FLAGS
}
 Flags that determine which information is shown. More...
 
enum  LabelType {
  L_NONE, L_INDEX, L_META_LABEL, L_ID,
  L_ID_ALL, SIZE_OF_LABEL_TYPE
}
 Label used in visualization. More...
 
typedef FeatureMap FeatureMapType
 Features. More...
 
typedef boost::shared_ptr< FeatureMapFeatureMapSharedPtrType
 SharedPtr on feature map. More...
 
typedef ConsensusMap ConsensusMapType
 consensus features More...
 
typedef boost::shared_ptr< ConsensusMapConsensusMapSharedPtrType
 SharedPtr on consensus features. More...
 
typedef MSExperiment ExperimentType
 Main data type (experiment) More...
 
typedef boost::shared_ptr< ExperimentTypeExperimentSharedPtrType
 SharedPtr on MSExperiment. More...
 
std::bitset< SIZE_OF_FLAGSflags
 Actual state of each flag. More...
 
static const std::string NamesOfLabelType [SIZE_OF_LABEL_TYPE]
 Label names. More...
 

Detailed Description

Class that stores the data for one layer.

Constructor & Destructor Documentation

LayerData ( )
inline

Default constructor.

References LayerData::annotations_1d.

Member Function Documentation

bool chromatogram_flag_set ( ) const
inline

Check whether the current layer is a chromatogram.

References LayerData::getPeakData().

Referenced by LayerData::remove_chromatogram_flag(), and TOPPViewBase::runTOPPTool_().

const Annotations1DContainer& getAnnotations ( Size  spectrum_index) const
inline

Returns a const reference to the annotations of the current spectrum (1d view)

References LayerData::annotations_1d.

Annotations1DContainer& getAnnotations ( Size  spectrum_index)
inline

Returns a mutable reference to the annotations of the current spectrum (1d view)

References LayerData::annotations_1d.

const ExperimentSharedPtrType& getChromatogramData ( ) const
inline

Returns a const reference to the current chromatogram data.

References LayerData::chromatograms.

ExperimentSharedPtrType& getChromatogramData ( )
inline

Returns a mutable reference to the current chromatogram data.

References LayerData::chromatograms.

const ConsensusMapSharedPtrType& getConsensusMap ( ) const
inline

Returns a const reference to the consensus feature data.

References LayerData::consensus.

Referenced by TOPPViewBase::annotateWithID(), TOPPViewBase::copyLayer(), TOPPViewBase::fileChanged_(), and TOPPViewBase::runTOPPTool_().

ConsensusMapSharedPtrType& getConsensusMap ( )
inline

Returns current consensus map (mutable)

References LayerData::consensus.

const Annotations1DContainer& getCurrentAnnotations ( ) const
inline

Returns a const reference to the annotations of the current spectrum (1d view)

References LayerData::annotations_1d, and LayerData::current_spectrum_.

Annotations1DContainer& getCurrentAnnotations ( )
inline

Returns a mutable reference to the annotations of the current spectrum (1d view)

References LayerData::annotations_1d, and LayerData::current_spectrum_.

const ExperimentType::SpectrumType& getCurrentSpectrum ( ) const

Returns a const reference to the current spectrum (1d view)

ExperimentType::SpectrumType& getCurrentSpectrum ( )
inline

Returns a mutable reference to the current spectrum (1d view)

References LayerData::current_spectrum_, and LayerData::peaks.

Size getCurrentSpectrumIndex ( ) const
inline

Get the index of the current spectrum.

References LayerData::current_spectrum_.

Referenced by TOPPViewBase::runTOPPTool_().

const FeatureMapSharedPtrType& getFeatureMap ( ) const
inline

Returns a const reference to the current feature data.

References LayerData::features.

Referenced by TOPPViewBase::annotateWithID(), TOPPViewBase::copyLayer(), TOPPViewBase::fileChanged_(), and TOPPViewBase::runTOPPTool_().

FeatureMapSharedPtrType& getFeatureMap ( )
inline

Returns a const reference to the current feature data.

References LayerData::features.

const ExperimentSharedPtrType& getPeakData ( ) const
inline
ExperimentSharedPtrType& getPeakData ( )
inline

Returns a mutable reference to the current peak data.

References LayerData::peaks.

void remove_chromatogram_flag ( )
inline
void set_chromatogram_flag ( )
inline
void setCurrentSpectrumIndex ( Size  index)
inline

Set the index of the current spectrum.

References LayerData::current_spectrum_.

Member Data Documentation

std::vector<Annotations1DContainer> annotations_1d

Annotations of all spectra of the experiment (1D view)

Referenced by LayerData::getAnnotations(), LayerData::getCurrentAnnotations(), and LayerData::LayerData().

ExperimentSharedPtrType chromatograms
private

chromatogram data

Referenced by LayerData::getChromatogramData().

ConsensusMapSharedPtrType consensus
private

consensus feature data

Referenced by LayerData::getConsensusMap().

Size current_spectrum_
private
FeatureMapSharedPtrType features
private

feature data

Referenced by LayerData::getFeatureMap().

String filename
DataFilters filters
bool flipped

if this layer is flipped (1d mirror view)

Referenced by TOPPViewBase::updateLayerBar().

MultiGradient gradient

Gradient for 2D and 3D views.

LabelType label

Label type.

Referenced by TOPPViewBase::updateToolBar().

bool modifiable

Flag that indicates if the layer data can be modified (so far used for features only)

bool modified

Flag that indicates that the layer data was modified since loading it.

Referenced by TOPPViewBase::updateLayerBar().

String name
Param param
ExperimentSharedPtrType peaks
private
std::vector<PeptideIdentification> peptides

peptide identifications

Referenced by TOPPViewBase::copyLayer().

DataType type
bool visible

OpenMS / TOPP release 2.0.0 Documentation generated on Fri May 29 2015 17:20:39 using doxygen 1.8.9.1