Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 4bc66056a634db26a1f4d0845dc41ca6 > files > 14886

mrpt-doc-0.9.5-0.1.20110925svn2670.fc16.i686.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>mrpt::topography::TCoords Struct Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<div align="left"><a href="http://www.mrpt.org/">Main MRPT website</a> &gt; <b>C++ reference</b> </div>
<div align="right">
<a href="index.html"><img border="0" src="mrpt_logo.png" alt="MRPT logo"></a>
</div>
<!-- Generated by Doxygen 1.7.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</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>
        <div id="MSearchBox" class="MSearchBoxInactive">
          <div class="left">
            <form id="FSearchBox" action="search.php" method="get">
              <img id="MSearchSelect" src="search/mag.png" alt=""/>
              <input type="text" id="MSearchField" name="query" value="Search" size="20" accesskey="S" 
                     onfocus="searchBox.OnSearchFieldFocus(true)" 
                     onblur="searchBox.OnSearchFieldFocus(false)"/>
            </form>
          </div><div class="right"></div>
        </div>
      </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="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.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="namespacemrpt.html">mrpt</a>      </li>
      <li class="navelem"><a class="el" href="namespacemrpt_1_1topography.html">topography</a>      </li>
      <li class="navelem"><a class="el" href="structmrpt_1_1topography_1_1_t_coords.html">TCoords</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a>  </div>
  <div class="headertitle">
<div class="title">mrpt::topography::TCoords Struct Reference<div class="ingroups"><a class="el" href="group__mrpt__topography__grp.html">[mrpt-topography]</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="mrpt::topography::TCoords" --><hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A coordinate that is stored as a simple "decimal" angle in degrees, but can be retrieved/set in the form of DEGREES + arc-MINUTES + arc-SECONDS. </p>
</div>
<p><code>#include &lt;<a class="el" href="data__types_8h_source.html">mrpt/topography/data_types.h</a>&gt;</code></p>

<p><a href="structmrpt_1_1topography_1_1_t_coords-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1topography_1_1_t_coords.html#a2e10b56e8f74bc7092417c6c7487dee7">TCoords</a> (const int _deg, const int _min, const double _sec)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1topography_1_1_t_coords.html#a92cc2e2a5a74ae3c9cafaee28fb6569f">TCoords</a> (const double dec)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1topography_1_1_t_coords.html#a74fee0669948b4bb882f6d05bd8328ec">TCoords</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1topography_1_1_t_coords.html#aacf7da3cc787e41d4094df240d72adc5">operator double</a> (void) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Automatic conversion to a double value (read-only)  <a href="#aacf7da3cc787e41d4094df240d72adc5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1topography_1_1_t_coords.html#aa38da3b581cd7d4c9bc4d97035f1ac53">operator double &amp;</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Automatic conversion to a double value (read-only)  <a href="#aa38da3b581cd7d4c9bc4d97035f1ac53"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1topography_1_1_t_coords.html#a14888ecceeadf1fd1cf6310372dfd40f">setFromDecimal</a> (const double dec)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set from a decimal value (XX.YYYYY) in degrees.  <a href="#a14888ecceeadf1fd1cf6310372dfd40f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1topography_1_1_t_coords.html#af1f826e786c088e7a6e988a7c2f26e47">getDecimalValue</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the decimal value (XX.YYYYY), in degrees - you can also use the automatic conversion between <a class="el" href="structmrpt_1_1topography_1_1_t_coords.html" title="A coordinate that is stored as a simple &quot;decimal&quot; angle in degrees, but can be retrieved/set in the f...">TCoords</a> and a double.  <a href="#af1f826e786c088e7a6e988a7c2f26e47"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1topography_1_1_t_coords.html#aef991aabe5abdca080658b43f01dcb77">getDegMinSec</a> (int &amp;degrees, int &amp;minutes, double &amp;seconds) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the Deg Min' Sec'' representation of this value.  <a href="#aef991aabe5abdca080658b43f01dcb77"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1topography_1_1_t_coords.html#ab0ead8dc93396a9ef4d99ae7bbcf06ee">setDegMinSec</a> (const int degrees, const int minutes, const double seconds)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the coordinate from its Deg Min' Deg'' parts.  <a href="#ab0ead8dc93396a9ef4d99ae7bbcf06ee"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classstd_1_1string.html">std::string</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1topography_1_1_t_coords.html#ac40ea0feb074f24151c3c63b0f409fa7">getAsString</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a string in the format "DEGdeg MIN' SEC''".  <a href="#ac40ea0feb074f24151c3c63b0f409fa7"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1topography_1_1_t_coords.html#ad0c467f67e72d58c22426723f573b5d5">decimal_value</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Also obtained directly through the double(void) operator using a <a class="el" href="structmrpt_1_1topography_1_1_t_coords.html" title="A coordinate that is stored as a simple &quot;decimal&quot; angle in degrees, but can be retrieved/set in the f...">TCoords</a> anywhere were a double is expected.  <a href="#ad0c467f67e72d58c22426723f573b5d5"></a><br/></td></tr>
</table>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a2e10b56e8f74bc7092417c6c7487dee7"></a><!-- doxytag: member="mrpt::topography::TCoords::TCoords" ref="a2e10b56e8f74bc7092417c6c7487dee7" args="(const int _deg, const int _min, const double _sec)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">mrpt::topography::TCoords::TCoords </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>_deg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>_min</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double&#160;</td>
          <td class="paramname"><em>_sec</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="data__types_8h_source.html#l00056">56</a> of file <a class="el" href="data__types_8h_source.html">data_types.h</a>.</p>

</div>
</div>
<a class="anchor" id="a92cc2e2a5a74ae3c9cafaee28fb6569f"></a><!-- doxytag: member="mrpt::topography::TCoords::TCoords" ref="a92cc2e2a5a74ae3c9cafaee28fb6569f" args="(const double dec)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">mrpt::topography::TCoords::TCoords </td>
          <td>(</td>
          <td class="paramtype">const double&#160;</td>
          <td class="paramname"><em>dec</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="data__types_8h_source.html#l00057">57</a> of file <a class="el" href="data__types_8h_source.html">data_types.h</a>.</p>

</div>
</div>
<a class="anchor" id="a74fee0669948b4bb882f6d05bd8328ec"></a><!-- doxytag: member="mrpt::topography::TCoords::TCoords" ref="a74fee0669948b4bb882f6d05bd8328ec" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">mrpt::topography::TCoords::TCoords </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="data__types_8h_source.html#l00058">58</a> of file <a class="el" href="data__types_8h_source.html">data_types.h</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ac40ea0feb074f24151c3c63b0f409fa7"></a><!-- doxytag: member="mrpt::topography::TCoords::getAsString" ref="ac40ea0feb074f24151c3c63b0f409fa7" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classstd_1_1string.html">std::string</a> mrpt::topography::TCoords::getAsString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return a string in the format "DEGdeg MIN' SEC''". </p>

<p>Definition at line <a class="el" href="data__types_8h_source.html#l00090">90</a> of file <a class="el" href="data__types_8h_source.html">data_types.h</a>.</p>

<p>References <a class="el" href="namespacemrpt.html#a3a27af794b658df5491e2b7678f8ccb8">mrpt::format()</a>.</p>

</div>
</div>
<a class="anchor" id="af1f826e786c088e7a6e988a7c2f26e47"></a><!-- doxytag: member="mrpt::topography::TCoords::getDecimalValue" ref="af1f826e786c088e7a6e988a7c2f26e47" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double mrpt::topography::TCoords::getDecimalValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the decimal value (XX.YYYYY), in degrees - you can also use the automatic conversion between <a class="el" href="structmrpt_1_1topography_1_1_t_coords.html" title="A coordinate that is stored as a simple &quot;decimal&quot; angle in degrees, but can be retrieved/set in the f...">TCoords</a> and a double. </p>

<p>Definition at line <a class="el" href="data__types_8h_source.html#l00070">70</a> of file <a class="el" href="data__types_8h_source.html">data_types.h</a>.</p>

</div>
</div>
<a class="anchor" id="aef991aabe5abdca080658b43f01dcb77"></a><!-- doxytag: member="mrpt::topography::TCoords::getDegMinSec" ref="aef991aabe5abdca080658b43f01dcb77" args="(int &amp;degrees, int &amp;minutes, double &amp;seconds) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mrpt::topography::TCoords::getDegMinSec </td>
          <td>(</td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>degrees</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>minutes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>seconds</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the Deg Min' Sec'' representation of this value. </p>

<p>Definition at line <a class="el" href="data__types_8h_source.html#l00073">73</a> of file <a class="el" href="data__types_8h_source.html">data_types.h</a>.</p>

<p>References <a class="el" href="nanoflann_8hpp_source.html#l00214">nanoflann::abs()</a>.</p>

</div>
</div>
<a class="anchor" id="aacf7da3cc787e41d4094df240d72adc5"></a><!-- doxytag: member="mrpt::topography::TCoords::operator double" ref="aacf7da3cc787e41d4094df240d72adc5" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">mrpt::topography::TCoords::operator double </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Automatic conversion to a double value (read-only) </p>

<p>Definition at line <a class="el" href="data__types_8h_source.html#l00061">61</a> of file <a class="el" href="data__types_8h_source.html">data_types.h</a>.</p>

</div>
</div>
<a class="anchor" id="aa38da3b581cd7d4c9bc4d97035f1ac53"></a><!-- doxytag: member="mrpt::topography::TCoords::operator double &amp;" ref="aa38da3b581cd7d4c9bc4d97035f1ac53" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">mrpt::topography::TCoords::operator double &amp; </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Automatic conversion to a double value (read-only) </p>

<p>Definition at line <a class="el" href="data__types_8h_source.html#l00064">64</a> of file <a class="el" href="data__types_8h_source.html">data_types.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab0ead8dc93396a9ef4d99ae7bbcf06ee"></a><!-- doxytag: member="mrpt::topography::TCoords::setDegMinSec" ref="ab0ead8dc93396a9ef4d99ae7bbcf06ee" args="(const int degrees, const int minutes, const double seconds)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mrpt::topography::TCoords::setDegMinSec </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>degrees</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>minutes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double&#160;</td>
          <td class="paramname"><em>seconds</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the coordinate from its Deg Min' Deg'' parts. </p>

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

<p>References <a class="el" href="nanoflann_8hpp_source.html#l00214">nanoflann::abs()</a>.</p>

</div>
</div>
<a class="anchor" id="a14888ecceeadf1fd1cf6310372dfd40f"></a><!-- doxytag: member="mrpt::topography::TCoords::setFromDecimal" ref="a14888ecceeadf1fd1cf6310372dfd40f" args="(const double dec)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mrpt::topography::TCoords::setFromDecimal </td>
          <td>(</td>
          <td class="paramtype">const double&#160;</td>
          <td class="paramname"><em>dec</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set from a decimal value (XX.YYYYY) in degrees. </p>

<p>Definition at line <a class="el" href="data__types_8h_source.html#l00067">67</a> of file <a class="el" href="data__types_8h_source.html">data_types.h</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="ad0c467f67e72d58c22426723f573b5d5"></a><!-- doxytag: member="mrpt::topography::TCoords::decimal_value" ref="ad0c467f67e72d58c22426723f573b5d5" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="structmrpt_1_1topography_1_1_t_coords.html#ad0c467f67e72d58c22426723f573b5d5">mrpt::topography::TCoords::decimal_value</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Also obtained directly through the double(void) operator using a <a class="el" href="structmrpt_1_1topography_1_1_t_coords.html" title="A coordinate that is stored as a simple &quot;decimal&quot; angle in degrees, but can be retrieved/set in the f...">TCoords</a> anywhere were a double is expected. </p>

<p>Definition at line <a class="el" href="data__types_8h_source.html#l00054">54</a> of file <a class="el" href="data__types_8h_source.html">data_types.h</a>.</p>

<p>Referenced by <a class="el" href="conversions_8h_source.html#l00193">mrpt::topography::UTMToGeodetic()</a>.</p>

</div>
</div>
</div>
<br><hr><br> <table border="0" width="100%"> <tr> <td> Page generated by <a href="http://www.doxygen.org" target="_blank">Doxygen 1.7.5</a> for MRPT 0.9.5 SVN: at Sun Sep 25 17:20:18 UTC 2011</td><td></td> <td width="100"> </td> <td width="150">  </td></tr> </table>  </body></html>