Painter2D for spectra.
More...
#include <OpenMS/VISUAL/Painter2DBase.h>
|
| static void | paintIcon_ (const QPoint &pos, const QRgb &color, const String &icon, Size s, QPainter &p) |
| | draws squares, circles etc More...
|
| |
| static void | paintConvexHull_ (QPainter &painter, Plot2DCanvas *canvas, const ConvexHull2D &hull, bool has_identifications) |
| | Paints a convex hull. More...
|
| |
| static void | paintConvexHulls_ (QPainter &painter, Plot2DCanvas *canvas, const std::vector< ConvexHull2D > &hulls, bool has_identifications) |
| | Paints convex hulls. More...
|
| |
| static void | paintPeptideIDs_ (QPainter *painter, Plot2DCanvas *canvas, const IPeptideIds::PepIds &ids, int layer_index) |
| |
◆ Painter2DPeak()
C'tor which remembers the layer to paint.
◆ paint()
| void paint |
( |
QPainter * |
painter, |
|
|
Plot2DCanvas * |
canvas, |
|
|
int |
layer_index |
|
) |
| |
|
overridevirtual |
Paints items using the given painter onto the canvas.
- Parameters
-
| painter | The painter used for drawing |
| canvas | The canvas to paint onto (should expose all the details needed, like canvas size, draw mode, colors etc) |
| layer_index | Which layer is currently painted |
Implements Painter2DBase.
◆ paintAllIntensities_()
◆ paintMaximumIntensities_()
| void paintMaximumIntensities_ |
( |
QPainter & |
painter, |
|
|
Plot2DCanvas * |
canvas, |
|
|
Size |
layer_index, |
|
|
Size |
rt_pixel_count, |
|
|
Size |
mz_pixel_count |
|
) |
| |
|
protected |
Paints maximum intensity of individual peaks.
Paints the peaks as small ellipses. The peaks are colored according to the selected dot gradient.
- Parameters
-
| layer_index | The index of the layer. |
| rt_pixel_count | |
| mz_pixel_count | |
| painter | The QPainter to paint on. |
◆ paintPrecursorPeaks_()
| void paintPrecursorPeaks_ |
( |
QPainter & |
painter, |
|
|
Plot2DCanvas * |
canvas |
|
) |
| |
|
protected |
Paints the locations where MS2 scans where triggered.
◆ layer_