Files
intelliphoto/docs/html/_intelli_tool_line_8h_source.html
2020-01-16 23:04:12 +01:00

153 lines
18 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.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>IntelliPhoto: src/Tool/IntelliToolLine.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>
<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.6</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<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('_intelli_tool_line_8h_source.html',''); initResizable(); });
/* @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="headertitle">
<div class="title">IntelliToolLine.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="_intelli_tool_line_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 INTELLITOOLLINE_H</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#define INTELLITOOLLINE_H</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_intelli_tool_8h.html">IntelliTool.h</a>&quot;</span></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 &quot;QPoint&quot;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160; </div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment">//for unit testing</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="keyword">class </span><a class="code" href="class_unit_test.html">UnitTest</a>;</div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160; </div>
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="class_intelli_tool_line.html"> 13</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_intelli_tool_line.html">IntelliToolLine</a> : <span class="keyword">public</span> <a class="code" href="class_intelli_tool.html">IntelliTool</a> {</div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="keyword">friend</span> <a class="code" href="class_unit_test.html">UnitTest</a>;</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;QPoint lineStartingPoint;</div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; </div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; </div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<a class="code" href="class_intelli_tool_line.html#a111e83e0f0fec7d4ff773ba9f235e4dc">IntelliToolLine</a>(<a class="code" href="class_painting_area.html">PaintingArea</a>* <a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>, <a class="code" href="class_intelli_color_picker.html">IntelliColorPicker</a>* <a class="code" href="class_intelli_tool.html#ae2e0ac394611a361ab4ef2fe55c03fef">colorPicker</a>, <a class="code" href="class_intelli_toolsettings.html">IntelliToolsettings</a>* <a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>);</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="keyword">virtual</span> <a class="code" href="class_intelli_tool_line.html#acb600b0f4e9225ebce2937c2b7abb4c2">~IntelliToolLine</a>() <span class="keyword">override</span>;</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; </div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_line.html#a6cce59f3017936214b10b47252a898a3">onMouseRightPressed</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;<span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_line.html#a6214918cba5753f89d97de4559a2b9b2">onMouseRightReleased</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; </div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;<span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_line.html#a155d676a5f98311217eb095be4759846">onMouseLeftPressed</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;<span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_line.html#ac93f76ff20a1c111a403b298bab02482">onMouseLeftReleased</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; </div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;<span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_line.html#aaf1d686e1ec43f41b5186ccfd806b125">onWheelScrolled</a>(<span class="keywordtype">int</span> value) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; </div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;<span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_line.html#abc6324ef0778823fe7e35aef8ae37f9b">onMouseMoved</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;};</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; </div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aclass_intelli_tool_html_ae2e0ac394611a361ab4ef2fe55c03fef"><div class="ttname"><a href="class_intelli_tool.html#ae2e0ac394611a361ab4ef2fe55c03fef">IntelliTool::colorPicker</a></div><div class="ttdeci">IntelliColorPicker * colorPicker</div><div class="ttdoc">A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00057">IntelliTool.h:57</a></div></div>
<div class="ttc" id="a_intelli_tool_8h_html"><div class="ttname"><a href="_intelli_tool_8h.html">IntelliTool.h</a></div></div>
<div class="ttc" id="aclass_intelli_tool_html_a55f6b45b416b7d790fa8bc09603bf67f"><div class="ttname"><a href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">IntelliTool::Toolsettings</a></div><div class="ttdeci">IntelliToolsettings * Toolsettings</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00059">IntelliTool.h:59</a></div></div>
<div class="ttc" id="aclass_intelli_tool_line_html_a111e83e0f0fec7d4ff773ba9f235e4dc"><div class="ttname"><a href="class_intelli_tool_line.html#a111e83e0f0fec7d4ff773ba9f235e4dc">IntelliToolLine::IntelliToolLine</a></div><div class="ttdeci">IntelliToolLine(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)</div><div class="ttdoc">A constructor setting the general paintingArea and colorPicker.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_line_8cpp_source.html#l00006">IntelliToolLine.cpp:6</a></div></div>
<div class="ttc" id="aclass_intelli_tool_line_html_abc6324ef0778823fe7e35aef8ae37f9b"><div class="ttname"><a href="class_intelli_tool_line.html#abc6324ef0778823fe7e35aef8ae37f9b">IntelliToolLine::onMouseMoved</a></div><div class="ttdeci">virtual void onMouseMoved(int x, int y) override</div><div class="ttdoc">A function managing the mouse moved event. Drawing a Line from the startpoint to the current mouse po...</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_line_8cpp_source.html#l00039">IntelliToolLine.cpp:39</a></div></div>
<div class="ttc" id="aclass_intelli_tool_line_html_aaf1d686e1ec43f41b5186ccfd806b125"><div class="ttname"><a href="class_intelli_tool_line.html#aaf1d686e1ec43f41b5186ccfd806b125">IntelliToolLine::onWheelScrolled</a></div><div class="ttdeci">virtual void onWheelScrolled(int value) override</div><div class="ttdoc">A function managing the scroll event. Changing the lineWidth relative to value.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_line_8cpp_source.html#l00034">IntelliToolLine.cpp:34</a></div></div>
<div class="ttc" id="aclass_intelli_tool_line_html_a6214918cba5753f89d97de4559a2b9b2"><div class="ttname"><a href="class_intelli_tool_line.html#a6214918cba5753f89d97de4559a2b9b2">IntelliToolLine::onMouseRightReleased</a></div><div class="ttdeci">virtual void onMouseRightReleased(int x, int y) override</div><div class="ttdoc">A function managing the right click released of a mouse.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_line_8cpp_source.html#l00019">IntelliToolLine.cpp:19</a></div></div>
<div class="ttc" id="aclass_intelli_tool_html_ab4c2698a0f9f25fb6639ec760d2d0289"><div class="ttname"><a href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">IntelliTool::Area</a></div><div class="ttdeci">PaintingArea * Area</div><div class="ttdoc">A pointer to the general PaintingArea to interact with.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00050">IntelliTool.h:50</a></div></div>
<div class="ttc" id="aclass_painting_area_html"><div class="ttname"><a href="class_painting_area.html">PaintingArea</a></div><div class="ttdoc">The PaintingArea class manages the methods and stores information about the current painting area,...</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8h_source.html#l00053">PaintingArea.h:53</a></div></div>
<div class="ttc" id="aclass_intelli_tool_line_html_acb600b0f4e9225ebce2937c2b7abb4c2"><div class="ttname"><a href="class_intelli_tool_line.html#acb600b0f4e9225ebce2937c2b7abb4c2">IntelliToolLine::~IntelliToolLine</a></div><div class="ttdeci">virtual ~IntelliToolLine() override</div><div class="ttdoc">An abstract Destructor.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_line_8cpp_source.html#l00011">IntelliToolLine.cpp:11</a></div></div>
<div class="ttc" id="aclass_intelli_tool_line_html_ac93f76ff20a1c111a403b298bab02482"><div class="ttname"><a href="class_intelli_tool_line.html#ac93f76ff20a1c111a403b298bab02482">IntelliToolLine::onMouseLeftReleased</a></div><div class="ttdeci">virtual void onMouseLeftReleased(int x, int y) override</div><div class="ttdoc">A function managing the left click released of a mouse.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_line_8cpp_source.html#l00030">IntelliToolLine.cpp:30</a></div></div>
<div class="ttc" id="aclass_intelli_tool_line_html_a6cce59f3017936214b10b47252a898a3"><div class="ttname"><a href="class_intelli_tool_line.html#a6cce59f3017936214b10b47252a898a3">IntelliToolLine::onMouseRightPressed</a></div><div class="ttdeci">virtual void onMouseRightPressed(int x, int y) override</div><div class="ttdoc">A function managing the right click pressed of a mouse. Clearing the canvas.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_line_8cpp_source.html#l00015">IntelliToolLine.cpp:15</a></div></div>
<div class="ttc" id="aclass_intelli_tool_html"><div class="ttname"><a href="class_intelli_tool.html">IntelliTool</a></div><div class="ttdoc">An abstract class that manages the basic events, like mouse clicks or scrolls events.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00017">IntelliTool.h:17</a></div></div>
<div class="ttc" id="aclass_intelli_color_picker_html"><div class="ttname"><a href="class_intelli_color_picker.html">IntelliColorPicker</a></div><div class="ttdoc">The IntelliColorPicker manages the selected colors for one whole project.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8h_source.html#l00014">IntelliColorPicker.h:14</a></div></div>
<div class="ttc" id="aclass_unit_test_html"><div class="ttname"><a href="class_unit_test.html">UnitTest</a></div><div class="ttdef"><b>Definition:</b> <a href="main_unit_test_8cpp_source.html#l00008">mainUnitTest.cpp:8</a></div></div>
<div class="ttc" id="aclass_intelli_tool_line_html_a155d676a5f98311217eb095be4759846"><div class="ttname"><a href="class_intelli_tool_line.html#a155d676a5f98311217eb095be4759846">IntelliToolLine::onMouseLeftPressed</a></div><div class="ttdeci">virtual void onMouseLeftPressed(int x, int y) override</div><div class="ttdoc">A function managing the left click pressed of a mouse. Sets the starting point of the line.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_line_8cpp_source.html#l00023">IntelliToolLine.cpp:23</a></div></div>
<div class="ttc" id="aclass_intelli_toolsettings_html"><div class="ttname"><a href="class_intelli_toolsettings.html">IntelliToolsettings</a></div><div class="ttdef"><b>Definition:</b> <a href="_intelli_toolsettings_8h_source.html#l00007">IntelliToolsettings.h:7</a></div></div>
<div class="ttc" id="aclass_intelli_tool_line_html"><div class="ttname"><a href="class_intelli_tool_line.html">IntelliToolLine</a></div><div class="ttdoc">The IntelliToolFloodFill class represents a tool to draw a line.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_line_8h_source.html#l00013">IntelliToolLine.h:13</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_858355f3357c73763e566ff49d1e6a7a.html">Tool</a></li><li class="navelem"><a class="el" href="_intelli_tool_line_8h.html">IntelliToolLine.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.17 </li>
</ul>
</div>
</body>
</html>