<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DFNgen: insertShape.h 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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</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">DFNgen
   &#160;<span id="projectnumber">2.0</span>
   </div>
   <div id="projectbrief">DFN Model Generator</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('insert_shape_8h_source.html','');});
</script>
<div id="doc-content">
<!-- 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 class="header">
  <div class="headertitle">
<div class="title">insertShape.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="insert_shape_8h.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 _insertShape_h_</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define _insertShape_h_</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;random&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="structures_8h.html">structures.h</a>&quot;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &lt;fstream&gt;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="distributions_8h.html">distributions.h</a>&quot;</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="keywordtype">void</span> <a class="code" href="insert_shape_8h.html#af69365c2e0148366aabe6751ffc54a79">insertUserRects</a>(std::vector&lt;Poly&gt; &amp;acceptedPoly, std::vector&lt;IntPoints&gt; &amp;intpts, <span class="keyword">struct</span> <a class="code" href="struct_stats.html">Stats</a> &amp;pstats, std::vector&lt;Point&gt; &amp;triplePoints);</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="keywordtype">void</span> <a class="code" href="insert_shape_8h.html#a9841b356b0460e297748d6648c301558">insertUserEll</a>(std::vector&lt;Poly&gt;&amp; acceptedPoly, std::vector&lt;IntPoints&gt; &amp;intpts,<span class="keyword">struct</span> <a class="code" href="struct_stats.html">Stats</a> &amp;pstats, std::vector&lt;Point&gt; &amp;triplePoints);</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="keywordtype">void</span> <a class="code" href="insert_shape_8h.html#a244f461634679dc91d08da3e183f9b8c">insertUserRectsByCoord</a>(std::vector&lt;Poly&gt;&amp; acceptedPoly, std::vector&lt;IntPoints&gt; &amp;intpts,<span class="keyword">struct</span> <a class="code" href="struct_stats.html">Stats</a> &amp;pstats, std::vector&lt;Point&gt; &amp;triplePoints);</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="keywordtype">void</span> <a class="code" href="insert_shape_8h.html#a49e6b0be012ed44c6ef83ea66ed6dd86">insertUserEllByCoord</a>(std::vector&lt;Poly&gt;&amp; acceptedPoly, std::vector&lt;IntPoints&gt; &amp;intpts, <span class="keyword">struct</span> <a class="code" href="struct_stats.html">Stats</a> &amp;pstats, std::vector&lt;Point&gt; &amp;triplePoints);</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="keyword">struct </span><a class="code" href="struct_poly.html">Poly</a> <a class="code" href="insert_shape_8h.html#a4f91304a14fefba4d4f93f2f3e54dee4">generatePoly</a>(struct <a class="code" href="struct_shape.html">Shape</a> &amp;shapeFam, std::mt19937_64 &amp;generator, <a class="code" href="class_distributions.html">Distributions</a> &amp;distributions, <span class="keywordtype">int</span> familyIndex, <span class="keywordtype">bool</span> useList);</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="keywordtype">void</span> <a class="code" href="insert_shape_8h.html#aed01cfb18a8a6b4ec394783593d5765f">initializeRectVertices</a>(<span class="keyword">struct</span> <a class="code" href="struct_poly.html">Poly</a> &amp;newPoly, <span class="keywordtype">float</span> radius, <span class="keywordtype">float</span> <a class="code" href="struct_poly.html#a38a501ec1855a34b0dbe769bf0319481">aspectRatio</a>);</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="keywordtype">void</span> <a class="code" href="insert_shape_8h.html#a19e9a86f45510bc87d7fe84a11caffcf">assignAperture</a>(<span class="keyword">struct</span> <a class="code" href="struct_poly.html">Poly</a> &amp;newPoly,  std::mt19937_64 &amp;generator);</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="keywordtype">void</span> <a class="code" href="insert_shape_8h.html#ab66dd8460f2f45feae57425d7c219bf5">assignPermeability</a>(<span class="keyword">struct</span> <a class="code" href="struct_poly.html">Poly</a> &amp;newPoly);</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="keywordtype">void</span> <a class="code" href="insert_shape_8h.html#afa95ede56e6ecb8918b61c5a2815d40d">reTranslatePoly</a>(<span class="keyword">struct</span> <a class="code" href="struct_poly.html">Poly</a> &amp;newPoly, <span class="keyword">struct</span> <a class="code" href="struct_shape.html">Shape</a> &amp;shapeFam, std::mt19937_64 &amp;generator);</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="insert_shape_8h.html#a262d50919e2ca1c4e8b32ec027a52b57">p32Complete</a>(<span class="keywordtype">int</span> size);</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="keywordtype">void</span> <a class="code" href="insert_shape_8h.html#a8ed0d23da7ff9cd1f7c4109a4c478071">initializeEllVertices</a>(<span class="keyword">struct</span> <a class="code" href="struct_poly.html">Poly</a> &amp;newPoly, <span class="keywordtype">float</span> radius, <span class="keywordtype">float</span> <a class="code" href="struct_poly.html#a38a501ec1855a34b0dbe769bf0319481">aspectRatio</a>, <span class="keywordtype">float</span> *thetaList, <span class="keywordtype">int</span> numPoints);</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keywordtype">void</span> <a class="code" href="insert_shape_8h.html#ae9670e906ee5dc43ce3fbc0ce7290dc7">printRejectReason</a>(<span class="keywordtype">int</span> rejectCode, <span class="keyword">struct</span> <a class="code" href="struct_poly.html">Poly</a> newPoly);</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keywordtype">int</span> <a class="code" href="insert_shape_8h.html#ab6f3546e27a00cb14ce3c9ccf09f1f65">getFamilyNumber</a>(<span class="keywordtype">int</span> familyIndex, <span class="keywordtype">int</span> family);</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;std::string <a class="code" href="insert_shape_8h.html#ae4fa66ac2a60ae519ee05168b44c9917">shapeType</a>(<span class="keyword">struct</span> <a class="code" href="struct_shape.html">Shape</a> &amp;shapeFam);</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keywordtype">double</span> <a class="code" href="insert_shape_8h.html#aa49097ed959c129cc9c8d11c6053ec71">getLargestFractureRadius</a>(<a class="code" href="struct_shape.html">Shape</a> &amp;shapeFam);</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">struct </span><a class="code" href="struct_poly.html">Poly</a> <a class="code" href="insert_shape_8h.html#a4a4d307b0a091a6159358f312371ae95">generatePoly_withRadius</a>(double radius,struct <a class="code" href="struct_shape.html">Shape</a> &amp;shapeFam, std::mt19937_64 &amp;generator, <a class="code" href="class_distributions.html">Distributions</a> &amp;distributions, <span class="keywordtype">int</span> familyIndex);</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;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="ttc" id="insert_shape_8h_html_aed01cfb18a8a6b4ec394783593d5765f"><div class="ttname"><a href="insert_shape_8h.html#aed01cfb18a8a6b4ec394783593d5765f">initializeRectVertices</a></div><div class="ttdeci">void initializeRectVertices(struct Poly &amp;newPoly, float radius, float aspectRatio)</div><div class="ttdef"><b>Definition:</b> <a href="insert_shape_8cpp_source.html#l00403">insertShape.cpp:403</a></div></div>
<div class="ttc" id="insert_shape_8h_html_a262d50919e2ca1c4e8b32ec027a52b57"><div class="ttname"><a href="insert_shape_8h.html#a262d50919e2ca1c4e8b32ec027a52b57">p32Complete</a></div><div class="ttdeci">bool p32Complete(int size)</div><div class="ttdef"><b>Definition:</b> <a href="insert_shape_8cpp_source.html#l00598">insertShape.cpp:598</a></div></div>
<div class="ttc" id="distributions_8h_html"><div class="ttname"><a href="distributions_8h.html">distributions.h</a></div></div>
<div class="ttc" id="insert_shape_8h_html_a244f461634679dc91d08da3e183f9b8c"><div class="ttname"><a href="insert_shape_8h.html#a244f461634679dc91d08da3e183f9b8c">insertUserRectsByCoord</a></div><div class="ttdeci">void insertUserRectsByCoord(std::vector&lt; Poly &gt; &amp;acceptedPoly, std::vector&lt; IntPoints &gt; &amp;intpts, struct Stats &amp;pstats, std::vector&lt; Point &gt; &amp;triplePoints)</div><div class="ttdef"><b>Definition:</b> <a href="insert_user_rects_by_coord_8cpp_source.html#l00021">insertUserRectsByCoord.cpp:21</a></div></div>
<div class="ttc" id="struct_poly_html"><div class="ttname"><a href="struct_poly.html">Poly</a></div><div class="ttdef"><b>Definition:</b> <a href="structures_8h_source.html#l00012">structures.h:12</a></div></div>
<div class="ttc" id="insert_shape_8h_html_afa95ede56e6ecb8918b61c5a2815d40d"><div class="ttname"><a href="insert_shape_8h.html#afa95ede56e6ecb8918b61c5a2815d40d">reTranslatePoly</a></div><div class="ttdeci">void reTranslatePoly(struct Poly &amp;newPoly, struct Shape &amp;shapeFam, std::mt19937_64 &amp;generator)</div><div class="ttdef"><b>Definition:</b> <a href="insert_shape_8cpp_source.html#l00455">insertShape.cpp:455</a></div></div>
<div class="ttc" id="structures_8h_html"><div class="ttname"><a href="structures_8h.html">structures.h</a></div></div>
<div class="ttc" id="insert_shape_8h_html_a19e9a86f45510bc87d7fe84a11caffcf"><div class="ttname"><a href="insert_shape_8h.html#a19e9a86f45510bc87d7fe84a11caffcf">assignAperture</a></div><div class="ttdeci">void assignAperture(struct Poly &amp;newPoly, std::mt19937_64 &amp;generator)</div><div class="ttdef"><b>Definition:</b> <a href="insert_shape_8cpp_source.html#l00330">insertShape.cpp:330</a></div></div>
<div class="ttc" id="insert_shape_8h_html_a49e6b0be012ed44c6ef83ea66ed6dd86"><div class="ttname"><a href="insert_shape_8h.html#a49e6b0be012ed44c6ef83ea66ed6dd86">insertUserEllByCoord</a></div><div class="ttdeci">void insertUserEllByCoord(std::vector&lt; Poly &gt; &amp;acceptedPoly, std::vector&lt; IntPoints &gt; &amp;intpts, struct Stats &amp;pstats, std::vector&lt; Point &gt; &amp;triplePoints)</div><div class="ttdef"><b>Definition:</b> <a href="insert_user_ell_by_coord_8cpp_source.html#l00021">insertUserEllByCoord.cpp:21</a></div></div>
<div class="ttc" id="struct_poly_html_a38a501ec1855a34b0dbe769bf0319481"><div class="ttname"><a href="struct_poly.html#a38a501ec1855a34b0dbe769bf0319481">Poly::aspectRatio</a></div><div class="ttdeci">float aspectRatio</div><div class="ttdef"><b>Definition:</b> <a href="structures_8h_source.html#l00049">structures.h:49</a></div></div>
<div class="ttc" id="insert_shape_8h_html_af69365c2e0148366aabe6751ffc54a79"><div class="ttname"><a href="insert_shape_8h.html#af69365c2e0148366aabe6751ffc54a79">insertUserRects</a></div><div class="ttdeci">void insertUserRects(std::vector&lt; Poly &gt; &amp;acceptedPoly, std::vector&lt; IntPoints &gt; &amp;intpts, struct Stats &amp;pstats, std::vector&lt; Point &gt; &amp;triplePoints)</div><div class="ttdef"><b>Definition:</b> <a href="insert_user_rects_8cpp_source.html#l00022">insertUserRects.cpp:22</a></div></div>
<div class="ttc" id="insert_shape_8h_html_a4a4d307b0a091a6159358f312371ae95"><div class="ttname"><a href="insert_shape_8h.html#a4a4d307b0a091a6159358f312371ae95">generatePoly_withRadius</a></div><div class="ttdeci">struct Poly generatePoly_withRadius(double radius, struct Shape &amp;shapeFam, std::mt19937_64 &amp;generator, Distributions &amp;distributions, int familyIndex)</div><div class="ttdef"><b>Definition:</b> <a href="insert_shape_8cpp_source.html#l00221">insertShape.cpp:221</a></div></div>
<div class="ttc" id="insert_shape_8h_html_ab6f3546e27a00cb14ce3c9ccf09f1f65"><div class="ttname"><a href="insert_shape_8h.html#ab6f3546e27a00cb14ce3c9ccf09f1f65">getFamilyNumber</a></div><div class="ttdeci">int getFamilyNumber(int familyIndex, int family)</div><div class="ttdef"><b>Definition:</b> <a href="insert_shape_8cpp_source.html#l00688">insertShape.cpp:688</a></div></div>
<div class="ttc" id="insert_shape_8h_html_a9841b356b0460e297748d6648c301558"><div class="ttname"><a href="insert_shape_8h.html#a9841b356b0460e297748d6648c301558">insertUserEll</a></div><div class="ttdeci">void insertUserEll(std::vector&lt; Poly &gt; &amp;acceptedPoly, std::vector&lt; IntPoints &gt; &amp;intpts, struct Stats &amp;pstats, std::vector&lt; Point &gt; &amp;triplePoints)</div><div class="ttdef"><b>Definition:</b> <a href="insert_user_ell_8cpp_source.html#l00021">insertUserEll.cpp:21</a></div></div>
<div class="ttc" id="insert_shape_8h_html_a4f91304a14fefba4d4f93f2f3e54dee4"><div class="ttname"><a href="insert_shape_8h.html#a4f91304a14fefba4d4f93f2f3e54dee4">generatePoly</a></div><div class="ttdeci">struct Poly generatePoly(struct Shape &amp;shapeFam, std::mt19937_64 &amp;generator, Distributions &amp;distributions, int familyIndex, bool useList)</div><div class="ttdef"><b>Definition:</b> <a href="insert_shape_8cpp_source.html#l00026">insertShape.cpp:26</a></div></div>
<div class="ttc" id="insert_shape_8h_html_ae4fa66ac2a60ae519ee05168b44c9917"><div class="ttname"><a href="insert_shape_8h.html#ae4fa66ac2a60ae519ee05168b44c9917">shapeType</a></div><div class="ttdeci">std::string shapeType(struct Shape &amp;shapeFam)</div><div class="ttdef"><b>Definition:</b> <a href="insert_shape_8cpp_source.html#l00700">insertShape.cpp:700</a></div></div>
<div class="ttc" id="struct_stats_html"><div class="ttname"><a href="struct_stats.html">Stats</a></div><div class="ttdef"><b>Definition:</b> <a href="structures_8h_source.html#l00277">structures.h:277</a></div></div>
<div class="ttc" id="class_distributions_html"><div class="ttname"><a href="class_distributions.html">Distributions</a></div><div class="ttdef"><b>Definition:</b> <a href="distributions_8h_source.html#l00015">distributions.h:15</a></div></div>
<div class="ttc" id="insert_shape_8h_html_a8ed0d23da7ff9cd1f7c4109a4c478071"><div class="ttname"><a href="insert_shape_8h.html#a8ed0d23da7ff9cd1f7c4109a4c478071">initializeEllVertices</a></div><div class="ttdeci">void initializeEllVertices(struct Poly &amp;newPoly, float radius, float aspectRatio, float *thetaList, int numPoints)</div><div class="ttdef"><b>Definition:</b> <a href="insert_shape_8cpp_source.html#l00432">insertShape.cpp:432</a></div></div>
<div class="ttc" id="struct_shape_html"><div class="ttname"><a href="struct_shape.html">Shape</a></div><div class="ttdef"><b>Definition:</b> <a href="structures_8h_source.html#l00390">structures.h:390</a></div></div>
<div class="ttc" id="insert_shape_8h_html_ae9670e906ee5dc43ce3fbc0ce7290dc7"><div class="ttname"><a href="insert_shape_8h.html#ae9670e906ee5dc43ce3fbc0ce7290dc7">printRejectReason</a></div><div class="ttdeci">void printRejectReason(int rejectCode, struct Poly newPoly)</div><div class="ttdef"><b>Definition:</b> <a href="insert_shape_8cpp_source.html#l00617">insertShape.cpp:617</a></div></div>
<div class="ttc" id="insert_shape_8h_html_ab66dd8460f2f45feae57425d7c219bf5"><div class="ttname"><a href="insert_shape_8h.html#ab66dd8460f2f45feae57425d7c219bf5">assignPermeability</a></div><div class="ttdeci">void assignPermeability(struct Poly &amp;newPoly)</div><div class="ttdef"><b>Definition:</b> <a href="insert_shape_8cpp_source.html#l00380">insertShape.cpp:380</a></div></div>
<div class="ttc" id="insert_shape_8h_html_aa49097ed959c129cc9c8d11c6053ec71"><div class="ttname"><a href="insert_shape_8h.html#aa49097ed959c129cc9c8d11c6053ec71">getLargestFractureRadius</a></div><div class="ttdeci">double getLargestFractureRadius(Shape &amp;shapeFam)</div><div class="ttdef"><b>Definition:</b> <a href="insert_shape_8cpp_source.html#l00717">insertShape.cpp:717</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="insert_shape_8h.html">insertShape.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.12 </li>
  </ul>
</div>
</body>
</html>
