A paint engine which converts everything renderer to a QgsGeometry representation of the rendered shapes.
More...
#include <qgsgeometrypaintdevice.h>
|
| | QgsGeometryPaintEngine (bool usePathStroker=false) |
| | Constructor for QgsGeometryPaintEngine.
|
| bool | begin (QPaintDevice *) final |
| void | drawImage (const QRectF &rectangle, const QImage &image, const QRectF &sr, Qt::ImageConversionFlags flags=Qt::AutoColor) final |
| void | drawLines (const QLine *lines, int lineCount) final |
| void | drawLines (const QLineF *lines, int lineCount) final |
| void | drawPath (const QPainterPath &path) final |
| void | drawPixmap (const QRectF &, const QPixmap &, const QRectF &) final |
| void | drawPoints (const QPoint *points, int pointCount) final |
| void | drawPoints (const QPointF *points, int pointCount) final |
| void | drawPolygon (const QPoint *points, int pointCount, QPaintEngine::PolygonDrawMode mode) final |
| void | drawPolygon (const QPointF *points, int pointCount, QPaintEngine::PolygonDrawMode mode) final |
| void | drawRects (const QRect *rects, int rectCount) final |
| void | drawRects (const QRectF *rects, int rectCount) final |
| void | drawTiledPixmap (const QRectF &rect, const QPixmap &pixmap, const QPointF &p) final |
| bool | end () final |
| const QgsAbstractGeometry & | geometry () const |
| | Returns the rendered geometry.
|
| void | setSimplificationTolerance (double tolerance) |
| | Sets a simplification tolerance (in painter units) to use for on-the-fly simplification of geometries while rendering.
|
| void | setStrokedPathSegments (int segments) |
| | Sets the number of segments to use when drawing stroked paths with a rounded pen.
|
| QPaintEngine::Type | type () const final |
| void | updateState (const QPaintEngineState &) final |
A paint engine which converts everything renderer to a QgsGeometry representation of the rendered shapes.
- Since
- QGIS 3.38
Definition at line 39 of file qgsgeometrypaintdevice.h.
◆ QgsGeometryPaintEngine()
| QgsGeometryPaintEngine::QgsGeometryPaintEngine |
( |
bool | usePathStroker = false | ) |
|
◆ begin()
| bool QgsGeometryPaintEngine::begin |
( |
QPaintDevice * | | ) |
|
|
final |
◆ drawImage()
| void QgsGeometryPaintEngine::drawImage |
( |
const QRectF & | rectangle, |
|
|
const QImage & | image, |
|
|
const QRectF & | sr, |
|
|
Qt::ImageConversionFlags | flags = Qt::AutoColor ) |
|
final |
◆ drawLines() [1/2]
| void QgsGeometryPaintEngine::drawLines |
( |
const QLine * | lines, |
|
|
int | lineCount ) |
|
final |
◆ drawLines() [2/2]
| void QgsGeometryPaintEngine::drawLines |
( |
const QLineF * | lines, |
|
|
int | lineCount ) |
|
final |
◆ drawPath()
| void QgsGeometryPaintEngine::drawPath |
( |
const QPainterPath & | path | ) |
|
|
final |
◆ drawPixmap()
| void QgsGeometryPaintEngine::drawPixmap |
( |
const QRectF & | , |
|
|
const QPixmap & | , |
|
|
const QRectF & | ) |
|
final |
◆ drawPoints() [1/2]
| void QgsGeometryPaintEngine::drawPoints |
( |
const QPoint * | points, |
|
|
int | pointCount ) |
|
final |
◆ drawPoints() [2/2]
| void QgsGeometryPaintEngine::drawPoints |
( |
const QPointF * | points, |
|
|
int | pointCount ) |
|
final |
◆ drawPolygon() [1/2]
| void QgsGeometryPaintEngine::drawPolygon |
( |
const QPoint * | points, |
|
|
int | pointCount, |
|
|
QPaintEngine::PolygonDrawMode | mode ) |
|
final |
◆ drawPolygon() [2/2]
| void QgsGeometryPaintEngine::drawPolygon |
( |
const QPointF * | points, |
|
|
int | pointCount, |
|
|
QPaintEngine::PolygonDrawMode | mode ) |
|
final |
◆ drawRects() [1/2]
| void QgsGeometryPaintEngine::drawRects |
( |
const QRect * | rects, |
|
|
int | rectCount ) |
|
final |
◆ drawRects() [2/2]
| void QgsGeometryPaintEngine::drawRects |
( |
const QRectF * | rects, |
|
|
int | rectCount ) |
|
final |
◆ drawTiledPixmap()
| void QgsGeometryPaintEngine::drawTiledPixmap |
( |
const QRectF & | rect, |
|
|
const QPixmap & | pixmap, |
|
|
const QPointF & | p ) |
|
final |
◆ end()
| bool QgsGeometryPaintEngine::end |
( |
| ) |
|
|
final |
◆ geometry()
◆ setSimplificationTolerance()
| void QgsGeometryPaintEngine::setSimplificationTolerance |
( |
double | tolerance | ) |
|
Sets a simplification tolerance (in painter units) to use for on-the-fly simplification of geometries while rendering.
This will result in simpler, generalised paths.
Set tolerance to 0 to disable simplification. (No simplification is the default behavior).
Definition at line 41 of file qgsgeometrypaintdevice.cpp.
◆ setStrokedPathSegments()
| void QgsGeometryPaintEngine::setStrokedPathSegments |
( |
int | segments | ) |
|
Sets the number of segments to use when drawing stroked paths with a rounded pen.
The default is 8 segments, a smaller number will result in simpler paths.
Definition at line 36 of file qgsgeometrypaintdevice.cpp.
◆ type()
| QPaintEngine::Type QgsGeometryPaintEngine::type |
( |
| ) |
const |
|
final |
◆ updateState()
| void QgsGeometryPaintEngine::updateState |
( |
const QPaintEngineState & | state | ) |
|
|
final |
The documentation for this class was generated from the following files: