Files
intelliphoto/docs/html/_intelli_tool_pen_8cpp_source.html
2020-01-30 20:42:31 +01:00

182 lines
29 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/IntelliToolPen.cpp 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.7</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_pen_8cpp_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">IntelliToolPen.cpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="_intelli_tool_pen_8cpp.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">#include &quot;<a class="code" href="_intelli_tool_pen_8h.html">IntelliToolPen.h</a>&quot;</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_painting_area_8h.html">Layer/PaintingArea.h</a>&quot;</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="preprocessor">#include &quot;QDebug&quot;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="preprocessor">#include &quot;QColorDialog&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="preprocessor">#include &quot;QInputDialog&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"><a class="line" href="class_intelli_tool_pen.html#a9f885143d6bb7adda3dcd3707d59e14d"> 7</a></span>&#160;<a class="code" href="class_intelli_tool_pen.html#a9f885143d6bb7adda3dcd3707d59e14d">IntelliToolPen::IntelliToolPen</a>(<a class="code" href="class_painting_area.html">PaintingArea</a>* Area, <a class="code" href="class_intelli_color_picker.html">IntelliColorPicker</a>* colorPicker, <a class="code" href="class_intelli_toolsettings.html">IntelliToolsettings</a>* Toolsettings)</div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160; : <a class="code" href="class_intelli_tool.html">IntelliTool</a>(Area, colorPicker, Toolsettings){</div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160; this-&gt;<a class="code" href="class_intelli_tool.html#a631388999f36013628e13b9de87a6f7b">ActiveType</a> = <a class="code" href="class_intelli_tool.html#a3fbd2584566b3cefcf3c070ae0b69d8fad3fa1aa45b9fe56e1fc1b558d8ed6678">Tooltype::PEN</a>;</div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;}</div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160; </div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="class_intelli_tool_pen.html#ac77a025515d0fed6954556fe2b444818"> 12</a></span>&#160;<a class="code" href="class_intelli_tool_pen.html#ac77a025515d0fed6954556fe2b444818">IntelliToolPen::~IntelliToolPen</a>(){</div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160; <a class="code" href="class_intelli_tool.html#a1e6aa68ac5f3c2ca02319e5ef3f0c966">IntelliTool::onMouseRightPressed</a>(0,0);</div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;}</div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160; </div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="class_intelli_tool_pen.html#a1751e3864a0d36ef42ca55021cae73ce"> 16</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_pen.html#a1751e3864a0d36ef42ca55021cae73ce">IntelliToolPen::onMouseRightPressed</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160; <a class="code" href="class_intelli_tool.html#a1e6aa68ac5f3c2ca02319e5ef3f0c966">IntelliTool::onMouseRightPressed</a>(x,y);</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;}</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"><a class="line" href="class_intelli_tool_pen.html#abf8562e8cd2da586afdf4d47b3a4ff13"> 20</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_pen.html#abf8562e8cd2da586afdf4d47b3a4ff13">IntelliToolPen::onMouseRightReleased</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; <a class="code" href="class_intelli_tool.html#a16189b00307c6d7e89f28198f54404b0">IntelliTool::onMouseRightReleased</a>(x,y);</div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;}</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; </div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="class_intelli_tool_pen.html#a8ff40aef6d38eb55af31a19322429205"> 24</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_pen.html#a8ff40aef6d38eb55af31a19322429205">IntelliToolPen::onMouseLeftPressed</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; <a class="code" href="class_intelli_tool.html#a34b7ef1dde96b94a0ce450a25ae1778c">IntelliTool::onMouseLeftPressed</a>(x,y);</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; this-&gt;previousPoint = QPoint(x,y);</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; this-&gt;<a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-&gt;<a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-&gt;<a class="code" href="class_intelli_image.html#a2e787f1b333b59401643936ebb3dcfe1">drawPoint</a>(previousPoint, <a class="code" href="class_intelli_tool.html#ae2e0ac394611a361ab4ef2fe55c03fef">colorPicker</a>-&gt;<a class="code" href="class_intelli_color_picker.html#aeb08029a0c946ed0402c9c11a91965b1">getFirstColor</a>(), <a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>-&gt;<a class="code" href="class_intelli_toolsettings.html#abb3ee5a9c8a379167060799d275e65c3">getLineWidth</a>());</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; <a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-&gt;<a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-&gt;<a class="code" href="class_intelli_image.html#aebbced93f4744fad81b7f141b21f4ab2">calculateVisiblity</a>();</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;}</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; </div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="class_intelli_tool_pen.html#abda7a22b9766fa4ad254324a53cab94d"> 31</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_pen.html#abda7a22b9766fa4ad254324a53cab94d">IntelliToolPen::onMouseLeftReleased</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; <a class="code" href="class_intelli_tool.html#a906a2575c16c8a33cb2a5197f8d8cc5b">IntelliTool::onMouseLeftReleased</a>(x,y);</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;}</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="class_intelli_tool_pen.html#a58d1d636497b630647ce0c4d652737c2"> 35</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_pen.html#a58d1d636497b630647ce0c4d652737c2">IntelliToolPen::onMouseMoved</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <span class="keywordflow">if</span>(this-&gt;<a class="code" href="class_intelli_tool.html#a555aa8a74992327f740dd69b3bb0ccca">isDrawing</a>) {</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; QPoint newPoint(x,y);</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; this-&gt;<a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-&gt;<a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-&gt;<a class="code" href="class_intelli_image.html#af8eddbd9aa54c8d37590d1d4bf8dce31">drawLine</a>(this-&gt;previousPoint, newPoint, <a class="code" href="class_intelli_tool.html#ae2e0ac394611a361ab4ef2fe55c03fef">colorPicker</a>-&gt;<a class="code" href="class_intelli_color_picker.html#aeb08029a0c946ed0402c9c11a91965b1">getFirstColor</a>(), <a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>-&gt;<a class="code" href="class_intelli_toolsettings.html#abb3ee5a9c8a379167060799d275e65c3">getLineWidth</a>());</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; this-&gt;previousPoint = newPoint;</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; }</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <a class="code" href="class_intelli_tool.html#ac10e20414cd8855a2f9b103fb6408639">IntelliTool::onMouseMoved</a>(x,y);</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;}</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; </div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="class_intelli_tool_pen.html#afe3626ddff440ab125f4a2465c45427a"> 44</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_pen.html#afe3626ddff440ab125f4a2465c45427a">IntelliToolPen::onWheelScrolled</a>(<span class="keywordtype">int</span> value){</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; <a class="code" href="class_intelli_tool.html#a4dccfd4460255ccb866f336406a33574">IntelliTool::onWheelScrolled</a>(value);</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>-&gt;<a class="code" href="class_intelli_toolsettings.html#a73fa94c85c6c2fdc1a33975a33304a6f">setLineWidth</a>(<a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>-&gt;<a class="code" href="class_intelli_toolsettings.html#abb3ee5a9c8a379167060799d275e65c3">getLineWidth</a>() + value);</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;}</div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aclass_intelli_tool_html_a3fbd2584566b3cefcf3c070ae0b69d8fad3fa1aa45b9fe56e1fc1b558d8ed6678"><div class="ttname"><a href="class_intelli_tool.html#a3fbd2584566b3cefcf3c070ae0b69d8fad3fa1aa45b9fe56e1fc1b558d8ed6678">IntelliTool::Tooltype::PEN</a></div><div class="ttdeci">@ PEN</div></div>
<div class="ttc" id="aclass_intelli_tool_html_a1e6aa68ac5f3c2ca02319e5ef3f0c966"><div class="ttname"><a href="class_intelli_tool.html#a1e6aa68ac5f3c2ca02319e5ef3f0c966">IntelliTool::onMouseRightPressed</a></div><div class="ttdeci">virtual void onMouseRightPressed(int x, int y)</div><div class="ttdoc">A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on....</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8cpp_source.html#l00019">IntelliTool.cpp:19</a></div></div>
<div class="ttc" id="aclass_intelli_color_picker_html_aeb08029a0c946ed0402c9c11a91965b1"><div class="ttname"><a href="class_intelli_color_picker.html#aeb08029a0c946ed0402c9c11a91965b1">IntelliColorPicker::getFirstColor</a></div><div class="ttdeci">QColor getFirstColor() const</div><div class="ttdoc">A function to read the primary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00015">IntelliColorPicker.cpp:15</a></div></div>
<div class="ttc" id="aclass_intelli_tool_html_a906a2575c16c8a33cb2a5197f8d8cc5b"><div class="ttname"><a href="class_intelli_tool.html#a906a2575c16c8a33cb2a5197f8d8cc5b">IntelliTool::onMouseLeftReleased</a></div><div class="ttdeci">virtual void onMouseLeftReleased(int x, int y)</div><div class="ttdoc">A function managing the left click Released of a Mouse. Call this in child classes!</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8cpp_source.html#l00037">IntelliTool.cpp:37</a></div></div>
<div class="ttc" id="aclass_intelli_toolsettings_html_abb3ee5a9c8a379167060799d275e65c3"><div class="ttname"><a href="class_intelli_toolsettings.html#abb3ee5a9c8a379167060799d275e65c3">IntelliToolsettings::getLineWidth</a></div><div class="ttdeci">int getLineWidth() const</div><div class="ttdoc">getLineWidth returns the width attribute of the line.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_toolsettings_8cpp_source.html#l00014">IntelliToolsettings.cpp:14</a></div></div>
<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#l00064">IntelliTool.h:64</a></div></div>
<div class="ttc" id="aclass_intelli_image_html_af8eddbd9aa54c8d37590d1d4bf8dce31"><div class="ttname"><a href="class_intelli_image.html#af8eddbd9aa54c8d37590d1d4bf8dce31">IntelliImage::drawLine</a></div><div class="ttdeci">virtual void drawLine(const QPoint &amp;p1, const QPoint &amp;p2, const QColor &amp;color, const int &amp;penWidth)</div><div class="ttdoc">A function that draws a line between two given points in a given color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_image_8cpp_source.html#l00097">IntelliImage.cpp:97</a></div></div>
<div class="ttc" id="aclass_intelli_tool_html_a34b7ef1dde96b94a0ce450a25ae1778c"><div class="ttname"><a href="class_intelli_tool.html#a34b7ef1dde96b94a0ce450a25ae1778c">IntelliTool::onMouseLeftPressed</a></div><div class="ttdeci">virtual void onMouseLeftPressed(int x, int y)</div><div class="ttdoc">A function managing the left click Pressed of a Mouse. Resetting the current draw....</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8cpp_source.html#l00030">IntelliTool.cpp:30</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="ttdoc">Toolsettings a refrence to the tool settings.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00069">IntelliTool.h:69</a></div></div>
<div class="ttc" id="aclass_intelli_tool_pen_html_ac77a025515d0fed6954556fe2b444818"><div class="ttname"><a href="class_intelli_tool_pen.html#ac77a025515d0fed6954556fe2b444818">IntelliToolPen::~IntelliToolPen</a></div><div class="ttdeci">virtual ~IntelliToolPen() override</div><div class="ttdoc">A Destructor.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_pen_8cpp_source.html#l00012">IntelliToolPen.cpp:12</a></div></div>
<div class="ttc" id="aclass_intelli_tool_pen_html_a58d1d636497b630647ce0c4d652737c2"><div class="ttname"><a href="class_intelli_tool_pen.html#a58d1d636497b630647ce0c4d652737c2">IntelliToolPen::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. To draw the line.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_pen_8cpp_source.html#l00035">IntelliToolPen.cpp:35</a></div></div>
<div class="ttc" id="aclass_intelli_tool_pen_html_a1751e3864a0d36ef42ca55021cae73ce"><div class="ttname"><a href="class_intelli_tool_pen.html#a1751e3864a0d36ef42ca55021cae73ce">IntelliToolPen::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. Resetting the current draw.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_pen_8cpp_source.html#l00016">IntelliToolPen.cpp:16</a></div></div>
<div class="ttc" id="aclass_intelli_tool_pen_html_abf8562e8cd2da586afdf4d47b3a4ff13"><div class="ttname"><a href="class_intelli_tool_pen.html#abf8562e8cd2da586afdf4d47b3a4ff13">IntelliToolPen::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_pen_8cpp_source.html#l00020">IntelliToolPen.cpp:20</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#l00057">PaintingArea.h:57</a></div></div>
<div class="ttc" id="aclass_intelli_tool_html_a555aa8a74992327f740dd69b3bb0ccca"><div class="ttname"><a href="class_intelli_tool.html#a555aa8a74992327f740dd69b3bb0ccca">IntelliTool::isDrawing</a></div><div class="ttdeci">bool isDrawing</div><div class="ttdoc">A flag checking if the user is currently drawing or not.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00084">IntelliTool.h:84</a></div></div>
<div class="ttc" id="aclass_intelli_image_html_a2e787f1b333b59401643936ebb3dcfe1"><div class="ttname"><a href="class_intelli_image.html#a2e787f1b333b59401643936ebb3dcfe1">IntelliImage::drawPoint</a></div><div class="ttdeci">virtual void drawPoint(const QPoint &amp;p1, const QColor &amp;color, const int &amp;penWidth)</div><div class="ttdoc">A function that draws a point between on a given point in a given color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_image_8cpp_source.html#l00078">IntelliImage.cpp:78</a></div></div>
<div class="ttc" id="aclass_intelli_tool_html_a16189b00307c6d7e89f28198f54404b0"><div class="ttname"><a href="class_intelli_tool.html#a16189b00307c6d7e89f28198f54404b0">IntelliTool::onMouseRightReleased</a></div><div class="ttdeci">virtual void onMouseRightReleased(int x, int y)</div><div class="ttdoc">A function managing the right click Released of a Mouse. Merging the Canvas to Active....</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8cpp_source.html#l00026">IntelliTool.cpp:26</a></div></div>
<div class="ttc" id="aclass_intelli_tool_html_a144d469cc03584f501194529a1b53c77"><div class="ttname"><a href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">IntelliTool::Canvas</a></div><div class="ttdeci">LayerObject * Canvas</div><div class="ttdoc">A pointer to the drawing canvas of the tool, work on this.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00079">IntelliTool.h:79</a></div></div>
<div class="ttc" id="aclass_intelli_tool_pen_html_afe3626ddff440ab125f4a2465c45427a"><div class="ttname"><a href="class_intelli_tool_pen.html#afe3626ddff440ab125f4a2465c45427a">IntelliToolPen::onWheelScrolled</a></div><div class="ttdeci">virtual void onWheelScrolled(int value) override</div><div class="ttdoc">A function managing the scroll event. Changing penWidth relativ to value.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_pen_8cpp_source.html#l00044">IntelliToolPen.cpp:44</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_tool_pen_html_abda7a22b9766fa4ad254324a53cab94d"><div class="ttname"><a href="class_intelli_tool_pen.html#abda7a22b9766fa4ad254324a53cab94d">IntelliToolPen::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. Merging the drawing to the active layer.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_pen_8cpp_source.html#l00031">IntelliToolPen.cpp:31</a></div></div>
<div class="ttc" id="a_painting_area_8h_html"><div class="ttname"><a href="_painting_area_8h.html">PaintingArea.h</a></div></div>
<div class="ttc" id="aclass_intelli_tool_pen_html_a9f885143d6bb7adda3dcd3707d59e14d"><div class="ttname"><a href="class_intelli_tool_pen.html#a9f885143d6bb7adda3dcd3707d59e14d">IntelliToolPen::IntelliToolPen</a></div><div class="ttdeci">IntelliToolPen(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)</div><div class="ttdoc">A constructor setting the general paintingArea and colorPicker. Reading the penWidth.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_pen_8cpp_source.html#l00007">IntelliToolPen.cpp:7</a></div></div>
<div class="ttc" id="aclass_intelli_tool_html_a631388999f36013628e13b9de87a6f7b"><div class="ttname"><a href="class_intelli_tool.html#a631388999f36013628e13b9de87a6f7b">IntelliTool::ActiveType</a></div><div class="ttdeci">Tooltype ActiveType</div><div class="ttdoc">ActiveType the type of the active tool.</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_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="astruct_layer_object_html_af01a139bc8edfdbb338393874e89bd83"><div class="ttname"><a href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">LayerObject::image</a></div><div class="ttdeci">IntelliImage * image</div><div class="ttdoc">image - Stores the imageData of the current LayerObject.</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8h_source.html#l00027">PaintingArea.h:27</a></div></div>
<div class="ttc" id="aclass_intelli_toolsettings_html_a73fa94c85c6c2fdc1a33975a33304a6f"><div class="ttname"><a href="class_intelli_toolsettings.html#a73fa94c85c6c2fdc1a33975a33304a6f">IntelliToolsettings::setLineWidth</a></div><div class="ttdeci">void setLineWidth(int LineWidth)</div><div class="ttdoc">setLineWidth sets the width attribute of the line.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_toolsettings_8cpp_source.html#l00018">IntelliToolsettings.cpp:18</a></div></div>
<div class="ttc" id="a_intelli_tool_pen_8h_html"><div class="ttname"><a href="_intelli_tool_pen_8h.html">IntelliToolPen.h</a></div></div>
<div class="ttc" id="aclass_intelli_tool_html_ac10e20414cd8855a2f9b103fb6408639"><div class="ttname"><a href="class_intelli_tool.html#ac10e20414cd8855a2f9b103fb6408639">IntelliTool::onMouseMoved</a></div><div class="ttdeci">virtual void onMouseMoved(int x, int y)</div><div class="ttdoc">A function managing the mouse moved event. Call this in child classes!</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8cpp_source.html#l00047">IntelliTool.cpp:47</a></div></div>
<div class="ttc" id="aclass_intelli_tool_pen_html_a8ff40aef6d38eb55af31a19322429205"><div class="ttname"><a href="class_intelli_tool_pen.html#a8ff40aef6d38eb55af31a19322429205">IntelliToolPen::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. Starting the drawing procedure.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_pen_8cpp_source.html#l00024">IntelliToolPen.cpp:24</a></div></div>
<div class="ttc" id="aclass_intelli_image_html_aebbced93f4744fad81b7f141b21f4ab2"><div class="ttname"><a href="class_intelli_image.html#aebbced93f4744fad81b7f141b21f4ab2">IntelliImage::calculateVisiblity</a></div><div class="ttdeci">virtual void calculateVisiblity()=0</div><div class="ttdoc">An abstract function that calculates the visiblity of the Image data if needed.</div></div>
<div class="ttc" id="aclass_intelli_tool_html_a4dccfd4460255ccb866f336406a33574"><div class="ttname"><a href="class_intelli_tool.html#a4dccfd4460255ccb866f336406a33574">IntelliTool::onWheelScrolled</a></div><div class="ttdeci">virtual void onWheelScrolled(int value)</div><div class="ttdoc">A function managing the scroll event. A positive value means scrolling outwards. Call this in child c...</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8cpp_source.html#l00052">IntelliTool.cpp:52</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="ttdoc">The IntelliToolsettings class managing the settings of the tools, independent of an existing tool.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_toolsettings_8h_source.html#l00009">IntelliToolsettings.h:9</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_pen_8cpp.html">IntelliToolPen.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.17 </li>
</ul>
</div>
</body>
</html>