QGIS/python/gui/auto_generated/qgsmaptooledit.sip.in

106 lines
3.6 KiB
Plaintext
Raw Normal View History

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 *
************************************************************************/
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
%TypeHeaderCode
#include "qgsmaptooledit.h"
%End
public:
QgsMapToolEdit( QgsMapCanvas *canvas );
2016-05-30 02:42:12 +10:00
virtual Flags flags() const;
2017-01-11 09:51:38 +03:00
double defaultZValue() const;
2017-06-07 16:16:21 +02:00
%Docstring
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
protected:
static QColor digitizingStrokeColor();
2017-06-07 16:16:21 +02:00
%Docstring
Returns stroke color for rubber bands (from global settings)
%End
static int digitizingStrokeWidth();
2017-06-07 16:16:21 +02:00
%Docstring
Returns stroke width for rubber bands (from global settings)
%End
static QColor digitizingFillColor();
2017-06-07 16:16:21 +02:00
%Docstring
Returns fill color for rubber bands (from global settings)
%End
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
QgsGeometryRubberBand *createGeometryRubberBand( QgsWkbTypes::GeometryType geometryType = QgsWkbTypes::LineGeometry, bool alternativeBand = false ) const /Factory/;
QgsVectorLayer *currentVectorLayer();
2017-06-07 16:16:21 +02:00
%Docstring
Returns the current vector layer of the map canvas or 0
%End
enum TopologicalResult
{
Success,
InvalidCanvas,
InvalidLayer,
};
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.
.. deprecated:: QGIS 3.12
- will be removed in QGIS 4.0. Use the variant which accepts QgsPoint objects instead of QgsPointXY.
%End
2019-08-06 09:22:00 +02:00
TopologicalResult addTopologicalPoints( const QVector<QgsPoint> &vertices );
%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.
.. versionadded:: 3.10
2017-06-07 16:16:21 +02:00
%End
void notifyNotVectorLayer();
2017-06-07 16:16:21 +02:00
%Docstring
Display a timed message bar noting the active layer is not vector.
%End
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
};
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 *
************************************************************************/