Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | Private Slots

Spectrum2DWidget Class Reference
[Spectrum visualizaion widgets]

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

#include <OpenMS/VISUAL/Spectrum2DWidget.h>

Inheritance diagram for Spectrum2DWidget:
SpectrumWidget QWidget EnhancedTabBarWidgetInterface

List of all members.

Public Types

typedef
LayerData::ExperimentSharedPtrType 
ExperimentSharedPtrType
 Main managed data type (experiment).

Public Slots

virtual void recalculateAxes_ ()
 recalculates the Axis ticks
void toggleProjections ()
 Shows/hides the projections.
void updateProjections ()
 Updates and shows the projections.
virtual void showGoToDialog ()
 Shows a goto dialog.

Signals

void visibleAreaChanged (DRange< 2 > area)
 Signal emitted whenever the visible area changes.
void showSpectrumAs1D (int index)
 Requests to display the spectrum with index index in 1D.
void showSpectrumAs1D (std::vector< int, std::allocator< int > > indices)
void showCurrentPeaksAs3D ()
 Requests to display all spectra as 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 accessible.
const Spectrum1DWidgetgetHorizontalProjection () const
 const reference to the horizontal projection
const Spectrum1DWidgetgetVerticalProjection () const
 const reference to the vertical projection
bool projectionsVisible () const
 Returns if one of the projections is visible (or both are visible).

Protected Member Functions

virtual Math::Histogram createIntensityDistribution_ () const
 creates the intensity distribution of the current layer
virtual Math::Histogram createMetaDistribution_ (const String &name) const
 creates the meta data distribution of value name of the current layer

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.
QCheckBox * projections_auto_
 Checkbox that indicates that projections should be automatically updated (with a slight delay).
QTimer * projections_timer_
 Timer that triggers auto-update of projections.

Private Slots

void horizontalProjection (ExperimentSharedPtrType, Spectrum1DCanvas::DrawModes)
 shows the horizontal projection with the given data and draw mode
void verticalProjection (ExperimentSharedPtrType exp, Spectrum1DCanvas::DrawModes)
 shows the vertical projection with the given data and draw mode
void projectionInfo (int peaks, double intensity, double max)
 shows projections information
void autoUpdateProjections ()
 slot that monitors the visible area changes and triggers the update of projections

Detailed Description

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

The widget is composed of two scroll bars, two AxisWidget and a Spectrum2DCanvas as central widget.

Spectrum2DWidget.png

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


Member Typedef Documentation

Main managed data type (experiment).


Constructor & Destructor Documentation

Spectrum2DWidget ( const Param preferences,
QWidget parent = 0 
)

Default constructor.

virtual ~Spectrum2DWidget (  )  [virtual]

Destructor.


Member Function Documentation

void autoUpdateProjections (  )  [private, slot]

slot that monitors the visible area changes and triggers the update of projections

Spectrum2DCanvas* canvas (  )  [inline]

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

Reimplemented from SpectrumWidget.

Referenced by TOPPViewBase::changeLabel(), TOPPViewBase::changeUnassigned(), TOPPViewBase::setIntensityMode(), TOPPViewBase::showCurrentPeaksAs2D(), and TOPPViewBase::updateToolBar().

virtual Math::Histogram createIntensityDistribution_ (  )  const [protected, virtual]

creates the intensity distribution of the current layer

Implements SpectrumWidget.

virtual Math::Histogram createMetaDistribution_ ( const String name  )  const [protected, virtual]

creates the meta data distribution of value name of the current layer

Implements SpectrumWidget.

const Spectrum1DWidget* getHorizontalProjection (  )  const

const reference to the horizontal projection

Referenced by TOPPViewBase::showSpectrumWidgetInWindow().

const Spectrum1DWidget* getVerticalProjection (  )  const

const reference to the vertical projection

Referenced by TOPPViewBase::showSpectrumWidgetInWindow().

void horizontalProjection ( ExperimentSharedPtrType  ,
Spectrum1DCanvas::DrawModes   
) [private, slot]

shows the horizontal projection with the given data and draw mode

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

shows projections information

bool projectionsVisible (  )  const

Returns if one of the projections is visible (or both are visible).

Referenced by TOPPViewBase::toggleProjections().

virtual void recalculateAxes_ (  )  [virtual, slot]

recalculates the Axis ticks

Implements SpectrumWidget.

void showCurrentPeaksAs3D (  )  [signal]

Requests to display all spectra as 1D.

virtual void showGoToDialog (  )  [virtual, slot]

Shows a goto dialog.

Implements SpectrumWidget.

void showSpectrumAs1D ( int  index  )  [signal]

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

void showSpectrumAs1D ( std::vector< int, std::allocator< int > >  indices  )  [signal]
void toggleProjections (  )  [slot]

Shows/hides the projections.

Referenced by TOPPViewBase::toggleProjections().

void updateProjections (  )  [slot]

Updates and shows the projections.

void verticalProjection ( ExperimentSharedPtrType  exp,
Spectrum1DCanvas::DrawModes   
) [private, slot]

shows the vertical projection with the given data and draw mode

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

Signal emitted whenever the visible area changes.

Parameters:
area The new visible area.

Member Data Documentation

QGroupBox* projection_box_ [protected]

Group box that shows information about the projections.

Horizontal projection widget.

QLabel* projection_max_ [protected]

Intensity maximum of the projection.

QLabel* projection_peaks_ [protected]

Number of peaks of the projection.

QLabel* projection_sum_ [protected]

Intensity sum of the projection.

Vertical projection widget.

QCheckBox* projections_auto_ [protected]

Checkbox that indicates that projections should be automatically updated (with a slight delay).

QTimer* projections_timer_ [protected]

Timer that triggers auto-update of projections.


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