Class QfLinePolygonShape
ClassList > QfLinePolygonShape
The QfLinePolygonShape class is used to provide the shape data to draw geometries on the map canvas using the QML Shape item.
#include <qflinepolygonshape.h>
Inherits the following classes: QQuickItem
Inherited by the following classes: QfLinePolygon
Public Properties
| Type | Name |
|---|---|
| property QColor | color |
| property QfGeometryWrapper * | geometry |
| property float | lineWidth |
| property QgsQuickMapSettings * | mapSettings |
| property QList< QPolygonF > | polylines List of polylines representing the geometry. |
| property Qgis::GeometryType | polylinesType The geometry type associated to the polylines. |
Public Signals
| Type | Name |
|---|---|
| signal void | colorChanged |
| signal void | geometryChanged |
| signal void | lineWidthChanged |
| signal void | mapSettingsChanged |
| signal void | polylinesChanged List of polylines representing the geometry. |
| signal void | polylinesTypeChanged The geometry type associated to the polylines. |
| signal void | updated |
Public Functions
| Type | Name |
|---|---|
| QfLinePolygonShape (QQuickItem * parent=nullptr) |
|
| QColor | color () const |
| QfGeometryWrapper * | geometry () const |
| float | lineWidth () const |
| QgsQuickMapSettings * | mapSettings () const |
| QList< QPolygonF > | polylines () const List of polylines representing the geometry. |
| Qgis::GeometryType | polylinesType () const The geometry type associated to the polylines. |
| void | setColor (const QColor & color) |
| void | setGeometry (QfGeometryWrapper * geometry) |
| void | setLineWidth (float width) |
| void | setMapSettings (QgsQuickMapSettings * mapSettings) |
Public Properties Documentation
property color [1/2]
QColor QfLinePolygonShape::color;
property geometry [1/2]
QfGeometryWrapper * QfLinePolygonShape::geometry;
property lineWidth [1/2]
float QfLinePolygonShape::lineWidth;
property mapSettings [1/2]
QgsQuickMapSettings * QfLinePolygonShape::mapSettings;
property polylines [1/2]
List of polylines representing the geometry.
QList<QPolygonF> QfLinePolygonShape::polylines;
property polylinesType [1/2]
The geometry type associated to the polylines.
Qgis::GeometryType QfLinePolygonShape::polylinesType;
Public Signals Documentation
signal colorChanged
void QfLinePolygonShape::colorChanged;
signal geometryChanged
void QfLinePolygonShape::geometryChanged;
signal lineWidthChanged
void QfLinePolygonShape::lineWidthChanged;
signal mapSettingsChanged
void QfLinePolygonShape::mapSettingsChanged;
signal polylinesChanged
List of polylines representing the geometry.
void QfLinePolygonShape::polylinesChanged;
signal polylinesTypeChanged
The geometry type associated to the polylines.
void QfLinePolygonShape::polylinesTypeChanged;
signal updated
void QfLinePolygonShape::updated;
Public Functions Documentation
function QfLinePolygonShape
explicit QfLinePolygonShape::QfLinePolygonShape (
QQuickItem * parent=nullptr
)
function color [2/2]
QColor QfLinePolygonShape::color () const
function geometry [2/2]
QfGeometryWrapper * QfLinePolygonShape::geometry () const
function lineWidth [2/2]
float QfLinePolygonShape::lineWidth () const
function mapSettings [2/2]
QgsQuickMapSettings * QfLinePolygonShape::mapSettings () const
function polylines [2/2]
List of polylines representing the geometry.
inline QList< QPolygonF > QfLinePolygonShape::polylines () const
function polylinesType [2/2]
The geometry type associated to the polylines.
inline Qgis::GeometryType QfLinePolygonShape::polylinesType () const
function setColor
void QfLinePolygonShape::setColor (
const QColor & color
)
function setGeometry
void QfLinePolygonShape::setGeometry (
QfGeometryWrapper * geometry
)
function setLineWidth
void QfLinePolygonShape::setLineWidth (
float width
)
function setMapSettings
void QfLinePolygonShape::setMapSettings (
QgsQuickMapSettings * mapSettings
)
The documentation for this class was generated from the following file src/core/qflinepolygonshape.h