Subgroup: Geometry
Class: QgsGeometryRubberBand¶
-
class
qgis.gui.
QgsGeometryRubberBand
¶ Bases:
qgis._gui.QgsMapCanvasItem
A rubberband class for QgsAbstractGeometry (considering curved geometries)*
Methods
acceptDrops
acceptHoverEvents
acceptTouchEvents
acceptedMouseButtons
advance
boundingRect
boundingRegion
boundingRegionGranularity
cacheMode
childItems
childrenBoundingRect
clearFocus
clipPath
collidesWithItem
collidesWithPath
collidingItems
commonAncestorItem
contains
contextMenuEvent
cursor
data
deviceTransform
dragEnterEvent
dragLeaveEvent
dragMoveEvent
dropEvent
effectiveOpacity
ensureVisible
ensureVisible(self, float, float, float, float, xMargin: int = 50, yMargin: int = 50) filtersChildEvents
flags
focusInEvent
focusItem
focusOutEvent
focusProxy
geometry
Returns a pointer to the geometry 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
moveVertex
Moves vertex to new position (in map coordinates) 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
setBrushStyle
Sets brush style setCacheMode
setCursor
setData
setEnabled
setFillColor
Sets fill color for vertex markers setFiltersChildEvents
setFlag
setFlags
setFocus
setFocusProxy
setGeometry
Sets geometry (takes ownership). setGraphicsEffect
setGroup
setIconType
Sets vertex marker icon type setInputMethodHints
setLineStyle
Sets pen style setOpacity
setPanelModality
setParentItem
setPos
setPos(self, float, float) setRect
sets canvas item rectangle in map units setRenderContextVariables
setRotation
setScale
setSelected
setStrokeColor
Sets stroke color for vertex markers setStrokeWidth
Sets stroke width 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
called on changed extent or resize event to update position of the item wheelEvent
window
x
y
zValue
Attributes
DeviceCoordinateCache
ICON_BOX
ICON_CIRCLE
ICON_CROSS
ICON_FULL_BOX
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_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
()¶
-