#include <Grid.h>
Private 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 |
Constructor & Destructor Documentation
Member Function Documentation
void Grid::copy |
( |
Grid * |
grid | ) |
|
References enableZeroLineX(), enableZeroLineY(), majPenX(), majPenY(), minPenX(), minPenY(), setMajPenX(), setMajPenY(), setMinPenX(), setMinPenY(), xZeroLineEnabled(), and yZeroLineEnabled().
Referenced by Graph::copy(), and ApplicationWindow::setPreferences().
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().
void Grid::drawLines |
( |
QPainter * |
painter, |
|
|
const QRect & |
rect, |
|
|
Qt::Orientation |
orientation, |
|
|
const QwtScaleMap & |
map, |
|
|
const QwtValueList & |
values |
|
) |
| const |
|
private |
void Grid::enableZeroLineX |
( |
bool |
enable = true | ) |
|
void Grid::enableZeroLineY |
( |
bool |
enable = true | ) |
|
void Grid::load |
( |
const QStringList & |
grid | ) |
|
References ColorBox::defaultColor(), enableZeroLineX(), enableZeroLineY(), Graph::getPenStyle(), majPenX(), majPenY(), minPenX(), minPenY(), setMajPenX(), setMajPenY(), setMinPenX(), and setMinPenY().
Referenced by ApplicationWindow::openGraph().
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 |
void Grid::setXZeroLinePen |
( |
const QPen & |
p | ) |
|
void Grid::setYZeroLinePen |
( |
const QPen & |
p | ) |
|
bool Grid::xZeroLineEnabled |
( |
| ) |
|
|
inline |
QwtPlotMarker* Grid::xZeroLineMarker |
( |
| ) |
|
|
inline |
const QPen & Grid::xZeroLinePen |
( |
| ) |
|
bool Grid::yZeroLineEnabled |
( |
| ) |
|
|
inline |
QwtPlotMarker* Grid::yZeroLineMarker |
( |
| ) |
|
|
inline |
const QPen & Grid::yZeroLinePen |
( |
| ) |
|
Member Data Documentation
QwtPlotMarker* Grid::mrkX |
|
private |
QwtPlotMarker * Grid::mrkY |
|
private |
The documentation for this class was generated from the following files: