Class: QgsGeometryRubberBand¶
-
class
qgis.gui.
QgsGeometryRubberBand
¶ Bases:
qgis._gui.QgsMapCanvasItem
A rubberband class for QgsAbstractGeometry (considering curved geometries)*
Enums
Methods
Returns a pointer to the geometry
Moves vertex to new position (in map coordinates)
Sets brush style
Sets fill color for vertex markers
Sets geometry (takes ownership).
Sets vertex marker icon type
Sets pen style
Sets stroke color for vertex markers
Sets stroke width
Signals
Attributes
-
ICON_BOX
= 3¶
-
ICON_CIRCLE
= 4¶
-
ICON_CROSS
= 1¶
-
ICON_FULL_BOX
= 5¶
-
ICON_NONE
= 0¶
-
ICON_X
= 2¶
-
class
IconType
¶ Bases:
int
-
contextMenuEvent
()¶
-
dragEnterEvent
()¶
-
dragLeaveEvent
()¶
-
dragMoveEvent
()¶
-
dropEvent
()¶
-
focusInEvent
()¶
-
focusOutEvent
()¶
-
geometry
(self) → QgsAbstractGeometry¶ Returns a pointer to the geometry
-
hoverEnterEvent
()¶
-
hoverLeaveEvent
()¶
-
hoverMoveEvent
()¶
-
inputMethodEvent
()¶
-
inputMethodQuery
()¶
-
itemChange
()¶
-
keyPressEvent
()¶
-
keyReleaseEvent
()¶
-
mouseDoubleClickEvent
()¶
-
mouseMoveEvent
()¶
-
mousePressEvent
()¶
-
mouseReleaseEvent
()¶
-
moveVertex
(self, id: QgsVertexId, newPos: QgsPoint)¶ Moves vertex to new position (in map coordinates)
-
paint
(self, painter: QPainter)¶
-
prepareGeometryChange
()¶
-
sceneEvent
()¶
-
sceneEventFilter
()¶
-
setBrushStyle
(self, brushStyle: Qt.BrushStyle)¶ Sets brush style
-
setFillColor
(self, c: Union[QColor, Qt.GlobalColor, QGradient])¶ Sets fill color for vertex markers
-
setGeometry
(self, geom: QgsAbstractGeometry)¶ Sets geometry (takes ownership). Geometry is expected to be in map coordinates
-
setIconType
(self, iconType: QgsGeometryRubberBand.IconType)¶ Sets vertex marker icon type
-
setLineStyle
(self, penStyle: Qt.PenStyle)¶ Sets pen style
-
setRenderContextVariables
()¶
-
setStrokeColor
(self, c: Union[QColor, Qt.GlobalColor, QGradient])¶ Sets stroke color for vertex markers
-
setStrokeWidth
(self, width: int)¶ Sets stroke width
-
updateCanvas
()¶
-
updateMicroFocus
()¶
-
wheelEvent
()¶
-