Class: QgsVertexMarker¶
-
class
qgis.gui.
QgsVertexMarker
¶ Bases:
qgis._gui.QgsMapCanvasItem
A class for marking vertices of features using e.g. circles or ‘x’.
Enums
Methods
Returns the stroke color for the marker.
Returns the fill
color
for the marker.Sets the stroke
color
for the marker.Sets the fill
color
for the marker.Signals
Attributes
-
ICON_BOX
= 3¶
-
ICON_CIRCLE
= 4¶
-
ICON_CROSS
= 1¶
-
ICON_DOUBLE_TRIANGLE
= 5¶
-
ICON_NONE
= 0¶
-
ICON_X
= 2¶
-
class
IconType
¶ Bases:
int
-
boundingRect
(self) → QRectF¶
-
color
(self) → QColor¶ Returns the stroke color for the marker.
See also
See also
New in version 3.0.
-
contextMenuEvent
()¶
-
dragEnterEvent
()¶
-
dragLeaveEvent
()¶
-
dragMoveEvent
()¶
-
dropEvent
()¶
-
fillColor
(self) → QColor¶ Returns the fill
color
for the marker. This setting only applies to some icon types.See also
See also
New in version 3.0.
-
focusInEvent
()¶
-
focusOutEvent
()¶
-
hoverEnterEvent
()¶
-
hoverLeaveEvent
()¶
-
hoverMoveEvent
()¶
-
inputMethodEvent
()¶
-
inputMethodQuery
()¶
-
itemChange
()¶
-
keyPressEvent
()¶
-
keyReleaseEvent
()¶
-
mouseDoubleClickEvent
()¶
-
mouseMoveEvent
()¶
-
mousePressEvent
()¶
-
mouseReleaseEvent
()¶
-
paint
(self, p: QPainter)¶
-
prepareGeometryChange
()¶
-
sceneEvent
()¶
-
sceneEventFilter
()¶
-
setCenter
(self, point: QgsPointXY)¶
-
setColor
(self, color: Union[QColor, Qt.GlobalColor, QGradient])¶ Sets the stroke
color
for the marker.See also
See also
-
setFillColor
(self, color: Union[QColor, Qt.GlobalColor, QGradient])¶ Sets the fill
color
for the marker. This setting only applies to some icon types.See also
See also
New in version 3.0.
-
setIconSize
(self, iconSize: int)¶
-
setIconType
(self, iconType: int)¶
-
setPenWidth
(self, width: int)¶
-
setRenderContextVariables
()¶
-
updateCanvas
()¶
-
updateMicroFocus
()¶
-
updatePosition
(self)¶
-
wheelEvent
()¶
-