#include <Grid.h>
Public Member Functions | |
| void | copy (Grid *) |
| 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 |
| void | enableZeroLineX (bool enable=true) |
| void | enableZeroLineY (bool enable=true) |
| Grid () | |
| void | load (const QStringList &) |
| const QPen & | majPenX () const |
| const QPen & | majPenY () const |
| const QPen & | minPenX () const |
| const QPen & | minPenY () const |
| QString | saveToString () |
| void | setMajPenX (const QPen &p) |
| void | setMajPenY (const QPen &p) |
| void | setMinPenX (const QPen &p) |
| void | setMinPenY (const QPen &p) |
| bool | xZeroLineEnabled () |
| bool | yZeroLineEnabled () |
Private Attributes | |
| QPen | d_maj_pen_y |
| QPen | d_min_pen_y |
| long | mrkX |
| long | mrkY |
| Grid::Grid | ( | ) |
| void Grid::copy | ( | Grid * | grid | ) |
| 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 |
| void Grid::enableZeroLineX | ( | bool | enable = true |
) |
| void Grid::enableZeroLineY | ( | bool | enable = true |
) |
| void Grid::load | ( | const QStringList & | grid | ) |
| const QPen& Grid::majPenX | ( | ) | const [inline] |
| const QPen& Grid::majPenY | ( | ) | const [inline] |
| const QPen& Grid::minPenX | ( | ) | const [inline] |
| const QPen& Grid::minPenY | ( | ) | const [inline] |
| QString Grid::saveToString | ( | ) |
| void Grid::setMajPenX | ( | const QPen & | p | ) | [inline] |
| void Grid::setMajPenY | ( | const QPen & | p | ) | [inline] |
| void Grid::setMinPenX | ( | const QPen & | p | ) | [inline] |
| void Grid::setMinPenY | ( | const QPen & | p | ) | [inline] |
| bool Grid::xZeroLineEnabled | ( | ) | [inline] |
| bool Grid::yZeroLineEnabled | ( | ) | [inline] |
QPen Grid::d_maj_pen_y [private] |
QPen Grid::d_min_pen_y [private] |
long Grid::mrkX [private] |
long Grid::mrkY [private] |
1.5.4