Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 50facae208d4a6f280e44a513b104320 > files > 862

qt-mobility-doc-1.2.0-13.mga5.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.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" />
<!-- qgeoboundingbox.cpp -->
  <title>Qt Mobility 1.2: QGeoBoundingBox Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="content"> 
    <a href="index.html" class="qtref"><span>QtMobility Reference Documentation</span></a>
  </div>
  <div class="breadcrumb toolblock">
    <ul>
      <li class="first"><a href="index.html">Home</a></li>
      <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtlocation.html">QtLocation</a></li>
<li>QGeoBoundingBox</li>
    </ul>
  </div>
</div>
<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">QGeoBoundingBox Class Reference</h1>
<!-- $$$QGeoBoundingBox-brief -->
<p>The QGeoBoundingBox class defines a rectangular geographic area. <a href="#details">More...</a></p>
<!-- @@@QGeoBoundingBox -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QGeoBoundingBox&gt;</span></pre><p><b>Inherits: </b><a href="qgeoboundingarea.html">QGeoBoundingArea</a>.</p>
<p>This class was introduced in Qt Mobility 1.1.</p>
<ul>
<li><a href="qgeoboundingbox-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="qgeoboundingbox.html#QGeoBoundingBox">QGeoBoundingBox</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.html#QGeoBoundingBox-2">QGeoBoundingBox</a></b> ( const QGeoCoordinate &amp; <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="qgeoboundingbox.html#QGeoBoundingBox-3">QGeoBoundingBox</a></b> ( const QGeoCoordinate &amp; <i>topLeft</i>, const QGeoCoordinate &amp; <i>bottomRight</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.html#QGeoBoundingBox-4">QGeoBoundingBox</a></b> ( const QGeoBoundingBox &amp; <i>other</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.html#dtor.QGeoBoundingBox">~QGeoBoundingBox</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoCoordinate </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.html#bottomLeft">bottomLeft</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoCoordinate </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.html#bottomRight">bottomRight</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoCoordinate </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.html#center">center</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.html#contains-2">contains</a></b> ( const QGeoBoundingBox &amp; <i>boundingBox</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> double </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.html#height">height</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.html#intersects">intersects</a></b> ( const QGeoBoundingBox &amp; <i>boundingBox</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.html#setBottomLeft">setBottomLeft</a></b> ( const QGeoCoordinate &amp; <i>bottomLeft</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.html#setBottomRight">setBottomRight</a></b> ( const QGeoCoordinate &amp; <i>bottomRight</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.html#setCenter">setCenter</a></b> ( const QGeoCoordinate &amp; <i>center</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.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="qgeoboundingbox.html#setTopLeft">setTopLeft</a></b> ( const QGeoCoordinate &amp; <i>topLeft</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.html#setTopRight">setTopRight</a></b> ( const QGeoCoordinate &amp; <i>topRight</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.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="qgeoboundingbox.html#topLeft">topLeft</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoCoordinate </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.html#topRight">topRight</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.html#translate">translate</a></b> ( double <i>degreesLatitude</i>, double <i>degreesLongitude</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoBoundingBox </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.html#translated">translated</a></b> ( double <i>degreesLatitude</i>, double <i>degreesLongitude</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoBoundingBox </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.html#united">united</a></b> ( const QGeoBoundingBox &amp; <i>boundingBox</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> double </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.html#width">width</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.html#operator-not-eq">operator!=</a></b> ( const QGeoBoundingBox &amp; <i>other</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoBoundingBox &amp; </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.html#operator-eq">operator=</a></b> ( const QGeoBoundingBox &amp; <i>other</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.html#operator-eq-eq">operator==</a></b> ( const QGeoBoundingBox &amp; <i>other</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoBoundingBox </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.html#operator-7c">operator|</a></b> ( const QGeoBoundingBox &amp; <i>boundingBox</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoBoundingBox &amp; </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.html#operator-7c-eq">operator|=</a></b> ( const QGeoBoundingBox &amp; <i>boundingBox</i> )</td></tr>
</table>
<a name="reimplemented-public-functions"></a>
<h2>Reimplemented Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.html#contains">contains</a></b> ( const QGeoCoordinate &amp; <i>coordinate</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.html#isEmpty">isEmpty</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.html#isValid">isValid</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QGeoBoundingArea::AreaType </td><td class="memItemRight bottomAlign"><b><a href="qgeoboundingbox.html#type">type</a></b> () const</td></tr>
</table>
<ul>
<li class="fn">4 public functions inherited from <a href="qgeoboundingarea.html#public-functions">QGeoBoundingArea</a></li>
</ul>
<a name="details"></a>
<!-- $$$QGeoBoundingBox-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QGeoBoundingBox 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 bounding box 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>Bounding boxes can never cross the poles.</p>
<p>Several methods behave as though the bounding box is defined in terms of a center coordinate, the width of the bounding box in degrees and the height of the bounding box in degrees.</p>
<p>If the height or center of a bounding box is adjusted such that it would cross one of the poles the height is modified such that the bounding box touches but does not cross the pole and that the center coordinate is still in the center of the bounding box.</p>
</div>
<!-- @@@QGeoBoundingBox -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QGeoBoundingBox[overload1]$$$QGeoBoundingBox -->
<h3 class="fn"><a name="QGeoBoundingBox"></a>QGeoBoundingBox::<span class="name">QGeoBoundingBox</span> ()</h3>
<p>Constructs a new, invalid bounding box.</p>
<!-- @@@QGeoBoundingBox -->
<!-- $$$QGeoBoundingBox$$$QGeoBoundingBoxconstQGeoCoordinate&doubledouble -->
<h3 class="fn"><a name="QGeoBoundingBox-2"></a>QGeoBoundingBox::<span class="name">QGeoBoundingBox</span> ( const <span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span> &amp; <i>center</i>, <span class="type">double</span> <i>degreesWidth</i>, <span class="type">double</span> <i>degreesHeight</i> )</h3>
<p>Constructs a new bounding box 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 bounding box beyond one of the poles, the height of the bounding box will be truncated such that the bounding box only extends up to the pole. The center of the bounding box will be unchanged, and the height will be adjusted such that the center point is at the center of the truncated bounding box.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@QGeoBoundingBox -->
<!-- $$$QGeoBoundingBox$$$QGeoBoundingBoxconstQGeoCoordinate&constQGeoCoordinate& -->
<h3 class="fn"><a name="QGeoBoundingBox-3"></a>QGeoBoundingBox::<span class="name">QGeoBoundingBox</span> ( const <span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span> &amp; <i>topLeft</i>, const <span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span> &amp; <i>bottomRight</i> )</h3>
<p>Constructs a new bounding box with a top left coordinate <i>topLeft</i> and a bottom right coordinate <i>bottomRight</i>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@QGeoBoundingBox -->
<!-- $$$QGeoBoundingBox$$$QGeoBoundingBoxconstQGeoBoundingBox& -->
<h3 class="fn"><a name="QGeoBoundingBox-4"></a>QGeoBoundingBox::<span class="name">QGeoBoundingBox</span> ( const <span class="type">QGeoBoundingBox</span> &amp; <i>other</i> )</h3>
<p>Constructs a bounding box from the contents of <i>other</i>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@QGeoBoundingBox -->
<!-- $$$~QGeoBoundingBox[overload1]$$$~QGeoBoundingBox -->
<h3 class="fn"><a name="dtor.QGeoBoundingBox"></a>QGeoBoundingBox::<span class="name">~QGeoBoundingBox</span> ()</h3>
<p>Destroys this bounding box.</p>
<!-- @@@~QGeoBoundingBox -->
<!-- $$$bottomLeft[overload1]$$$bottomLeft -->
<h3 class="fn"><a name="bottomLeft"></a><span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span> QGeoBoundingBox::<span class="name">bottomLeft</span> () const</h3>
<p>Returns the bottom left coordinate of this bounding box.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoboundingbox.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> QGeoBoundingBox::<span class="name">bottomRight</span> () const</h3>
<p>Returns the bottom right coordinate of this bounding box.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoboundingbox.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> QGeoBoundingBox::<span class="name">center</span> () const</h3>
<p>Returns the center of this bounding box.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoboundingbox.html#setCenter">setCenter</a>().</p>
<!-- @@@center -->
<!-- $$$contains[overload1]$$$containsconstQGeoCoordinate& -->
<h3 class="fn"><a name="contains"></a><span class="type">bool</span> QGeoBoundingBox::<span class="name">contains</span> ( const <span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span> &amp; <i>coordinate</i> ) const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qgeoboundingarea.html#contains">QGeoBoundingArea::contains</a>().</p>
<p>Returns whether the coordinate <i>coordinate</i> is contained within this bounding box.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@contains -->
<!-- $$$contains$$$containsconstQGeoBoundingBox& -->
<h3 class="fn"><a name="contains-2"></a><span class="type">bool</span> QGeoBoundingBox::<span class="name">contains</span> ( const <span class="type">QGeoBoundingBox</span> &amp; <i>boundingBox</i> ) const</h3>
<p>Returns whether the bounding box <i>boundingBox</i> is contained within this bounding box.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@contains -->
<!-- $$$height[overload1]$$$height -->
<h3 class="fn"><a name="height"></a><span class="type">double</span> QGeoBoundingBox::<span class="name">height</span> () const</h3>
<p>Returns the height of this bounding box in degrees.</p>
<p>The return value is undefined if this bounding box is invalid.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoboundingbox.html#setHeight">setHeight</a>().</p>
<!-- @@@height -->
<!-- $$$intersects[overload1]$$$intersectsconstQGeoBoundingBox& -->
<h3 class="fn"><a name="intersects"></a><span class="type">bool</span> QGeoBoundingBox::<span class="name">intersects</span> ( const <span class="type">QGeoBoundingBox</span> &amp; <i>boundingBox</i> ) const</h3>
<p>Returns whether the bounding box <i>boundingBox</i> intersects this bounding box.</p>
<p>If the top or bottom edges of both bounding boxes are at one of the poles the bounding boxes are considered to be intersecting, since the longitude is irrelevant when the edges are at the pole.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@intersects -->
<!-- $$$isEmpty[overload1]$$$isEmpty -->
<h3 class="fn"><a name="isEmpty"></a><span class="type">bool</span> QGeoBoundingBox::<span class="name">isEmpty</span> () const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qgeoboundingarea.html#isEmpty">QGeoBoundingArea::isEmpty</a>().</p>
<p>Returns whether this bounding box has a geometrical area of 0.</p>
<p>Returns true if this bounding box is invalid.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@isEmpty -->
<!-- $$$isValid[overload1]$$$isValid -->
<h3 class="fn"><a name="isValid"></a><span class="type">bool</span> QGeoBoundingBox::<span class="name">isValid</span> () const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qgeoboundingarea.html#isValid">QGeoBoundingArea::isValid</a>().</p>
<p>Returns whether this bounding box is valid.</p>
<p>A valid bounding box has valid top left and bottom right coordinates and has a top left coordinate with latitude greater than or equal to the latitude of the bottom right coordinate.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@isValid -->
<!-- $$$setBottomLeft[overload1]$$$setBottomLeftconstQGeoCoordinate& -->
<h3 class="fn"><a name="setBottomLeft"></a><span class="type">void</span> QGeoBoundingBox::<span class="name">setBottomLeft</span> ( const <span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span> &amp; <i>bottomLeft</i> )</h3>
<p>Sets the bottom left coordinate of this bounding box to <i>bottomLeft</i>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoboundingbox.html#bottomLeft">bottomLeft</a>().</p>
<!-- @@@setBottomLeft -->
<!-- $$$setBottomRight[overload1]$$$setBottomRightconstQGeoCoordinate& -->
<h3 class="fn"><a name="setBottomRight"></a><span class="type">void</span> QGeoBoundingBox::<span class="name">setBottomRight</span> ( const <span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span> &amp; <i>bottomRight</i> )</h3>
<p>Sets the bottom right coordinate of this bounding box to <i>bottomRight</i>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoboundingbox.html#bottomRight">bottomRight</a>().</p>
<!-- @@@setBottomRight -->
<!-- $$$setCenter[overload1]$$$setCenterconstQGeoCoordinate& -->
<h3 class="fn"><a name="setCenter"></a><span class="type">void</span> QGeoBoundingBox::<span class="name">setCenter</span> ( const <span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span> &amp; <i>center</i> )</h3>
<p>Sets the center of this bounding box to <i>center</i>.</p>
<p>If this causes the bounding box to cross on of the poles the height of the bounding box will be truncated such that the bounding box only extends up to the pole. The center of the bounding box will be unchanged, and the height will be adjusted such that the center point is at the center of the truncated bounding box.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoboundingbox.html#center">center</a>().</p>
<!-- @@@setCenter -->
<!-- $$$setHeight[overload1]$$$setHeightdouble -->
<h3 class="fn"><a name="setHeight"></a><span class="type">void</span> QGeoBoundingBox::<span class="name">setHeight</span> ( <span class="type">double</span> <i>degreesHeight</i> )</h3>
<p>Sets the height of this bounding box in degrees to <i>degreesHeight</i>.</p>
<p>If <i>degreesHeight</i> is less than 0.0 or if this bounding box is invalid this function does nothing. To set up the values of an invalid <a href="qgeoboundingbox.html">QGeoBoundingBox</a> based on the center, width and height you should use <a href="qgeoboundingbox.html#setCenter">setCenter</a>() first in order to make the <a href="qgeoboundingbox.html">QGeoBoundingBox</a> valid.</p>
<p>If the change in height would cause the bounding box to cross a pole the height is adjusted such that the bounding box only touches the pole.</p>
<p>This changes is done such that the center coordinate is still at the center of the bounding box, which may result in a bounding box 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>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoboundingbox.html#height">height</a>().</p>
<!-- @@@setHeight -->
<!-- $$$setTopLeft[overload1]$$$setTopLeftconstQGeoCoordinate& -->
<h3 class="fn"><a name="setTopLeft"></a><span class="type">void</span> QGeoBoundingBox::<span class="name">setTopLeft</span> ( const <span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span> &amp; <i>topLeft</i> )</h3>
<p>Sets the top left coordinate of this bounding box to <i>topLeft</i>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoboundingbox.html#topLeft">topLeft</a>().</p>
<!-- @@@setTopLeft -->
<!-- $$$setTopRight[overload1]$$$setTopRightconstQGeoCoordinate& -->
<h3 class="fn"><a name="setTopRight"></a><span class="type">void</span> QGeoBoundingBox::<span class="name">setTopRight</span> ( const <span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span> &amp; <i>topRight</i> )</h3>
<p>Sets the top right coordinate of this bounding box to <i>topRight</i>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoboundingbox.html#topRight">topRight</a>().</p>
<!-- @@@setTopRight -->
<!-- $$$setWidth[overload1]$$$setWidthdouble -->
<h3 class="fn"><a name="setWidth"></a><span class="type">void</span> QGeoBoundingBox::<span class="name">setWidth</span> ( <span class="type">double</span> <i>degreesWidth</i> )</h3>
<p>Sets the width of this bounding box in degrees to <i>degreesWidth</i>.</p>
<p>If <i>degreesWidth</i> is less than 0.0 or if this bounding box is invalid this function does nothing. To set up the values of an invalid <a href="qgeoboundingbox.html">QGeoBoundingBox</a> based on the center, width and height you should use <a href="qgeoboundingbox.html#setCenter">setCenter</a>() first in order to make the <a href="qgeoboundingbox.html">QGeoBoundingBox</a> 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 bounding box is set to -180.0 degrees and the rightmost longitude of the bounding box is set to 180.0 degrees.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoboundingbox.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> QGeoBoundingBox::<span class="name">topLeft</span> () const</h3>
<p>Returns the top left coordinate of this bounding box.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoboundingbox.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> QGeoBoundingBox::<span class="name">topRight</span> () const</h3>
<p>Returns the top right coordinate of this bounding box.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoboundingbox.html#setTopRight">setTopRight</a>().</p>
<!-- @@@topRight -->
<!-- $$$translate[overload1]$$$translatedoubledouble -->
<h3 class="fn"><a name="translate"></a><span class="type">void</span> QGeoBoundingBox::<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 bounding box 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 bounding box to cross a pole the bounding box will be translated until the top or bottom edge of bounding box touches the pole but not further.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@translate -->
<!-- $$$translated[overload1]$$$translateddoubledouble -->
<h3 class="fn"><a name="translated"></a><span class="type">QGeoBoundingBox</span> QGeoBoundingBox::<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 bounding box 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>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoboundingbox.html#translate">translate</a>().</p>
<!-- @@@translated -->
<!-- $$$type[overload1]$$$type -->
<h3 class="fn"><a name="type"></a><span class="type"><a href="qgeoboundingarea.html#AreaType-enum">QGeoBoundingArea::AreaType</a></span> QGeoBoundingBox::<span class="name">type</span> () const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qgeoboundingarea.html#type">QGeoBoundingArea::type</a>().</p>
<p>Returns <a href="qgeoboundingarea.html#AreaType-enum">QGeoBoundingArea::BoxType</a> to identify this as a <a href="qgeoboundingbox.html">QGeoBoundingBox</a> instance.</p>
<p>This function is provided to help find the specific type of aQGeoBoundingArea instance.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@type -->
<!-- $$$united[overload1]$$$unitedconstQGeoBoundingBox& -->
<h3 class="fn"><a name="united"></a><span class="type">QGeoBoundingBox</span> QGeoBoundingBox::<span class="name">united</span> ( const <span class="type">QGeoBoundingBox</span> &amp; <i>boundingBox</i> ) const</h3>
<p>Returns the smallest bounding box which contains both this bounding box and <i>boundingBox</i>.</p>
<p>If the centers of the two bounding boxes 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>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@united -->
<!-- $$$width[overload1]$$$width -->
<h3 class="fn"><a name="width"></a><span class="type">double</span> QGeoBoundingBox::<span class="name">width</span> () const</h3>
<p>Returns the width of this bounding box in degrees.</p>
<p>The return value is undefined if this bounding box is invalid.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoboundingbox.html#setWidth">setWidth</a>().</p>
<!-- @@@width -->
<!-- $$$operator!=[overload1]$$$operator!=constQGeoBoundingBox& -->
<h3 class="fn"><a name="operator-not-eq"></a><span class="type">bool</span> QGeoBoundingBox::<span class="name">operator!=</span> ( const <span class="type">QGeoBoundingBox</span> &amp; <i>other</i> ) const</h3>
<p>Returns whether this bounding box is not equal to <i>other</i>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@operator!= -->
<!-- $$$operator=[overload1]$$$operator=constQGeoBoundingBox& -->
<h3 class="fn"><a name="operator-eq"></a><span class="type">QGeoBoundingBox</span> &amp; QGeoBoundingBox::<span class="name">operator=</span> ( const <span class="type">QGeoBoundingBox</span> &amp; <i>other</i> )</h3>
<p>Assigns <i>other</i> to this bounding box and returns a reference to this bounding box.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@operator= -->
<!-- $$$operator==[overload1]$$$operator==constQGeoBoundingBox& -->
<h3 class="fn"><a name="operator-eq-eq"></a><span class="type">bool</span> QGeoBoundingBox::<span class="name">operator==</span> ( const <span class="type">QGeoBoundingBox</span> &amp; <i>other</i> ) const</h3>
<p>Returns whether this bounding box is equal to <i>other</i>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@operator== -->
<!-- $$$operator|[overload1]$$$operator|constQGeoBoundingBox& -->
<h3 class="fn"><a name="operator-7c"></a><span class="type">QGeoBoundingBox</span> QGeoBoundingBox::<span class="name">operator|</span> ( const <span class="type">QGeoBoundingBox</span> &amp; <i>boundingBox</i> ) const</h3>
<p>Returns the smallest bounding box which contains both this bounding box and <i>boundingBox</i>.</p>
<p>If the centers of the two bounding boxes 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>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@operator| -->
<!-- $$$operator|=[overload1]$$$operator|=constQGeoBoundingBox& -->
<h3 class="fn"><a name="operator-7c-eq"></a><span class="type">QGeoBoundingBox</span> &amp; QGeoBoundingBox::<span class="name">operator|=</span> ( const <span class="type">QGeoBoundingBox</span> &amp; <i>boundingBox</i> )</h3>
<p>Returns the smallest bounding box which contains both this bounding box and <i>boundingBox</i>.</p>
<p>If the centers of the two bounding boxes 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>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@operator|= -->
</div>
  <div class="ft">
    <span></span>
  </div>
</div> 
<div class="footer">
  <p>
     <acronym title="Copyright">&copy;</acronym> 2008-2011 Nokia Corporation and/or its
     subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation 
     in Finland and/or other countries worldwide.</p>
  <p>
     All other trademarks are property of their respective owners. <a title="Privacy Policy"
     href="http://qt.nokia.com/about/privacy-policy">Privacy Policy</a></p>
  <br />
  <p>
    Licensees holding valid Qt Commercial licenses may use this document in accordance with the    Qt Commercial License Agreement provided with the Software or, alternatively, in accordance    with the terms contained in a written agreement between you and Nokia.</p>
  <p>
    Alternatively, this document may be used 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.</p>
</div>
</body>
</html>