Files
intelliphoto/docs-src/html/namespace_intelli_helper.html
2020-02-07 16:37:20 +01:00

327 lines
16 KiB
HTML

<!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.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>IntelliPhoto: IntelliHelper Namespace 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">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</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">IntelliPhoto
&#160;<span id="projectnumber">0.5</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<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');
/* @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>
</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">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('namespace_intelli_helper.html','');});
/* @license-end */
</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">IntelliHelper Namespace Reference</div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:afdd9fe78cc5d21b59642910220768149"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_intelli_helper.html#afdd9fe78cc5d21b59642910220768149">sign</a> (QPoint &amp;p1, QPoint &amp;p2, QPoint &amp;p3)</td></tr>
<tr class="memdesc:afdd9fe78cc5d21b59642910220768149"><td class="mdescLeft">&#160;</td><td class="mdescRight">A function to get the 2*area of a traingle, using its determinat. <a href="namespace_intelli_helper.html#afdd9fe78cc5d21b59642910220768149">More...</a><br /></td></tr>
<tr class="separator:afdd9fe78cc5d21b59642910220768149"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9fcfe72f00e870be4a8ab9f2e17483c9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_intelli_helper.html#a9fcfe72f00e870be4a8ab9f2e17483c9">isInTriangle</a> (<a class="el" href="struct_triangle.html">Triangle</a> &amp;tri, QPoint &amp;P)</td></tr>
<tr class="memdesc:a9fcfe72f00e870be4a8ab9f2e17483c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">A function to check if a given point is in a triangle. <a href="namespace_intelli_helper.html#a9fcfe72f00e870be4a8ab9f2e17483c9">More...</a><br /></td></tr>
<tr class="separator:a9fcfe72f00e870be4a8ab9f2e17483c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a214dc3624ba4562a03dc922e3dd7b617"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="struct_triangle.html">Triangle</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_intelli_helper.html#a214dc3624ba4562a03dc922e3dd7b617">calculateTriangles</a> (std::vector&lt; QPoint &gt; polyPoints)</td></tr>
<tr class="memdesc:a214dc3624ba4562a03dc922e3dd7b617"><td class="mdescLeft">&#160;</td><td class="mdescRight">A function to split a polygon in its spanning traingles by using Meisters Theorem of graph theory by clipping ears of a planar graph. <a href="namespace_intelli_helper.html#a214dc3624ba4562a03dc922e3dd7b617">More...</a><br /></td></tr>
<tr class="separator:a214dc3624ba4562a03dc922e3dd7b617"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a44d516b3e619e2a743e9c98dd75cf901"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_intelli_helper.html#a44d516b3e619e2a743e9c98dd75cf901">isInPolygon</a> (std::vector&lt; <a class="el" href="struct_triangle.html">Triangle</a> &gt; &amp;triangles, QPoint &amp;point)</td></tr>
<tr class="memdesc:a44d516b3e619e2a743e9c98dd75cf901"><td class="mdescLeft">&#160;</td><td class="mdescRight">A function to check if a point lies in a polygon by checking its spanning triangles. <a href="namespace_intelli_helper.html#a44d516b3e619e2a743e9c98dd75cf901">More...</a><br /></td></tr>
<tr class="separator:a44d516b3e619e2a743e9c98dd75cf901"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="a214dc3624ba4562a03dc922e3dd7b617"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a214dc3624ba4562a03dc922e3dd7b617">&#9670;&nbsp;</a></span>calculateTriangles()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::vector&lt; <a class="el" href="struct_triangle.html">Triangle</a> &gt; IntelliHelper::calculateTriangles </td>
<td>(</td>
<td class="paramtype">std::vector&lt; QPoint &gt;&#160;</td>
<td class="paramname"><em>polyPoints</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>A function to split a polygon in its spanning traingles by using Meisters Theorem of graph theory by clipping ears of a planar graph. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">polyPoints</td><td>- The Vertices of the polygon. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns a Container of disjoint Triangles, which desribe the polygon area. </dd></dl>
<p class="definition">Definition at line <a class="el" href="_intelli_helper_8cpp_source.html#l00007">7</a> of file <a class="el" href="_intelli_helper_8cpp_source.html">IntelliHelper.cpp</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="namespace_intelli_helper_a214dc3624ba4562a03dc922e3dd7b617_icgraph.png" border="0" usemap="#namespace_intelli_helper_a214dc3624ba4562a03dc922e3dd7b617_icgraph" alt=""/></div>
</div>
</div>
</div>
<a id="a44d516b3e619e2a743e9c98dd75cf901"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a44d516b3e619e2a743e9c98dd75cf901">&#9670;&nbsp;</a></span>isInPolygon()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool IntelliHelper::isInPolygon </td>
<td>(</td>
<td class="paramtype">std::vector&lt; <a class="el" href="struct_triangle.html">Triangle</a> &gt; &amp;&#160;</td>
<td class="paramname"><em>triangles</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">QPoint &amp;&#160;</td>
<td class="paramname"><em>point</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>A function to check if a point lies in a polygon by checking its spanning triangles. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">triangles</td><td>- The spanning triangles of the planar polygon. </td></tr>
<tr><td class="paramname">point</td><td>- The point to checl, if it lies in the polygon. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns true if the point lies in the üpolygon, otherwise false. </dd></dl>
<p class="definition">Definition at line <a class="el" href="_intelli_helper_8cpp_source.html#l00116">116</a> of file <a class="el" href="_intelli_helper_8cpp_source.html">IntelliHelper.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="namespace_intelli_helper_a44d516b3e619e2a743e9c98dd75cf901_cgraph.png" border="0" usemap="#namespace_intelli_helper_a44d516b3e619e2a743e9c98dd75cf901_cgraph" alt=""/></div>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="namespace_intelli_helper_a44d516b3e619e2a743e9c98dd75cf901_icgraph.png" border="0" usemap="#namespace_intelli_helper_a44d516b3e619e2a743e9c98dd75cf901_icgraph" alt=""/></div>
</div>
</div>
</div>
<a id="a9fcfe72f00e870be4a8ab9f2e17483c9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9fcfe72f00e870be4a8ab9f2e17483c9">&#9670;&nbsp;</a></span>isInTriangle()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool IntelliHelper::isInTriangle </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_triangle.html">Triangle</a> &amp;&#160;</td>
<td class="paramname"><em>tri</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">QPoint &amp;&#160;</td>
<td class="paramname"><em>P</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>A function to check if a given point is in a triangle. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">tri</td><td>- The triangle to check, if it contains the point. </td></tr>
<tr><td class="paramname">P</td><td>- The point to check if it is in the triangle. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns true if the point is in the triangle, false otheriwse </dd></dl>
<p class="definition">Definition at line <a class="el" href="_intelli_helper_8h_source.html#l00033">33</a> of file <a class="el" href="_intelli_helper_8h_source.html">IntelliHelper.h</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="namespace_intelli_helper_a9fcfe72f00e870be4a8ab9f2e17483c9_cgraph.png" border="0" usemap="#namespace_intelli_helper_a9fcfe72f00e870be4a8ab9f2e17483c9_cgraph" alt=""/></div>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="namespace_intelli_helper_a9fcfe72f00e870be4a8ab9f2e17483c9_icgraph.png" border="0" usemap="#namespace_intelli_helper_a9fcfe72f00e870be4a8ab9f2e17483c9_icgraph" alt=""/></div>
</div>
</div>
</div>
<a id="afdd9fe78cc5d21b59642910220768149"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afdd9fe78cc5d21b59642910220768149">&#9670;&nbsp;</a></span>sign()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">float IntelliHelper::sign </td>
<td>(</td>
<td class="paramtype">QPoint &amp;&#160;</td>
<td class="paramname"><em>p1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">QPoint &amp;&#160;</td>
<td class="paramname"><em>p2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">QPoint &amp;&#160;</td>
<td class="paramname"><em>p3</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>A function to get the 2*area of a traingle, using its determinat. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">p1</td><td>- The Point to check its side. </td></tr>
<tr><td class="paramname">p2</td><td>- The first Point of the spanning Line </td></tr>
<tr><td class="paramname">p3</td><td>- The second Point of the spanning line. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns the area of the traingle*2 </dd></dl>
<p class="definition">Definition at line <a class="el" href="_intelli_helper_8h_source.html#l00023">23</a> of file <a class="el" href="_intelli_helper_8h_source.html">IntelliHelper.h</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="namespace_intelli_helper_afdd9fe78cc5d21b59642910220768149_icgraph.png" border="0" usemap="#namespace_intelli_helper_afdd9fe78cc5d21b59642910220768149_icgraph" alt=""/></div>
</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="namespace_intelli_helper.html">IntelliHelper</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.16 </li>
</ul>
</div>
</body>
</html>