<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libnfporb API Reference: src/svg.hpp Source File</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="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.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 id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">libnfporb API Reference
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">svg.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="svg_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef SRC_SVG_HPP_</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define SRC_SVG_HPP_</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160; </div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160; </div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;fstream&gt;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160; </div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;boost/geometry/io/svg/svg_mapper.hpp&gt;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160; </div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="geometry_8hpp.html">geometry.hpp</a>&quot;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160; </div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacelibnfporb.html">libnfporb</a> {</div>
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="namespacelibnfporb.html#a64f59ee99cb348bdf67ee3bd5a78dfbe">   20</a></span>&#160;polygonf_t::ring_type <a class="code" href="namespacelibnfporb.html#a64f59ee99cb348bdf67ee3bd5a78dfbe">convert</a>(<span class="keyword">const</span> polygon_t::ring_type&amp; r) {</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    polygonf_t::ring_type rf;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>&amp; pt : r) {</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;        rf.push_back(<a class="code" href="namespacelibnfporb.html#a131f5699cf1d0abf96967036fe94b7fd">pointf_t</a>(<a class="code" href="namespacelibnfporb.html#a5e145fbf781386b7c6b3c8d41537c887">toLongDouble</a>(pt.x_), <a class="code" href="namespacelibnfporb.html#a5e145fbf781386b7c6b3c8d41537c887">toLongDouble</a>(pt.y_)));</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    }</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    <span class="keywordflow">return</span> rf;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;}</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="namespacelibnfporb.html#aeeaf5bf20e6a7560be09432e29f99c15">   33</a></span>&#160;<a class="code" href="namespacelibnfporb.html#a0631fceada979bd18a3c0216c4cd3685">polygonf_t</a> <a class="code" href="namespacelibnfporb.html#a64f59ee99cb348bdf67ee3bd5a78dfbe">convert</a>(<span class="keyword">const</span> <a class="code" href="namespacelibnfporb.html#a6669e4dfc06e20a3983fe52e360d38da">polygon_t</a>&amp; p) {</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <a class="code" href="namespacelibnfporb.html#a0631fceada979bd18a3c0216c4cd3685">polygonf_t</a> pf;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    pf.outer() = <a class="code" href="namespacelibnfporb.html#a64f59ee99cb348bdf67ee3bd5a78dfbe">convert</a>(p.outer());</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>&amp; r : p.inners()) {</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;        pf.inners().push_back(<a class="code" href="namespacelibnfporb.html#a64f59ee99cb348bdf67ee3bd5a78dfbe">convert</a>(r));</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    }</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="keywordflow">return</span> pf;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;}</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="namespacelibnfporb.html#aefa8e61428bb5385bf8a62bb0a17cdd8">   49</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="namespacelibnfporb.html#aefa8e61428bb5385bf8a62bb0a17cdd8">write_svg</a>(std::string <span class="keyword">const</span>&amp; filename, <span class="keyword">const</span> std::vector&lt;segment_t&gt;&amp; segments) {</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    std::ofstream svg(filename.c_str());</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160; </div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    boost::geometry::svg_mapper&lt;pointf_t&gt; mapper(svg, 100, 100, <span class="stringliteral">&quot;width=\&quot;200mm\&quot; height=\&quot;200mm\&quot; viewBox=\&quot;-250 -250 500 500\&quot; style=\&quot;background-color:white\&quot;&quot;</span>);</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>&amp; seg : segments) {</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        <a class="code" href="namespacelibnfporb.html#a8cb1a2ce869e041eb5cda62cdab3c9e7">segmentf_t</a> segf( { <a class="code" href="namespacelibnfporb.html#a5e145fbf781386b7c6b3c8d41537c887">toLongDouble</a>(seg.first.x_), <a class="code" href="namespacelibnfporb.html#a5e145fbf781386b7c6b3c8d41537c887">toLongDouble</a>(seg.first.y_) }, { <a class="code" href="namespacelibnfporb.html#a5e145fbf781386b7c6b3c8d41537c887">toLongDouble</a>(seg.second.x_), <a class="code" href="namespacelibnfporb.html#a5e145fbf781386b7c6b3c8d41537c887">toLongDouble</a>(seg.second.y_) });</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        mapper.add(segf);</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        mapper.map(segf, <span class="stringliteral">&quot;fill-opacity:0.5;fill:rgb(153,204,0);stroke:rgb(153,204,0);stroke-width:0.25&quot;</span>);</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    }</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;}</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160; </div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="namespacelibnfporb.html#a877a4cb0cdeea479be0bbe36b6da962a">   66</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="namespacelibnfporb.html#aefa8e61428bb5385bf8a62bb0a17cdd8">write_svg</a>(std::string <span class="keyword">const</span>&amp; filename, <span class="keyword">const</span> <a class="code" href="namespacelibnfporb.html#a6669e4dfc06e20a3983fe52e360d38da">polygon_t</a>&amp; p, <span class="keyword">const</span> polygon_t::ring_type&amp; ring) {</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    std::ofstream svg(filename.c_str());</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160; </div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    boost::geometry::svg_mapper&lt;pointf_t&gt; mapper(svg, 100, 100, <span class="stringliteral">&quot;width=\&quot;200mm\&quot; height=\&quot;200mm\&quot; viewBox=\&quot;-250 -250 500 500\&quot; style=\&quot;background-color:white\&quot;&quot;</span>);</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="keyword">auto</span> pf = <a class="code" href="namespacelibnfporb.html#a64f59ee99cb348bdf67ee3bd5a78dfbe">convert</a>(p);</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <span class="keyword">auto</span> rf = <a class="code" href="namespacelibnfporb.html#a64f59ee99cb348bdf67ee3bd5a78dfbe">convert</a>(ring);</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160; </div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    mapper.add(pf);</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    mapper.map(pf, <span class="stringliteral">&quot;fill-opacity:0.5;fill:rgb(153,204,0);stroke:rgb(153,204,0);stroke-width:0&quot;</span>);</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    mapper.add(rf);</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    mapper.map(rf, <span class="stringliteral">&quot;fill-opacity:0.5;fill:rgb(204,153,0);stroke:rgb(153,204,0);stroke-width:0&quot;</span>);</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;}</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160; </div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="namespacelibnfporb.html#ae512dbc5633f5e059db3b4a4bb6de779">   84</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="namespacelibnfporb.html#aefa8e61428bb5385bf8a62bb0a17cdd8">write_svg</a>(std::string <span class="keyword">const</span>&amp; filename, <span class="keyword">typename</span> std::vector&lt;polygon_t&gt; <span class="keyword">const</span>&amp; polygons) {</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    std::ofstream svg(filename.c_str());</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160; </div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    boost::geometry::svg_mapper&lt;pointf_t&gt; mapper(svg, 100, 100, <span class="stringliteral">&quot;width=\&quot;200mm\&quot; height=\&quot;200mm\&quot; viewBox=\&quot;-250 -250 500 500\&quot; style=\&quot;background-color:white\&quot;&quot;</span>);</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">auto</span> p : polygons) {</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        <span class="keyword">auto</span> pf = <a class="code" href="namespacelibnfporb.html#a64f59ee99cb348bdf67ee3bd5a78dfbe">convert</a>(p);</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        mapper.add(pf);</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        mapper.map(pf, <span class="stringliteral">&quot;fill-opacity:0.5;fill:rgb(153,204,0);stroke:rgb(153,204,0);stroke-width:0.25&quot;</span>);</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    }</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;}</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160; </div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="namespacelibnfporb.html#a01e5ab93f9600d8c50a6af660fb5a2da">  102</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="namespacelibnfporb.html#aefa8e61428bb5385bf8a62bb0a17cdd8">write_svg</a>(std::string <span class="keyword">const</span>&amp; filename, <span class="keyword">const</span> <a class="code" href="namespacelibnfporb.html#a6669e4dfc06e20a3983fe52e360d38da">polygon_t</a>&amp; pA, <span class="keyword">const</span> <a class="code" href="namespacelibnfporb.html#a6669e4dfc06e20a3983fe52e360d38da">polygon_t</a> &amp; pB, <span class="keyword">const</span> <a class="code" href="namespacelibnfporb.html#ad1b65f43852227f30363ab70884415ab">nfp_t</a>&amp; nfp) {</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    <a class="code" href="namespacelibnfporb.html#a6669e4dfc06e20a3983fe52e360d38da">polygon_t</a> nfppoly;</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>&amp; pt : nfp.front()) {</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        nfppoly.outer().push_back(pt);</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    }</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 1; i &lt; nfp.size(); ++i) {</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        nfppoly.inners().push_back( { });</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>&amp; pt : nfp[i]) {</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;            nfppoly.inners().back().push_back(pt);</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        }</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    }</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    std::ofstream svg(filename.c_str());</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160; </div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    boost::geometry::svg_mapper&lt;pointf_t&gt; mapper(svg, 100, 100, <span class="stringliteral">&quot;width=\&quot;200mm\&quot; height=\&quot;200mm\&quot; viewBox=\&quot;-250 -250 500 500\&quot; style=\&quot;background-color:white\&quot;&quot;</span>);</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    <span class="keyword">auto</span> pAf = <a class="code" href="namespacelibnfporb.html#a64f59ee99cb348bdf67ee3bd5a78dfbe">convert</a>(pA);</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    mapper.add(pAf);</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    mapper.map(pAf, <span class="stringliteral">&quot;fill-opacity:0.5;fill:rgb(153,204,0);stroke:rgb(153,204,0);stroke-width:0&quot;</span>);</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160; </div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    <span class="keyword">auto</span> pBf = <a class="code" href="namespacelibnfporb.html#a64f59ee99cb348bdf67ee3bd5a78dfbe">convert</a>(pB);</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    mapper.add(pBf);</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    mapper.map(pBf, <span class="stringliteral">&quot;fill-opacity:0.5;fill:rgb(204,153,0);stroke:rgb(204,153,0);stroke-width:0&quot;</span>);</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160; </div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    bg::correct(nfppoly);</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    <span class="keyword">auto</span> nfpf = <a class="code" href="namespacelibnfporb.html#a64f59ee99cb348bdf67ee3bd5a78dfbe">convert</a>(nfppoly);</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    mapper.add(nfpf);</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    mapper.map(nfpf, <span class="stringliteral">&quot;fill-opacity:0.5;fill:rgb(0,153,204);stroke:rgb(0,38,50);stroke-width:0.5&quot;</span>);</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160; </div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; r : nfpf.inners()) {</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;        <span class="keywordflow">if</span> (r.size() == 1) {</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;            mapper.add(r.front());</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;            mapper.map(r.front(), <span class="stringliteral">&quot;fill-opacity:0.5;fill:rgb(0,153,204);stroke:rgb(0,38,50);stroke-width:0.5&quot;</span>);</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;        } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (r.size() == 2) {</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;            <a class="code" href="namespacelibnfporb.html#a8cb1a2ce869e041eb5cda62cdab3c9e7">segmentf_t</a> seg(r.front(), *(r.begin() + 1));</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;            mapper.add(seg);</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;            mapper.map(seg, <span class="stringliteral">&quot;fill-opacity:0.5;fill:rgb(0,153,204);stroke:rgb(0,38,50);stroke-width:0.5&quot;</span>);</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;        }</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    }</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;}</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;}</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160; </div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* SRC_SVG_HPP_ */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160; </div>
<div class="ttc" id="ageometry_8hpp_html"><div class="ttname"><a href="geometry_8hpp.html">geometry.hpp</a></div></div>
<div class="ttc" id="anamespacelibnfporb_html"><div class="ttname"><a href="namespacelibnfporb.html">libnfporb</a></div><div class="ttdef"><b>Definition:</b> geometry.hpp:26</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a0631fceada979bd18a3c0216c4cd3685"><div class="ttname"><a href="namespacelibnfporb.html#a0631fceada979bd18a3c0216c4cd3685">libnfporb::polygonf_t</a></div><div class="ttdeci">bg::model::polygon&lt; pointf_t, false, true &gt; polygonf_t</div><div class="ttdef"><b>Definition:</b> geometry.hpp:501</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a131f5699cf1d0abf96967036fe94b7fd"><div class="ttname"><a href="namespacelibnfporb.html#a131f5699cf1d0abf96967036fe94b7fd">libnfporb::pointf_t</a></div><div class="ttdeci">bg::model::d2::point_xy&lt; long double &gt; pointf_t</div><div class="ttdef"><b>Definition:</b> geometry.hpp:499</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a5e145fbf781386b7c6b3c8d41537c887"><div class="ttname"><a href="namespacelibnfporb.html#a5e145fbf781386b7c6b3c8d41537c887">libnfporb::toLongDouble</a></div><div class="ttdeci">long double toLongDouble(const LongDouble &amp;c)</div><div class="ttdef"><b>Definition:</b> geometry.hpp:321</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a64f59ee99cb348bdf67ee3bd5a78dfbe"><div class="ttname"><a href="namespacelibnfporb.html#a64f59ee99cb348bdf67ee3bd5a78dfbe">libnfporb::convert</a></div><div class="ttdeci">polygonf_t::ring_type convert(const polygon_t::ring_type &amp;r)</div><div class="ttdoc">Because the boost svg mapper can't handle our custom types we have to convert polygon_t::ring_type to...</div><div class="ttdef"><b>Definition:</b> svg.hpp:20</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a6669e4dfc06e20a3983fe52e360d38da"><div class="ttname"><a href="namespacelibnfporb.html#a6669e4dfc06e20a3983fe52e360d38da">libnfporb::polygon_t</a></div><div class="ttdeci">bg::model::polygon&lt; point_t, false, true &gt; polygon_t</div><div class="ttdef"><b>Definition:</b> geometry.hpp:493</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a8cb1a2ce869e041eb5cda62cdab3c9e7"><div class="ttname"><a href="namespacelibnfporb.html#a8cb1a2ce869e041eb5cda62cdab3c9e7">libnfporb::segmentf_t</a></div><div class="ttdeci">bg::model::segment&lt; pointf_t &gt; segmentf_t</div><div class="ttdef"><b>Definition:</b> geometry.hpp:500</div></div>
<div class="ttc" id="anamespacelibnfporb_html_ad1b65f43852227f30363ab70884415ab"><div class="ttname"><a href="namespacelibnfporb.html#ad1b65f43852227f30363ab70884415ab">libnfporb::nfp_t</a></div><div class="ttdeci">std::vector&lt; polygon_t::ring_type &gt; nfp_t</div><div class="ttdef"><b>Definition:</b> geometry.hpp:494</div></div>
<div class="ttc" id="anamespacelibnfporb_html_aefa8e61428bb5385bf8a62bb0a17cdd8"><div class="ttname"><a href="namespacelibnfporb.html#aefa8e61428bb5385bf8a62bb0a17cdd8">libnfporb::write_svg</a></div><div class="ttdeci">void write_svg(std::string const &amp;filename, const std::vector&lt; segment_t &gt; &amp;segments)</div><div class="ttdoc">Writes segments to a svg file.</div><div class="ttdef"><b>Definition:</b> svg.hpp:49</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
