A base class for painting all items from a data layer (as supported by class derived from here) onto a 1D Canvas.
More...
#include <OpenMS/VISUAL/Painter1DBase.h>
|
virtual void | paint (QPainter *, Plot1DCanvas *canvas, int layer_index)=0 |
| Paints items using the given painter onto the canvas. More...
|
|
|
static void | drawDashedLine (const QPoint &from, const QPoint &to, QPainter *painter, QColor color) |
| static method to draw a dashed line More...
|
|
A base class for painting all items from a data layer (as supported by class derived from here) onto a 1D Canvas.
◆ drawDashedLine()
static void drawDashedLine |
( |
const QPoint & |
from, |
|
|
const QPoint & |
to, |
|
|
QPainter * |
painter, |
|
|
QColor |
color |
|
) |
| |
|
static |
static method to draw a dashed line
◆ paint()
virtual void paint |
( |
QPainter * |
, |
|
|
Plot1DCanvas * |
canvas, |
|
|
int |
layer_index |
|
) |
| |
|
pure virtual |
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 (FIXME: remove when Canvas1D::DrawMode and PenStyle are factored out) |
Implemented in Painter1DPeak.