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

Spectrum1DWidget Class Reference
[Spectrum visualizaion widgets]

Widget for visualization of several spectra. More...

#include <OpenMS/VISUAL/Spectrum1DWidget.h>

Inheritance diagram for Spectrum1DWidget:
SpectrumWidget QWidget EnhancedTabBarWidgetInterface

List of all members.

Public Slots

virtual void showGoToDialog ()
 Shows a goto dialog.

Signals

void visibleAreaChanged (double, double)
 Is emitted whenever the visible area changes.
void showCurrentPeaksAs2D ()
 Requests to display the whole spectrum in 2D view.
void showCurrentPeaksAs3D ()
 Requests to display the whole spectrum in 3D view.

Public Member Functions

 Spectrum1DWidget (const Param &preferences, QWidget *parent=0)
 Default constructor.
virtual ~Spectrum1DWidget ()
 Destructor.
Spectrum1DCanvascanvas ()
 This method is overwritten to make the class specific members accessible.
virtual void hideAxes ()
 Hides x-axis and y-axis.
virtual void showLegend (bool show)
 Shows/hides axis labels.
void toggleMirrorView (bool mirror)
 Switches to mirror view, displays another y-axis for the second spectrum.
void performAlignment (Size layer_index_1, Size layer_index_2, const Param &param)
 Performs an alignment of the layers with layer_index_1 and layer_index_2.
void resetAlignment ()
 Resets the alignment.
virtual void saveAsImage ()
 Saves the widget's content as image file.
virtual void renderForImage (QPainter &painter)

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
virtual void recalculateAxes_ ()
 recalculates the Axis ticks

Protected Attributes

AxisWidgetflipped_y_axis_
 The second y-axis for the mirror view.
QSpacerItem * spacer_
 Spacer between the two y-axes in mirror mode (needed when visualizing an alignment).

Detailed Description

Widget for visualization of several spectra.

The widget is composed of a scroll bar, an AxisWidget and a Spectrum1DCanvas as central widget.

Spectrum1DWidget.png

The example image shows Spectrum1DWidget displaying a raw data layer and a peak data layer.


Constructor & Destructor Documentation

Spectrum1DWidget ( const Param preferences,
QWidget parent = 0 
)

Default constructor.

virtual ~Spectrum1DWidget (  )  [virtual]

Destructor.


Member Function Documentation

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.

virtual void hideAxes (  )  [virtual]

Hides x-axis and y-axis.

Reimplemented from SpectrumWidget.

void performAlignment ( Size  layer_index_1,
Size  layer_index_2,
const Param param 
)

Performs an alignment of the layers with layer_index_1 and layer_index_2.

Referenced by TOPPViewBase::showSpectrumAlignmentDialog().

virtual void recalculateAxes_ (  )  [protected, virtual]

recalculates the Axis ticks

Implements SpectrumWidget.

virtual void renderForImage ( QPainter &  painter  )  [virtual]
void resetAlignment (  ) 

Resets the alignment.

virtual void saveAsImage (  )  [virtual]

Saves the widget's content as image file.

Reimplemented from SpectrumWidget.

void showCurrentPeaksAs2D (  )  [signal]

Requests to display the whole spectrum in 2D view.

void showCurrentPeaksAs3D (  )  [signal]

Requests to display the whole spectrum in 3D view.

virtual void showGoToDialog (  )  [virtual, slot]

Shows a goto dialog.

Implements SpectrumWidget.

virtual void showLegend ( bool  show  )  [virtual]

Shows/hides axis labels.

Reimplemented from SpectrumWidget.

void toggleMirrorView ( bool  mirror  ) 

Switches to mirror view, displays another y-axis for the second spectrum.

void visibleAreaChanged ( double  ,
double   
) [signal]

Is emitted whenever the visible area changes.


Member Data Documentation

The second y-axis for the mirror view.

QSpacerItem* spacer_ [protected]

Spacer between the two y-axes in mirror mode (needed when visualizing an alignment).


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