内容表

上一话题

QGeoAreaMonitorSource

下一话题

QGeoCoordinate

QGeoCircle

QGeoCircle class defines a circular geographic area. 更多

Inheritance diagram of PySide2.QtPositioning.QGeoCircle

概要

函数

详细描述

The circle is defined in terms of a QGeoCoordinate which specifies the center of the circle and a qreal which specifies the radius of the circle in meters.

The circle is considered invalid if the center coordinate is invalid or if the radius is less than zero.

This class is a Q_GADGET since Qt 5.5. It can be directly used from C++ and QML .

class QGeoCircle

QGeoCircle(other)

QGeoCircle(center[, radius=-1.0])

QGeoCircle(other)

param radius

qreal

param other

QGeoCircle

param center

QGeoCoordinate

Constructs a new, invalid geo circle.

Constructs a new geo circle centered at center and with a radius of radius meters.

PySide2.QtPositioning.QGeoCircle. extendCircle ( coordinate )
参数

coordinate QGeoCoordinate

Extends the geo circle to also cover the coordinate coordinate

PySide2.QtPositioning.QGeoCircle. __ne__ ( other )
参数

other QGeoCircle

返回类型

bool

Returns whether this geo circle is not equal to other .

PySide2.QtPositioning.QGeoCircle. __eq__ ( other )
参数

other QGeoCircle

返回类型

bool

Returns whether this geo circle is equal to other .

PySide2.QtPositioning.QGeoCircle. radius ( )
返回类型

qreal

Returns the radius in meters of this geo circle.

另请参阅

setRadius()

PySide2.QtPositioning.QGeoCircle. setCenter ( center )
参数

center QGeoCoordinate

Sets the center coordinate of this geo circle to center .

另请参阅

center()

PySide2.QtPositioning.QGeoCircle. setRadius ( radius )
参数

radius qreal

Sets the radius in meters of this geo circle to radius .

另请参阅

radius()

PySide2.QtPositioning.QGeoCircle. translate ( degreesLatitude , degreesLongitude )
参数
  • degreesLatitude double

  • degreesLongitude double

Translates this geo circle by degreesLatitude northwards and degreesLongitude eastwards.

Negative values of degreesLatitude and degreesLongitude correspond to southward and westward translation respectively.

PySide2.QtPositioning.QGeoCircle. translated ( degreesLatitude , degreesLongitude )
参数
  • degreesLatitude double

  • degreesLongitude double

返回类型

QGeoCircle

Returns a copy of this geo circle translated by degreesLatitude northwards and degreesLongitude eastwards.

Negative values of degreesLatitude and degreesLongitude correspond to southward and westward translation respectively.

另请参阅

translate()