#include <Plot.h>
Public Member Functions | |
| void | draw (QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRect &rect) const |
| Draw the grid. | |
| void | drawLines (QPainter *painter, const QRect &rect, Qt::Orientation orientation, const QwtScaleMap &map, const QwtValueList &values) const |
| Grid () | |
| Grid::Grid | ( | ) | [inline] |
| void Grid::draw | ( | QPainter * | painter, | |
| const QwtScaleMap & | mx, | |||
| const QwtScaleMap & | my, | |||
| const QRect & | r | |||
| ) | const |
Draw the grid.
The grid is drawn into the bounding rectangle such that gridlines begin and end at the rectangle's borders. The X and Y maps are used to map the scale divisions into the drawing region screen.
| painter | Painter | |
| mx | X axis map | |
| my | Y axis | |
| r | Contents rect of the plot canvas |
| void Grid::drawLines | ( | QPainter * | painter, | |
| const QRect & | rect, | |||
| Qt::Orientation | orientation, | |||
| const QwtScaleMap & | map, | |||
| const QwtValueList & | values | |||
| ) | const |
1.5.3