Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
Vertex Struct Reference

\qmltype MapCircle \instantiates QDeclarativeCircleMapItem \inqmlmodule QtLocation More...

+ Collaboration diagram for Vertex:

Public Member Functions

void addNeighbor (int neighbor)
 
void removeNeighbor (int neighbor)
 
bool allNeighbors () const
 

Public Attributes

QVector2D position
 
QVector3D position
 
std::array< int, 3 > neighbors = { -1, -1, -1 }
 
bool active = true
 
bool borked = false
 

Detailed Description

\qmltype MapCircle \instantiates QDeclarativeCircleMapItem \inqmlmodule QtLocation

Since
QtLocation 5.5

The MapCircle type displays a geographic circle on a Map.

The MapCircle type displays a geographic circle on a Map, which consists of all points that are within a set distance from one central point. Depending on map projection, a geographic circle may not always be a perfect circle on the screen: for instance, in the Mercator projection, circles become ovoid in shape as they near the poles. To display a perfect screen circle around a point, use a MapQuickItem containing a relevant Qt Quick type instead.

By default, the circle is displayed as a 1 pixel black border with no fill. To change its appearance, use the \l {color}, \l {border.color} and \l {border.width} properties.

Internally, a MapCircle is implemented as a many-sided polygon. To calculate the radius points it uses a spherical model of the Earth, similar to the atDistanceAndAzimuth method of the \l {coordinate} type. These two things can occasionally have implications for the accuracy of the circle's shape, depending on position and map projection.

Note
Dragging a MapCircle (through the use of \l {MouseArea} or \l {PointHandler}) causes new points to be generated at the same distance (in meters) from the center. This is in contrast to other map items which store their dimensions in terms of latitude and longitude differences between vertices.

Definition at line 103 of file qdeclarativecirclemapitem.cpp.

Member Function Documentation

◆ addNeighbor()

void Vertex::addNeighbor ( int neighbor)
inline

Definition at line 118 of file qssgshadowmaphelpers.cpp.

References borked, and neighbors.

◆ allNeighbors()

bool Vertex::allNeighbors ( ) const
inline

Definition at line 149 of file qssgshadowmaphelpers.cpp.

References neighbors.

◆ removeNeighbor()

void Vertex::removeNeighbor ( int neighbor)
inline

Definition at line 136 of file qssgshadowmaphelpers.cpp.

References borked, and neighbors.

Member Data Documentation

◆ active

bool Vertex::active = true

Definition at line 115 of file qssgshadowmaphelpers.cpp.

Referenced by sliceBoxByPlanes().

◆ borked

bool Vertex::borked = false

Definition at line 116 of file qssgshadowmaphelpers.cpp.

Referenced by addNeighbor(), and removeNeighbor().

◆ neighbors

std::array<int, 3> Vertex::neighbors = { -1, -1, -1 }

◆ position [1/2]

QVector2D Vertex::position

Definition at line 105 of file qdeclarativecirclemapitem.cpp.

Referenced by sliceBoxByPlanes().

◆ position [2/2]

QVector3D Vertex::position

Definition at line 113 of file qssgshadowmaphelpers.cpp.


The documentation for this struct was generated from the following files: