#include <Grid.h>
|
void | draw (QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRect &rect) const |
| Draw the grid. More...
|
|
void | drawLines (QPainter *painter, const QRect &rect, Qt::Orientation orientation, const QwtScaleMap &map, const QwtValueList &values) const |
|
◆ Grid()
◆ copy()
void Grid::copy |
( |
Grid * |
grid | ) |
|
References enableZeroLineX(), enableZeroLineY(), majPenX(), majPenY(), minPenX(), minPenY(), setMajPenX(), setMajPenY(), setMinPenX(), setMinPenY(), xZeroLineEnabled(), and yZeroLineEnabled().
Referenced by Graph::copy(), minPenY(), and ApplicationWindow::setPreferences().
◆ draw()
void Grid::draw |
( |
QPainter * |
painter, |
|
|
const QwtScaleMap & |
mx, |
|
|
const QwtScaleMap & |
my, |
|
|
const QRect & |
r |
|
) |
| const |
|
private |
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.
- Parameters
-
painter | Painter |
mx | X axis map |
my | Y axis |
r | Contents rect of the plot canvas |
References d_maj_pen_y, d_min_pen_y, and drawLines().
Referenced by yZeroLineMarker().
◆ drawLines()
void Grid::drawLines |
( |
QPainter * |
painter, |
|
|
const QRect & |
rect, |
|
|
Qt::Orientation |
orientation, |
|
|
const QwtScaleMap & |
map, |
|
|
const QwtValueList & |
values |
|
) |
| const |
|
private |
◆ enableZeroLineX()
void Grid::enableZeroLineX |
( |
bool |
enable = true | ) |
|
◆ enableZeroLineY()
void Grid::enableZeroLineY |
( |
bool |
enable = true | ) |
|
◆ load()
void Grid::load |
( |
const QStringList & |
grid | ) |
|
References ColorBox::defaultColor(), enableZeroLineX(), enableZeroLineY(), Graph::getPenStyle(), majPenX(), majPenY(), minPenX(), minPenY(), setMajPenX(), setMajPenY(), setMinPenX(), and setMinPenY().
Referenced by minPenY(), and ApplicationWindow::openGraph().
◆ majPenX()
const QPen& Grid::majPenX |
( |
| ) |
const |
|
inline |
◆ majPenY()
const QPen& Grid::majPenY |
( |
| ) |
const |
|
inline |
◆ minPenX()
const QPen& Grid::minPenX |
( |
| ) |
const |
|
inline |
◆ minPenY()
const QPen& Grid::minPenY |
( |
| ) |
const |
|
inline |
◆ saveToString()
QString Grid::saveToString |
( |
| ) |
|
◆ setMajPenX()
void Grid::setMajPenX |
( |
const QPen & |
p | ) |
|
|
inline |
◆ setMajPenY()
void Grid::setMajPenY |
( |
const QPen & |
p | ) |
|
|
inline |
◆ setMinPenX()
void Grid::setMinPenX |
( |
const QPen & |
p | ) |
|
|
inline |
◆ setMinPenY()
void Grid::setMinPenY |
( |
const QPen & |
p | ) |
|
|
inline |
◆ setXZeroLinePen()
void Grid::setXZeroLinePen |
( |
const QPen & |
p | ) |
|
◆ setYZeroLinePen()
void Grid::setYZeroLinePen |
( |
const QPen & |
p | ) |
|
◆ xZeroLineEnabled()
bool Grid::xZeroLineEnabled |
( |
| ) |
|
|
inline |
◆ xZeroLineMarker()
QwtPlotMarker* Grid::xZeroLineMarker |
( |
| ) |
|
|
inline |
◆ xZeroLinePen()
const QPen & Grid::xZeroLinePen |
( |
| ) |
|
◆ yZeroLineEnabled()
bool Grid::yZeroLineEnabled |
( |
| ) |
|
|
inline |
◆ yZeroLineMarker()
QwtPlotMarker* Grid::yZeroLineMarker |
( |
| ) |
|
|
inline |
◆ yZeroLinePen()
const QPen & Grid::yZeroLinePen |
( |
| ) |
|
◆ d_maj_pen_y
◆ d_min_pen_y
◆ mrkX
QwtPlotMarker* Grid::mrkX |
|
private |
◆ mrkY
QwtPlotMarker * Grid::mrkY |
|
private |
The documentation for this class was generated from the following files: