Subgroup: other

Class: QgsVertexMarker

class qgis.gui.QgsVertexMarker

Bases: qgis._gui.QgsMapCanvasItem

A class for marking vertices of features using e.g. circles or ‘x’.

Methods

acceptDrops
acceptHoverEvents
acceptTouchEvents
acceptedMouseButtons
advance
boundingRect
boundingRegion
boundingRegionGranularity
cacheMode
childItems
childrenBoundingRect
clearFocus
clipPath
collidesWithItem
collidesWithPath
collidingItems
color Returns the stroke color for the marker.
commonAncestorItem
contains
contextMenuEvent
cursor
data
deviceTransform
dragEnterEvent
dragLeaveEvent
dragMoveEvent
dropEvent
effectiveOpacity
ensureVisible ensureVisible(self, float, float, float, float, xMargin: int = 50, yMargin: int = 50)
fillColor Returns the fill color for the marker.
filtersChildEvents
flags
focusInEvent
focusItem
focusOutEvent
focusProxy
grabKeyboard
grabMouse
graphicsEffect
group
hasCursor
hasFocus
hide
hoverEnterEvent
hoverLeaveEvent
hoverMoveEvent
inputMethodEvent
inputMethodHints
inputMethodQuery
installSceneEventFilter
isActive
isAncestorOf
isBlockedByModalPanel
isClipped
isEnabled
isObscured isObscured(self, float, float, float, float) -> bool
isObscuredBy
isPanel
isSelected
isUnderMouse
isVisible
isVisibleTo
isWidget
isWindow
itemChange
itemTransform
keyPressEvent
keyReleaseEvent
mapFromItem mapFromItem(self, QGraphicsItem, QRectF) -> QPolygonF
mapFromParent mapFromParent(self, QRectF) -> QPolygonF
mapFromScene mapFromScene(self, QRectF) -> QPolygonF
mapRectFromItem mapRectFromItem(self, QGraphicsItem, float, float, float, float) -> QRectF
mapRectFromParent mapRectFromParent(self, float, float, float, float) -> QRectF
mapRectFromScene mapRectFromScene(self, float, float, float, float) -> QRectF
mapRectToItem mapRectToItem(self, QGraphicsItem, float, float, float, float) -> QRectF
mapRectToParent mapRectToParent(self, float, float, float, float) -> QRectF
mapRectToScene mapRectToScene(self, float, float, float, float) -> QRectF
mapToItem mapToItem(self, QGraphicsItem, QRectF) -> QPolygonF
mapToParent mapToParent(self, QRectF) -> QPolygonF
mapToScene mapToScene(self, QRectF) -> QPolygonF
mouseDoubleClickEvent
mouseMoveEvent
mousePressEvent
mouseReleaseEvent
moveBy
opacity
opaqueArea
paint
panel
panelModality
parentItem
parentObject
parentWidget
pos
prepareGeometryChange
rect returns canvas item rectangle in map units
removeSceneEventFilter
resetTransform
rotation
scale
scene
sceneBoundingRect
sceneEvent
sceneEventFilter
scenePos
sceneTransform
scroll
setAcceptDrops
setAcceptHoverEvents
setAcceptTouchEvents
setAcceptedMouseButtons
setActive
setBoundingRegionGranularity
setCacheMode
setCenter
setColor Sets the stroke color for the marker.
setCursor
setData
setEnabled
setFillColor Sets the fill color for the marker.
setFiltersChildEvents
setFlag
setFlags
setFocus
setFocusProxy
setGraphicsEffect
setGroup
setIconSize
setIconType
setInputMethodHints
setOpacity
setPanelModality
setParentItem
setPenWidth
setPos setPos(self, float, float)
setRect sets canvas item rectangle in map units
setRenderContextVariables
setRotation
setScale
setSelected
setToolTip
setTransform
setTransformOriginPoint setTransformOriginPoint(self, float, float)
setTransformations
setVisible
setX
setY
setZValue
shape
show
stackBefore
toCanvasCoordinates transformation from map coordinates to screen coordinates
toGraphicsObject
toMapCoordinates transformation from screen coordinates to map coordinates
toolTip
topLevelItem
topLevelWidget
transform
transformOriginPoint
transformations
type
ungrabKeyboard
ungrabMouse
unsetCursor
update update(self, float, float, float, float)
updateCanvas
updateMicroFocus
updatePosition
wheelEvent
window
x
y
zValue

Attributes

DeviceCoordinateCache
ICON_BOX
ICON_CIRCLE
ICON_CROSS
ICON_DOUBLE_TRIANGLE
ICON_NONE
ICON_X
ItemAcceptsInputMethod
ItemChildAddedChange
ItemChildRemovedChange
ItemClipsChildrenToShape
ItemClipsToShape
ItemContainsChildrenInShape
ItemCoordinateCache
ItemCursorChange
ItemCursorHasChanged
ItemDoesntPropagateOpacityToChildren
ItemEnabledChange
ItemEnabledHasChanged
ItemFlagsChange
ItemFlagsHaveChanged
ItemHasNoContents
ItemIgnoresParentOpacity
ItemIgnoresTransformations
ItemIsFocusable
ItemIsMovable
ItemIsPanel
ItemIsSelectable
ItemMatrixChange
ItemNegativeZStacksBehindParent
ItemOpacityChange
ItemOpacityHasChanged
ItemParentChange
ItemParentHasChanged
ItemPositionChange
ItemPositionHasChanged
ItemRotationChange
ItemRotationHasChanged
ItemScaleChange
ItemScaleHasChanged
ItemSceneChange
ItemSceneHasChanged
ItemScenePositionHasChanged
ItemSelectedChange
ItemSelectedHasChanged
ItemSendsGeometryChanges
ItemSendsScenePositionChanges
ItemStacksBehindParent
ItemToolTipChange
ItemToolTipHasChanged
ItemTransformChange
ItemTransformHasChanged
ItemTransformOriginPointChange
ItemTransformOriginPointHasChanged
ItemUsesExtendedStyleOption
ItemVisibleChange
ItemVisibleHasChanged
ItemZValueChange
ItemZValueHasChanged
NoCache
NonModal
PanelModal
SceneModal
Type
UserType
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

setColor()

See also

fillColor()

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.

New in version 3.0.

See also

setFillColor()

See also

color()

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

color()

See also

setFillColor()

setFillColor(self, color: Union[QColor, Qt.GlobalColor, QGradient])

Sets the fill color for the marker. This setting only applies to some icon types.

New in version 3.0.

See also

fillColor()

See also

setColor()

setIconSize(self, iconSize: int)
setIconType(self, iconType: int)
setPenWidth(self, width: int)
setRenderContextVariables()
updateCanvas()
updateMicroFocus()
updatePosition(self)
wheelEvent()