Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-backports > by-pkgid > 9601c7beb4ff23e834bfa171795ed560 > files > 609

vidalia-0.2.9-1mdv2010.1.i586.rpm

<!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"/>
<title>Vidalia: TorMapImageView 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.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;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="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>TorMapImageView Class Reference</h1><!-- doxytag: class="TorMapImageView" --><!-- doxytag: inherits="ZImageView" -->
<p><code>#include &lt;<a class="el" href="_tor_map_image_view_8h_source.html">TorMapImageView.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for TorMapImageView:</div>
<div class="dynsection">
 <div class="center">
  <img src="class_tor_map_image_view.png" usemap="#TorMapImageView_map" alt=""/>
  <map id="TorMapImageView_map" name="TorMapImageView_map">
<area href="class_z_image_view.html" alt="ZImageView" shape="rect" coords="0,0,117,24"/>
</map>
 </div>
</div>

<p><a href="class_tor_map_image_view-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Slots</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tor_map_image_view.html#a87272a6ff67f3479f390ce55453e08d4">removeCircuit</a> (const <a class="el" href="_circuit_8h.html#a8b7b0182a6d1ff0aab7ab31df9c3f83d">CircuitId</a> &amp;circid)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tor_map_image_view.html#a541d6537c5579d617bc832f1a4f28bc5">deselectAll</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tor_map_image_view.html#af34ff08ec826e9ee9ed7361b59ff9671">clear</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tor_map_image_view.html#a0fc3b6d49ee7cab9bfaa8a2f50d2bb4d">zoomToFit</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tor_map_image_view.html#a47a437a94cb056e5eab16b7cfcada956">zoomToRouter</a> (const QString &amp;id)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tor_map_image_view.html#a0eac52cfb91f8badc93110b39a00a2aa">zoomToCircuit</a> (const <a class="el" href="_circuit_8h.html#a8b7b0182a6d1ff0aab7ab31df9c3f83d">CircuitId</a> &amp;circid)</td></tr>
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tor_map_image_view.html#a2dff045a5f12dbbcc2113001fc6937cc">TorMapImageView</a> (QWidget *parent=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tor_map_image_view.html#a18b0bece34c2e3712e5652024850383c">~TorMapImageView</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tor_map_image_view.html#af46508fdc7b262995ccc63a890d637ea">addRouter</a> (const <a class="el" href="class_router_descriptor.html">RouterDescriptor</a> &amp;desc, const <a class="el" href="class_geo_ip.html">GeoIp</a> &amp;geoip)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tor_map_image_view.html#a36237d226f686d3c5868c2e10b8100ef">addCircuit</a> (const <a class="el" href="_circuit_8h.html#a8b7b0182a6d1ff0aab7ab31df9c3f83d">CircuitId</a> &amp;circid, const QStringList &amp;path)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tor_map_image_view.html#a466796654c6b21473791c7bfa8ffdf0d">selectRouter</a> (const QString &amp;id)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tor_map_image_view.html#a0e50ca9ddd6c27a27c106d52f44a814c">selectCircuit</a> (const <a class="el" href="_circuit_8h.html#a8b7b0182a6d1ff0aab7ab31df9c3f83d">CircuitId</a> &amp;circid)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QSize&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tor_map_image_view.html#a118437e44e2b904c9e42b97e528fa39d">minimumSizeHint</a> () const </td></tr>
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tor_map_image_view.html#a5e828f9b61ae900d2b115e5071b24038">paintImage</a> (QPainter *painter)</td></tr>
<tr><td colspan="2"><h2>Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QPointF&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tor_map_image_view.html#aa1fb562dd0ad8aca2812d92ea1ff9bfb">toMapSpace</a> (float latitude, float longitude)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">float&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tor_map_image_view.html#abb52280b09f017e5f7d68c90da0e4e73">lerp</a> (float input, float *table)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QRectF&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tor_map_image_view.html#a94a19601f7cd63a87223e7f1fab1e54e">circuitBoundingBox</a> ()</td></tr>
<tr><td colspan="2"><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QHash&lt; QString, QPair&lt; QPointF, <br class="typebreak"/>
bool &gt; * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tor_map_image_view.html#a3e14da4491ae038d2039716de1e645ef">_routers</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QHash&lt; <a class="el" href="_circuit_8h.html#a8b7b0182a6d1ff0aab7ab31df9c3f83d">CircuitId</a>, QPair<br class="typebreak"/>
&lt; QPainterPath *, bool &gt; * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tor_map_image_view.html#adf3f8c3f223a321b0789a64790871508">_circuits</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>

<p>Definition at line <a class="el" href="_tor_map_image_view_8h_source.html#l00032">32</a> of file <a class="el" href="_tor_map_image_view_8h_source.html">TorMapImageView.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a2dff045a5f12dbbcc2113001fc6937cc"></a><!-- doxytag: member="TorMapImageView::TorMapImageView" ref="a2dff045a5f12dbbcc2113001fc6937cc" args="(QWidget *parent=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TorMapImageView::TorMapImageView </td>
          <td>(</td>
          <td class="paramtype">QWidget *&nbsp;</td>
          <td class="paramname"> <em>parent</em> = <code>0</code></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Default constructor.</p>
<p>Default constructor </p>

<p>Definition at line <a class="el" href="_tor_map_image_view_8cpp_source.html#l00073">73</a> of file <a class="el" href="_tor_map_image_view_8cpp_source.html">TorMapImageView.cpp</a>.</p>

<p>References <a class="el" href="_tor_map_image_view_8cpp_source.html#l00028">IMG_WORLD_MAP</a>, and <a class="el" href="_z_image_view_8cpp_source.html#l00052">ZImageView::setImage()</a>.</p>

</div>
</div>
<a class="anchor" id="a18b0bece34c2e3712e5652024850383c"></a><!-- doxytag: member="TorMapImageView::~TorMapImageView" ref="a18b0bece34c2e3712e5652024850383c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TorMapImageView::~TorMapImageView </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Destructor.</p>
<p>Destructor </p>

<p>Definition at line <a class="el" href="_tor_map_image_view_8cpp_source.html#l00081">81</a> of file <a class="el" href="_tor_map_image_view_8cpp_source.html">TorMapImageView.cpp</a>.</p>

<p>References <a class="el" href="_tor_map_image_view_8cpp_source.html#l00190">clear()</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a36237d226f686d3c5868c2e10b8100ef"></a><!-- doxytag: member="TorMapImageView::addCircuit" ref="a36237d226f686d3c5868c2e10b8100ef" args="(const CircuitId &amp;circid, const QStringList &amp;path)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TorMapImageView::addCircuit </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="_circuit_8h.html#a8b7b0182a6d1ff0aab7ab31df9c3f83d">CircuitId</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>circid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QStringList &amp;&nbsp;</td>
          <td class="paramname"> <em>path</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Plots the given circuit on the map.</p>
<p>Adds a circuit to the map using the given ordered list of router IDs. </p>

<p><p>Add the data to the hash of known circuits and plot the circuit on the map </p>
</p>

<p>Definition at line <a class="el" href="_tor_map_image_view_8cpp_source.html#l00102">102</a> of file <a class="el" href="_tor_map_image_view_8cpp_source.html">TorMapImageView.cpp</a>.</p>

<p>References <a class="el" href="_tor_map_image_view_8h_source.html#l00083">_circuits</a>, <a class="el" href="_tor_map_image_view_8h_source.html#l00081">_routers</a>, and <a class="el" href="html_8cpp_source.html#l00033">i()</a>.</p>

<p>Referenced by <a class="el" href="_net_viewer_8cpp_source.html#l00272">NetViewer::addCircuit()</a>, and <a class="el" href="_net_viewer_8cpp_source.html#l00456">NetViewer::resolved()</a>.</p>

</div>
</div>
<a class="anchor" id="af46508fdc7b262995ccc63a890d637ea"></a><!-- doxytag: member="TorMapImageView::addRouter" ref="af46508fdc7b262995ccc63a890d637ea" args="(const RouterDescriptor &amp;desc, const GeoIp &amp;geoip)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TorMapImageView::addRouter </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_router_descriptor.html">RouterDescriptor</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>desc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_geo_ip.html">GeoIp</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>geoip</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Plots the given router on the map using the given coordinates.</p>
<p>Adds a router to the map. </p>

<p>Definition at line <a class="el" href="_tor_map_image_view_8cpp_source.html#l00088">88</a> of file <a class="el" href="_tor_map_image_view_8cpp_source.html">TorMapImageView.cpp</a>.</p>

<p>References <a class="el" href="_tor_map_image_view_8h_source.html#l00081">_routers</a>, <a class="el" href="_router_descriptor_8h_source.html#l00053">RouterDescriptor::id()</a>, <a class="el" href="_geo_ip_8h_source.html#l00045">GeoIp::latitude()</a>, <a class="el" href="_geo_ip_8h_source.html#l00050">GeoIp::longitude()</a>, and <a class="el" href="_tor_map_image_view_8cpp_source.html#l00226">toMapSpace()</a>.</p>

<p>Referenced by <a class="el" href="_net_viewer_8cpp_source.html#l00456">NetViewer::resolved()</a>.</p>

</div>
</div>
<a class="anchor" id="a94a19601f7cd63a87223e7f1fab1e54e"></a><!-- doxytag: member="TorMapImageView::circuitBoundingBox" ref="a94a19601f7cd63a87223e7f1fab1e54e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QRectF TorMapImageView::circuitBoundingBox </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Computes a bounding box around all currently displayed circuit paths on the map. </p>

<p>Definition at line <a class="el" href="_tor_map_image_view_8cpp_source.html#l00321">321</a> of file <a class="el" href="_tor_map_image_view_8cpp_source.html">TorMapImageView.cpp</a>.</p>

<p>References <a class="el" href="_tor_map_image_view_8h_source.html#l00083">_circuits</a>.</p>

<p>Referenced by <a class="el" href="_tor_map_image_view_8cpp_source.html#l00271">zoomToFit()</a>.</p>

</div>
</div>
<a class="anchor" id="af34ff08ec826e9ee9ed7361b59ff9671"></a><!-- doxytag: member="TorMapImageView::clear" ref="af34ff08ec826e9ee9ed7361b59ff9671" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TorMapImageView::clear </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Clears the known routers and removes all the data from the map</p>
<p>Clears the list of routers and removes all the data on the map </p>

<p>Definition at line <a class="el" href="_tor_map_image_view_8cpp_source.html#l00190">190</a> of file <a class="el" href="_tor_map_image_view_8cpp_source.html">TorMapImageView.cpp</a>.</p>

<p>References <a class="el" href="_tor_map_image_view_8h_source.html#l00083">_circuits</a>, and <a class="el" href="_tor_map_image_view_8h_source.html#l00081">_routers</a>.</p>

<p>Referenced by <a class="el" href="_net_viewer_8cpp_source.html#l00226">NetViewer::clear()</a>, and <a class="el" href="_tor_map_image_view_8cpp_source.html#l00081">~TorMapImageView()</a>.</p>

</div>
</div>
<a class="anchor" id="a541d6537c5579d617bc832f1a4f28bc5"></a><!-- doxytag: member="TorMapImageView::deselectAll" ref="a541d6537c5579d617bc832f1a4f28bc5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TorMapImageView::deselectAll </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Deselects all the highlighted circuits and routers</p>
<p>Deselects any highlighted routers or circuits </p>

<p>Definition at line <a class="el" href="_tor_map_image_view_8cpp_source.html#l00174">174</a> of file <a class="el" href="_tor_map_image_view_8cpp_source.html">TorMapImageView.cpp</a>.</p>

<p>References <a class="el" href="_tor_map_image_view_8h_source.html#l00083">_circuits</a>, and <a class="el" href="_tor_map_image_view_8h_source.html#l00081">_routers</a>.</p>

<p>Referenced by <a class="el" href="_net_viewer_8cpp_source.html#l00394">NetViewer::circuitSelected()</a>, <a class="el" href="_net_viewer_8cpp_source.html#l00418">NetViewer::routerSelected()</a>, and <a class="el" href="_tor_map_image_view_8cpp_source.html#l00306">zoomToRouter()</a>.</p>

</div>
</div>
<a class="anchor" id="abb52280b09f017e5f7d68c90da0e4e73"></a><!-- doxytag: member="TorMapImageView::lerp" ref="abb52280b09f017e5f7d68c90da0e4e73" args="(float input, float *table)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float TorMapImageView::lerp </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&nbsp;</td>
          <td class="paramname"> <em>table</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Linearly interpolates using the values in the projection table</p>
<p>Linearly interpolates using the values in the Robinson projection table </p>

<p>Definition at line <a class="el" href="_tor_map_image_view_8cpp_source.html#l00252">252</a> of file <a class="el" href="_tor_map_image_view_8cpp_source.html">TorMapImageView.cpp</a>.</p>

<p>Referenced by <a class="el" href="_tor_map_image_view_8cpp_source.html#l00226">toMapSpace()</a>.</p>

</div>
</div>
<a class="anchor" id="a118437e44e2b904c9e42b97e528fa39d"></a><!-- doxytag: member="TorMapImageView::minimumSizeHint" ref="a118437e44e2b904c9e42b97e528fa39d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QSize TorMapImageView::minimumSizeHint </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the minimum size of the widget </p>

<p>Definition at line <a class="el" href="_tor_map_image_view_8cpp_source.html#l00262">262</a> of file <a class="el" href="_tor_map_image_view_8cpp_source.html">TorMapImageView.cpp</a>.</p>

<p>References <a class="el" href="_tor_map_image_view_8cpp_source.html#l00051">MIN_SIZE</a>.</p>

</div>
</div>
<a class="anchor" id="a5e828f9b61ae900d2b115e5071b24038"></a><!-- doxytag: member="TorMapImageView::paintImage" ref="a5e828f9b61ae900d2b115e5071b24038" args="(QPainter *painter)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TorMapImageView::paintImage </td>
          <td>(</td>
          <td class="paramtype">QPainter *&nbsp;</td>
          <td class="paramname"> <em>painter</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Paints the current circuits and streams on the image.</p>
<p>Draws the routers and paths onto the map image. </p>

<p>Reimplemented from <a class="el" href="class_z_image_view.html#ade3ed53ffad6fbd8b3de18a166aa8b0e">ZImageView</a>.</p>

<p>Definition at line <a class="el" href="_tor_map_image_view_8cpp_source.html#l00206">206</a> of file <a class="el" href="_tor_map_image_view_8cpp_source.html">TorMapImageView.cpp</a>.</p>

<p>References <a class="el" href="_tor_map_image_view_8h_source.html#l00083">_circuits</a>, <a class="el" href="_tor_map_image_view_8h_source.html#l00081">_routers</a>, <a class="el" href="_tor_map_image_view_8cpp_source.html#l00032">PEN_CIRCUIT</a>, <a class="el" href="_tor_map_image_view_8cpp_source.html#l00031">PEN_ROUTER</a>, and <a class="el" href="_tor_map_image_view_8cpp_source.html#l00033">PEN_SELECTED</a>.</p>

</div>
</div>
<a class="anchor" id="a87272a6ff67f3479f390ce55453e08d4"></a><!-- doxytag: member="TorMapImageView::removeCircuit" ref="a87272a6ff67f3479f390ce55453e08d4" args="(const CircuitId &amp;circid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TorMapImageView::removeCircuit </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="_circuit_8h.html#a8b7b0182a6d1ff0aab7ab31df9c3f83d">CircuitId</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>circid</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Removes a circuit from the map. </p>

<p>Definition at line <a class="el" href="_tor_map_image_view_8cpp_source.html#l00139">139</a> of file <a class="el" href="_tor_map_image_view_8cpp_source.html">TorMapImageView.cpp</a>.</p>

<p>References <a class="el" href="_tor_map_image_view_8h_source.html#l00083">_circuits</a>.</p>

</div>
</div>
<a class="anchor" id="a0e50ca9ddd6c27a27c106d52f44a814c"></a><!-- doxytag: member="TorMapImageView::selectCircuit" ref="a0e50ca9ddd6c27a27c106d52f44a814c" args="(const CircuitId &amp;circid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TorMapImageView::selectCircuit </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="_circuit_8h.html#a8b7b0182a6d1ff0aab7ab31df9c3f83d">CircuitId</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>circid</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Selects and highlights a circuit on the map.</p>
<p>Selects and highlights the circuit with the id <b>circid</b> on the map. </p>

<p>Definition at line <a class="el" href="_tor_map_image_view_8cpp_source.html#l00163">163</a> of file <a class="el" href="_tor_map_image_view_8cpp_source.html">TorMapImageView.cpp</a>.</p>

<p>References <a class="el" href="_tor_map_image_view_8h_source.html#l00083">_circuits</a>.</p>

<p>Referenced by <a class="el" href="_net_viewer_8cpp_source.html#l00394">NetViewer::circuitSelected()</a>.</p>

</div>
</div>
<a class="anchor" id="a466796654c6b21473791c7bfa8ffdf0d"></a><!-- doxytag: member="TorMapImageView::selectRouter" ref="a466796654c6b21473791c7bfa8ffdf0d" args="(const QString &amp;id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TorMapImageView::selectRouter </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>id</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Selects and hightlights a router on the map.</p>
<p>Selects and highlights the router on the map. </p>

<p>Definition at line <a class="el" href="_tor_map_image_view_8cpp_source.html#l00151">151</a> of file <a class="el" href="_tor_map_image_view_8cpp_source.html">TorMapImageView.cpp</a>.</p>

<p>References <a class="el" href="_tor_map_image_view_8h_source.html#l00081">_routers</a>.</p>

<p>Referenced by <a class="el" href="_net_viewer_8cpp_source.html#l00418">NetViewer::routerSelected()</a>.</p>

</div>
</div>
<a class="anchor" id="aa1fb562dd0ad8aca2812d92ea1ff9bfb"></a><!-- doxytag: member="TorMapImageView::toMapSpace" ref="aa1fb562dd0ad8aca2812d92ea1ff9bfb" args="(float latitude, float longitude)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QPointF TorMapImageView::toMapSpace </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>latitude</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>longitude</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Converts world space coordinates into map space coordinates </p>

<p>Definition at line <a class="el" href="_tor_map_image_view_8cpp_source.html#l00226">226</a> of file <a class="el" href="_tor_map_image_view_8cpp_source.html">TorMapImageView.cpp</a>.</p>

<p>References <a class="el" href="_tor_map_image_view_8cpp_source.html#l00252">lerp()</a>, <a class="el" href="_tor_map_image_view_8cpp_source.html#l00045">MAP_HEIGHT</a>, <a class="el" href="_tor_map_image_view_8cpp_source.html#l00043">MAP_LEFT</a>, <a class="el" href="_tor_map_image_view_8cpp_source.html#l00048">MAP_ORIGIN</a>, <a class="el" href="_tor_map_image_view_8cpp_source.html#l00040">MAP_TOP</a>, <a class="el" href="_tor_map_image_view_8cpp_source.html#l00044">MAP_WIDTH</a>, <a class="el" href="_tor_map_image_view_8cpp_source.html#l00064">pdfe</a>, and <a class="el" href="_tor_map_image_view_8cpp_source.html#l00055">plen</a>.</p>

<p>Referenced by <a class="el" href="_tor_map_image_view_8cpp_source.html#l00088">addRouter()</a>.</p>

</div>
</div>
<a class="anchor" id="a0eac52cfb91f8badc93110b39a00a2aa"></a><!-- doxytag: member="TorMapImageView::zoomToCircuit" ref="a0eac52cfb91f8badc93110b39a00a2aa" args="(const CircuitId &amp;circid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TorMapImageView::zoomToCircuit </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="_circuit_8h.html#a8b7b0182a6d1ff0aab7ab31df9c3f83d">CircuitId</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>circid</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Zoom to the circuit on the map with the given <b>circid</b>. </p>

<p>Definition at line <a class="el" href="_tor_map_image_view_8cpp_source.html#l00290">290</a> of file <a class="el" href="_tor_map_image_view_8cpp_source.html">TorMapImageView.cpp</a>.</p>

<p>References <a class="el" href="_tor_map_image_view_8h_source.html#l00083">_circuits</a>, <a class="el" href="_tor_map_image_view_8cpp_source.html#l00045">MAP_HEIGHT</a>, <a class="el" href="_tor_map_image_view_8cpp_source.html#l00044">MAP_WIDTH</a>, and <a class="el" href="_z_image_view_8cpp_source.html#l00289">ZImageView::zoom()</a>.</p>

</div>
</div>
<a class="anchor" id="a0fc3b6d49ee7cab9bfaa8a2f50d2bb4d"></a><!-- doxytag: member="TorMapImageView::zoomToFit" ref="a0fc3b6d49ee7cab9bfaa8a2f50d2bb4d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TorMapImageView::zoomToFit </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Zooms to fit all currently displayed circuits on the map.</p>
<p>Zooms to fit all currently displayed circuits on the map. If there are no circuits on the map, the viewport will be returned to its default position (zoomed all the way out and centered). </p>

<p>Definition at line <a class="el" href="_tor_map_image_view_8cpp_source.html#l00271">271</a> of file <a class="el" href="_tor_map_image_view_8cpp_source.html">TorMapImageView.cpp</a>.</p>

<p>References <a class="el" href="_tor_map_image_view_8cpp_source.html#l00321">circuitBoundingBox()</a>, <a class="el" href="_tor_map_image_view_8cpp_source.html#l00045">MAP_HEIGHT</a>, <a class="el" href="_tor_map_image_view_8cpp_source.html#l00044">MAP_WIDTH</a>, <a class="el" href="_z_image_view_8cpp_source.html#l00261">ZImageView::resetZoomPoint()</a>, and <a class="el" href="_z_image_view_8cpp_source.html#l00289">ZImageView::zoom()</a>.</p>

</div>
</div>
<a class="anchor" id="a47a437a94cb056e5eab16b7cfcada956"></a><!-- doxytag: member="TorMapImageView::zoomToRouter" ref="a47a437a94cb056e5eab16b7cfcada956" args="(const QString &amp;id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TorMapImageView::zoomToRouter </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>id</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Zoom to a particular router on the map.</p>
<p>Zooms in on the router with the given <b>id</b>. </p>

<p>Definition at line <a class="el" href="_tor_map_image_view_8cpp_source.html#l00306">306</a> of file <a class="el" href="_tor_map_image_view_8cpp_source.html">TorMapImageView.cpp</a>.</p>

<p>References <a class="el" href="_tor_map_image_view_8h_source.html#l00081">_routers</a>, <a class="el" href="_tor_map_image_view_8cpp_source.html#l00174">deselectAll()</a>, and <a class="el" href="_z_image_view_8cpp_source.html#l00289">ZImageView::zoom()</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="adf3f8c3f223a321b0789a64790871508"></a><!-- doxytag: member="TorMapImageView::_circuits" ref="adf3f8c3f223a321b0789a64790871508" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QHash&lt;<a class="el" href="_circuit_8h.html#a8b7b0182a6d1ff0aab7ab31df9c3f83d">CircuitId</a>, QPair&lt;QPainterPath *,bool&gt;* &gt; <a class="el" href="class_tor_map_image_view.html#adf3f8c3f223a321b0789a64790871508">TorMapImageView::_circuits</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Stores circuit information </p>

<p>Definition at line <a class="el" href="_tor_map_image_view_8h_source.html#l00083">83</a> of file <a class="el" href="_tor_map_image_view_8h_source.html">TorMapImageView.h</a>.</p>

<p>Referenced by <a class="el" href="_tor_map_image_view_8cpp_source.html#l00102">addCircuit()</a>, <a class="el" href="_tor_map_image_view_8cpp_source.html#l00321">circuitBoundingBox()</a>, <a class="el" href="_tor_map_image_view_8cpp_source.html#l00190">clear()</a>, <a class="el" href="_tor_map_image_view_8cpp_source.html#l00174">deselectAll()</a>, <a class="el" href="_tor_map_image_view_8cpp_source.html#l00206">paintImage()</a>, <a class="el" href="_tor_map_image_view_8cpp_source.html#l00139">removeCircuit()</a>, <a class="el" href="_tor_map_image_view_8cpp_source.html#l00163">selectCircuit()</a>, and <a class="el" href="_tor_map_image_view_8cpp_source.html#l00290">zoomToCircuit()</a>.</p>

</div>
</div>
<a class="anchor" id="a3e14da4491ae038d2039716de1e645ef"></a><!-- doxytag: member="TorMapImageView::_routers" ref="a3e14da4491ae038d2039716de1e645ef" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QHash&lt;QString, QPair&lt;QPointF,bool&gt;* &gt; <a class="el" href="class_tor_map_image_view.html#a3e14da4491ae038d2039716de1e645ef">TorMapImageView::_routers</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Stores map locations for tor routers </p>

<p>Definition at line <a class="el" href="_tor_map_image_view_8h_source.html#l00081">81</a> of file <a class="el" href="_tor_map_image_view_8h_source.html">TorMapImageView.h</a>.</p>

<p>Referenced by <a class="el" href="_tor_map_image_view_8cpp_source.html#l00102">addCircuit()</a>, <a class="el" href="_tor_map_image_view_8cpp_source.html#l00088">addRouter()</a>, <a class="el" href="_tor_map_image_view_8cpp_source.html#l00190">clear()</a>, <a class="el" href="_tor_map_image_view_8cpp_source.html#l00174">deselectAll()</a>, <a class="el" href="_tor_map_image_view_8cpp_source.html#l00206">paintImage()</a>, <a class="el" href="_tor_map_image_view_8cpp_source.html#l00151">selectRouter()</a>, and <a class="el" href="_tor_map_image_view_8cpp_source.html#l00306">zoomToRouter()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_tor_map_image_view_8h_source.html">TorMapImageView.h</a></li>
<li><a class="el" href="_tor_map_image_view_8cpp_source.html">TorMapImageView.cpp</a></li>
</ul>
</div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Mon Aug 30 22:58:57 2010 for Vidalia by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>