KDE 4.9 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

GeoPainter Class Reference

from PyKDE4.marble import *

Inherits: Marble.ClipPainter → QPainter
Namespace: Marble

Detailed Description

Abstract class:
This class can be used as a base class for new classes, but can not be instantiated directly.

Methods

 __init__ (self, QPaintDevice paintDevice, Marble.ViewportParams viewportParams, Marble.MapQuality mapQuality=NormalQuality)
 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)
 drawImage (self, Marble.GeoDataCoordinates centerPosition, QImage image)
 drawPixmap (self, Marble.GeoDataCoordinates centerPosition, QPixmap pixmap)
 drawPoint (self, Marble.GeoDataCoordinates position)
 drawPoint (self, Marble.GeoDataPoint point)
 drawPolygon (self, Marble.GeoDataLinearRing linearRing, Qt::FillRule fillRule=Qt.OddEvenFill)
 drawPolygon (self, Marble.GeoDataPolygon polygon, Qt::FillRule fillRule=Qt.OddEvenFill)
 drawPolyline (self, Marble.GeoDataLineString lineString, QString labelText=QString(), Marble.LabelPositionFlags labelPositionFlags=Marble.LineCenter)
 drawRect (self, Marble.GeoDataCoordinates centerPosition, float width, float height, bool isGeoProjected=0)
 drawRoundRect (self, Marble.GeoDataCoordinates centerPosition, int width, int height, int xRnd=25, int yRnd=25)
 drawText (self, Marble.GeoDataCoordinates position, QString text)
Marble.MapQuality mapQuality (self)
QRegion regionFromEllipse (self, Marble.GeoDataCoordinates centerPosition, float width, float height, 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=NormalQuality
)
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
)
drawImage (  self,
Marble.GeoDataCoordinates  centerPosition,
QImage  image
)
drawPixmap (  self,
Marble.GeoDataCoordinates  centerPosition,
QPixmap  pixmap
)
drawPoint (  self,
Marble.GeoDataCoordinates  position
)
drawPoint (  self,
Marble.GeoDataPoint  point
)
drawPolygon (  self,
Marble.GeoDataLinearRing  linearRing,
Qt::FillRule  fillRule=Qt.OddEvenFill
)
drawPolygon (  self,
Marble.GeoDataPolygon  polygon,
Qt::FillRule  fillRule=Qt.OddEvenFill
)
drawPolyline (  self,
Marble.GeoDataLineString  lineString,
QString  labelText=QString(),
Marble.LabelPositionFlags  labelPositionFlags=Marble.LineCenter
)
drawRect (  self,
Marble.GeoDataCoordinates  centerPosition,
float  width,
float  height,
bool  isGeoProjected=0
)
drawRoundRect (  self,
Marble.GeoDataCoordinates  centerPosition,
int  width,
int  height,
int  xRnd=25,
int  yRnd=25
)
drawText (  self,
Marble.GeoDataCoordinates  position,
QString  text
)
Marble.MapQuality mapQuality (   self )
QRegion regionFromEllipse (  self,
Marble.GeoDataCoordinates  centerPosition,
float  width,
float  height,
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
)
  • Full Index

Modules

  • akonadi
  • dnssd
  • kdecore
  • kdeui
  • khtml
  • kio
  • knewstuff
  • kparts
  • kutils
  • nepomuk
  • phonon
  • plasma
  • polkitqt
  • solid
  • soprano
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal