def __init__(self, canvas): super(MapToolClick, self).__init__(canvas) self.canvas = canvas self.cursor = QgsApplication.getThemeCursor( QgsApplication.CapturePoint) self.geoCrs = QgsCoordinateReferenceSystem(4326)
def __init__(self, canvas): super(MapToolSelect, self).__init__(canvas) self.canvas = canvas self.cursor = QgsApplication.getThemeCursor(QgsApplication.Select) self.rubberBand = None self.dragStart = None self.selectionActive = False
def __init__(self, canvas): super(CoordinateCaptureMapTool, self).__init__(canvas) self.mapCanvas = canvas self.rubberBand = QgsRubberBand(self.mapCanvas, QgsWkbTypes.PolygonGeometry) self.rubberBand.setColor(Qt.red) self.rubberBand.setWidth(1) self.setCursor( QgsApplication.getThemeCursor(QgsApplication.Cursor.CrossHair))
def __init__(self, canvas: QgsMapCanvas, cad_dock_widget, iface, action): super().__init__(SinglePointTemplatedMarkerTool.ID, action, canvas, cad_dock_widget, iface) self.setCursor( QgsApplication.getThemeCursor(QgsApplication.CapturePoint)) self.widget = None self._layer = None self.initial_point = None self.rotation_item = None
def __init__(self, canvas): QgsMapTool.__init__(self, canvas) self.dlg = GeometryShapesDialog() self.capturing = False self.startPoint = None self.endPoint = None self.rubberBand = None self.helperBand = None self.canvas = canvas cursor = QgsApplication.getThemeCursor( QgsApplication.Cursor.CapturePoint) self.setCursor(cursor)
def activate(self): self.canvas.setCursor( QgsApplication.getThemeCursor(QgsApplication.Cursor.Select))