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
QGeoCameraTilesPrivate Class Reference

#include <qgeocameratiles_p_p.h>

+ Collaboration diagram for QGeoCameraTilesPrivate:

Classes

struct  ClippedFootprint
 
struct  TileMap
 

Public Member Functions

void updateMetadata ()
 
void updateGeometry ()
 
Frustum createFrustum (double viewExpansion) const
 
PolygonVector frustumFootprint (const Frustum &frustum) const
 
QPair< PolygonVector, PolygonVectorsplitPolygonAtAxisValue (const PolygonVector &polygon, int axis, double value) const
 
ClippedFootprint clipFootprintToMap (const PolygonVector &footprint) const
 
QList< QPair< double, int > > tileIntersections (double p1, int t1, double p2, int t2) const
 
QSet< QGeoTileSpectilesFromPolygon (const PolygonVector &polygon) const
 

Static Public Member Functions

static QGeoCameraTilesPrivateget (QGeoCameraTiles *o)
 

Public Attributes

QString m_pluginString
 
QGeoMapType m_mapType
 
int m_mapVersion = -1
 
QGeoCameraData m_camera
 
QSize m_screenSize
 
QRectF m_visibleArea
 
int m_tileSize = 0
 
QSet< QGeoTileSpecm_tiles
 
int m_intZoomLevel = 0
 
int m_sideLength = 0
 
bool m_dirtyGeometry = false
 
bool m_dirtyMetadata = false
 
double m_viewExpansion = 1.0
 

Detailed Description

Definition at line 46 of file qgeocameratiles_p_p.h.

Member Function Documentation

◆ clipFootprintToMap()

QGeoCameraTilesPrivate::ClippedFootprint QGeoCameraTilesPrivate::clipFootprintToMap ( const PolygonVector & footprint) const

Definition at line 442 of file qgeocameratiles.cpp.

References addXOffset(), QList< T >::first(), m_sideLength, qFuzzyCompare(), qFuzzyIsNull(), qMax(), qMin(), results, and splitPolygonAtAxisValue().

Referenced by updateGeometry().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createFrustum()

Frustum QGeoCameraTilesPrivate::createFrustum ( double viewExpansion) const

◆ frustumFootprint()

PolygonVector QGeoCameraTilesPrivate::frustumFootprint ( const Frustum & frustum) const

Definition at line 322 of file qgeocameratiles.cpp.

References Frustum::apex, appendZIntersects(), Frustum::bottomLeftFar, Frustum::bottomRightFar, QList< T >::reserve(), Frustum::topLeftFar, and Frustum::topRightFar.

Referenced by updateGeometry().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get()

static QGeoCameraTilesPrivate * QGeoCameraTilesPrivate::get ( QGeoCameraTiles * o)
inlinestatic

Definition at line 82 of file qgeocameratiles_p_p.h.

References o.

◆ splitPolygonAtAxisValue()

QPair< PolygonVector, PolygonVector > QGeoCameraTilesPrivate::splitPolygonAtAxisValue ( const PolygonVector & polygon,
int axis,
double value ) const

Definition at line 347 of file qgeocameratiles.cpp.

References i, p1, p2, and qFuzzyCompare().

Referenced by clipFootprintToMap().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ tileIntersections()

QList< QPair< double, int > > QGeoCameraTilesPrivate::tileIntersections ( double p1,
int t1,
double p2,
int t2 ) const

Definition at line 578 of file qgeocameratiles.cpp.

References QList< T >::append(), i, p1, p2, results, t1, and t2.

Referenced by tilesFromPolygon().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ tilesFromPolygon()

QSet< QGeoTileSpec > QGeoCameraTilesPrivate::tilesFromPolygon ( const PolygonVector & polygon) const

Definition at line 609 of file qgeocameratiles.cpp.

References QMap< Key, T >::constBegin(), QMap< Key, T >::constEnd(), QList< T >::first(), QMap< Key, T >::first(), QString::first(), i, QList< T >::insert(), m_intZoomLevel, m_mapType, m_mapVersion, m_pluginString, m_sideLength, map, QGeoMapType::mapId(), qFuzzyCompare(), qMax(), results, and tileIntersections().

Referenced by updateGeometry().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateGeometry()

void QGeoCameraTilesPrivate::updateGeometry ( )

Definition at line 163 of file qgeocameratiles.cpp.

References clipFootprintToMap(), createFrustum(), frustumFootprint(), m_tiles, m_viewExpansion, tilesFromPolygon(), and QSet< T >::unite().

+ Here is the call graph for this function:

◆ updateMetadata()

void QGeoCameraTilesPrivate::updateMetadata ( )

Definition at line 146 of file qgeocameratiles.cpp.

References QSet< T >::constBegin(), QSet< T >::constEnd(), i, iter, m_mapType, m_mapVersion, m_pluginString, m_tiles, and QGeoMapType::mapId().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_camera

QGeoCameraData QGeoCameraTilesPrivate::m_camera

Definition at line 90 of file qgeocameratiles_p_p.h.

Referenced by createFrustum().

◆ m_dirtyGeometry

bool QGeoCameraTilesPrivate::m_dirtyGeometry = false

Definition at line 98 of file qgeocameratiles_p_p.h.

◆ m_dirtyMetadata

bool QGeoCameraTilesPrivate::m_dirtyMetadata = false

Definition at line 99 of file qgeocameratiles_p_p.h.

◆ m_intZoomLevel

int QGeoCameraTilesPrivate::m_intZoomLevel = 0

Definition at line 96 of file qgeocameratiles_p_p.h.

Referenced by createFrustum(), and tilesFromPolygon().

◆ m_mapType

QGeoMapType QGeoCameraTilesPrivate::m_mapType

Definition at line 88 of file qgeocameratiles_p_p.h.

Referenced by tilesFromPolygon(), and updateMetadata().

◆ m_mapVersion

int QGeoCameraTilesPrivate::m_mapVersion = -1

Definition at line 89 of file qgeocameratiles_p_p.h.

Referenced by tilesFromPolygon(), and updateMetadata().

◆ m_pluginString

QString QGeoCameraTilesPrivate::m_pluginString

Definition at line 87 of file qgeocameratiles_p_p.h.

Referenced by tilesFromPolygon(), and updateMetadata().

◆ m_screenSize

QSize QGeoCameraTilesPrivate::m_screenSize

Definition at line 91 of file qgeocameratiles_p_p.h.

Referenced by createFrustum().

◆ m_sideLength

int QGeoCameraTilesPrivate::m_sideLength = 0

Definition at line 97 of file qgeocameratiles_p_p.h.

Referenced by clipFootprintToMap(), createFrustum(), and tilesFromPolygon().

◆ m_tiles

QSet<QGeoTileSpec> QGeoCameraTilesPrivate::m_tiles

Definition at line 94 of file qgeocameratiles_p_p.h.

Referenced by updateGeometry(), and updateMetadata().

◆ m_tileSize

int QGeoCameraTilesPrivate::m_tileSize = 0

Definition at line 93 of file qgeocameratiles_p_p.h.

Referenced by createFrustum().

◆ m_viewExpansion

double QGeoCameraTilesPrivate::m_viewExpansion = 1.0

Definition at line 100 of file qgeocameratiles_p_p.h.

Referenced by updateGeometry().

◆ m_visibleArea

QRectF QGeoCameraTilesPrivate::m_visibleArea

Definition at line 92 of file qgeocameratiles_p_p.h.

Referenced by createFrustum().


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