geometry/doc/doxygen_output/html/cs_8hpp_source.html
Barend Gehrels 363580fbf6 Added old doxygen docs
[SVN r59777]
2010-02-20 15:57:12 +00:00

183 lines
14 KiB
HTML
Raw Blame History

<!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>Boost.Geometry (aka GGL, Generic Geometry Library)</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head>
<table cellpadding="2" width="100%">
<tbody>
<tr>
<td valign="top">
<img alt="Boost.Geometry" src="images/ggl-logo-big.png" height="80" width="200">
&nbsp;&nbsp;
</td>
<td valign="top" align="right">
<a href="http://www.boost.org">
<img alt="Boost C++ Libraries" src="images/accepted_by_boost.png" height="80" width="230" border="0">
</a>
</td>
</tr>
</tbody>
</table>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="pages.html"><span>Related&nbsp;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><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><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="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>boost/geometry/core/cs.hpp</h1><a href="cs_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Boost.Geometry (aka GGL, Generic Geometry Library)</span>
<a name="l00002"></a>00002 <span class="comment">//</span>
<a name="l00003"></a>00003 <span class="comment">// Copyright Barend Gehrels 2007-2009, Geodan, Amsterdam, the Netherlands.</span>
<a name="l00004"></a>00004 <span class="comment">// Copyright Bruno Lalande 2008, 2009</span>
<a name="l00005"></a>00005 <span class="comment">// Use, modification and distribution is subject to the Boost Software License,</span>
<a name="l00006"></a>00006 <span class="comment">// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at</span>
<a name="l00007"></a>00007 <span class="comment">// http://www.boost.org/LICENSE_1_0.txt)</span>
<a name="l00008"></a>00008
<a name="l00009"></a>00009 <span class="preprocessor">#ifndef BOOST_GEOMETRY_CORE_CS_HPP</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#define BOOST_GEOMETRY_CORE_CS_HPP</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;cstddef&gt;</span>
<a name="l00013"></a>00013
<a name="l00014"></a>00014 <span class="preprocessor">#include &lt;boost/type_traits.hpp&gt;</span>
<a name="l00015"></a>00015
<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;<a class="code" href="coordinate__system_8hpp.html">boost/geometry/core/coordinate_system.hpp</a>&gt;</span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &lt;<a class="code" href="core_2tags_8hpp.html">boost/geometry/core/tags.hpp</a>&gt;</span>
<a name="l00018"></a>00018
<a name="l00026"></a>00026 <span class="keyword">namespace </span>boost { <span class="keyword">namespace </span>geometry
<a name="l00027"></a>00027 {
<a name="l00028"></a>00028
<a name="l00033"></a><a class="code" href="classboost_1_1geometry_1_1degree.html">00033</a> <span class="keyword">class </span><a class="code" href="classboost_1_1geometry_1_1degree.html" title="Unit of plane angle: Degrees.">degree</a> {};
<a name="l00034"></a>00034
<a name="l00035"></a>00035
<a name="l00040"></a><a class="code" href="classboost_1_1geometry_1_1radian.html">00040</a> <span class="keyword">class </span><a class="code" href="classboost_1_1geometry_1_1radian.html" title="Unit of plane angle: Radians.">radian</a> {};
<a name="l00041"></a>00041
<a name="l00042"></a>00042
<a name="l00043"></a><a class="code" href="namespaceboost_1_1geometry_1_1cs.html">00043</a> <span class="keyword">namespace </span>cs
<a name="l00044"></a>00044 {
<a name="l00045"></a>00045
<a name="l00054"></a><a class="code" href="structboost_1_1geometry_1_1cs_1_1cartesian.html">00054</a> <span class="keyword">struct </span><a class="code" href="structboost_1_1geometry_1_1cs_1_1cartesian.html" title="Cartesian coordinate system.">cartesian</a> {};
<a name="l00055"></a>00055
<a name="l00056"></a>00056
<a name="l00057"></a>00057
<a name="l00058"></a>00058
<a name="l00068"></a>00068 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> DegreeOrRadian&gt;
<a name="l00069"></a><a class="code" href="structboost_1_1geometry_1_1cs_1_1geographic.html">00069</a> <span class="keyword">struct </span><a class="code" href="structboost_1_1geometry_1_1cs_1_1geographic.html" title="Geographic coordinate system, in degree or in radian.">geographic</a>
<a name="l00070"></a>00070 {
<a name="l00071"></a><a class="code" href="structboost_1_1geometry_1_1cs_1_1geographic.html#501d58b90ab6804c06c336fac5fee054">00071</a> <span class="keyword">typedef</span> DegreeOrRadian <a class="code" href="structboost_1_1geometry_1_1cs_1_1geographic.html#501d58b90ab6804c06c336fac5fee054">units</a>;
<a name="l00072"></a>00072 };
<a name="l00073"></a>00073
<a name="l00074"></a>00074
<a name="l00075"></a>00075
<a name="l00094"></a>00094 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> DegreeOrRadian&gt;
<a name="l00095"></a><a class="code" href="structboost_1_1geometry_1_1cs_1_1spherical.html">00095</a> <span class="keyword">struct </span><a class="code" href="structboost_1_1geometry_1_1cs_1_1spherical.html" title="Spherical coordinate system, in degree or in radian.">spherical</a>
<a name="l00096"></a>00096 {
<a name="l00097"></a><a class="code" href="structboost_1_1geometry_1_1cs_1_1spherical.html#28be43b690119dfa4c127528053b209b">00097</a> <span class="keyword">typedef</span> DegreeOrRadian <a class="code" href="structboost_1_1geometry_1_1cs_1_1spherical.html#28be43b690119dfa4c127528053b209b">units</a>;
<a name="l00098"></a>00098 };
<a name="l00099"></a>00099
<a name="l00107"></a>00107 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> DegreeOrRadian&gt;
<a name="l00108"></a><a class="code" href="structboost_1_1geometry_1_1cs_1_1polar.html">00108</a> <span class="keyword">struct </span><a class="code" href="structboost_1_1geometry_1_1cs_1_1polar.html" title="Polar coordinate system.">polar</a>
<a name="l00109"></a>00109 {
<a name="l00110"></a><a class="code" href="structboost_1_1geometry_1_1cs_1_1polar.html#e8e2fc74c15df2d3a1f67a2a060e6929">00110</a> <span class="keyword">typedef</span> DegreeOrRadian <a class="code" href="structboost_1_1geometry_1_1cs_1_1polar.html#e8e2fc74c15df2d3a1f67a2a060e6929">units</a>;
<a name="l00111"></a>00111 };
<a name="l00112"></a>00112
<a name="l00113"></a>00113
<a name="l00114"></a>00114 } <span class="comment">// namespace cs</span>
<a name="l00115"></a>00115
<a name="l00116"></a>00116 <span class="keyword">namespace </span>traits
<a name="l00117"></a>00117 {
<a name="l00123"></a>00123 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> CoordinateSystem&gt;
<a name="l00124"></a><a class="code" href="structboost_1_1geometry_1_1traits_1_1cs__tag.html">00124</a> <span class="keyword">struct </span><a class="code" href="structboost_1_1geometry_1_1traits_1_1cs__tag.html" title="Traits class defining coordinate system tag, bound to coordinate system.">cs_tag</a>
<a name="l00125"></a>00125 {
<a name="l00126"></a>00126 };
<a name="l00127"></a>00127
<a name="l00128"></a>00128 <span class="preprocessor">#ifndef DOXYGEN_NO_TRAITS_SPECIALIZATIONS</span>
<a name="l00129"></a>00129 <span class="preprocessor"></span>
<a name="l00130"></a>00130 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> DegreeOrRadian&gt;
<a name="l00131"></a>00131 <span class="keyword">struct </span><a class="code" href="structboost_1_1geometry_1_1traits_1_1cs__tag.html" title="Traits class defining coordinate system tag, bound to coordinate system.">cs_tag</a>&lt;cs::geographic&lt;DegreeOrRadian&gt; &gt;
<a name="l00132"></a>00132 {
<a name="l00133"></a>00133 <span class="keyword">typedef</span> <a class="code" href="structboost_1_1geometry_1_1geographic__tag.html" title="Tag indicating Geographic coordinate system family (geographic).">geographic_tag</a> type;
<a name="l00134"></a>00134 };
<a name="l00135"></a>00135
<a name="l00136"></a>00136 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> DegreeOrRadian&gt;
<a name="l00137"></a>00137 <span class="keyword">struct </span><a class="code" href="structboost_1_1geometry_1_1cs__tag.html" title="Meta-function returning coordinate system tag (cs family) of any geometry.">cs_tag</a>&lt;cs::spherical&lt;DegreeOrRadian&gt; &gt;
<a name="l00138"></a>00138 {
<a name="l00139"></a>00139 <span class="keyword">typedef</span> <a class="code" href="structboost_1_1geometry_1_1spherical__tag.html" title="Tag indicating Spherical coordinate system family (spherical,celestial,...).">spherical_tag</a> type;
<a name="l00140"></a>00140 };
<a name="l00141"></a>00141
<a name="l00142"></a>00142 <span class="keyword">template</span>&lt;&gt;
<a name="l00143"></a>00143 <span class="keyword">struct </span>cs_tag&lt;cs::cartesian&gt;
<a name="l00144"></a>00144 {
<a name="l00145"></a>00145 <span class="keyword">typedef</span> cartesian_tag type;
<a name="l00146"></a>00146 };
<a name="l00147"></a>00147
<a name="l00148"></a>00148
<a name="l00149"></a>00149 <span class="preprocessor">#endif // DOXYGEN_NO_TRAITS_SPECIALIZATIONS</span>
<a name="l00150"></a>00150 <span class="preprocessor"></span>} <span class="comment">// namespace traits</span>
<a name="l00151"></a>00151
<a name="l00156"></a>00156 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> G&gt;
<a name="l00157"></a><a class="code" href="structboost_1_1geometry_1_1cs__tag.html">00157</a> <span class="keyword">struct </span><a class="code" href="structboost_1_1geometry_1_1cs__tag.html" title="Meta-function returning coordinate system tag (cs family) of any geometry.">cs_tag</a>
<a name="l00158"></a>00158 {
<a name="l00159"></a>00159 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="structboost_1_1geometry_1_1traits_1_1cs__tag.html" title="Traits class defining coordinate system tag, bound to coordinate system.">traits::cs_tag</a>
<a name="l00160"></a>00160 &lt;
<a name="l00161"></a>00161 <span class="keyword">typename</span> <a class="code" href="structboost_1_1geometry_1_1coordinate__system.html" title="Meta-function which defines coordinate system for any geometry.">geometry::coordinate_system&lt;G&gt;::type</a>
<a name="l00162"></a><a class="code" href="structboost_1_1geometry_1_1cs__tag.html#b8380bc1902a8cf1d6a928abdb143e43">00162</a> &gt;<a class="code" href="structboost_1_1geometry_1_1cs__tag.html#b8380bc1902a8cf1d6a928abdb143e43">::type</a> <a class="code" href="structboost_1_1geometry_1_1cs__tag.html#b8380bc1902a8cf1d6a928abdb143e43">type</a>;
<a name="l00163"></a>00163 };
<a name="l00164"></a>00164
<a name="l00165"></a>00165
<a name="l00170"></a>00170 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> CoordinateSystem&gt;
<a name="l00171"></a><a class="code" href="structboost_1_1geometry_1_1is__radian.html">00171</a> <span class="keyword">struct </span><a class="code" href="structboost_1_1geometry_1_1is__radian.html" title="Meta-function to verify if a coordinate system is radian.">is_radian</a> : boost::true_type {};
<a name="l00172"></a>00172
<a name="l00173"></a>00173
<a name="l00174"></a>00174 <span class="preprocessor">#ifndef DOXYGEN_NO_SPECIALIZATIONS</span>
<a name="l00175"></a>00175 <span class="preprocessor"></span>
<a name="l00176"></a>00176 <span class="comment">// Specialization for any degree coordinate systems</span>
<a name="l00177"></a>00177 <span class="keyword">template</span> &lt;<span class="keyword">template</span>&lt;<span class="keyword">typename</span>&gt; <span class="keyword">class </span>CoordinateSystem&gt;
<a name="l00178"></a>00178 <span class="keyword">struct </span><a class="code" href="structboost_1_1geometry_1_1is__radian.html" title="Meta-function to verify if a coordinate system is radian.">is_radian</a>&lt; CoordinateSystem&lt;<a class="code" href="classboost_1_1geometry_1_1degree.html" title="Unit of plane angle: Degrees.">degree</a>&gt; &gt; : boost::false_type
<a name="l00179"></a>00179 {
<a name="l00180"></a>00180 };
<a name="l00181"></a>00181
<a name="l00182"></a>00182 <span class="preprocessor">#endif // DOXYGEN_NO_SPECIALIZATIONS</span>
<a name="l00183"></a>00183 <span class="preprocessor"></span>
<a name="l00184"></a>00184 }} <span class="comment">// namespace boost::geometry</span>
<a name="l00185"></a>00185
<a name="l00186"></a>00186 <span class="preprocessor">#endif // BOOST_GEOMETRY_CORE_CS_HPP</span>
</pre></div></div>
<hr size="1">
<table width="100%">
<tbody>
<tr>
<td align="left"><small>
<p>December 1, 2009</p>
</small></td>
<td align="right">
<small>Copyright <20> 1995-2009 Barend Gehrels, Geodan, Amsterdam<br>
Copyright <20> 2008-2009 Bruno Lalande, Paris<br>
Copyright <20> 2009 Mateusz Loskot, Cadcorp, London<br>
</small>
</td>
</tr>
</tbody>
</table>
<address style="text-align: right;"><small>
Documentation is generated by&nbsp;<a href="http://www.doxygen.org/index.html">Doxygen</a>
</small></address>
</body>
</html>