<!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: insertUserEll.cpp File Reference</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_user_ell_8cpp.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="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">insertUserEll.cpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;cmath&gt;</code><br />
<code>#include &lt;iostream&gt;</code><br />
<code>#include &quot;<a class="el" href="insert_shape_8h_source.html">insertShape.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="vector_functions_8h_source.html">vectorFunctions.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="math_functions_8h_source.html">mathFunctions.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="computational_geometry_8h_source.html">computationalGeometry.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="input_8h_source.html">input.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="generating_points_8h_source.html">generatingPoints.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="domain_8h_source.html">domain.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="testing_8h_source.html">testing.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for insertUserEll.cpp:</div>
<div class="dyncontent">
<div class="center"><img src="insert_user_ell_8cpp__incl.png" border="0" usemap="#insert_user_ell_8cpp" alt=""/></div>
<map name="insert_user_ell_8cpp" id="insert_user_ell_8cpp">
<area shape="rect" id="node4" href="insert_shape_8h.html" title="insertShape.h" alt="" coords="775,80,879,107"/>
<area shape="rect" id="node12" href="vector_functions_8h.html" title="vectorFunctions.h" alt="" coords="193,80,319,107"/>
<area shape="rect" id="node13" href="input_8h.html" title="input.h" alt="" coords="123,155,185,181"/>
<area shape="rect" id="node14" href="math_functions_8h.html" title="mathFunctions.h" alt="" coords="543,80,663,107"/>
<area shape="rect" id="node15" href="computational_geometry_8h.html" title="computationalGeometry.h" alt="" coords="462,155,636,181"/>
<area shape="rect" id="node16" href="generating_points_8h.html" title="generatingPoints.h" alt="" coords="932,80,1065,107"/>
<area shape="rect" id="node17" href="domain_8h.html" title="domain.h" alt="" coords="661,155,739,181"/>
<area shape="rect" id="node18" href="testing_8h.html" title="testing.h" alt="" coords="1089,80,1161,107"/>
<area shape="rect" id="node7" href="structures_8h.html" title="structures.h" alt="" coords="718,229,809,256"/>
<area shape="rect" id="node10" href="distributions_8h.html" title="distributions.h" alt="" coords="1067,155,1171,181"/>
<area shape="rect" id="node11" href="exp_dist_8h.html" title="expDist.h" alt="" coords="1067,229,1144,256"/>
</map>
</div>
</div>
<p><a href="insert_user_ell_8cpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a9841b356b0460e297748d6648c301558"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558">insertUserEll</a> (std::vector&lt; <a class="el" href="struct_poly.html">Poly</a> &gt; &amp;acceptedPoly, std::vector&lt; <a class="el" href="struct_int_points.html">IntPoints</a> &gt; &amp;intpts, struct <a class="el" href="struct_stats.html">Stats</a> &amp;pstats, std::vector&lt; <a class="el" href="struct_point.html">Point</a> &gt; &amp;triplePoints)</td></tr>
<tr class="separator:a9841b356b0460e297748d6648c301558"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="a9841b356b0460e297748d6648c301558"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9841b356b0460e297748d6648c301558">&sect;&nbsp;</a></span>insertUserEll()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void insertUserEll </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; <a class="el" href="struct_poly.html">Poly</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>acceptedPoly</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="struct_int_points.html">IntPoints</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>intpts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="struct_stats.html">Stats</a> &amp;&#160;</td>
          <td class="paramname"><em>pstats</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="struct_point.html">Point</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>triplePoints</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Inserts a user defined ellipse into the domain. Intersection checking, FRAM, and rejection/accptance are all called within this function. Arg 1: Array for all accepted polygons Arg 2: Array for all accepted intersections Arg 3: Program statistics structure Arg 4: Array of all triple intersection points </p>

<p>Definition at line <a class="el" href="insert_user_ell_8cpp_source.html#l00021">21</a> of file <a class="el" href="insert_user_ell_8cpp_source.html">insertUserEll.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="insert_user_ell_8cpp_a9841b356b0460e297748d6648c301558_cgraph.png" border="0" usemap="#insert_user_ell_8cpp_a9841b356b0460e297748d6648c301558_cgraph" alt=""/></div>
<map name="insert_user_ell_8cpp_a9841b356b0460e297748d6648c301558_cgraph" id="insert_user_ell_8cpp_a9841b356b0460e297748d6648c301558_cgraph">
<area shape="rect" id="node2" href="generating_points_8cpp.html#a15a7dfd1320eb3c7c3cc2c53ed4ba2c1" title="generateTheta" alt="" coords="171,5,280,32"/>
<area shape="rect" id="node3" href="insert_shape_8cpp.html#a8ed0d23da7ff9cd1f7c4109a4c478071" title="initializeEllVertices" alt="" coords="159,56,291,83"/>
<area shape="rect" id="node4" href="computational_geometry_8cpp.html#a878eeb1b4990cde9d7d12a64f647af4d" title="applyRotation2D" alt="" coords="165,107,285,133"/>
<area shape="rect" id="node5" href="vector_functions_8h.html#a48bb00fc4195377b229efe044f3bb67e" title="normalize" alt="" coords="1231,284,1311,311"/>
<area shape="rect" id="node6" href="computational_geometry_8cpp.html#af7f1ba8a57908229078780a2695e4e46" title="applyRotation3D" alt="" coords="165,157,285,184"/>
<area shape="rect" id="node10" href="computational_geometry_8cpp.html#a3098cccf29c7a47d2eae661b0f545224" title="translate" alt="" coords="189,536,262,563"/>
<area shape="rect" id="node11" href="domain_8cpp.html#aed3d77c17f33d2024704b479d0885332" title="domainTruncation" alt="" coords="1206,487,1335,513"/>
<area shape="rect" id="node13" href="computational_geometry_8cpp.html#ace23b489a120bc6d6407f7e08e1e009d" title="createBoundingBox" alt="" coords="156,587,295,613"/>
<area shape="rect" id="node14" href="computational_geometry_8cpp.html#a38a8c322dba7d8518a4c3206cd55a5f6" title="intersectionChecking" alt="" coords="153,485,298,512"/>
<area shape="rect" id="node41" href="math_functions_8cpp.html#a78276693aa55fab858a41366e5b4aa73" title="getArea" alt="" coords="380,335,449,361"/>
<area shape="rect" id="node42" href="insert_shape_8cpp.html#ae9670e906ee5dc43ce3fbc0ce7290dc7" title="printRejectReason" alt="" coords="159,637,291,664"/>
<area shape="rect" id="node7" href="vector_functions_8h.html#a94303b1c8dd36d71e57fd0e4d5d26ae3" title="crossProduct" alt="" coords="579,132,679,159"/>
<area shape="rect" id="node8" href="computational_geometry_8cpp.html#a8aaea6ef9d977f6d7d571d45ace1ad5d" title="rotationMatrix" alt="" coords="363,107,466,133"/>
<area shape="rect" id="node9" href="vector_functions_8h.html#abb1d4beb5939c7a5ddd4978c15fab7bb" title="dotProduct" alt="" coords="1393,385,1479,412"/>
<area shape="rect" id="node12" href="vector_functions_8h.html#a92da2058f3ed2a6db16d2fe0e445794a" title="magnitude" alt="" coords="1394,791,1478,817"/>
<area shape="rect" id="node15" href="computational_geometry_8cpp.html#a4016983189eb7ed8e227b49477018d8a" title="checkBoundingBox" alt="" coords="347,612,483,639"/>
<area shape="rect" id="node16" href="computational_geometry_8cpp.html#acc7b1a87dc0b49ffcb9898dae4cc4e96" title="findIntersections" alt="" coords="355,409,474,436"/>
<area shape="rect" id="node21" href="computational_geometry_8cpp.html#a7770747ef4153bfb4ae5d53dce0d5876" title="FRAM" alt="" coords="385,561,445,588"/>
<area shape="rect" id="node38" href="cluster_groups_8cpp.html#a379930b3782e888c9ccdf5a8106b3434" title="assignGroup" alt="" coords="366,720,463,747"/>
<area shape="rect" id="node40" href="cluster_groups_8cpp.html#aa67c48c94718510ec7bd5590f09d090c" title="updateGroups" alt="" coords="361,885,468,912"/>
<area shape="rect" id="node17" href="math_functions_8cpp.html#a144421162e6b2cc91b275cf0c41488da" title="sumDevAry3" alt="" coords="580,359,679,385"/>
<area shape="rect" id="node19" href="math_functions_8cpp.html#a31921fcb145e36a988b2fca62c737815" title="maxElmtIdx" alt="" coords="583,460,675,487"/>
<area shape="rect" id="node20" href="math_functions_8cpp.html#a50249713d75d2446b44572f47cc0c560" title="sortedIndex" alt="" coords="583,409,675,436"/>
<area shape="rect" id="node18" href="math_functions_8cpp.html#a98cde7148e906b892afae204d7bdc6b1" title="sumDeviation" alt="" coords="814,359,917,385"/>
<area shape="rect" id="node22" href="computational_geometry_8cpp.html#adf34efb0050985566dfb41f51967680f" title="checkCloseEdge" alt="" coords="568,689,691,716"/>
<area shape="rect" id="node34" href="computational_geometry_8cpp.html#a237899188f8ca6cf74a2da890cd13868" title="checkForTripleIntersections" alt="" coords="537,511,722,537"/>
<area shape="rect" id="node36" href="computational_geometry_8cpp.html#ac1228db3b0fb85b1a5233b1fb78edd4a" title="checkDistToOldIntersections" alt="" coords="533,561,725,588"/>
<area shape="rect" id="node37" href="computational_geometry_8cpp.html#abdfd17162db7fd7ad2e4719255fa915f" title="checkDistToNewIntersections" alt="" coords="531,612,728,639"/>
<area shape="rect" id="node23" href="computational_geometry_8cpp.html#a5e3e0a14f3ad58c314ce2e6a29b03fa2" title="pointToLineSeg" alt="" coords="1213,588,1329,615"/>
<area shape="rect" id="node26" href="computational_geometry_8cpp.html#a5edbf5558b99624dfb90275aa07ba149" title="lineSegToLineSeg" alt="" coords="800,561,931,588"/>
<area shape="rect" id="node31" href="computational_geometry_8cpp.html#a69f93a65c39c49d1b705fad32f790e98" title="shrinkIntersection" alt="" coords="1017,791,1143,817"/>
<area shape="rect" id="node33" href="computational_geometry_8cpp.html#a95b1277bb056c0817776be85b254c987" title="checkDistanceFromNodes" alt="" coords="776,689,955,716"/>
<area shape="rect" id="node24" href="vector_functions_8h.html#ad5177d4868472616bd9fac80a8b65f78" title="sqrMagnitude" alt="" coords="1385,563,1487,589"/>
<area shape="rect" id="node25" href="vector_functions_8cpp.html#a3c2b95a1658779bf4d2b104fa9513e75" title="projection" alt="" coords="1396,613,1476,640"/>
<area shape="rect" id="node27" href="vector_functions_8h.html#a7038a32284147d86abda1f0b54b83a4e" title="parallel" alt="" coords="1047,335,1113,361"/>
<area shape="rect" id="node28" href="computational_geometry_8cpp.html#ab5f3ce14eaf1560295c9ec71514c340c" title="pointOnLineSeg" alt="" coords="1021,588,1139,615"/>
<area shape="rect" id="node29" href="computational_geometry_8cpp.html#a545f45434dcbd126c6ff994b9ec2588b" title="lineSegToLineSegSep" alt="" coords="1003,537,1157,564"/>
<area shape="rect" id="node30" href="computational_geometry_8cpp.html#a9eb32a7555c136fb7960f9f13db70004" title="lineIntersection3D" alt="" coords="1015,385,1145,412"/>
<area shape="rect" id="node32" href="generating_points_8cpp.html#a1765372f6dbad65b4d7cac36d830bdfe" title="lineFunction3D" alt="" coords="1215,740,1326,767"/>
<area shape="rect" id="node35" href="vector_functions_8cpp.html#af04ebdcbe44a303101290e88a5971c71" title="euclideanDistance" alt="" coords="800,511,931,537"/>
<area shape="rect" id="node39" href="math_functions_8h.html#aaf4979ac027751a7358291353a23b387" title="OR" alt="" coords="608,943,651,969"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="insert_user_ell_8cpp_a9841b356b0460e297748d6648c301558_icgraph.png" border="0" usemap="#insert_user_ell_8cpp_a9841b356b0460e297748d6648c301558_icgraph" alt=""/></div>
<map name="insert_user_ell_8cpp_a9841b356b0460e297748d6648c301558_icgraph" id="insert_user_ell_8cpp_a9841b356b0460e297748d6648c301558_icgraph">
<area shape="rect" id="node2" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="152,5,203,32"/>
</map>
</div>

</div>
</div>
</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_user_ell_8cpp.html">insertUserEll.cpp</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>
