#include <OpenMS/VISUAL/Spectrum2DWidget.h>
The widget composes of two scoll bars, two AxisWidget and a Spectrum2DCanvas as central widget.
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. | |
Spectrum2DCanvas * | canvas () |
This method is overwritten to make the class specific members accessable. | |
const Spectrum1DWidget * | getHorizontalProjection () const |
const reference to the horizontal projection | |
const Spectrum1DWidget * | getVerticalProjection () 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 | |
Spectrum1DWidget * | projection_vert_ |
Vertical projection widget. | |
Spectrum1DWidget * | projection_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 |
Spectrum2DWidget | ( | const Param & | preferences, | |
QWidget * | parent = 0 | |||
) |
Default constructor.
virtual ~Spectrum2DWidget | ( | ) | [virtual] |
Destructor.
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] |
void hideProjections | ( | ) | [slot] |
Hides the projections.
virtual void showGoToDialog | ( | ) | [virtual, slot] |
void visibleAreaChanged | ( | DRange< 2 > | area | ) | [signal] |
Signal emitted whenever the visible area changes.
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] |
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
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.
Generated Tue Apr 1 15:36:48 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |