2017-04-30 16:51:18 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsvertexmarker.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-01-09 02:39:15 +00:00
|
|
|
|
2019-11-09 16:35:02 +01:00
|
|
|
%ModuleHeaderCode
|
|
|
|
// For ConvertToSubClassCode.
|
|
|
|
#include <qgsvertexmarker.h>
|
|
|
|
%End
|
|
|
|
|
2007-01-09 02:39:15 +00:00
|
|
|
class QgsVertexMarker : QgsMapCanvasItem
|
|
|
|
{
|
2017-04-30 16:51:18 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
A class for marking vertices of features using e.g. circles or 'x'.
|
2007-01-09 02:39:15 +00:00
|
|
|
%End
|
|
|
|
|
2017-04-30 16:51:18 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsvertexmarker.h"
|
2019-11-09 16:35:02 +01:00
|
|
|
%End
|
|
|
|
%ConvertToSubClassCode
|
|
|
|
if ( dynamic_cast<QgsVertexMarker *>( sipCpp ) )
|
|
|
|
sipType = sipType_QgsVertexMarker;
|
|
|
|
else
|
|
|
|
sipType = nullptr;
|
2017-04-30 16:51:18 +02:00
|
|
|
%End
|
2007-01-09 02:39:15 +00:00
|
|
|
public:
|
2013-01-12 23:48:58 +01:00
|
|
|
|
2007-01-09 02:39:15 +00:00
|
|
|
enum IconType
|
|
|
|
{
|
|
|
|
ICON_NONE,
|
|
|
|
ICON_CROSS,
|
|
|
|
ICON_X,
|
2016-02-14 03:50:23 +01:00
|
|
|
ICON_BOX,
|
2017-10-27 16:29:24 +02:00
|
|
|
ICON_CIRCLE,
|
|
|
|
ICON_DOUBLE_TRIANGLE,
|
2007-01-09 02:39:15 +00:00
|
|
|
};
|
|
|
|
|
2017-03-21 15:49:42 +10:00
|
|
|
QgsVertexMarker( QgsMapCanvas *mapCanvas /TransferThis/ );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-06-01 12:18:43 +02:00
|
|
|
void setCenter( const QgsPointXY &point );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
void setIconType( int iconType );
|
|
|
|
|
|
|
|
void setIconSize( int iconSize );
|
2017-04-30 16:51:18 +02:00
|
|
|
|
2017-03-21 15:49:42 +10:00
|
|
|
void setColor( const QColor &color );
|
2017-04-30 16:51:18 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the stroke ``color`` for the marker.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`color`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`setFillColor`
|
2017-04-30 16:51:18 +02:00
|
|
|
%End
|
|
|
|
|
2017-03-21 15:49:42 +10:00
|
|
|
QColor color() const;
|
2017-04-30 16:51:18 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the stroke color for the marker.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`setColor`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`fillColor`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2017-04-30 16:51:18 +02:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
2017-03-21 15:49:42 +10:00
|
|
|
void setFillColor( const QColor &color );
|
2017-04-30 16:51:18 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the fill ``color`` for the marker. This setting only
|
|
|
|
applies to some icon types.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`fillColor`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`setColor`
|
2018-05-28 11:31:08 -04:00
|
|
|
|
|
|
|
.. versionadded:: 3.0
|
2017-04-30 16:51:18 +02:00
|
|
|
%End
|
|
|
|
|
2017-03-21 15:49:42 +10:00
|
|
|
QColor fillColor() const;
|
2017-04-30 16:51:18 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the fill ``color`` for the marker. This setting only
|
|
|
|
applies to some icon types.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`setFillColor`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`color`
|
2018-05-28 11:31:08 -04:00
|
|
|
|
|
|
|
.. versionadded:: 3.0
|
2017-04-30 16:51:18 +02:00
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
void setPenWidth( int width );
|
|
|
|
|
2017-04-30 16:51:18 +02:00
|
|
|
virtual void paint( QPainter *p );
|
|
|
|
|
|
|
|
|
|
|
|
virtual QRectF boundingRect() const;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2007-01-09 02:39:15 +00:00
|
|
|
|
|
|
|
virtual void updatePosition();
|
2017-04-30 16:51:18 +02:00
|
|
|
|
2017-12-15 08:57:22 +10:00
|
|
|
|
2007-01-09 02:39:15 +00:00
|
|
|
};
|
|
|
|
|
2017-04-30 16:51:18 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsvertexmarker.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|