![]() |
Qt 6.x
The Qt SDK
|
#include <qgeopath_p.h>
Inheritance diagram for QGeoPathEager:
Collaboration diagram for QGeoPathEager:Public Member Functions | |
| QGeoPathEager () | |
| QGeoPathEager (const QList< QGeoCoordinate > &path, const qreal &width=0.0) | |
| QGeoPathEager (const QGeoPath &other) | |
| QGeoPathEager (const QGeoShape &other) | |
| ~QGeoPathEager () | |
Public Member Functions inherited from QGeoPath | |
| QGeoPath () | |
| Constructs a new, empty geo path. | |
| QGeoPath (const QList< QGeoCoordinate > &path, const qreal &width=0.0) | |
| Constructs a new geo path from a list of coordinates (path and width). | |
| QGeoPath (const QGeoPath &other) | |
| Constructs a new geo path from the contents of other. | |
| QGeoPath (const QGeoShape &other) | |
| Constructs a new geo path from the contents of other. | |
| ~QGeoPath () | |
| Destroys this path. | |
| QGeoPath & | operator= (const QGeoPath &other) |
| Assigns other to this geo path and returns a reference to this geo path. | |
| void | setPath (const QList< QGeoCoordinate > &path) |
| Sets all the elements of the path. | |
| const QList< QGeoCoordinate > & | path () const |
| Returns all the elements of the path. | |
| void | clearPath () |
| Clears the path. | |
| void | setVariantPath (const QVariantList &path) |
| Sets all the elements of the path. | |
| QVariantList | variantPath () const |
| Returns all the elements of the path. | |
| void | setWidth (const qreal &width) |
| qreal | width () const |
| Returns the width of the path, in meters. | |
| Q_INVOKABLE void | translate (double degreesLatitude, double degreesLongitude) |
| Translates this geo path by degreesLatitude northwards and degreesLongitude eastwards. | |
| Q_INVOKABLE QGeoPath | translated (double degreesLatitude, double degreesLongitude) const |
| Returns a copy of this geo path translated by degreesLatitude northwards and degreesLongitude eastwards. | |
| Q_INVOKABLE double | length (qsizetype indexFrom=0, qsizetype indexTo=-1) const |
| Returns the length of the path, in meters, from the element indexFrom to the element indexTo. | |
| Q_INVOKABLE qsizetype | size () const |
| Returns the number of elements in the path. | |
| Q_INVOKABLE void | addCoordinate (const QGeoCoordinate &coordinate) |
| Appends coordinate to the path. | |
| Q_INVOKABLE void | insertCoordinate (qsizetype index, const QGeoCoordinate &coordinate) |
| Inserts coordinate at the specified index. | |
| Q_INVOKABLE void | replaceCoordinate (qsizetype index, const QGeoCoordinate &coordinate) |
| Replaces the path element at the specified index with coordinate. | |
| Q_INVOKABLE QGeoCoordinate | coordinateAt (qsizetype index) const |
| Returns the coordinate at index . | |
| Q_INVOKABLE bool | containsCoordinate (const QGeoCoordinate &coordinate) const |
| Returns true if the path contains coordinate as one of the elements. | |
| Q_INVOKABLE void | removeCoordinate (const QGeoCoordinate &coordinate) |
| Removes the last occurrence of coordinate from the path. | |
| Q_INVOKABLE void | removeCoordinate (qsizetype index) |
| Removes element at position index from the path. | |
| Q_INVOKABLE QString | toString () const |
| Returns the geo path properties as a string. | |
Public Member Functions inherited from QGeoShape | |
| QGeoShape () | |
| Constructs a new invalid geo shape of \l UnknownType. | |
| Q_INVOKABLE | QGeoShape (const QGeoShape &other) |
| Constructs a new geo shape which is a copy of other. | |
| ~QGeoShape () | |
| Destroys this geo shape. | |
| ShapeType | type () const |
| Returns the type of this geo shape. | |
| bool | isValid () const |
| Returns whether this geo shape is valid. | |
| bool | isEmpty () const |
| Returns whether this geo shape is empty. | |
| Q_INVOKABLE bool | contains (const QGeoCoordinate &coordinate) const |
| Returns whether the coordinate coordinate is contained within this geo shape. | |
| Q_INVOKABLE QGeoRectangle | boundingGeoRectangle () const |
| Returns a QGeoRectangle representing the geographical bounding rectangle of the geo shape, that defines the latitudinal/longitudinal bounds of the geo shape. | |
| QGeoCoordinate | center () const |
| Returns the coordinate located at the geometric center of the geo shape. | |
| QGeoShape & | operator= (const QGeoShape &other) |
| Assigns other to this geo shape and returns a reference to this geo shape. | |
| Q_INVOKABLE QString | toString () const |
| Returns a string representation of this geo shape. | |
Additional Inherited Members | |
Public Types inherited from QGeoShape | |
| enum | ShapeType { UnknownType , RectangleType , CircleType , PathType , PolygonType } |
| Describes the type of the shape. More... | |
Protected Member Functions inherited from QGeoShape | |
| QGeoShape (QGeoShapePrivate *d) | |
Protected Attributes inherited from QGeoShape | |
| QSharedDataPointer< QGeoShapePrivate > | d_ptr |
Properties inherited from QGeoPath | |
| QVariantList | path |
| This property holds the list of coordinates for the geo path. | |
| qreal | width |
| the width of the path in meters. | |
Properties inherited from QGeoShape | |
| ShapeType | type |
| This property holds the type of this geo shape. | |
| bool | isValid |
| This property holds the validity of the geo shape. | |
| bool | isEmpty |
| This property defines whether this geo shape is empty. | |
| QGeoCoordinate | center |
Related Symbols inherited from QGeoShape | |
| size_t | qHash (const QGeoShape &shape, size_t seed) noexcept |
| Returns the hash value for the shape, using seed for the calculation. | |
Definition at line 210 of file qgeopath_p.h.
| QGeoPathEager::QGeoPathEager | ( | ) |
Definition at line 685 of file qgeopath.cpp.
References QGeoShape::d_ptr.
Referenced by QGeoPathEager().
Here is the caller graph for this function:| QGeoPathEager::QGeoPathEager | ( | const QList< QGeoCoordinate > & | path, |
| const qreal & | width = 0.0 |
||
| ) |
Definition at line 690 of file qgeopath.cpp.
References QGeoShape::d_ptr.
| QGeoPathEager::QGeoPathEager | ( | const QGeoPath & | other | ) |
Definition at line 695 of file qgeopath.cpp.
References QGeoShape::d_ptr, other(), QGeoPath::setPath(), and QGeoPath::setWidth().
Here is the call graph for this function:| QGeoPathEager::QGeoPathEager | ( | const QGeoShape & | other | ) |
Definition at line 702 of file qgeopath.cpp.
References QGeoPath::QGeoPath(), QGeoPathEager(), QGeoShape::d_ptr, other(), and QGeoShape::PathType.
Here is the call graph for this function:| QGeoPathEager::~QGeoPathEager | ( | ) |
Definition at line 710 of file qgeopath.cpp.