<!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>Engauge Digitizer: Geometry/GeometryStrategyFunctionSmooth.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="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">Engauge Digitizer  <span id="projectnumber">2</span> </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> <!-- 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_eccc925508204c58f9de69585b548932.html">Geometry</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">GeometryStrategyFunctionSmooth.h</div> </div> </div><!--header--> <div class="contents"> <div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/******************************************************************************************************</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * (C) 2016 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> ******************************************************************************************************/</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> </div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#ifndef GEOMETRY_STRATEGY_FUNCTION_SMOOTH_H</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#define GEOMETRY_STRATEGY_FUNCTION_SMOOTH_H</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> </div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include "GeometryStrategyAbstractBase.h"</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include <QVector></span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="keyword">class </span><a class="code" href="classTransformation.html">Transformation</a>;</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div><div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="classGeometryStrategyFunctionSmooth.html"> 16</a></span> <span class="keyword">class </span><a class="code" href="classGeometryStrategyFunctionSmooth.html">GeometryStrategyFunctionSmooth</a> : <span class="keyword">public</span> <a class="code" href="classGeometryStrategyAbstractBase.html">GeometryStrategyAbstractBase</a></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> {</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <a class="code" href="classGeometryStrategyFunctionSmooth.html#ad8c0065fc034cd4b5ccb0ce142217dcd">GeometryStrategyFunctionSmooth</a>();</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <span class="keyword">virtual</span> ~<a class="code" href="classGeometryStrategyFunctionSmooth.html">GeometryStrategyFunctionSmooth</a> ();</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classGeometryStrategyFunctionSmooth.html#a876884e48a9e4d9d23413439b643f0ac">calculateGeometry</a> (<span class="keyword">const</span> Points &points,</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <span class="keyword">const</span> <a class="code" href="classDocumentModelCoords.html">DocumentModelCoords</a> &modelCoords,</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <span class="keyword">const</span> <a class="code" href="classDocumentModelGeneral.html">DocumentModelGeneral</a> &modelGeneral,</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="keyword">const</span> <a class="code" href="classMainWindowModel.html">MainWindowModel</a> &modelMainWindow,</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keyword">const</span> <a class="code" href="classTransformation.html">Transformation</a> &transformation,</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  QString &funcArea,</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  QString &polyArea,</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  QVector<QString> &x,</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  QVector<QString> &y,</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  QVector<QString> &distanceGraphForward,</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  QVector<QString> &distancePercentForward,</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  QVector<QString> &distanceGraphBackward,</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  QVector<QString> &distancePercentBackward) <span class="keyword">const</span>;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> };</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor">#endif // GEOMETRY_STRATEGY_FUNCTION_SMOOTH_H</span></div><div class="ttc" id="classDocumentModelGeneral_html"><div class="ttname"><a href="classDocumentModelGeneral.html">DocumentModelGeneral</a></div><div class="ttdoc">Model for DlgSettingsGeneral and CmdSettingsGeneral. </div><div class="ttdef"><b>Definition:</b> <a href="DocumentModelGeneral_8h_source.html#l00016">DocumentModelGeneral.h:16</a></div></div> <div class="ttc" id="classGeometryStrategyFunctionSmooth_html"><div class="ttname"><a href="classGeometryStrategyFunctionSmooth.html">GeometryStrategyFunctionSmooth</a></div><div class="ttdoc">Calculate for line through the points that is smoothly connected as a function. </div><div class="ttdef"><b>Definition:</b> <a href="GeometryStrategyFunctionSmooth_8h_source.html#l00016">GeometryStrategyFunctionSmooth.h:16</a></div></div> <div class="ttc" id="classGeometryStrategyAbstractBase_html"><div class="ttname"><a href="classGeometryStrategyAbstractBase.html">GeometryStrategyAbstractBase</a></div><div class="ttdoc">Base class for all geometry strategies. </div><div class="ttdef"><b>Definition:</b> <a href="GeometryStrategyAbstractBase_8h_source.html#l00023">GeometryStrategyAbstractBase.h:23</a></div></div> <div class="ttc" id="classTransformation_html"><div class="ttname"><a href="classTransformation.html">Transformation</a></div><div class="ttdoc">Affine transformation between screen and graph coordinates, based on digitized axis points...</div><div class="ttdef"><b>Definition:</b> <a href="Transformation_8h_source.html#l00031">Transformation.h:31</a></div></div> <div class="ttc" id="classMainWindowModel_html"><div class="ttname"><a href="classMainWindowModel.html">MainWindowModel</a></div><div class="ttdoc">Model for DlgSettingsMainWindow. </div><div class="ttdef"><b>Definition:</b> <a href="MainWindowModel_8h_source.html#l00027">MainWindowModel.h:27</a></div></div> <div class="ttc" id="classDocumentModelCoords_html"><div class="ttname"><a href="classDocumentModelCoords.html">DocumentModelCoords</a></div><div class="ttdoc">Model for DlgSettingsCoords and CmdSettingsCoords. </div><div class="ttdef"><b>Definition:</b> <a href="DocumentModelCoords_8h_source.html#l00020">DocumentModelCoords.h:20</a></div></div> <div class="ttc" id="classGeometryStrategyFunctionSmooth_html_a876884e48a9e4d9d23413439b643f0ac"><div class="ttname"><a href="classGeometryStrategyFunctionSmooth.html#a876884e48a9e4d9d23413439b643f0ac">GeometryStrategyFunctionSmooth::calculateGeometry</a></div><div class="ttdeci">virtual void calculateGeometry(const Points &points, const DocumentModelCoords &modelCoords, const DocumentModelGeneral &modelGeneral, const MainWindowModel &modelMainWindow, const Transformation &transformation, QString &funcArea, QString &polyArea, QVector< QString > &x, QVector< QString > &y, QVector< QString > &distanceGraphForward, QVector< QString > &distancePercentForward, QVector< QString > &distanceGraphBackward, QVector< QString > &distancePercentBackward) const</div><div class="ttdoc">Calculate geometry parameters. </div><div class="ttdef"><b>Definition:</b> <a href="GeometryStrategyFunctionSmooth_8cpp_source.html#l00018">GeometryStrategyFunctionSmooth.cpp:18</a></div></div> <div class="ttc" id="classGeometryStrategyFunctionSmooth_html_ad8c0065fc034cd4b5ccb0ce142217dcd"><div class="ttname"><a href="classGeometryStrategyFunctionSmooth.html#ad8c0065fc034cd4b5ccb0ce142217dcd">GeometryStrategyFunctionSmooth::GeometryStrategyFunctionSmooth</a></div><div class="ttdeci">GeometryStrategyFunctionSmooth()</div><div class="ttdoc">Single constructor. </div><div class="ttdef"><b>Definition:</b> <a href="GeometryStrategyFunctionSmooth_8cpp_source.html#l00010">GeometryStrategyFunctionSmooth.cpp:10</a></div></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Sun Dec 25 2016 20:54:09 for Engauge Digitizer by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.12 </small></address> </body> </html>