1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsvertexmarker.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
%ModuleHeaderCode
// For ConvertToSubClassCode.
#include <qgsvertexmarker.h>
%End
class QgsVertexMarker : QgsMapCanvasItem
{
%Docstring(signature="appended")
A class for marking vertices of features using e.g. circles or 'x'.
%End
%TypeHeaderCode
#include "qgsvertexmarker.h"
%End
%ConvertToSubClassCode
if ( dynamic_cast<QgsVertexMarker *>( sipCpp ) )
sipType = sipType_QgsVertexMarker;
else
sipType = nullptr;
%End
public:
enum IconType
{
ICON_NONE,
ICON_CROSS,
ICON_X,
ICON_BOX,
ICON_CIRCLE,
ICON_DOUBLE_TRIANGLE,
ICON_TRIANGLE,
ICON_RHOMBUS,
ICON_INVERTED_TRIANGLE,
};
QgsVertexMarker( QgsMapCanvas *mapCanvas /TransferThis/ );
void setCenter( const QgsPointXY &point );
%Docstring
Sets the center ``point`` of the marker, in map coordinates.
.. seealso:: :py:func:`center`
%End
QgsPointXY center() const;
%Docstring
Returns the center point of the marker, in map coordinates.
.. seealso:: :py:func:`setCenter`
.. versionadded:: 3.18
%End
void setIconType( int iconType );
void setIconSize( int iconSize );
void setColor( const QColor &color );
%Docstring
Sets the stroke ``color`` for the marker.
.. seealso:: :py:func:`color`
.. seealso:: :py:func:`setFillColor`
%End
QColor color() const;
%Docstring
Returns the stroke color for the marker.
.. seealso:: :py:func:`setColor`
.. seealso:: :py:func:`fillColor`
.. versionadded:: 3.0
%End
void setFillColor( const QColor &color );
%Docstring
Sets the fill ``color`` for the marker. This setting only
applies to some icon types.
.. seealso:: :py:func:`fillColor`
.. seealso:: :py:func:`setColor`
.. versionadded:: 3.0
%End
QColor fillColor() const;
%Docstring
Returns the fill ``color`` for the marker. This setting only
applies to some icon types.
.. seealso:: :py:func:`setFillColor`
.. seealso:: :py:func:`color`
.. versionadded:: 3.0
%End
void setPenWidth( int width );
virtual void paint( QPainter *p );
virtual QRectF boundingRect() const;
virtual void updatePosition();
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsvertexmarker.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
|