Serial-Studio/libs/QMapControl/html/classqmapcontrol_1_1MapLayer.html
2021-12-06 10:56:03 -06:00

630 lines
37 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>QMapControl: MapLayer Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">QMapControl
&#160;<span id="projectnumber">0.9.7.4</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;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>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a></li><li class="navelem"><a class="el" href="classqmapcontrol_1_1MapLayer.html">MapLayer</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-slots">Public Slots</a> &#124;
<a href="#signals">Signals</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classqmapcontrol_1_1MapLayer-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">MapLayer Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><a class="el" href="classqmapcontrol_1_1MapLayer.html" title="MapLayer class. ">MapLayer</a> class.
<a href="classqmapcontrol_1_1MapLayer.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="maplayer_8h_source.html">maplayer.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for MapLayer:</div>
<div class="dyncontent">
<div class="center">
<img src="classqmapcontrol_1_1MapLayer.png" usemap="#MapLayer_map" alt=""/>
<map id="MapLayer_map" name="MapLayer_map">
<area href="classqmapcontrol_1_1Layer.html" title="Layer class. " alt="Layer" shape="rect" coords="0,56,70,80"/>
<area href="classQObject.html" alt="QObject" shape="rect" coords="0,0,70,24"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a56943a0946e5f15e5e58054b8e7a04a4"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Layer.html#a56943a0946e5f15e5e58054b8e7a04a4">LayerType</a> { <a class="el" href="classqmapcontrol_1_1Layer.html#a56943a0946e5f15e5e58054b8e7a04a4afe7df421203e4175d260b8dabcbe3002">MapLayer</a>,
<a class="el" href="classqmapcontrol_1_1Layer.html#a56943a0946e5f15e5e58054b8e7a04a4a6c04bd58c42df8a7539aba782503fee0">GeometryLayer</a>
}</td></tr>
<tr class="memdesc:a56943a0946e5f15e5e58054b8e7a04a4"><td class="mdescLeft">&#160;</td><td class="mdescRight">sets the type of a layer, see <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> class doc for further information <a href="classqmapcontrol_1_1Layer.html#a56943a0946e5f15e5e58054b8e7a04a4">More...</a><br /></td></tr>
<tr class="separator:a56943a0946e5f15e5e58054b8e7a04a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-slots"></a>
Public Slots</h2></td></tr>
<tr class="memitem:a18e44e30b31525a243960ca3928125aa"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Layer.html#a18e44e30b31525a243960ca3928125aa">setVisible</a> (bool visible)</td></tr>
<tr class="memdesc:a18e44e30b31525a243960ca3928125aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">if visible is true, the layer is made visible <a href="#a18e44e30b31525a243960ca3928125aa">More...</a><br /></td></tr>
<tr class="separator:a18e44e30b31525a243960ca3928125aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a>
Signals</h2></td></tr>
<tr class="memitem:a685dcab83356e5cc449475f177bb487d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Layer.html#a685dcab83356e5cc449475f177bb487d">geometryClicked</a> (<a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *geometry, QPoint point)</td></tr>
<tr class="memdesc:a685dcab83356e5cc449475f177bb487d"><td class="mdescLeft">&#160;</td><td class="mdescRight">This signal is emitted when a <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is clicked. <a href="#a685dcab83356e5cc449475f177bb487d">More...</a><br /></td></tr>
<tr class="separator:a685dcab83356e5cc449475f177bb487d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ab692d7d08414ed2b744946b88872827f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Layer.html#ab692d7d08414ed2b744946b88872827f">addGeometry</a> (<a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *geometry)</td></tr>
<tr class="memdesc:ab692d7d08414ed2b744946b88872827f"><td class="mdescLeft">&#160;</td><td class="mdescRight">adds a <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> object to this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> <a href="#ab692d7d08414ed2b744946b88872827f">More...</a><br /></td></tr>
<tr class="separator:ab692d7d08414ed2b744946b88872827f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb2413f25e560a0cfadb7128d5af99b0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Layer.html#acb2413f25e560a0cfadb7128d5af99b0">clearGeometries</a> (bool qDeleteObject=false)</td></tr>
<tr class="memdesc:acb2413f25e560a0cfadb7128d5af99b0"><td class="mdescLeft">&#160;</td><td class="mdescRight">removes all <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> objects from this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> <a href="#acb2413f25e560a0cfadb7128d5af99b0">More...</a><br /></td></tr>
<tr class="separator:acb2413f25e560a0cfadb7128d5af99b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b0b1de1c0e21dbec196d11b336628f4"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Layer.html#a0b0b1de1c0e21dbec196d11b336628f4">containsGeometry</a> (<a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *geometry)</td></tr>
<tr class="memdesc:a0b0b1de1c0e21dbec196d11b336628f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns true if <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> contains geometry <a href="#a0b0b1de1c0e21dbec196d11b336628f4">More...</a><br /></td></tr>
<tr class="separator:a0b0b1de1c0e21dbec196d11b336628f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5f0dce6ce743e714b314f95a6305908"><td class="memItemLeft" align="right" valign="top">QList&lt; <a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Layer.html#ae5f0dce6ce743e714b314f95a6305908">getGeometries</a> ()</td></tr>
<tr class="memdesc:ae5f0dce6ce743e714b314f95a6305908"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns all <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> objects from this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> <a href="#ae5f0dce6ce743e714b314f95a6305908">More...</a><br /></td></tr>
<tr class="separator:ae5f0dce6ce743e714b314f95a6305908"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08422ee75ab02691943c1ca87e2bc563"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Layer.html#a08422ee75ab02691943c1ca87e2bc563">isVisible</a> () const </td></tr>
<tr class="memdesc:a08422ee75ab02691943c1ca87e2bc563"><td class="mdescLeft">&#160;</td><td class="mdescRight">return true if the layer is visible <a href="#a08422ee75ab02691943c1ca87e2bc563">More...</a><br /></td></tr>
<tr class="separator:a08422ee75ab02691943c1ca87e2bc563"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a414e94fdd70490d75ddccb6923ae3410"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Layer.html#a414e94fdd70490d75ddccb6923ae3410">layername</a> () const </td></tr>
<tr class="memdesc:a414e94fdd70490d75ddccb6923ae3410"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns the layer's name <a href="#a414e94fdd70490d75ddccb6923ae3410">More...</a><br /></td></tr>
<tr class="separator:a414e94fdd70490d75ddccb6923ae3410"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1cfbd8a5c27cf9cb400fa458a1f70ba5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classqmapcontrol_1_1Layer.html#a56943a0946e5f15e5e58054b8e7a04a4">Layer::LayerType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Layer.html#a1cfbd8a5c27cf9cb400fa458a1f70ba5">layertype</a> () const </td></tr>
<tr class="memdesc:a1cfbd8a5c27cf9cb400fa458a1f70ba5"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns the LayerType of the <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> <a href="#a1cfbd8a5c27cf9cb400fa458a1f70ba5">More...</a><br /></td></tr>
<tr class="separator:a1cfbd8a5c27cf9cb400fa458a1f70ba5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a732b5e9de3b67ed69aa7dd165c9778d6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classqmapcontrol_1_1MapAdapter.html">MapAdapter</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Layer.html#a732b5e9de3b67ed69aa7dd165c9778d6">mapadapter</a> ()</td></tr>
<tr class="memdesc:a732b5e9de3b67ed69aa7dd165c9778d6"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns the layer´s <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> <a href="#a732b5e9de3b67ed69aa7dd165c9778d6">More...</a><br /></td></tr>
<tr class="separator:a732b5e9de3b67ed69aa7dd165c9778d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac50a4fcff04c6859ce5601543b8ac821"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1MapLayer.html#ac50a4fcff04c6859ce5601543b8ac821">MapLayer</a> (QString <a class="el" href="classqmapcontrol_1_1Layer.html#a414e94fdd70490d75ddccb6923ae3410">layername</a>, <a class="el" href="classqmapcontrol_1_1MapAdapter.html">MapAdapter</a> *<a class="el" href="classqmapcontrol_1_1Layer.html#a732b5e9de3b67ed69aa7dd165c9778d6">mapadapter</a>, bool takeevents=true)</td></tr>
<tr class="memdesc:ac50a4fcff04c6859ce5601543b8ac821"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classqmapcontrol_1_1MapLayer.html" title="MapLayer class. ">MapLayer</a> constructor. <a href="#ac50a4fcff04c6859ce5601543b8ac821">More...</a><br /></td></tr>
<tr class="separator:ac50a4fcff04c6859ce5601543b8ac821"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2a2f7fec3f6e5fbf623f466a961bfb7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Layer.html#af2a2f7fec3f6e5fbf623f466a961bfb7">removeGeometry</a> (<a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *geometry, bool qDeleteObject=false)</td></tr>
<tr class="memdesc:af2a2f7fec3f6e5fbf623f466a961bfb7"><td class="mdescLeft">&#160;</td><td class="mdescRight">removes the <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> object from this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> <a href="#af2a2f7fec3f6e5fbf623f466a961bfb7">More...</a><br /></td></tr>
<tr class="separator:af2a2f7fec3f6e5fbf623f466a961bfb7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a6d2f001e34be8d424ccfb45b8d7622"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Layer.html#a4a6d2f001e34be8d424ccfb45b8d7622">sendGeometryToBack</a> (<a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *geometry)</td></tr>
<tr class="memdesc:a4a6d2f001e34be8d424ccfb45b8d7622"><td class="mdescLeft">&#160;</td><td class="mdescRight">allow moving a geometry to the top of the list (drawing last) <a href="#a4a6d2f001e34be8d424ccfb45b8d7622">More...</a><br /></td></tr>
<tr class="separator:a4a6d2f001e34be8d424ccfb45b8d7622"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42afc531c673c3adc2e38fae58f87d52"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Layer.html#a42afc531c673c3adc2e38fae58f87d52">sendGeometryToFront</a> (<a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *geometry)</td></tr>
<tr class="memdesc:a42afc531c673c3adc2e38fae58f87d52"><td class="mdescLeft">&#160;</td><td class="mdescRight">allow moving a geometry to the top of the list (drawing last) <a href="#a42afc531c673c3adc2e38fae58f87d52">More...</a><br /></td></tr>
<tr class="separator:a42afc531c673c3adc2e38fae58f87d52"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classqmapcontrol_1_1MapLayer.html" title="MapLayer class. ">MapLayer</a> class. </p>
<p>There are two different layer types:</p><ul>
<li><a class="el" href="classqmapcontrol_1_1MapLayer.html" title="MapLayer class. ">MapLayer</a>: Displays Maps, but also Geometries. The configuration for displaying maps have to be done in the <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a></li>
<li><a class="el" href="classqmapcontrol_1_1GeometryLayer.html" title="GeometryLayer class. ">GeometryLayer</a>: Only displays <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> objects.</li>
</ul>
<p>MapLayers also can display <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> objects. The difference to the <a class="el" href="classqmapcontrol_1_1GeometryLayer.html" title="GeometryLayer class. ">GeometryLayer</a> is the repainting. Objects that are added to a <a class="el" href="classqmapcontrol_1_1MapLayer.html" title="MapLayer class. ">MapLayer</a> are "baken" on the map. This means, when you change it´s position for example the changes are not visible until a new offscreen image has been drawn. If you have "static" Geometries which won´t change their position this is fine. But if you want to change the objects position or pen you should use a <a class="el" href="classqmapcontrol_1_1GeometryLayer.html" title="GeometryLayer class. ">GeometryLayer</a>. Those are repainted immediately on changes.</p>
<dl class="section author"><dt>Author</dt><dd>Kai Winter <a href="#" onclick="location.href='mai'+'lto:'+'kai'+'wi'+'nte'+'r@'+'gmx'+'.d'+'e'; return false;">kaiwi<span style="display: none;">.nosp@m.</span>nter<span style="display: none;">.nosp@m.</span>@gmx.<span style="display: none;">.nosp@m.</span>de</a> </dd></dl>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a class="anchor" id="a56943a0946e5f15e5e58054b8e7a04a4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="classqmapcontrol_1_1Layer.html#a56943a0946e5f15e5e58054b8e7a04a4">LayerType</a></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>sets the type of a layer, see <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> class doc for further information </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="a56943a0946e5f15e5e58054b8e7a04a4afe7df421203e4175d260b8dabcbe3002"></a>MapLayer&#160;</td><td class="fielddoc">
<p>uses the <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> to display maps, only gets refreshed when a new offscreen image is needed </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a56943a0946e5f15e5e58054b8e7a04a4a6c04bd58c42df8a7539aba782503fee0"></a>GeometryLayer&#160;</td><td class="fielddoc">
<p>gets refreshed everytime when a geometry changes </p>
</td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ac50a4fcff04c6859ce5601543b8ac821"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classqmapcontrol_1_1MapLayer.html">MapLayer</a> </td>
<td>(</td>
<td class="paramtype">QString&#160;</td>
<td class="paramname"><em>layername</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1MapAdapter.html">MapAdapter</a> *&#160;</td>
<td class="paramname"><em>mapadapter</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>takeevents</em> = <code>true</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p><a class="el" href="classqmapcontrol_1_1MapLayer.html" title="MapLayer class. ">MapLayer</a> constructor. </p>
<p>This is used to construct a map layer.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">layername</td><td>The name of the <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> </td></tr>
<tr><td class="paramname">mapadapter</td><td>The <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> which does coordinate translation and Query-String-Forming </td></tr>
<tr><td class="paramname">takeevents</td><td>Should the <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> receive MouseEvents? This is set to true by default. Setting it to false could be something like a "speed up hint" </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="ab692d7d08414ed2b744946b88872827f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void addGeometry </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *&#160;</td>
<td class="paramname"><em>geometry</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>adds a <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> object to this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> </p>
<p>Please notice the different LayerTypes (<a class="el" href="classqmapcontrol_1_1MapLayer.html" title="MapLayer class. ">MapLayer</a> and <a class="el" href="classqmapcontrol_1_1GeometryLayer.html" title="GeometryLayer class. ">GeometryLayer</a>) and the differences </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">geometry</td><td>the new <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </td></tr>
</table>
</dd>
</dl>
<p>References <a class="el" href="classqmapcontrol_1_1Geometry.html#af92c4fa46f711bea92efe5ab80f9084d">Geometry::boundingBox()</a>, and <a class="el" href="classqmapcontrol_1_1Layer.html#a0b0b1de1c0e21dbec196d11b336628f4">Layer::containsGeometry()</a>.</p>
</div>
</div>
<a class="anchor" id="acb2413f25e560a0cfadb7128d5af99b0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void clearGeometries </td>
<td>(</td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>qDeleteObject</em> = <code>false</code></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>removes all <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> objects from this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> </p>
<p>This method removes all <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> objects from this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a>. NOTE: this method does not delete the object unless qDeleteObject is set </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">qDeleteObject</td><td>cleans up memory of object after removal </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a0b0b1de1c0e21dbec196d11b336628f4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool containsGeometry </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *&#160;</td>
<td class="paramname"><em>geometry</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>returns true if <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> contains geometry </p>
<p>This method returns if a <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> objects is on this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a>. </p>
<p>Referenced by <a class="el" href="classqmapcontrol_1_1Layer.html#ab692d7d08414ed2b744946b88872827f">Layer::addGeometry()</a>.</p>
</div>
</div>
<a class="anchor" id="a685dcab83356e5cc449475f177bb487d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void geometryClicked </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *&#160;</td>
<td class="paramname"><em>geometry</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">QPoint&#160;</td>
<td class="paramname"><em>point</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>This signal is emitted when a <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is clicked. </p>
<p>A <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is clickable, if the containing layer is clickable. The layer emits a signal for every clicked geometry </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">geometry</td><td>The clicked <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </td></tr>
<tr><td class="paramname">point</td><td>The coordinate (in widget coordinates) of the click </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ae5f0dce6ce743e714b314f95a6305908"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">QList&lt; <a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * &gt; &amp; getGeometries </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>returns all <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> objects from this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> </p>
<p>This method removes all <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> objects from this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a>. </p><dl class="section return"><dt>Returns</dt><dd>a list of geometries that are on this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a08422ee75ab02691943c1ca87e2bc563"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool isVisible </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>return true if the layer is visible </p>
<dl class="section return"><dt>Returns</dt><dd>if the layer is visible </dd></dl>
</div>
</div>
<a class="anchor" id="a414e94fdd70490d75ddccb6923ae3410"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">QString layername </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>returns the layer's name </p>
<dl class="section return"><dt>Returns</dt><dd>the name of this layer </dd></dl>
</div>
</div>
<a class="anchor" id="a1cfbd8a5c27cf9cb400fa458a1f70ba5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classqmapcontrol_1_1Layer.html#a56943a0946e5f15e5e58054b8e7a04a4">Layer::LayerType</a> layertype </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>returns the LayerType of the <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> </p>
<p>There are two LayerTypes: <a class="el" href="classqmapcontrol_1_1MapLayer.html" title="MapLayer class. ">MapLayer</a> and <a class="el" href="classqmapcontrol_1_1GeometryLayer.html" title="GeometryLayer class. ">GeometryLayer</a> </p><dl class="section return"><dt>Returns</dt><dd>the LayerType of this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a732b5e9de3b67ed69aa7dd165c9778d6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classqmapcontrol_1_1MapAdapter.html">MapAdapter</a> * mapadapter </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>returns the layer´s <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> </p>
<p>This method returns the <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> of this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a>, which can be useful to do coordinate transformations. </p><dl class="section return"><dt>Returns</dt><dd>the <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> which us used by this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> </dd></dl>
</div>
</div>
<a class="anchor" id="af2a2f7fec3f6e5fbf623f466a961bfb7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void removeGeometry </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *&#160;</td>
<td class="paramname"><em>geometry</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>qDeleteObject</em> = <code>false</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>removes the <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> object from this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> </p>
<p>This method removes a <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> object from this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a>. NOTE: this method does not delete the object unless qDeleteObject is set </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">qDeleteObject</td><td>cleans up memory of object after removal </td></tr>
</table>
</dd>
</dl>
<p>References <a class="el" href="classqmapcontrol_1_1Geometry.html#af92c4fa46f711bea92efe5ab80f9084d">Geometry::boundingBox()</a>.</p>
</div>
</div>
<a class="anchor" id="a4a6d2f001e34be8d424ccfb45b8d7622"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void sendGeometryToBack </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *&#160;</td>
<td class="paramname"><em>geometry</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>allow moving a geometry to the top of the list (drawing last) </p>
<p>This method re-order the <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> objects so the desired geometry is drawn first and under all other geometries </p>
</div>
</div>
<a class="anchor" id="a42afc531c673c3adc2e38fae58f87d52"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void sendGeometryToFront </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *&#160;</td>
<td class="paramname"><em>geometry</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>allow moving a geometry to the top of the list (drawing last) </p>
<p>This method re-order the <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> objects so the desired geometry is drawn last and visible above all geometries </p>
</div>
</div>
<a class="anchor" id="a18e44e30b31525a243960ca3928125aa"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void setVisible </td>
<td>(</td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>visible</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>if visible is true, the layer is made visible </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">visible</td><td>if the layer should be visible </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="maplayer_8h_source.html">maplayer.h</a></li>
<li>maplayer.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Nov 16 2014 18:28:17 for QMapControl by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>