Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages

Spectrum2DWidget Class Reference
[Spectrum visualizaion widgets]

#include <OpenMS/VISUAL/Spectrum2DWidget.h>

Inheritance diagram for Spectrum2DWidget:

SpectrumWidget QWidget

List of all members.


Detailed Description

Widget for 2D-visualization of peak map and feature map data.

The widget composes of two scoll bars, two AxisWidget and a Spectrum2DCanvas as central widget.

Spectrum2DWidget.png

The example image shows Spectrum2DWidget displaying a peak layer and a feature layer.

Public Slots

virtual void recalculateAxes_ ()
 recalculates the Axis ticks
void hideProjections ()
 Hides the projections.
virtual void showGoToDialog ()
 Shows a goto dialog.

Signals

void visibleAreaChanged (DRange< 2 > area)
 Signal emitted whenever the visible area changes.
void showCurrentPeaksAs3D ()
 Requests to display the current peak data of the active layer in 3D.
void showSpectrumAs1D (int index)
 Requests to display the spectrum with index index in 1D.

Public Member Functions

 Spectrum2DWidget (const Param &preferences, QWidget *parent=0)
 Default constructor.
virtual ~Spectrum2DWidget ()
 Destructor.
Spectrum2DCanvascanvas ()
 This method is overwritten to make the class specific members accessable.
const Spectrum1DWidgetgetHorizontalProjection () const
 const reference to the horizontal projection
const Spectrum1DWidgetgetVerticalProjection () const
 const reference to the vertical projection

Protected Member Functions

virtual Math::Histogram< UInt,
float > 
createIntensityDistribution_ ()
 creates the intensity distribution of the widget

Protected Attributes

Spectrum1DWidgetprojection_vert_
 Vertical projection widget.
Spectrum1DWidgetprojection_horz_
 Horizontal projection widget.
QGroupBox * projection_box_
 Group box that shows information about the projections.
QLabel * projection_peaks_
 Number of peaks of the projection.
QLabel * projection_sum_
 Intensity sum of the projection.
QLabel * projection_max_
 Intensity maximum of the projection.

Private Slots

void horizontalProjection (const MSExperiment<> &, Spectrum1DCanvas::DrawModes)
 shows the horizontal projection with the given data and draw mode
void verticalProjection (const MSExperiment<> &, Spectrum1DCanvas::DrawModes)
 shows the vertical projection with the given data and draw mode
void projectionInfo (int peaks, double intensity, double max)
 shows projections information


Constructor & Destructor Documentation

Spectrum2DWidget ( const Param preferences,
QWidget parent = 0 
)

Default constructor.

virtual ~Spectrum2DWidget (  )  [virtual]

Destructor.


Member Function Documentation

Spectrum2DCanvas* canvas (  )  [inline]

This method is overwritten to make the class specific members accessable.

Reimplemented from SpectrumWidget.

const Spectrum1DWidget* getHorizontalProjection (  )  const

const reference to the horizontal projection

const Spectrum1DWidget* getVerticalProjection (  )  const

const reference to the vertical projection

virtual void recalculateAxes_ (  )  [virtual, slot]

recalculates the Axis ticks

Implements SpectrumWidget.

void hideProjections (  )  [slot]

Hides the projections.

virtual void showGoToDialog (  )  [virtual, slot]

Shows a goto dialog.

Implements SpectrumWidget.

void visibleAreaChanged ( DRange< 2 >  area  )  [signal]

Signal emitted whenever the visible area changes.

Parameters:
area The new visible area.

void showCurrentPeaksAs3D (  )  [signal]

Requests to display the current peak data of the active layer in 3D.

void showSpectrumAs1D ( int  index  )  [signal]

Requests to display the spectrum with index index in 1D.

virtual Math::Histogram<UInt,float> createIntensityDistribution_ (  )  [protected, virtual]

creates the intensity distribution of the widget

Implements SpectrumWidget.

void horizontalProjection ( const MSExperiment<> &  ,
Spectrum1DCanvas::DrawModes   
) [private, slot]

shows the horizontal projection with the given data and draw mode

void verticalProjection ( const MSExperiment<> &  ,
Spectrum1DCanvas::DrawModes   
) [private, slot]

shows the vertical projection with the given data and draw mode

void projectionInfo ( int  peaks,
double  intensity,
double  max 
) [private, slot]

shows projections information


Member Data Documentation

Spectrum1DWidget* projection_vert_ [protected]

Vertical projection widget.

Spectrum1DWidget* projection_horz_ [protected]

Horizontal projection widget.

QGroupBox* projection_box_ [protected]

Group box that shows information about the projections.

QLabel* projection_peaks_ [protected]

Number of peaks of the projection.

QLabel* projection_sum_ [protected]

Intensity sum of the projection.

QLabel* projection_max_ [protected]

Intensity maximum of the projection.


The documentation for this class was generated from the following file:
Generated Tue Apr 1 15:36:48 2008 -- using doxygen 1.5.4 OpenMS / TOPP 1.1