Painter2D for Features.
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) |
| |
◆ Painter2DFeature()
C'tor which remembers the layer to paint.
◆ highlightElement()
Emphasize a certain element (e.g. feature), e.g. when mouse hovering. By default, nothing is highlighted. Override for subclasses if you need highlighting.
- 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) |
| element | Which item of the current layer should be drawn? |
Reimplemented from Painter2DBase.
◆ 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.
◆ paintFeatureConvexHulls_()
| void paintFeatureConvexHulls_ |
( |
QPainter * |
painter, |
|
|
Plot2DCanvas * |
canvas |
|
) |
| |
|
protected |
Paints the convex hulls (one for each feature) of a features layer.
◆ paintTraceConvexHulls_()
| void paintTraceConvexHulls_ |
( |
QPainter * |
painter, |
|
|
Plot2DCanvas * |
canvas |
|
) |
| |
|
protected |
Paints convex hulls (one for each mass trace) of a features layer.
◆ layer_