def __init__(self, longitude, latitude, radius, parent=None): """Constructor. Args: longitude(float): Longitude of the center of the circle. latitude(float): Latitude of the center of the circle. radius(float): Radius of the circle in pixels. scene(MapGraphicsScene): Scene to which the circle belongs. parent(QGraphicsItem): Parent item, default None. Note: The management of the parent item is work in progress. """ QGraphicsEllipseItem.__init__(self, parent=parent) MapItem.__init__(self) self._lon = longitude self._lat = latitude self._radius = radius
def __init__(self, longitude, latitude, radius, parent=None): """Constructor. Args: longitude(float): Longitude of the center of the circle. latitude(float): Latitude of the center of the circle. radius(float): Radius of the circle in pixels. scene(MapGraphicsScene): Scene to which the circle belongs. parent(QGraphicsItem): Parent item, default None. Note: The management of the parent item is work in progress. """ QGraphicsEllipseItem.__init__(self, parent=parent) MapItem.__init__(self) self.setFlags(QGraphicsItem.ItemIsMovable) self._lon = longitude self._lat = latitude self._radius = radius
def __init__(self, size: int, key: Optional[int] = None, **kwargs): QGraphicsEllipseItem.__init__(self, 0, 0, size, size) Marker.__init__(self, key, **kwargs)