mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-15 05:22:53 +08:00
304 lines
15 KiB
HTML
304 lines
15 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
|
<title>QMapControl: GoogleSatMapAdapter Class Reference</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css">
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
</head><body>
|
|
<!-- Generated by Doxygen 1.5.9 -->
|
|
<div class="navigation" id="top">
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
<li><a href="examples.html"><span>Examples</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
|
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="navpath"><a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>::<a class="el" href="classqmapcontrol_1_1GoogleSatMapAdapter.html">GoogleSatMapAdapter</a>
|
|
</div>
|
|
</div>
|
|
<div class="contents">
|
|
<h1>GoogleSatMapAdapter Class Reference</h1><!-- doxytag: class="qmapcontrol::GoogleSatMapAdapter" --><!-- doxytag: inherits="qmapcontrol::TileMapAdapter" --><a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl.">MapAdapter</a> for Google.
|
|
<a href="#_details">More...</a>
|
|
<p>
|
|
<code>#include <<a class="el" href="googlesatmapadapter_8h_source.html">googlesatmapadapter.h</a>></code>
|
|
<p>
|
|
<div class="dynheader">
|
|
Inheritance diagram for GoogleSatMapAdapter:</div>
|
|
<div class="dynsection">
|
|
|
|
<p><center><img src="classqmapcontrol_1_1GoogleSatMapAdapter.png" usemap="#GoogleSatMapAdapter_map" border="0" alt=""></center>
|
|
<map name="GoogleSatMapAdapter_map">
|
|
<area href="classqmapcontrol_1_1TileMapAdapter.html" alt="TileMapAdapter" shape="rect" coords="0,112,140,136">
|
|
<area href="classqmapcontrol_1_1MapAdapter.html" alt="MapAdapter" shape="rect" coords="0,56,140,80">
|
|
</map>
|
|
</div>
|
|
|
|
<p>
|
|
<a href="classqmapcontrol_1_1GoogleSatMapAdapter-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><td></td></tr>
|
|
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QPoint </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1GoogleSatMapAdapter.html#94134b06e350d302f5b3a63f0016aa60">coordinateToDisplay</a> (const QPointF &) const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">translates a world coordinate to display coordinate <a href="#94134b06e350d302f5b3a63f0016aa60"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1MapAdapter.html#8c7b803b9faa35db237e40c361e1c036">currentZoom</a> () const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">returns the current zoom <a href="#8c7b803b9faa35db237e40c361e1c036"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QPointF </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1GoogleSatMapAdapter.html#601b4631d9d891eabffb063c510cc088">displayToCoordinate</a> (const QPoint &) const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">translates display coordinate to world coordinate <a href="#601b4631d9d891eabffb063c510cc088"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1GoogleSatMapAdapter.html#47a82056e29973632b3f3323c1fa5e30">getHost</a> () const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">returns the host of this <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl.">MapAdapter</a> <a href="#47a82056e29973632b3f3323c1fa5e30"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1GoogleSatMapAdapter.html#3f7fb833b8e1325d5164c88e07425b94">GoogleSatMapAdapter</a> ()</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">constructor <a href="#3f7fb833b8e1325d5164c88e07425b94"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1MapAdapter.html#7ee8388c7880d8a3466967464f5034b6">host</a> () const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">returns the host of this <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl.">MapAdapter</a> <a href="#7ee8388c7880d8a3466967464f5034b6"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1MapAdapter.html#3a33e897bc474405772d17a7c81f8747">maxZoom</a> () const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">returns the max zoom value <a href="#3a33e897bc474405772d17a7c81f8747"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1MapAdapter.html#7457f51db57914a85bbefcc8c9fa97b4">minZoom</a> () const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">returns the min zoom value <a href="#7457f51db57914a85bbefcc8c9fa97b4"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1MapAdapter.html#f105c5a0cf588a3f60d67744bd353391">tilesize</a> () const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">returns the size of the tiles <a href="#f105c5a0cf588a3f60d67744bd353391"></a><br></td></tr>
|
|
</table>
|
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
<a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl.">MapAdapter</a> for Google.
|
|
<p>
|
|
This is a conveniece class, which extends and configures a <a class="el" href="classqmapcontrol_1_1TileMapAdapter.html" title="MapAdapter for servers with image tiles.">TileMapAdapter</a> <dl class="author" compact><dt><b>Author:</b></dt><dd>Kai Winter <<a href="mailto:kaiwinter@gmx.de">kaiwinter@gmx.de</a>> </dd></dl>
|
|
<hr><h2>Constructor & Destructor Documentation</h2>
|
|
<a class="anchor" name="3f7fb833b8e1325d5164c88e07425b94"></a><!-- doxytag: member="qmapcontrol::GoogleSatMapAdapter::GoogleSatMapAdapter" ref="3f7fb833b8e1325d5164c88e07425b94" args="()" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classqmapcontrol_1_1GoogleSatMapAdapter.html">GoogleSatMapAdapter</a> </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
constructor
|
|
<p>
|
|
This construct a Google Adapter
|
|
</div>
|
|
</div><p>
|
|
<hr><h2>Member Function Documentation</h2>
|
|
<a class="anchor" name="94134b06e350d302f5b3a63f0016aa60"></a><!-- doxytag: member="qmapcontrol::GoogleSatMapAdapter::coordinateToDisplay" ref="94134b06e350d302f5b3a63f0016aa60" args="(const QPointF &) const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">QPoint coordinateToDisplay </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const QPointF & </td>
|
|
<td class="paramname"> <em>coordinate</em> </td>
|
|
<td> ) </td>
|
|
<td> const<code> [virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
translates a world coordinate to display coordinate
|
|
<p>
|
|
The calculations also needs the current zoom. The current zoom is managed by the <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl.">MapAdapter</a>, so this is no problem. To divide model from view the current zoom should be moved to the layers. <dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>coordinate</em> </td><td>the world coordinate </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the display coordinate (in widget coordinates) </dd></dl>
|
|
|
|
<p>Reimplemented from <a class="el" href="classqmapcontrol_1_1TileMapAdapter.html#94134b06e350d302f5b3a63f0016aa60">TileMapAdapter</a>.</p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="8c7b803b9faa35db237e40c361e1c036"></a><!-- doxytag: member="qmapcontrol::GoogleSatMapAdapter::currentZoom" ref="8c7b803b9faa35db237e40c361e1c036" args="() const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int currentZoom </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td> const<code> [inherited]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
returns the current zoom
|
|
<p>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the current zoom </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="601b4631d9d891eabffb063c510cc088"></a><!-- doxytag: member="qmapcontrol::GoogleSatMapAdapter::displayToCoordinate" ref="601b4631d9d891eabffb063c510cc088" args="(const QPoint &) const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">QPointF displayToCoordinate </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const QPoint & </td>
|
|
<td class="paramname"> <em>point</em> </td>
|
|
<td> ) </td>
|
|
<td> const<code> [virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
translates display coordinate to world coordinate
|
|
<p>
|
|
The calculations also needs the current zoom. The current zoom is managed by the <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl.">MapAdapter</a>, so this is no problem. To divide model from view the current zoom should be moved to the layers. <dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>point</em> </td><td>the display coordinate </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the world coordinate </dd></dl>
|
|
|
|
<p>Reimplemented from <a class="el" href="classqmapcontrol_1_1TileMapAdapter.html#601b4631d9d891eabffb063c510cc088">TileMapAdapter</a>.</p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="47a82056e29973632b3f3323c1fa5e30"></a><!-- doxytag: member="qmapcontrol::GoogleSatMapAdapter::getHost" ref="47a82056e29973632b3f3323c1fa5e30" args="() const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">QString getHost </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
returns the host of this <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl.">MapAdapter</a>
|
|
<p>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the host of this <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl.">MapAdapter</a> </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="7ee8388c7880d8a3466967464f5034b6"></a><!-- doxytag: member="qmapcontrol::GoogleSatMapAdapter::host" ref="7ee8388c7880d8a3466967464f5034b6" args="() const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">QString host </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td> const<code> [inherited]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
returns the host of this <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl.">MapAdapter</a>
|
|
<p>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the host of this <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl.">MapAdapter</a> </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="3a33e897bc474405772d17a7c81f8747"></a><!-- doxytag: member="qmapcontrol::GoogleSatMapAdapter::maxZoom" ref="3a33e897bc474405772d17a7c81f8747" args="() const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int maxZoom </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td> const<code> [inherited]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
returns the max zoom value
|
|
<p>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the max zoom value </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="7457f51db57914a85bbefcc8c9fa97b4"></a><!-- doxytag: member="qmapcontrol::GoogleSatMapAdapter::minZoom" ref="7457f51db57914a85bbefcc8c9fa97b4" args="() const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int minZoom </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td> const<code> [inherited]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
returns the min zoom value
|
|
<p>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the min zoom value </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="f105c5a0cf588a3f60d67744bd353391"></a><!-- doxytag: member="qmapcontrol::GoogleSatMapAdapter::tilesize" ref="f105c5a0cf588a3f60d67744bd353391" args="() const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int tilesize </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td> const<code> [inherited]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
returns the size of the tiles
|
|
<p>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the size of the tiles </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<hr>The documentation for this class was generated from the following files:<ul>
|
|
<li><a class="el" href="googlesatmapadapter_8h_source.html">googlesatmapadapter.h</a><li>googlesatmapadapter.cpp</ul>
|
|
</div>
|
|
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jul 29 12:38:10 2009 for QMapControl by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
|
|
</body>
|
|
</html>
|