Warning, /education/marble/src/bindings/python/sip/GeoPainter.sip is written in an unsupported language. File is not indexed.
0001 //
0002 // Copyright 2008 Simon Edwards <simon@simonzone.com>
0003 //
0004 // This library is free software; you can redistribute it and/or
0005 // modify it under the terms of the GNU Lesser General Public
0006 // License as published by the Free Software Foundation; either
0007 // version 2.1 of the License, or (at your option) any later version.
0008 //
0009 // This library is distributed in the hope that it will be useful,
0010 // but WITHOUT ANY WARRANTY; without even the implied warranty of
0011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
0012 // Lesser General Public License for more details.
0013 //
0014 // You should have received a copy of the GNU Lesser General Public
0015 // License along with this library. If not, see <http://www.gnu.org/licenses/>.
0016 //
0017
0018 namespace Marble
0019 {
0020
0021 class GeoPainter : Marble::ClipPainter /Abstract/
0022 {
0023 %TypeHeaderCode
0024 #include <GeoPainter.h>
0025 %End
0026
0027 public:
0028 Marble::MapQuality mapQuality () const;
0029 void drawAnnotation (const Marble::GeoDataCoordinates& position, const QString& text, QSizeF bubbleSize = QSizeF(130,100), qreal bubbleOffsetX = -10, qreal bubbleOffsetY = -30, qreal xRnd = 5, qreal yRnd = 5);
0030 void drawPoint (const Marble::GeoDataCoordinates& position);
0031 void drawText (const Marble::GeoDataCoordinates& position, const QString& text);
0032 void drawEllipse (const Marble::GeoDataCoordinates& centerPosition, qreal width, qreal height, bool isGeoProjected = 0);
0033 void drawImage (const Marble::GeoDataCoordinates& centerPosition, const QImage& image);
0034 void drawPixmap (const Marble::GeoDataCoordinates& centerPosition, const QPixmap& pixmap);
0035 void drawPolyline (const Marble::GeoDataLineString& lineString, const QString& labelText = QString(), Marble::LabelPositionFlags labelPositionFlags = Marble::LineCenter);
0036 void drawPolygon (const Marble::GeoDataLinearRing& linearRing, Qt::FillRule fillRule = Qt::OddEvenFill);
0037 void drawPolygon (const Marble::GeoDataPolygon& polygon, Qt::FillRule fillRule = Qt::OddEvenFill);
0038 void drawRect (const Marble::GeoDataCoordinates& centerPosition, qreal width, qreal height, bool isGeoProjected = 0);
0039
0040 ~GeoPainter ();
0041 void drawPoint (const Marble::GeoDataPoint& point);
0042 QRegion regionFromPoint (const Marble::GeoDataCoordinates& position, qreal strokeWidth = 3) const;
0043 QRegion regionFromPoint (const Marble::GeoDataPoint& point, qreal strokeWidth = 3) const;
0044 QRegion regionFromEllipse (const Marble::GeoDataCoordinates& centerPosition, qreal width, qreal height, bool isGeoProjected = 0, qreal strokeWidth = 3) const;
0045 QRegion regionFromPolyline (const Marble::GeoDataLineString& lineString, qreal strokeWidth = 3) const;
0046 QRegion regionFromPolygon (const Marble::GeoDataLinearRing& linearRing, Qt::FillRule fillRule, qreal strokeWidth = 3) const;
0047 QRegion regionFromRect (const Marble::GeoDataCoordinates& centerPosition, qreal width, qreal height, bool isGeoProjected = 0, qreal strokeWidth = 3) const;
0048 GeoPainter (QPaintDevice* paintDevice, const Marble::ViewportParams* viewportParams, Marble::MapQuality mapQuality = NormalQuality);
0049 void drawRoundedRect(const Marble::GeoDataCoordinates& centerPosition, qreal width, qreal height, qreal xRnd = 25, qreal yRnd = 25);
0050 };
0051 // GeoPainter
0052
0053 };
0054 // Marble
0055
0056