QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
qgsshapegenerator.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsshapegenerator.h
3 ----------------
4 begin : March 2021
5 copyright : (C) 2021 Nyall Dawson
6 email : nyall dot dawson at gmail dot com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#ifndef QGSSHAPEGENERATOR_H
19#define QGSSHAPEGENERATOR_H
20
21#define SIP_NO_FILE
22#include "qgis_core.h"
23
24#include <QPolygonF>
25
26class QgsPointXY;
27class QPainterPath;
28
37class CORE_EXPORT QgsShapeGenerator
38{
39 public:
40
51 static QPolygonF createBalloon( const QgsPointXY &origin, const QRectF &rect, double wedgeWidth );
52
65 static QPainterPath createBalloon( const QgsPointXY &origin, const QRectF &rect, double wedgeWidth, double cornerRadius );
66};
67
68#endif // QGSSHAPEGENERATOR_H
A class to represent a 2D point.
Definition qgspointxy.h:60
Contains utility functions for generating shapes.