Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Member Functions | Public Attributes | Private Attributes

LayerData Class Reference
[Spectrum visualizaion widgets]

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

#include <OpenMS/VISUAL/LayerData.h>

List of all members.

Public Member Functions

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

Public Attributes

bool visible
 if this layer is visible
bool flipped
 if this layer is flipped (1d mirror view)
DataType type
 data type (peak or feature data)
String name
 layer name
String filename
 file name of the file the data comes from (if available)
std::vector
< PeptideIdentification
peptides
 peptide identifications
Param param
 Layer parameters.
MultiGradient gradient
 Gradient for 2D and 3D views.
DataFilters filters
 Filters to apply before painting.
std::vector
< Annotations1DContainer
annotations_1d
 Annotations of all spectra of the experiment (1D view).
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.
LabelType label
 Label type.

Private Attributes

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

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.
typedef boost::shared_ptr
< FeatureMap<> > 
FeatureMapSharedPtrType
 SharedPtr on feature map.
typedef ConsensusMap ConsensusMapType
 consensus features
typedef boost::shared_ptr
< ConsensusMap
ConsensusMapSharedPtrType
 SharedPtr on consensus features.
typedef MSExperiment ExperimentType
 Main data type (experiment).
typedef boost::shared_ptr
< ExperimentType
ExperimentSharedPtrType
 SharedPtr on MSExperiment.
std::bitset< SIZE_OF_FLAGS > flags
 Actual state of each flag.
static const std::string NamesOfLabelType [SIZE_OF_LABEL_TYPE]
 Label names.

Detailed Description

Class that stores the data for one layer.


Member Typedef Documentation

typedef boost::shared_ptr<ConsensusMap> ConsensusMapSharedPtrType

SharedPtr on consensus features.

consensus features

typedef boost::shared_ptr<ExperimentType> ExperimentSharedPtrType

SharedPtr on MSExperiment.

Main data type (experiment).

typedef boost::shared_ptr<FeatureMap<> > FeatureMapSharedPtrType

SharedPtr on feature map.

Features.


Member Enumeration Documentation

enum DataType

Dataset types.

Enumerator:
DT_PEAK 

Spectrum profile or centroided data.

DT_FEATURE 

Feature data.

DT_CONSENSUS 

Consensus feature data.

DT_CHROMATOGRAM 

Chromatogram data.

DT_IDENT 

Peptide identification data.

DT_UNKNOWN 

Undefined data type indicating an error.

enum Flags

Flags that determine which information is shown.

Enumerator:
F_HULL 

Features: Overall convex hull.

F_HULLS 

Features: Convex hulls of single mass traces.

F_UNASSIGNED 

Features: Unassigned peptide hits.

P_PRECURSORS 

Peaks: Mark precursor peaks of MS/MS scans.

P_PROJECTIONS 

Peaks: Show projections.

C_ELEMENTS 

Consensus features: Show elements.

I_PEPTIDEMZ 

Identifications: m/z source.

SIZE_OF_FLAGS 
enum LabelType

Label used in visualization.

Enumerator:
L_NONE 

No label is displayed.

L_INDEX 

The element number is used.

L_META_LABEL 

The 'label' meta information is used.

L_ID 

The best peptide hit of the first identification run is used.

L_ID_ALL 

All peptide hits of the first identification run are used.

SIZE_OF_LABEL_TYPE 

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.

ExperimentSharedPtrType& getChromatogramData (  )  [inline]

Returns a mutable reference to the current chromatogram data.

References LayerData::chromatograms.

const ExperimentSharedPtrType& getChromatogramData (  )  const [inline]

Returns a const 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.

ExperimentSharedPtrType& getPeakData (  )  [inline]

Returns a mutable reference to the current peak data.

References LayerData::peaks.

const ExperimentSharedPtrType& getPeakData (  )  const [inline]
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

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

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

chromatogram data

Referenced by LayerData::getChromatogramData().

consensus feature data

Referenced by LayerData::getConsensusMap().

feature data

Referenced by LayerData::getFeatureMap().

std::bitset<SIZE_OF_FLAGS> flags

Actual state of each flag.

bool flipped

if this layer is flipped (1d mirror view)

Referenced by TOPPViewBase::updateLayerBar().

Gradient for 2D and 3D views.

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().

const std::string NamesOfLabelType[SIZE_OF_LABEL_TYPE] [static]

peptide identifications

Referenced by TOPPViewBase::copyLayer().

bool visible

OpenMS / TOPP release 1.10.0 Documentation generated on Thu Mar 7 2013 09:42:58 using doxygen 1.7.1