QGIS API Documentation 3.38.0-Grenoble (exported)
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
QgsShapeGenerator Class Reference

Contains utility functions for generating shapes. More...

#include <qgsshapegenerator.h>

Static Public Member Functions

static QPolygonF createBalloon (const QgsPointXY &origin, const QRectF &rect, double wedgeWidth)
 Generates a "balloon"/"talking bubble" style shape (as a QPolygonF).
 
static QPainterPath createBalloon (const QgsPointXY &origin, const QRectF &rect, double wedgeWidth, double cornerRadius)
 Generates a "balloon"/"talking bubble" style shape (as a painter path).
 

Detailed Description

Contains utility functions for generating shapes.

Note
Not available in Python bindings
Since
QGIS 3.20

Definition at line 37 of file qgsshapegenerator.h.

Member Function Documentation

◆ createBalloon() [1/2]

QPolygonF QgsShapeGenerator::createBalloon ( const QgsPointXY origin,
const QRectF &  rect,
double  wedgeWidth 
)
static

Generates a "balloon"/"talking bubble" style shape (as a QPolygonF).

The origin point indicates the starting point for the pointing wedge portion of the balloon.

The rect argument specifies the rectangular bounds of the main body of the balloon.

The wedgeWidth argument gives the width of the pointing wedge portion of the balloon at the position where it joins with the balloon's main body.

Definition at line 55 of file qgsshapegenerator.cpp.

◆ createBalloon() [2/2]

QPainterPath QgsShapeGenerator::createBalloon ( const QgsPointXY origin,
const QRectF &  rect,
double  wedgeWidth,
double  cornerRadius 
)
static

Generates a "balloon"/"talking bubble" style shape (as a painter path).

The origin point indicates the starting point for the pointing wedge portion of the balloon.

The rect argument specifies the rectangular bounds of the main body of the balloon.

The wedgeWidth argument gives the width of the pointing wedge portion of the balloon at the position where it joins with the balloon's main body.

The cornerRadius argument gives the radius for rounding corners on the main bubble rectangle.

Definition at line 60 of file qgsshapegenerator.cpp.


The documentation for this class was generated from the following files: