/usr/share/qt5/doc/qtpositioning/qgeorectangle.html is in qtpositioning5-doc-html 5.3.2-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qgeorectangle.cpp -->
<title>QGeoRectangle Class | QtPositioning 5.3</title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
<div class="main">
<div class="main-rounded">
<div class="navigationbar">
<ul>
<li>Qt 5.3</li>
<li><a href="qtpositioning-index.html">Qt Positioning</a></li>
<li><a href="qtpositioning-module.html">C++ Classes</a></li>
<li>QGeoRectangle</li>
<li id="buildversion">
Qt 5.3.2 Reference Documentation</li>
</ul>
</div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QGeoRectangle Class</h1>
<!-- $$$QGeoRectangle-brief -->
<p>The QGeoRectangle class defines a rectangular geographic area. <a href="#details">More...</a></p>
<!-- @@@QGeoRectangle -->
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> </b><tt><span class="preprocessor">#include <QGeoRectangle></span>
</tt></td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> <tt>QT += positioning</tt></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 5.2</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qgeoshape.html">QGeoShape</a>.</td></tr></table><ul>
<li><a href="qgeorectangle-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#QGeoRectangle">QGeoRectangle</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#QGeoRectangle-2">QGeoRectangle</a></b>(const QGeoCoordinate &<i> center</i>, double<i> degreesWidth</i>, double<i> degreesHeight</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#QGeoRectangle-3">QGeoRectangle</a></b>(const QGeoCoordinate &<i> topLeft</i>, const QGeoCoordinate &<i> bottomRight</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#QGeoRectangle-4">QGeoRectangle</a></b>(const QList<QGeoCoordinate> &<i> coordinates</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#QGeoRectangle-5">QGeoRectangle</a></b>(const QGeoRectangle &<i> other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#QGeoRectangle-6">QGeoRectangle</a></b>(const QGeoShape &<i> other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#dtor.QGeoRectangle">~QGeoRectangle</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoCoordinate </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#bottomLeft">bottomLeft</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoCoordinate </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#bottomRight">bottomRight</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoCoordinate </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#center">center</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#contains">contains</a></b>(const QGeoCoordinate &<i> coordinate</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#contains-2">contains</a></b>(const QGeoRectangle &<i> rectangle</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> double </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#height">height</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#intersects">intersects</a></b>(const QGeoRectangle &<i> rectangle</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#setBottomLeft">setBottomLeft</a></b>(const QGeoCoordinate &<i> bottomLeft</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#setBottomRight">setBottomRight</a></b>(const QGeoCoordinate &<i> bottomRight</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#setCenter">setCenter</a></b>(const QGeoCoordinate &<i> center</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#setHeight">setHeight</a></b>(double<i> degreesHeight</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#setTopLeft">setTopLeft</a></b>(const QGeoCoordinate &<i> topLeft</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#setTopRight">setTopRight</a></b>(const QGeoCoordinate &<i> topRight</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#setWidth">setWidth</a></b>(double<i> degreesWidth</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoCoordinate </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#topLeft">topLeft</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoCoordinate </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#topRight">topRight</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#translate">translate</a></b>(double<i> degreesLatitude</i>, double<i> degreesLongitude</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoRectangle </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#translated">translated</a></b>(double<i> degreesLatitude</i>, double<i> degreesLongitude</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoRectangle </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#united">united</a></b>(const QGeoRectangle &<i> rectangle</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> double </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#width">width</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#operator-not-eq">operator!=</a></b>(const QGeoShape &<i> other</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#operator-not-eq-2">operator!=</a></b>(const QGeoRectangle &<i> other</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoRectangle & </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#operator-eq">operator=</a></b>(const QGeoRectangle &<i> other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#operator-eq-eq">operator==</a></b>(const QGeoShape &<i> other</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#operator-eq-eq-2">operator==</a></b>(const QGeoRectangle &<i> other</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoRectangle </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#operator-7c">operator|</a></b>(const QGeoRectangle &<i> rectangle</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoRectangle & </td><td class="memItemRight bottomAlign"><b><a href="qgeorectangle.html#operator-7c-eq">operator|=</a></b>(const QGeoRectangle &<i> rectangle</i>)</td></tr>
</table>
<ul>
<li class="fn">8 public functions inherited from <a href="qgeoshape.html#public-functions">QGeoShape</a></li>
</ul>
<a name="details"></a>
<!-- $$$QGeoRectangle-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QGeoRectangle class defines a rectangular geographic area.</p>
<p>The rectangle is defined in terms of a <a href="qgeocoordinate.html">QGeoCoordinate</a> which specifies the top left coordinate of the rectangle and a <a href="qgeocoordinate.html">QGeoCoordinate</a> which specifies the bottom right coordinate of the rectangle.</p>
<p>A geo rectangle is considered invalid if the top left or bottom right coordinates are invalid or if the top left coordinate is south of the bottom right coordinate.</p>
<p>Geo rectangles can never cross the poles.</p>
<p>Several methods behave as though the geo rectangle is defined in terms of a center coordinate, the width of the geo rectangle in degrees and the height of the geo rectangle in degrees.</p>
<p>If the height or center of a geo rectangle is adjusted such that it would cross one of the poles the height is modified such that the geo rectangle touches but does not cross the pole and that the center coordinate is still in the center of the geo rectangle.</p>
</div>
<!-- @@@QGeoRectangle -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QGeoRectangle[overload1]$$$QGeoRectangle -->
<h3 class="fn"><a name="QGeoRectangle"></a>QGeoRectangle::<span class="name">QGeoRectangle</span>()</h3>
<p>Constructs a new, invalid geo rectangle.</p>
<!-- @@@QGeoRectangle -->
<!-- $$$QGeoRectangle$$$QGeoRectangleconstQGeoCoordinate&doubledouble -->
<h3 class="fn"><a name="QGeoRectangle-2"></a>QGeoRectangle::<span class="name">QGeoRectangle</span>(const <span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span> &<i> center</i>, <span class="type">double</span><i> degreesWidth</i>, <span class="type">double</span><i> degreesHeight</i>)</h3>
<p>Constructs a new geo rectangle centered at <i>center</i> with a width in degrees of <i>degreesWidth</i> and a height in degrees of <i>degreesHeight</i>.</p>
<p>If <i>degreesHeight</i> would take the geo rectangle beyond one of the poles, the height of the geo rectangle will be truncated such that the geo rectangle only extends up to the pole. The center of the geo rectangle will be unchanged, and the height will be adjusted such that the center point is at the center of the truncated geo rectangle.</p>
<!-- @@@QGeoRectangle -->
<!-- $$$QGeoRectangle$$$QGeoRectangleconstQGeoCoordinate&constQGeoCoordinate& -->
<h3 class="fn"><a name="QGeoRectangle-3"></a>QGeoRectangle::<span class="name">QGeoRectangle</span>(const <span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span> &<i> topLeft</i>, const <span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span> &<i> bottomRight</i>)</h3>
<p>Constructs a new geo rectangle with a top left coordinate <i>topLeft</i> and a bottom right coordinate <i>bottomRight</i>.</p>
<!-- @@@QGeoRectangle -->
<!-- $$$QGeoRectangle$$$QGeoRectangleconstQList<QGeoCoordinate>& -->
<h3 class="fn"><a name="QGeoRectangle-4"></a>QGeoRectangle::<span class="name">QGeoRectangle</span>(const <span class="type">QList</span><<span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span>> &<i> coordinates</i>)</h3>
<p>Constructs a new geo rectangle, of minimum size, containing all of the <i>coordinates</i>.</p>
<!-- @@@QGeoRectangle -->
<!-- $$$QGeoRectangle$$$QGeoRectangleconstQGeoRectangle& -->
<h3 class="fn"><a name="QGeoRectangle-5"></a>QGeoRectangle::<span class="name">QGeoRectangle</span>(const <span class="type">QGeoRectangle</span> &<i> other</i>)</h3>
<p>Constructs a geo rectangle from the contents of <i>other</i>.</p>
<!-- @@@QGeoRectangle -->
<!-- $$$QGeoRectangle$$$QGeoRectangleconstQGeoShape& -->
<h3 class="fn"><a name="QGeoRectangle-6"></a>QGeoRectangle::<span class="name">QGeoRectangle</span>(const <span class="type"><a href="qgeoshape.html">QGeoShape</a></span> &<i> other</i>)</h3>
<p>Constructs a geo rectangle from the contents of <i>other</i>.</p>
<!-- @@@QGeoRectangle -->
<!-- $$$~QGeoRectangle[overload1]$$$~QGeoRectangle -->
<h3 class="fn"><a name="dtor.QGeoRectangle"></a>QGeoRectangle::<span class="name">~QGeoRectangle</span>()</h3>
<p>Destroys this geo rectangle.</p>
<!-- @@@~QGeoRectangle -->
<!-- $$$bottomLeft[overload1]$$$bottomLeft -->
<h3 class="fn"><a name="bottomLeft"></a><span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span> QGeoRectangle::<span class="name">bottomLeft</span>() const</h3>
<p>Returns the bottom left coordinate of this geo rectangle.</p>
<p><b>See also </b><a href="qgeorectangle.html#setBottomLeft">setBottomLeft</a>().</p>
<!-- @@@bottomLeft -->
<!-- $$$bottomRight[overload1]$$$bottomRight -->
<h3 class="fn"><a name="bottomRight"></a><span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span> QGeoRectangle::<span class="name">bottomRight</span>() const</h3>
<p>Returns the bottom right coordinate of this geo rectangle.</p>
<p><b>See also </b><a href="qgeorectangle.html#setBottomRight">setBottomRight</a>().</p>
<!-- @@@bottomRight -->
<!-- $$$center[overload1]$$$center -->
<h3 class="fn"><a name="center"></a><span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span> QGeoRectangle::<span class="name">center</span>() const</h3>
<p>Returns the center of this geo rectangle.</p>
<p><b>See also </b><a href="qgeorectangle.html#setCenter">setCenter</a>().</p>
<!-- @@@center -->
<!-- $$$contains[overload1]$$$containsconstQGeoCoordinate& -->
<h3 class="fn"><a name="contains"></a><span class="type">bool</span> QGeoRectangle::<span class="name">contains</span>(const <span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span> &<i> coordinate</i>) const</h3>
<p>Returns true if <i>coordinate</i> is within this geo rectangle; otherwise returns false.</p>
<!-- @@@contains -->
<!-- $$$contains$$$containsconstQGeoRectangle& -->
<h3 class="fn"><a name="contains-2"></a><span class="type">bool</span> QGeoRectangle::<span class="name">contains</span>(const <span class="type">QGeoRectangle</span> &<i> rectangle</i>) const</h3>
<p>Returns whether the geo rectangle <i>rectangle</i> is contained within this geo rectangle.</p>
<!-- @@@contains -->
<!-- $$$height[overload1]$$$height -->
<h3 class="fn"><a name="height"></a><span class="type">double</span> QGeoRectangle::<span class="name">height</span>() const</h3>
<p>Returns the height of this geo rectangle in degrees.</p>
<p>The return value is undefined if this geo rectangle is invalid.</p>
<p><b>See also </b><a href="qgeorectangle.html#setHeight">setHeight</a>().</p>
<!-- @@@height -->
<!-- $$$intersects[overload1]$$$intersectsconstQGeoRectangle& -->
<h3 class="fn"><a name="intersects"></a><span class="type">bool</span> QGeoRectangle::<span class="name">intersects</span>(const <span class="type">QGeoRectangle</span> &<i> rectangle</i>) const</h3>
<p>Returns whether the geo rectangle <i>rectangle</i> intersects this geo rectangle.</p>
<p>If the top or bottom edges of both geo rectangles are at one of the poles the geo rectangles are considered to be intersecting, since the longitude is irrelevant when the edges are at the pole.</p>
<!-- @@@intersects -->
<!-- $$$setBottomLeft[overload1]$$$setBottomLeftconstQGeoCoordinate& -->
<h3 class="fn"><a name="setBottomLeft"></a><span class="type">void</span> QGeoRectangle::<span class="name">setBottomLeft</span>(const <span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span> &<i> bottomLeft</i>)</h3>
<p>Sets the bottom left coordinate of this geo rectangle to <i>bottomLeft</i>.</p>
<p><b>See also </b><a href="qgeorectangle.html#bottomLeft">bottomLeft</a>().</p>
<!-- @@@setBottomLeft -->
<!-- $$$setBottomRight[overload1]$$$setBottomRightconstQGeoCoordinate& -->
<h3 class="fn"><a name="setBottomRight"></a><span class="type">void</span> QGeoRectangle::<span class="name">setBottomRight</span>(const <span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span> &<i> bottomRight</i>)</h3>
<p>Sets the bottom right coordinate of this geo rectangle to <i>bottomRight</i>.</p>
<p><b>See also </b><a href="qgeorectangle.html#bottomRight">bottomRight</a>().</p>
<!-- @@@setBottomRight -->
<!-- $$$setCenter[overload1]$$$setCenterconstQGeoCoordinate& -->
<h3 class="fn"><a name="setCenter"></a><span class="type">void</span> QGeoRectangle::<span class="name">setCenter</span>(const <span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span> &<i> center</i>)</h3>
<p>Sets the center of this geo rectangle to <i>center</i>.</p>
<p>If this causes the geo rectangle to cross on of the poles the height of the geo rectangle will be truncated such that the geo rectangle only extends up to the pole. The center of the geo rectangle will be unchanged, and the height will be adjusted such that the center point is at the center of the truncated geo rectangle.</p>
<p><b>See also </b><a href="qgeorectangle.html#center">center</a>().</p>
<!-- @@@setCenter -->
<!-- $$$setHeight[overload1]$$$setHeightdouble -->
<h3 class="fn"><a name="setHeight"></a><span class="type">void</span> QGeoRectangle::<span class="name">setHeight</span>(<span class="type">double</span><i> degreesHeight</i>)</h3>
<p>Sets the height of this geo rectangle in degrees to <i>degreesHeight</i>.</p>
<p>If <i>degreesHeight</i> is less than 0.0 or if this geo rectangle is invalid this function does nothing. To set up the values of an invalid geo rectangle based on the center, width and height you should use <a href="qgeorectangle.html#setCenter">setCenter</a>() first in order to make the geo rectangle valid.</p>
<p>If the change in height would cause the geo rectangle to cross a pole the height is adjusted such that the geo rectangle only touches the pole.</p>
<p>This change is done such that the center coordinate is still at the center of the geo rectangle, which may result in a geo rectangle with a smaller height than might otherwise be expected.</p>
<p>If <i>degreesHeight</i> is greater than 180.0 then 180.0 is used as the height.</p>
<p><b>See also </b><a href="qgeorectangle.html#height">height</a>().</p>
<!-- @@@setHeight -->
<!-- $$$setTopLeft[overload1]$$$setTopLeftconstQGeoCoordinate& -->
<h3 class="fn"><a name="setTopLeft"></a><span class="type">void</span> QGeoRectangle::<span class="name">setTopLeft</span>(const <span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span> &<i> topLeft</i>)</h3>
<p>Sets the top left coordinate of this geo rectangle to <i>topLeft</i>.</p>
<p><b>See also </b><a href="qgeorectangle.html#topLeft">topLeft</a>().</p>
<!-- @@@setTopLeft -->
<!-- $$$setTopRight[overload1]$$$setTopRightconstQGeoCoordinate& -->
<h3 class="fn"><a name="setTopRight"></a><span class="type">void</span> QGeoRectangle::<span class="name">setTopRight</span>(const <span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span> &<i> topRight</i>)</h3>
<p>Sets the top right coordinate of this geo rectangle to <i>topRight</i>.</p>
<p><b>See also </b><a href="qgeorectangle.html#topRight">topRight</a>().</p>
<!-- @@@setTopRight -->
<!-- $$$setWidth[overload1]$$$setWidthdouble -->
<h3 class="fn"><a name="setWidth"></a><span class="type">void</span> QGeoRectangle::<span class="name">setWidth</span>(<span class="type">double</span><i> degreesWidth</i>)</h3>
<p>Sets the width of this geo rectangle in degrees to <i>degreesWidth</i>.</p>
<p>If <i>degreesWidth</i> is less than 0.0 or if this geo rectangle is invalid this function does nothing. To set up the values of an invalid geo rectangle based on the center, width and height you should use <a href="qgeorectangle.html#setCenter">setCenter</a>() first in order to make the geo rectangle valid.</p>
<p>If <i>degreesWidth</i> is greater than 360.0 then 360.0 is used as the width, the leftmost longitude of the geo rectangle is set to -180.0 degrees and the rightmost longitude of the geo rectangle is set to 180.0 degrees.</p>
<p><b>See also </b><a href="qgeorectangle.html#width">width</a>().</p>
<!-- @@@setWidth -->
<!-- $$$topLeft[overload1]$$$topLeft -->
<h3 class="fn"><a name="topLeft"></a><span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span> QGeoRectangle::<span class="name">topLeft</span>() const</h3>
<p>Returns the top left coordinate of this geo rectangle.</p>
<p><b>See also </b><a href="qgeorectangle.html#setTopLeft">setTopLeft</a>().</p>
<!-- @@@topLeft -->
<!-- $$$topRight[overload1]$$$topRight -->
<h3 class="fn"><a name="topRight"></a><span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span> QGeoRectangle::<span class="name">topRight</span>() const</h3>
<p>Returns the top right coordinate of this geo rectangle.</p>
<p><b>See also </b><a href="qgeorectangle.html#setTopRight">setTopRight</a>().</p>
<!-- @@@topRight -->
<!-- $$$translate[overload1]$$$translatedoubledouble -->
<h3 class="fn"><a name="translate"></a><span class="type">void</span> QGeoRectangle::<span class="name">translate</span>(<span class="type">double</span><i> degreesLatitude</i>, <span class="type">double</span><i> degreesLongitude</i>)</h3>
<p>Translates this geo rectangle by <i>degreesLatitude</i> northwards and <i>degreesLongitude</i> eastwards.</p>
<p>Negative values of <i>degreesLatitude</i> and <i>degreesLongitude</i> correspond to southward and westward translation respectively.</p>
<p>If the translation would have caused the geo rectangle to cross a pole the geo rectangle will be translated until the top or bottom edge of the geo rectangle touches the pole but not further.</p>
<!-- @@@translate -->
<!-- $$$translated[overload1]$$$translateddoubledouble -->
<h3 class="fn"><a name="translated"></a><span class="type">QGeoRectangle</span> QGeoRectangle::<span class="name">translated</span>(<span class="type">double</span><i> degreesLatitude</i>, <span class="type">double</span><i> degreesLongitude</i>) const</h3>
<p>Returns a copy of this geo rectangle translated by <i>degreesLatitude</i> northwards and <i>degreesLongitude</i> eastwards.</p>
<p>Negative values of <i>degreesLatitude</i> and <i>degreesLongitude</i> correspond to southward and westward translation respectively.</p>
<p><b>See also </b><a href="qgeorectangle.html#translate">translate</a>().</p>
<!-- @@@translated -->
<!-- $$$united[overload1]$$$unitedconstQGeoRectangle& -->
<h3 class="fn"><a name="united"></a><span class="type">QGeoRectangle</span> QGeoRectangle::<span class="name">united</span>(const <span class="type">QGeoRectangle</span> &<i> rectangle</i>) const</h3>
<p>Returns the smallest geo rectangle which contains both this geo rectangle and <i>rectangle</i>.</p>
<p>If the centers of the two geo rectangles are separated by exactly 180.0 degrees then the width is set to 360.0 degrees with the leftmost longitude set to -180.0 degrees and the rightmost longitude set to 180.0 degrees. This is done to ensure that the result is independent of the order of the operands.</p>
<!-- @@@united -->
<!-- $$$width[overload1]$$$width -->
<h3 class="fn"><a name="width"></a><span class="type">double</span> QGeoRectangle::<span class="name">width</span>() const</h3>
<p>Returns the width of this geo rectangle in degrees.</p>
<p>The return value is undefined if this geo rectangle is invalid.</p>
<p><b>See also </b><a href="qgeorectangle.html#setWidth">setWidth</a>().</p>
<!-- @@@width -->
<!-- $$$operator!=[overload1]$$$operator!=constQGeoShape& -->
<h3 class="fn"><a name="operator-not-eq"></a><span class="type">bool</span> QGeoRectangle::<span class="name">operator!=</span>(const <span class="type"><a href="qgeoshape.html">QGeoShape</a></span> &<i> other</i>) const</h3>
<p>Returns true if <i>other</i> is not equivalent to this geo rectangle; otherwise returns false.</p>
<!-- @@@operator!= -->
<!-- $$$operator!=$$$operator!=constQGeoRectangle& -->
<h3 class="fn"><a name="operator-not-eq-2"></a><span class="type">bool</span> QGeoRectangle::<span class="name">operator!=</span>(const <span class="type">QGeoRectangle</span> &<i> other</i>) const</h3>
<p>Returns whether this geo rectangle is not equal to <i>other</i>.</p>
<!-- @@@operator!= -->
<!-- $$$operator=[overload1]$$$operator=constQGeoRectangle& -->
<h3 class="fn"><a name="operator-eq"></a><span class="type">QGeoRectangle</span> & QGeoRectangle::<span class="name">operator=</span>(const <span class="type">QGeoRectangle</span> &<i> other</i>)</h3>
<p>Assigns <i>other</i> to this geo rectangle and returns a reference to this geo rectangle.</p>
<!-- @@@operator= -->
<!-- $$$operator==[overload1]$$$operator==constQGeoShape& -->
<h3 class="fn"><a name="operator-eq-eq"></a><span class="type">bool</span> QGeoRectangle::<span class="name">operator==</span>(const <span class="type"><a href="qgeoshape.html">QGeoShape</a></span> &<i> other</i>) const</h3>
<p>Returns true if <i>other</i> is equivalent to this geo rectangle; otherwise returns false.</p>
<!-- @@@operator== -->
<!-- $$$operator==$$$operator==constQGeoRectangle& -->
<h3 class="fn"><a name="operator-eq-eq-2"></a><span class="type">bool</span> QGeoRectangle::<span class="name">operator==</span>(const <span class="type">QGeoRectangle</span> &<i> other</i>) const</h3>
<p>Returns whether this geo rectangle is equal to <i>other</i>.</p>
<!-- @@@operator== -->
<!-- $$$operator|[overload1]$$$operator|constQGeoRectangle& -->
<h3 class="fn"><a name="operator-7c"></a><span class="type">QGeoRectangle</span> QGeoRectangle::<span class="name">operator|</span>(const <span class="type">QGeoRectangle</span> &<i> rectangle</i>) const</h3>
<p>Returns the smallest geo rectangle which contains both this geo rectangle and <i>rectangle</i>.</p>
<p>If the centers of the two geo rectangles are separated by exactly 180.0 degrees then the width is set to 360.0 degrees with the leftmost longitude set to -180.0 degrees and the rightmost longitude set to 180.0 degrees. This is done to ensure that the result is independent of the order of the operands.</p>
<!-- @@@operator| -->
<!-- $$$operator|=[overload1]$$$operator|=constQGeoRectangle& -->
<h3 class="fn"><a name="operator-7c-eq"></a><span class="type">QGeoRectangle</span> & QGeoRectangle::<span class="name">operator|=</span>(const <span class="type">QGeoRectangle</span> &<i> rectangle</i>)</h3>
<p>Returns the smallest geo rectangle which contains both this geo rectangle and <i>rectangle</i>.</p>
<p>If the centers of the two geo rectangles are separated by exactly 180.0 degrees then the width is set to 360.0 degrees with the leftmost longitude set to -180.0 degrees and the rightmost longitude set to 180.0 degrees. This is done to ensure that the result is independent of the order of the operands.</p>
<!-- @@@operator|= -->
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2014 Digia Plc and/or its
subsidiaries. Documentation contributions included herein are the copyrights of
their respective owners.<br> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br> Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. </p>
</div>
</body>
</html>
|