Widget for visualization of several spectra. More...
#include <OpenMS/VISUAL/Spectrum1DWidget.h>
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. | |
| Spectrum1DCanvas * | canvas () |
| 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 ¶m) |
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 | |
| AxisWidget * | flipped_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). | |
Widget for visualization of several spectra.
The widget is composed of a scroll bar, an AxisWidget and a Spectrum1DCanvas as central widget.
The example image shows Spectrum1DWidget displaying a raw data layer and a peak data layer.
| Spectrum1DWidget | ( | const Param & | preferences, | |
| QWidget * | parent = 0 | |||
| ) |
Default constructor.
| virtual ~Spectrum1DWidget | ( | ) | [virtual] |
Destructor.
| Spectrum1DCanvas* canvas | ( | ) | [inline] |
This method is overwritten to make the class specific members accessible.
Reimplemented from SpectrumWidget.
Referenced by TOPPViewBase::addData(), IDEvaluationBase::addSearchFile(), IDEvaluationBase::IDEvaluationBase(), TOPPViewBase::layerContextMenu(), TOPPViewBase::layerZoomChanged(), IDEvaluationBase::resetZoom(), TOPPViewBase::setDrawMode1D(), IDEvaluationBase::setVisibleArea(), TOPPViewBase::showSpectrumAlignmentDialog(), TOPPViewBase::updateMenu(), 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.
| virtual void hideAxes | ( | ) | [virtual] |
Hides x-axis and y-axis.
Reimplemented from SpectrumWidget.
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] |
Referenced by IDEvaluationBase::exportAsImage().
| 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.
AxisWidget* flipped_y_axis_ [protected] |
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 |