KDE 4.6 PyKDE API Reference

- KDE's Python API

# GeoPainter Class Reference

`from PyKDE4.marble import *`

Inherits: Marble.ClipPainter → QPainter
Namespace: Marble

## Detailed Description

## Methods

| __init__ (self, QPaintDevice paintDevice, Marble.ViewportParams viewportParams, Marble.MapQuality mapQuality=Marble.NormalQuality, bool clip=1)
| autoMapQuality (self)
| drawAnnotation (self, Marble.GeoDataCoordinates position, QString text, QSizeF bubbleSize=QSizeF(130,100), float bubbleOffsetX=-10, float bubbleOffsetY=-30, float xRnd=5, float yRnd=5)
| drawEllipse (self, Marble.GeoDataCoordinates centerPosition, float width, float height, bool isGeoProjected=0)
| drawEllipse (self, int x, int y, int width, int height)
| drawEllipse (self, QRectF rectangle)
| drawImage (self, Marble.GeoDataCoordinates centerPosition, QImage image)
| drawImage (self, QRect target, QImage image, QRect source, Qt::ImageConversionFlags flags=Qt.AutoColor)
| drawImage (self, QRect rect, QImage image)
| drawImage (self, QRectF rect, QImage image)
| drawLine (self, Marble.GeoDataCoordinates startPosition, Marble.GeoDataCoordinates endPosition, bool isGeoProjected=0)
| drawLine (self, int x1, int y1, int x2, int y2)
| drawPixmap (self, Marble.GeoDataCoordinates centerPosition, QPixmap pixmap)
| drawPixmap (self, int x, int y, QPixmap pixmap)
| drawPixmap (self, QPointF point, QPixmap pixmap)
| drawPixmap (self, QPoint point, QPixmap pixmap)
| drawPoint (self, Marble.GeoDataCoordinates position)
| drawPoint (self, int x, int y)
| drawPoint (self, Marble.GeoDataPoint point)
| drawPoints (self, Marble.GeoDataCoordinates positions, int pointCount)
| drawPolygon (self, Marble.GeoDataLinearRing linearRing, Qt::FillRule fillRule=Qt.OddEvenFill)
| drawPolygon (self, Marble.GeoDataPolygon polygon, Qt::FillRule fillRule=Qt.OddEvenFill)
| drawPolygon (self, QPolygonF polygon)
| drawPolyline (self, Marble.GeoDataLineString lineString, QString labelText=QString(), Marble.LabelPositionFlags labelPositionFlags=Marble.LineCenter)
| drawPolyline (self, QPolygonF polyline)
| drawRect (self, Marble.GeoDataCoordinates centerPosition, float width, float height, bool isGeoProjected=0)
| drawRect (self, QRectF rectangle)
| drawRect (self, QRect rectangle)
| drawRect (self, int x, int y, int width, int height)
| drawRoundRect (self, Marble.GeoDataCoordinates centerPosition, int width, int height, int xRnd=25, int yRnd=25, bool isGeoProjected=0)
| drawText (self, Marble.GeoDataCoordinates position, QString text)
| drawText (self, int x, int y, QString text)
| drawText (self, QPointF position, QString text)
| drawText (self, QPoint position, QString text)
| drawText (self, QRect rectangle, int flags, QString text, QRect boundingRect=0)
Marble.MapQuality | mapQuality (self)
QRegion | regionFromEllipse (self, Marble.GeoDataCoordinates centerPosition, float width, float height, bool isGeoProjected=0, float strokeWidth=3)
QRegion | regionFromLine (self, Marble.GeoDataCoordinates startPosition, Marble.GeoDataCoordinates endPosition, bool isGeoProjected=0, float strokeWidth=3)
QRegion | regionFromPoint (self, Marble.GeoDataCoordinates position, float strokeWidth=3)
QRegion | regionFromPoint (self, Marble.GeoDataPoint point, float strokeWidth=3)
QRegion | regionFromPolygon (self, Marble.GeoDataLinearRing linearRing, Qt::FillRule fillRule, float strokeWidth=3)
QRegion | regionFromPolyline (self, Marble.GeoDataLineString lineString, float strokeWidth=3)
QRegion | regionFromRect (self, Marble.GeoDataCoordinates centerPosition, float width, float height, bool isGeoProjected=0, float strokeWidth=3)

## Method Documentation

__init__ | ( | self, |
|  | QPaintDevice | paintDevice,
|  | Marble.ViewportParams | viewportParams,
|  | Marble.MapQuality | mapQuality=Marble.NormalQuality,
|  | bool | clip=1
| ) |  |  |

autoMapQuality | ( |  | self ) |

drawAnnotation | ( | self, |
|  | Marble.GeoDataCoordinates | position,
|  | QString | text,
|  | QSizeF | bubbleSize=QSizeF(130,100),
|  | float | bubbleOffsetX=-10,
|  | float | bubbleOffsetY=-30,
|  | float | xRnd=5,
|  | float | yRnd=5
| ) |  |  |

drawEllipse | ( | self, |
|  | Marble.GeoDataCoordinates | centerPosition,
|  | float | width,
|  | float | height,
|  | bool | isGeoProjected=0
| ) |  |  |

drawEllipse | ( | self, |
|  | int | x,
|  | int | y,
|  | int | width,
|  | int | height
| ) |  |  |

drawEllipse | ( | self, |
|  | QRectF | rectangle
| ) |  |  |

drawImage | ( | self, |
|  | Marble.GeoDataCoordinates | centerPosition,
|  | QImage | image
| ) |  |  |

drawImage | ( | self, |
|  | QRect | target,
|  | QImage | image,
|  | QRect | source,
|  | Qt::ImageConversionFlags | flags=Qt.AutoColor
| ) |  |  |

drawImage | ( | self, |
|  | QRect | rect,
|  | QImage | image
| ) |  |  |

drawImage | ( | self, |
|  | QRectF | rect,
|  | QImage | image
| ) |  |  |

drawLine | ( | self, |
|  | Marble.GeoDataCoordinates | startPosition,
|  | Marble.GeoDataCoordinates | endPosition,
|  | bool | isGeoProjected=0
| ) |  |  |

drawLine | ( | self, |
|  | int | x1,
|  | int | y1,
|  | int | x2,
|  | int | y2
| ) |  |  |

drawPixmap | ( | self, |
|  | Marble.GeoDataCoordinates | centerPosition,
|  | QPixmap | pixmap
| ) |  |  |

drawPixmap | ( | self, |
|  | int | x,
|  | int | y,
|  | QPixmap | pixmap
| ) |  |  |

drawPixmap | ( | self, |
|  | QPointF | point,
|  | QPixmap | pixmap
| ) |  |  |

drawPixmap | ( | self, |
|  | QPoint | point,
|  | QPixmap | pixmap
| ) |  |  |

drawPoint | ( | self, |
|  | Marble.GeoDataCoordinates | position
| ) |  |  |

drawPoint | ( | self, |
|  | int | x,
|  | int | y
| ) |  |  |

drawPoint | ( | self, |
|  | Marble.GeoDataPoint | point
| ) |  |  |

drawPoints | ( | self, |
|  | Marble.GeoDataCoordinates | positions,
|  | int | pointCount
| ) |  |  |

drawPolygon | ( | self, |
|  | Marble.GeoDataLinearRing | linearRing,
|  | Qt::FillRule | fillRule=Qt.OddEvenFill
| ) |  |  |

drawPolygon | ( | self, |
|  | Marble.GeoDataPolygon | polygon,
|  | Qt::FillRule | fillRule=Qt.OddEvenFill
| ) |  |  |

drawPolygon | ( | self, |
|  | QPolygonF | polygon
| ) |  |  |

drawPolyline | ( | self, |
|  | Marble.GeoDataLineString | lineString,
|  | QString | labelText=QString(),
|  | Marble.LabelPositionFlags | labelPositionFlags=Marble.LineCenter
| ) |  |  |

drawPolyline | ( | self, |
|  | QPolygonF | polyline
| ) |  |  |

drawRect | ( | self, |
|  | Marble.GeoDataCoordinates | centerPosition,
|  | float | width,
|  | float | height,
|  | bool | isGeoProjected=0
| ) |  |  |

drawRect | ( | self, |
|  | QRectF | rectangle
| ) |  |  |

drawRect | ( | self, |
|  | QRect | rectangle
| ) |  |  |

drawRect | ( | self, |
|  | int | x,
|  | int | y,
|  | int | width,
|  | int | height
| ) |  |  |

drawRoundRect | ( | self, |
|  | Marble.GeoDataCoordinates | centerPosition,
|  | int | width,
|  | int | height,
|  | int | xRnd=25,
|  | int | yRnd=25,
|  | bool | isGeoProjected=0
| ) |  |  |

drawText | ( | self, |
|  | Marble.GeoDataCoordinates | position,
|  | QString | text
| ) |  |  |

drawText | ( | self, |
|  | int | x,
|  | int | y,
|  | QString | text
| ) |  |  |

drawText | ( | self, |
|  | QPointF | position,
|  | QString | text
| ) |  |  |

drawText | ( | self, |
|  | QPoint | position,
|  | QString | text
| ) |  |  |

drawText | ( | self, |
|  | QRect | rectangle,
|  | int | flags,
|  | QString | text,
|  | QRect | boundingRect=0
| ) |  |  |

Marble.MapQuality mapQuality | ( |  | self ) |

QRegion regionFromEllipse | ( | self, |
|  | Marble.GeoDataCoordinates | centerPosition,
|  | float | width,
|  | float | height,
|  | bool | isGeoProjected=0,
|  | float | strokeWidth=3
| ) |  |  |

QRegion regionFromLine | ( | self, |
|  | Marble.GeoDataCoordinates | startPosition,
|  | Marble.GeoDataCoordinates | endPosition,
|  | bool | isGeoProjected=0,
|  | float | strokeWidth=3
| ) |  |  |

QRegion regionFromPoint | ( | self, |
|  | Marble.GeoDataCoordinates | position,
|  | float | strokeWidth=3
| ) |  |  |

QRegion regionFromPoint | ( | self, |
|  | Marble.GeoDataPoint | point,
|  | float | strokeWidth=3
| ) |  |  |

QRegion regionFromPolygon | ( | self, |
|  | Marble.GeoDataLinearRing | linearRing,
|  | Qt::FillRule | fillRule,
|  | float | strokeWidth=3
| ) |  |  |

QRegion regionFromPolyline | ( | self, |
|  | Marble.GeoDataLineString | lineString,
|  | float | strokeWidth=3
| ) |  |  |

QRegion regionFromRect | ( | self, |
|  | Marble.GeoDataCoordinates | centerPosition,
|  | float | width,
|  | float | height,
|  | bool | isGeoProjected=0,
|  | float | strokeWidth=3
| ) |  |  |