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