22 #include <QNetworkAccessManager>
23 #include <QPainterPath>
28 #if defined(QGV_EXPORT)
29 #define QGV_LIB_DECL Q_DECL_EXPORT
31 #define QGV_LIB_DECL Q_DECL_IMPORT
56 ctmmultiescalas_mercator
69 enum class DistanceUnits
77 enum class MouseAction : int
88 Q_DECLARE_FLAGS(MouseActions, MouseAction)
90 enum class ItemFlag : int
96 HighlightCustom = 0x10,
102 Q_DECLARE_FLAGS(ItemFlags, ItemFlag)
108 GeoPos(
double lat,
double lon);
110 bool isEmpty()
const;
112 double latitude()
const;
113 double longitude()
const;
115 void setLat(
double late);
116 void setLon(
double lon);
118 QString lonToString(
const QString& format =
"[+-]d")
const;
119 QString latToString(
const QString& format =
"[+-]d")
const;
121 static QString lonToString(
double lon,
const QString& format =
"[+-]d");
122 static QString latToString(
double lat,
const QString& format =
"[+-]d");
124 bool operator==(
const GeoPos& rhs);
125 bool operator!=(
const GeoPos& rhs);
137 GeoRect(
double lat1,
double lon1,
double lat2,
double lon2);
140 bool isEmpty()
const;
144 GeoPos bottomLeft()
const;
145 GeoPos bottomRight()
const;
146 double lonLeft()
const;
147 double lonRight()
const;
148 double latBottom()
const;
149 double latTop()
const;
151 bool contains(
GeoPos const& pos)
const;
152 bool contains(
GeoRect const& rect)
const;
153 bool intersects(
GeoRect const& rect)
const;
155 bool operator==(
const GeoRect& rhs);
156 bool operator!=(
const GeoRect& rhs);
173 bool operator<(
const GeoTilePos& other)
const;
182 QString toQuadKey()
const;
191 QGV_LIB_DECL
void setNetworkManager(QNetworkAccessManager* manager);
192 QGV_LIB_DECL QNetworkAccessManager* getNetworkManager();
194 QGV_LIB_DECL QTransform createTransfrom(QPointF
const& projAnchor,
double scale,
double azimuth);
195 QGV_LIB_DECL QTransform createTransfromScale(QPointF
const& projAnchor,
double scale);
196 QGV_LIB_DECL QTransform createTransfromAzimuth(QPointF
const& projAnchor,
double azimuth);
197 QGV_LIB_DECL QPainterPath createTextPath(
const QRect& rect,
const QString& text,
const QFont& font,
int penWidth);
199 QGV_LIB_DECL
void setDrawDebug(
bool enabled);
200 QGV_LIB_DECL
bool isDrawDebug();
201 QGV_LIB_DECL
void setPrintDebug(
bool enabled);
202 QGV_LIB_DECL
bool isPrintDebug();
206 QGV_LIB_DECL QDebug operator<<(QDebug debug,
const QGV::GeoPos& value);
207 QGV_LIB_DECL QDebug operator<<(QDebug debug,
const QGV::GeoRect& value);
208 QGV_LIB_DECL QDebug operator<<(QDebug debug,
const QGV::GeoTilePos& value);
214 Q_DECLARE_OPERATORS_FOR_FLAGS(QGV::ItemFlags)
217 if (QGV::isPrintDebug()) \
220 if (QGV::isPrintDebug()) \
223 if (QGV::isPrintDebug()) \
225 #define qgvCritical qCritical
Definition: QGVGlobal.h:105
Definition: QGVGlobal.h:134
Definition: QGVGlobal.h:164