-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
104 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgsvertexmarker.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
class QgsVertexMarker : QgsMapCanvasItem | ||
{ | ||
%Docstring | ||
A class for marking vertices of features using e.g. circles or 'x'. | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsvertexmarker.h" | ||
%End | ||
public: | ||
|
||
enum IconType | ||
{ | ||
ICON_NONE, | ||
ICON_CROSS, | ||
ICON_X, | ||
ICON_BOX, | ||
ICON_CIRCLE | ||
}; | ||
|
||
QgsVertexMarker( QgsMapCanvas *mapCanvas /TransferThis/ ); | ||
|
||
void setCenter( const QgsPoint &point ); | ||
|
||
void setIconType( int iconType ); | ||
|
||
void setIconSize( int iconSize ); | ||
|
||
void setColor( const QColor &color ); | ||
%Docstring | ||
Sets the stroke ``color`` for the marker. | ||
.. seealso:: color() | ||
.. seealso:: setFillColor() | ||
%End | ||
|
||
QColor color() const; | ||
%Docstring | ||
Returns the stroke color for the marker. | ||
.. seealso:: setColor() | ||
.. seealso:: fillColor() | ||
.. versionadded:: 3.0 | ||
:rtype: QColor | ||
%End | ||
|
||
void setFillColor( const QColor &color ); | ||
%Docstring | ||
Sets the fill ``color`` for the marker. This setting only | ||
applies to some icon types. | ||
.. versionadded:: 3.0 | ||
.. seealso:: fillColor() | ||
.. seealso:: setColor() | ||
%End | ||
|
||
QColor fillColor() const; | ||
%Docstring | ||
Returns the fill ``color`` for the marker. This setting only | ||
applies to some icon types. | ||
.. versionadded:: 3.0 | ||
.. seealso:: setFillColor() | ||
.. seealso:: color() | ||
:rtype: QColor | ||
%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 * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters