Skip to content

GeoShapeMixin

Subclasses

Class Module Description
GeoShape prettyqt.positioning.geoshape
GeoRectangle prettyqt.positioning.georectangle
GeoCircle prettyqt.positioning.geocircle
GeoPath prettyqt.positioning.geopath
GeoPolygon prettyqt.positioning.geopolygon

⋔ Inheritance diagram

graph TD
  1473573419984["positioning.GeoShapeMixin"]
  140713234304496["builtins.object"]
  140713234304496 --> 1473573419984

🛈 DocStrings

Source code in prettyqt\positioning\geoshape.py
class GeoShapeMixin:
    def __contains__(self, other: QtPositioning.QGeoCoordinate):
        return self.contains(other)

    def __str__(self):
        return self.toString()[1:]

    def get_type(self) -> str:
        return SHAPE_TYPES.inverse[self.type()]