2017-06-07 16:16:21 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsmaptooledit.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-09-11 09:10:35 +02:00
|
|
|
class QgsMapToolEdit: QgsMapTool
|
|
|
|
{
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Base class for map tools that edit vector geometry
|
2017-06-07 16:16:21 +02:00
|
|
|
%End
|
|
|
|
|
2015-09-11 09:10:35 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsmaptooledit.h"
|
|
|
|
%End
|
|
|
|
public:
|
2017-05-01 16:42:33 +02:00
|
|
|
QgsMapToolEdit( QgsMapCanvas *canvas );
|
2015-09-11 09:10:35 +02:00
|
|
|
|
2016-05-30 02:42:12 +10:00
|
|
|
virtual Flags flags() const;
|
2015-09-11 09:10:35 +02:00
|
|
|
|
2017-01-11 09:51:38 +03:00
|
|
|
double defaultZValue() const;
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
2018-05-25 13:54:27 +10:00
|
|
|
Returns default Z value
|
2017-12-15 10:36:55 -04:00
|
|
|
Use for set Z coordinate to new vertex for 2.5d geometries
|
2017-06-07 16:16:21 +02:00
|
|
|
%End
|
|
|
|
|
2015-09-11 09:10:35 +02:00
|
|
|
protected:
|
|
|
|
|
2017-02-24 11:25:15 +08:00
|
|
|
static QColor digitizingStrokeColor();
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
|
|
|
Returns stroke color for rubber bands (from global settings)
|
|
|
|
%End
|
2017-02-24 11:25:15 +08:00
|
|
|
static int digitizingStrokeWidth();
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
|
|
|
Returns stroke width for rubber bands (from global settings)
|
|
|
|
%End
|
2017-02-24 11:25:15 +08:00
|
|
|
static QColor digitizingFillColor();
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
|
|
|
Returns fill color for rubber bands (from global settings)
|
|
|
|
%End
|
2017-02-24 11:25:15 +08:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
QgsRubberBand *createRubberBand( QgsWkbTypes::GeometryType geometryType = QgsWkbTypes::LineGeometry, bool alternativeBand = false ) /Factory/;
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Creates a rubber band with the color/line width from
|
|
|
|
the QGIS settings. The caller takes ownership of the
|
|
|
|
returned object
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param geometryType:
|
2019-02-26 19:54:09 +10:00
|
|
|
:param alternativeBand: if ``True``, rubber band will be set with more transparency and a dash pattern. default is ``False``.
|
2017-06-07 16:16:21 +02:00
|
|
|
%End
|
2015-09-11 09:10:35 +02:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
QgsGeometryRubberBand *createGeometryRubberBand( QgsWkbTypes::GeometryType geometryType = QgsWkbTypes::LineGeometry, bool alternativeBand = false ) const /Factory/;
|
2015-09-11 09:10:35 +02:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
QgsVectorLayer *currentVectorLayer();
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
|
|
|
Returns the current vector layer of the map canvas or 0
|
|
|
|
%End
|
2015-09-11 09:10:35 +02:00
|
|
|
|
2019-07-31 07:24:00 +02:00
|
|
|
enum TopologicalResult
|
|
|
|
{
|
|
|
|
Success,
|
|
|
|
InvalidCanvas,
|
|
|
|
InvalidLayer,
|
|
|
|
};
|
|
|
|
|
2019-08-08 14:11:09 +02:00
|
|
|
TopologicalResult addTopologicalPoints( const QVector<QgsPointXY> &vertices ) /Deprecated/;
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
2019-08-06 09:22:00 +02:00
|
|
|
Adds a list of ``vertices`` to other features to keep topology up to date, e.g. to neighbouring polygons.
|
|
|
|
The ``vertices`` list specifies a set of topological points to add, in the layer's coordinate reference system.
|
2019-08-08 14:11:09 +02:00
|
|
|
|
2019-10-15 15:56:54 +02:00
|
|
|
.. deprecated:: QGIS 3.12
|
|
|
|
- will be removed in QGIS 4.0. Use the variant which accepts QgsPoint objects instead of QgsPointXY.
|
2019-06-18 06:39:25 +02:00
|
|
|
%End
|
|
|
|
|
2019-08-06 09:22:00 +02:00
|
|
|
TopologicalResult addTopologicalPoints( const QVector<QgsPoint> &vertices );
|
2019-06-18 06:39:25 +02:00
|
|
|
%Docstring
|
2019-08-06 09:22:00 +02:00
|
|
|
Adds a list of ``vertices`` to other features to keep topology up to date, e.g. to neighbouring polygons.
|
|
|
|
The ``vertices`` list specifies a set of topological points to add, in the layer's coordinate reference system.
|
2019-06-18 06:39:25 +02:00
|
|
|
|
|
|
|
.. versionadded:: 3.10
|
2017-06-07 16:16:21 +02:00
|
|
|
%End
|
2015-09-11 09:10:35 +02:00
|
|
|
|
|
|
|
void notifyNotVectorLayer();
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
|
|
|
Display a timed message bar noting the active layer is not vector.
|
|
|
|
%End
|
2015-09-11 09:10:35 +02:00
|
|
|
void notifyNotEditableLayer();
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
|
|
|
Display a timed message bar noting the active vector layer is not editable.
|
|
|
|
%End
|
2020-06-10 22:27:26 -05:00
|
|
|
|
2015-09-11 09:10:35 +02:00
|
|
|
};
|
2017-06-07 16:16:21 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsmaptooledit.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|