QGIS API Documentation
2.2.0-Valmiera
|
Item representing a grid. More...
#include <qgspaperitem.h>
Public Member Functions | |
QgsPaperGrid (double x, double y, double width, double height, QgsComposition *composition) | |
~QgsPaperGrid () | |
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *itemStyle, QWidget *pWidget) |
Reimplementation of QCanvasItem::paint. |
Private Attributes | |
QgsComposition * | mComposition |
Item representing a grid.
This is drawn separately to the underlying paper item since the grid needs to be drawn above all other composer items, while the paper item is drawn below all others.
Definition at line 26 of file qgspaperitem.h.
QgsPaperGrid::QgsPaperGrid | ( | double | x, |
double | y, | ||
double | width, | ||
double | height, | ||
QgsComposition * | composition | ||
) |
Definition at line 27 of file qgspaperitem.cpp.
QgsPaperGrid::~QgsPaperGrid | ( | ) |
Definition at line 35 of file qgspaperitem.cpp.
void QgsPaperGrid::paint | ( | QPainter * | painter, |
const QStyleOptionGraphicsItem * | itemStyle, | ||
QWidget * | pWidget | ||
) |
Reimplementation of QCanvasItem::paint.
Definition at line 39 of file qgspaperitem.cpp.
References QgsComposition::Crosses, QgsComposition::Dots, QgsComposition::gridPen(), QgsComposition::gridStyle(), QgsComposition::gridVisible(), mComposition, QgsComposition::plotStyle(), QgsComposition::Preview, QgsComposition::snapGridOffsetX(), QgsComposition::snapGridOffsetY(), QgsComposition::snapGridResolution(), and QgsComposition::Solid.
|
private |
Definition at line 36 of file qgspaperitem.h.
Referenced by paint().