mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-12 19:40:28 +02:00
Updated docs
This commit is contained in:
@@ -97,109 +97,113 @@ $(document).ready(function(){initNavTree('_intelli_tool_flood_fill_8cpp_source.h
|
||||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include <functional></span></div>
|
||||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include <queue></span></div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>  </div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"><a class="line" href="class_intelli_tool_flood_fill.html#a83b51838da304e274bf866cf2fd5407a"> 8</a></span> <a class="code" href="class_intelli_tool_flood_fill.html#a83b51838da304e274bf866cf2fd5407a">IntelliToolFloodFill::IntelliToolFloodFill</a>(<a class="code" href="class_painting_area.html">PaintingArea</a>* Area, <a class="code" href="class_intelli_color_picker.html">IntelliColorPicker</a>* colorPicker)</div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>  : <a class="code" href="class_intelli_tool.html">IntelliTool</a>(Area, colorPicker){</div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> }</div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>  </div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="class_intelli_tool_flood_fill.html#a83b1bd8be0cbb32cdf61a9597ec849ba"> 12</a></span> <a class="code" href="class_intelli_tool_flood_fill.html#a83b1bd8be0cbb32cdf61a9597ec849ba">IntelliToolFloodFill::~IntelliToolFloodFill</a>(){</div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  </div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> }</div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  </div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="class_intelli_tool_flood_fill.html#ada0f7154d119102410a55038763a17e4"> 16</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_flood_fill.html#ada0f7154d119102410a55038763a17e4">IntelliToolFloodFill::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>  <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> }</div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="class_intelli_tool_flood_fill.html#a39cf49c0ce46f96be3510f0b70c9d892"> 20</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_flood_fill.html#a39cf49c0ce46f96be3510f0b70c9d892">IntelliToolFloodFill::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>  <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> }</div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  </div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="class_intelli_tool_flood_fill.html#ac85e3cb6233508ff9612833a8d9e3961"> 24</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_flood_fill.html#ac85e3cb6233508ff9612833a8d9e3961">IntelliToolFloodFill::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>  <span class="keywordflow">if</span>(!(x>=0 && x<Area->getWidthOfActive() && y>=0 && y<Area->getHeightOfActive())) {</div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <span class="keywordflow">return</span>;</div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  }</div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <a class="code" href="class_intelli_tool.html#a34b7ef1dde96b94a0ce450a25ae1778c">IntelliTool::onMouseLeftPressed</a>(x,y);</div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  </div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  QPoint start(x,y);</div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  std::queue<QPoint> Q;</div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  Q.push(start);</div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  </div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  QColor oldColor = this-><a class="code" href="class_intelli_tool.html#a13512e95d21a9934ecb36d73b118c25f">Active</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#a4576ebb6d863321c816293d7b7f9fd3f">getPixelColor</a>(start);</div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  QColor newColor = this-><a class="code" href="class_intelli_tool.html#ae2e0ac394611a361ab4ef2fe55c03fef">colorPicker</a>-><a class="code" href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">getFirstColor</a>();</div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#af3c859f5c409e37051edfd9e9fbca056">drawPixel</a>(start,newColor);</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>  QPoint left, right, top, down;</div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordflow">while</span>(!Q.empty()) {</div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  QPoint Current = Q.front();</div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  Q.pop();</div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  </div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  left = QPoint(Current.x()-1,Current.y() );</div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  right = QPoint(Current.x()+1,Current.y() );</div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  top = QPoint(Current.x(),Current.y()-1);</div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  down = QPoint(Current.x(),Current.y()+1);</div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordflow">if</span>((right.x() < <a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af261813df52ff0b0c82bfa57efeb9897">width</a>) && (<a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#a4576ebb6d863321c816293d7b7f9fd3f">getPixelColor</a>(right) != newColor) && (<a class="code" href="class_intelli_tool.html#a13512e95d21a9934ecb36d73b118c25f">Active</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#a4576ebb6d863321c816293d7b7f9fd3f">getPixelColor</a>(right) == oldColor)) {</div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#af3c859f5c409e37051edfd9e9fbca056">drawPixel</a>(right,newColor);</div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  Q.push(right);</div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  }</div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordflow">if</span>((left.x() >= 0) && (<a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#a4576ebb6d863321c816293d7b7f9fd3f">getPixelColor</a>(left) != newColor) && (<a class="code" href="class_intelli_tool.html#a13512e95d21a9934ecb36d73b118c25f">Active</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#a4576ebb6d863321c816293d7b7f9fd3f">getPixelColor</a>(left) == oldColor)) {</div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#af3c859f5c409e37051edfd9e9fbca056">drawPixel</a>(left,newColor);</div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  Q.push(left);</div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  }</div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordflow">if</span>((top.y() >= 0) && (<a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#a4576ebb6d863321c816293d7b7f9fd3f">getPixelColor</a>(top) != newColor) && (<a class="code" href="class_intelli_tool.html#a13512e95d21a9934ecb36d73b118c25f">Active</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#a4576ebb6d863321c816293d7b7f9fd3f">getPixelColor</a>(top) == oldColor)) {</div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#af3c859f5c409e37051edfd9e9fbca056">drawPixel</a>(top,newColor);</div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  Q.push(top);</div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  }</div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keywordflow">if</span>((down.y() < <a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#ae0003fb815e50ed587a9897988befc90">height</a>) && (<a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#a4576ebb6d863321c816293d7b7f9fd3f">getPixelColor</a>(down) != newColor) && (<a class="code" href="class_intelli_tool.html#a13512e95d21a9934ecb36d73b118c25f">Active</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#a4576ebb6d863321c816293d7b7f9fd3f">getPixelColor</a>(down) == oldColor)) {</div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#af3c859f5c409e37051edfd9e9fbca056">drawPixel</a>(down,newColor);</div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  Q.push(down);</div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  }</div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  }</div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  </div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#aebbced93f4744fad81b7f141b21f4ab2">calculateVisiblity</a>();</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> }</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  </div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="class_intelli_tool_flood_fill.html#a7438ef96c6c36068bce76e2364e8594c"> 68</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_flood_fill.html#a7438ef96c6c36068bce76e2364e8594c">IntelliToolFloodFill::onMouseLeftReleased</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <a class="code" href="class_intelli_tool.html#a906a2575c16c8a33cb2a5197f8d8cc5b">IntelliTool::onMouseLeftReleased</a>(x,y);</div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> }</div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  </div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="class_intelli_tool_flood_fill.html#ad58cc7c065123beb6b0270f99e99b991"> 72</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_flood_fill.html#ad58cc7c065123beb6b0270f99e99b991">IntelliToolFloodFill::onWheelScrolled</a>(<span class="keywordtype">int</span> value){</div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <a class="code" href="class_intelli_tool.html#a4dccfd4460255ccb866f336406a33574">IntelliTool::onWheelScrolled</a>(value);</div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  </div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> }</div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  </div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="class_intelli_tool_flood_fill.html#a3cd42cea99bc7583875abcc0c274c668"> 77</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_flood_fill.html#a3cd42cea99bc7583875abcc0c274c668">IntelliToolFloodFill::onMouseMoved</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <a class="code" href="class_intelli_tool.html#ac10e20414cd8855a2f9b103fb6408639">IntelliTool::onMouseMoved</a>(x,y);</div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> }</div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"><a class="line" href="class_intelli_tool_flood_fill.html#a0b283b1b0135ff909a7199be9da9c076"> 8</a></span> <a class="code" href="class_intelli_tool_flood_fill.html#a0b283b1b0135ff909a7199be9da9c076">IntelliToolFloodFill::IntelliToolFloodFill</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="l00009"></a><span class="lineno"> 9</span>  : <a class="code" href="class_intelli_tool.html">IntelliTool</a>(Area, colorPicker, Toolsettings){</div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  this-><a class="code" href="class_intelli_tool.html#a631388999f36013628e13b9de87a6f7b">ActiveType</a> = <a class="code" href="class_intelli_tool.html#a3fbd2584566b3cefcf3c070ae0b69d8fa526904ea67131c56718f9882518b5d93">Tooltype::FLOODFILL</a>;</div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</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"><a class="line" href="class_intelli_tool_flood_fill.html#a83b1bd8be0cbb32cdf61a9597ec849ba"> 13</a></span> <a class="code" href="class_intelli_tool_flood_fill.html#a83b1bd8be0cbb32cdf61a9597ec849ba">IntelliToolFloodFill::~IntelliToolFloodFill</a>(){</div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  <a class="code" href="class_intelli_tool.html#a1e6aa68ac5f3c2ca02319e5ef3f0c966">IntelliTool::onMouseRightPressed</a>(0,0);</div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> }</div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  </div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="class_intelli_tool_flood_fill.html#ada0f7154d119102410a55038763a17e4"> 17</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_flood_fill.html#ada0f7154d119102410a55038763a17e4">IntelliToolFloodFill::onMouseRightPressed</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  <a class="code" href="class_intelli_tool.html#a1e6aa68ac5f3c2ca02319e5ef3f0c966">IntelliTool::onMouseRightPressed</a>(x,y);</div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> }</div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  </div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="class_intelli_tool_flood_fill.html#a39cf49c0ce46f96be3510f0b70c9d892"> 21</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_flood_fill.html#a39cf49c0ce46f96be3510f0b70c9d892">IntelliToolFloodFill::onMouseRightReleased</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <a class="code" href="class_intelli_tool.html#a16189b00307c6d7e89f28198f54404b0">IntelliTool::onMouseRightReleased</a>(x,y);</div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> }</div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  </div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="class_intelli_tool_flood_fill.html#ac85e3cb6233508ff9612833a8d9e3961"> 25</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_flood_fill.html#ac85e3cb6233508ff9612833a8d9e3961">IntelliToolFloodFill::onMouseLeftPressed</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <span class="keywordflow">if</span>(!(x>=0 && x<Area->getWidthOfActive() && y>=0 && y<Area->getHeightOfActive())) {</div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="keywordflow">return</span>;</div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  }</div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <a class="code" href="class_intelli_tool.html#a34b7ef1dde96b94a0ce450a25ae1778c">IntelliTool::onMouseLeftPressed</a>(x,y);</div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  </div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  QPoint start(x,y);</div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  std::queue<QPoint> Q;</div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  Q.push(start);</div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  </div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  QColor oldColor = this-><a class="code" href="class_intelli_tool.html#aedccdad01b2bc6ec84fad3582251ff5d">activeLayer</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#a4576ebb6d863321c816293d7b7f9fd3f">getPixelColor</a>(start);</div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  QColor newColor = this-><a class="code" href="class_intelli_tool.html#ae2e0ac394611a361ab4ef2fe55c03fef">colorPicker</a>-><a class="code" href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">getFirstColor</a>();</div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#af3c859f5c409e37051edfd9e9fbca056">drawPixel</a>(start,newColor);</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>  QPoint left, right, top, down;</div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keywordflow">while</span>(!Q.empty()) {</div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  QPoint Current = Q.front();</div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  Q.pop();</div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  </div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  left = QPoint(Current.x()-1,Current.y() );</div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  right = QPoint(Current.x()+1,Current.y() );</div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  top = QPoint(Current.x(),Current.y()-1);</div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  down = QPoint(Current.x(),Current.y()+1);</div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordflow">if</span>((right.x() < <a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af261813df52ff0b0c82bfa57efeb9897">width</a>) && (<a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#a4576ebb6d863321c816293d7b7f9fd3f">getPixelColor</a>(right) != newColor) && (<a class="code" href="class_intelli_tool.html#aedccdad01b2bc6ec84fad3582251ff5d">activeLayer</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#a4576ebb6d863321c816293d7b7f9fd3f">getPixelColor</a>(right) == oldColor)) {</div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#af3c859f5c409e37051edfd9e9fbca056">drawPixel</a>(right,newColor);</div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  Q.push(right);</div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  }</div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordflow">if</span>((left.x() >= 0) && (<a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#a4576ebb6d863321c816293d7b7f9fd3f">getPixelColor</a>(left) != newColor) && (<a class="code" href="class_intelli_tool.html#aedccdad01b2bc6ec84fad3582251ff5d">activeLayer</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#a4576ebb6d863321c816293d7b7f9fd3f">getPixelColor</a>(left) == oldColor)) {</div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#af3c859f5c409e37051edfd9e9fbca056">drawPixel</a>(left,newColor);</div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  Q.push(left);</div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  }</div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordflow">if</span>((top.y() >= 0) && (<a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#a4576ebb6d863321c816293d7b7f9fd3f">getPixelColor</a>(top) != newColor) && (<a class="code" href="class_intelli_tool.html#aedccdad01b2bc6ec84fad3582251ff5d">activeLayer</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#a4576ebb6d863321c816293d7b7f9fd3f">getPixelColor</a>(top) == oldColor)) {</div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#af3c859f5c409e37051edfd9e9fbca056">drawPixel</a>(top,newColor);</div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  Q.push(top);</div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  }</div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordflow">if</span>((down.y() < <a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#ae0003fb815e50ed587a9897988befc90">height</a>) && (<a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#a4576ebb6d863321c816293d7b7f9fd3f">getPixelColor</a>(down) != newColor) && (<a class="code" href="class_intelli_tool.html#aedccdad01b2bc6ec84fad3582251ff5d">activeLayer</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#a4576ebb6d863321c816293d7b7f9fd3f">getPixelColor</a>(down) == oldColor)) {</div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#af3c859f5c409e37051edfd9e9fbca056">drawPixel</a>(down,newColor);</div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  Q.push(down);</div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  }</div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  }</div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  </div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#aebbced93f4744fad81b7f141b21f4ab2">calculateVisiblity</a>();</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> }</div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  </div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="class_intelli_tool_flood_fill.html#a7438ef96c6c36068bce76e2364e8594c"> 69</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_flood_fill.html#a7438ef96c6c36068bce76e2364e8594c">IntelliToolFloodFill::onMouseLeftReleased</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <a class="code" href="class_intelli_tool.html#a906a2575c16c8a33cb2a5197f8d8cc5b">IntelliTool::onMouseLeftReleased</a>(x,y);</div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> }</div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  </div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="class_intelli_tool_flood_fill.html#ad58cc7c065123beb6b0270f99e99b991"> 73</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_flood_fill.html#ad58cc7c065123beb6b0270f99e99b991">IntelliToolFloodFill::onWheelScrolled</a>(<span class="keywordtype">int</span> value){</div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <a class="code" href="class_intelli_tool.html#a4dccfd4460255ccb866f336406a33574">IntelliTool::onWheelScrolled</a>(value);</div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  </div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> }</div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  </div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="class_intelli_tool_flood_fill.html#a3cd42cea99bc7583875abcc0c274c668"> 78</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_flood_fill.html#a3cd42cea99bc7583875abcc0c274c668">IntelliToolFloodFill::onMouseMoved</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <a class="code" href="class_intelli_tool.html#ac10e20414cd8855a2f9b103fb6408639">IntelliTool::onMouseMoved</a>(x,y);</div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> }</div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<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#l00014">IntelliTool.cpp:14</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#l00032">IntelliTool.cpp:32</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#l00038">IntelliTool.h:38</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_flood_fill_html_a39cf49c0ce46f96be3510f0b70c9d892"><div class="ttname"><a href="class_intelli_tool_flood_fill.html#a39cf49c0ce46f96be3510f0b70c9d892">IntelliToolFloodFill::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_flood_fill_8cpp_source.html#l00020">IntelliToolFloodFill.cpp:20</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#l00025">IntelliTool.cpp:25</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_image_html_af3c859f5c409e37051edfd9e9fbca056"><div class="ttname"><a href="class_intelli_image.html#af3c859f5c409e37051edfd9e9fbca056">IntelliImage::drawPixel</a></div><div class="ttdeci">virtual void drawPixel(const QPoint &p1, const QColor &color)</div><div class="ttdoc">A funtcion used to draw a pixel on the Image with the given Color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_image_8cpp_source.html#l00044">IntelliImage.cpp:44</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_flood_fill_html_a7438ef96c6c36068bce76e2364e8594c"><div class="ttname"><a href="class_intelli_tool_flood_fill.html#a7438ef96c6c36068bce76e2364e8594c">IntelliToolFloodFill::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_flood_fill_8cpp_source.html#l00068">IntelliToolFloodFill.cpp:68</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_flood_fill_html_ad58cc7c065123beb6b0270f99e99b991"><div class="ttname"><a href="class_intelli_tool_flood_fill.html#ad58cc7c065123beb6b0270f99e99b991">IntelliToolFloodFill::onWheelScrolled</a></div><div class="ttdeci">virtual void onWheelScrolled(int value) override</div><div class="ttdoc">A function managing the scroll event.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_flood_fill_8cpp_source.html#l00072">IntelliToolFloodFill.cpp:72</a></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#l00015">IntelliTool.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#l00033">IntelliTool.cpp:33</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#l00051">IntelliTool.h:51</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_flood_fill_html_a39cf49c0ce46f96be3510f0b70c9d892"><div class="ttname"><a href="class_intelli_tool_flood_fill.html#a39cf49c0ce46f96be3510f0b70c9d892">IntelliToolFloodFill::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_flood_fill_8cpp_source.html#l00021">IntelliToolFloodFill.cpp:21</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#l00026">IntelliTool.cpp:26</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_image_html_af3c859f5c409e37051edfd9e9fbca056"><div class="ttname"><a href="class_intelli_image.html#af3c859f5c409e37051edfd9e9fbca056">IntelliImage::drawPixel</a></div><div class="ttdeci">virtual void drawPixel(const QPoint &p1, const QColor &color)</div><div class="ttdoc">A funtcion used to draw a pixel on the Image with the given Color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_image_8cpp_source.html#l00055">IntelliImage.cpp:55</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a3fbd2584566b3cefcf3c070ae0b69d8fa526904ea67131c56718f9882518b5d93"><div class="ttname"><a href="class_intelli_tool.html#a3fbd2584566b3cefcf3c070ae0b69d8fa526904ea67131c56718f9882518b5d93">IntelliTool::Tooltype::FLOODFILL</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_flood_fill_html_a0b283b1b0135ff909a7199be9da9c076"><div class="ttname"><a href="class_intelli_tool_flood_fill.html#a0b283b1b0135ff909a7199be9da9c076">IntelliToolFloodFill::IntelliToolFloodFill</a></div><div class="ttdeci">IntelliToolFloodFill(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_flood_fill_8cpp_source.html#l00008">IntelliToolFloodFill.cpp:8</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_flood_fill_html_a7438ef96c6c36068bce76e2364e8594c"><div class="ttname"><a href="class_intelli_tool_flood_fill.html#a7438ef96c6c36068bce76e2364e8594c">IntelliToolFloodFill::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_flood_fill_8cpp_source.html#l00069">IntelliToolFloodFill.cpp:69</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_flood_fill_html_ad58cc7c065123beb6b0270f99e99b991"><div class="ttname"><a href="class_intelli_tool_flood_fill.html#ad58cc7c065123beb6b0270f99e99b991">IntelliToolFloodFill::onWheelScrolled</a></div><div class="ttdeci">virtual void onWheelScrolled(int value) override</div><div class="ttdoc">A function managing the scroll event.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_flood_fill_8cpp_source.html#l00073">IntelliToolFloodFill.cpp:73</a></div></div>
|
||||
<div class="ttc" id="a_intelli_tool_flood_fill_8h_html"><div class="ttname"><a href="_intelli_tool_flood_fill_8h.html">IntelliToolFloodFill.h</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_flood_fill_html_ac85e3cb6233508ff9612833a8d9e3961"><div class="ttname"><a href="class_intelli_tool_flood_fill.html#ac85e3cb6233508ff9612833a8d9e3961">IntelliToolFloodFill::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 point to flood fill around and does t...</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_flood_fill_8cpp_source.html#l00024">IntelliToolFloodFill.cpp:24</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#l00036">PaintingArea.h:36</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_flood_fill_html_a83b1bd8be0cbb32cdf61a9597ec849ba"><div class="ttname"><a href="class_intelli_tool_flood_fill.html#a83b1bd8be0cbb32cdf61a9597ec849ba">IntelliToolFloodFill::~IntelliToolFloodFill</a></div><div class="ttdeci">virtual ~IntelliToolFloodFill() override</div><div class="ttdoc">A Destructor.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_flood_fill_8cpp_source.html#l00012">IntelliToolFloodFill.cpp:12</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_flood_fill_html_a83b51838da304e274bf866cf2fd5407a"><div class="ttname"><a href="class_intelli_tool_flood_fill.html#a83b51838da304e274bf866cf2fd5407a">IntelliToolFloodFill::IntelliToolFloodFill</a></div><div class="ttdeci">IntelliToolFloodFill(PaintingArea *Area, IntelliColorPicker *colorPicker)</div><div class="ttdoc">A constructor setting the general paintingArea and colorPicker.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_flood_fill_8cpp_source.html#l00008">IntelliToolFloodFill.cpp:8</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#l00021">IntelliTool.cpp:21</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#l00048">IntelliTool.h:48</a></div></div>
|
||||
<div class="ttc" id="astruct_layer_object_html_af261813df52ff0b0c82bfa57efeb9897"><div class="ttname"><a href="struct_layer_object.html#af261813df52ff0b0c82bfa57efeb9897">LayerObject::width</a></div><div class="ttdeci">int width</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8h_source.html#l00026">PaintingArea.h:26</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_flood_fill_html_a3cd42cea99bc7583875abcc0c274c668"><div class="ttname"><a href="class_intelli_tool_flood_fill.html#a3cd42cea99bc7583875abcc0c274c668">IntelliToolFloodFill::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.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_flood_fill_8cpp_source.html#l00077">IntelliToolFloodFill.cpp:77</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#l00013">IntelliTool.h:13</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_flood_fill_html_ac85e3cb6233508ff9612833a8d9e3961"><div class="ttname"><a href="class_intelli_tool_flood_fill.html#ac85e3cb6233508ff9612833a8d9e3961">IntelliToolFloodFill::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 point to flood fill around and does t...</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_flood_fill_8cpp_source.html#l00025">IntelliToolFloodFill.cpp:25</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#l00037">PaintingArea.h:37</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_flood_fill_html_a83b1bd8be0cbb32cdf61a9597ec849ba"><div class="ttname"><a href="class_intelli_tool_flood_fill.html#a83b1bd8be0cbb32cdf61a9597ec849ba">IntelliToolFloodFill::~IntelliToolFloodFill</a></div><div class="ttdeci">virtual ~IntelliToolFloodFill() override</div><div class="ttdoc">A Destructor.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_flood_fill_8cpp_source.html#l00013">IntelliToolFloodFill.cpp:13</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#l00022">IntelliTool.cpp:22</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_aedccdad01b2bc6ec84fad3582251ff5d"><div class="ttname"><a href="class_intelli_tool.html#aedccdad01b2bc6ec84fad3582251ff5d">IntelliTool::activeLayer</a></div><div class="ttdeci">LayerObject * activeLayer</div><div class="ttdoc">A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or prev...</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00058">IntelliTool.h:58</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#l00063">IntelliTool.h:63</a></div></div>
|
||||
<div class="ttc" id="astruct_layer_object_html_af261813df52ff0b0c82bfa57efeb9897"><div class="ttname"><a href="struct_layer_object.html#af261813df52ff0b0c82bfa57efeb9897">LayerObject::width</a></div><div class="ttdeci">int width</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_tool_flood_fill_html_a3cd42cea99bc7583875abcc0c274c668"><div class="ttname"><a href="class_intelli_tool_flood_fill.html#a3cd42cea99bc7583875abcc0c274c668">IntelliToolFloodFill::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.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_flood_fill_8cpp_source.html#l00078">IntelliToolFloodFill.cpp:78</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#l00014">IntelliTool.h:14</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_color_picker_html_aae2eb27b928fe9388b9398b0556303b7"><div class="ttname"><a href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">IntelliColorPicker::getFirstColor</a></div><div class="ttdeci">QColor getFirstColor()</div><div class="ttdoc">A function to read the primary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_helper_2_intelli_color_picker_8cpp_source.html#l00016">IntelliColorPicker.cpp:16</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_image_html_a4576ebb6d863321c816293d7b7f9fd3f"><div class="ttname"><a href="class_intelli_image.html#a4576ebb6d863321c816293d7b7f9fd3f">IntelliImage::getPixelColor</a></div><div class="ttdeci">virtual QColor getPixelColor(QPoint &point)</div><div class="ttdoc">A function that returns the pixelcolor at a certain point.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_image_8cpp_source.html#l00080">IntelliImage.cpp:80</a></div></div>
|
||||
<div class="ttc" id="astruct_layer_object_html_ae0003fb815e50ed587a9897988befc90"><div class="ttname"><a href="struct_layer_object.html#ae0003fb815e50ed587a9897988befc90">LayerObject::height</a></div><div class="ttdeci">int height</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_image_html_a4576ebb6d863321c816293d7b7f9fd3f"><div class="ttname"><a href="class_intelli_image.html#a4576ebb6d863321c816293d7b7f9fd3f">IntelliImage::getPixelColor</a></div><div class="ttdeci">virtual QColor getPixelColor(QPoint &point)</div><div class="ttdoc">A function that returns the pixelcolor at a certain point.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_image_8cpp_source.html#l00115">IntelliImage.cpp:115</a></div></div>
|
||||
<div class="ttc" id="astruct_layer_object_html_ae0003fb815e50ed587a9897988befc90"><div class="ttname"><a href="struct_layer_object.html#ae0003fb815e50ed587a9897988befc90">LayerObject::height</a></div><div class="ttdeci">int height</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8h_source.html#l00028">PaintingArea.h:28</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="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00046">IntelliTool.h:46</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#l00011">IntelliColorPicker.h:11</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_flood_fill_html_ada0f7154d119102410a55038763a17e4"><div class="ttname"><a href="class_intelli_tool_flood_fill.html#ada0f7154d119102410a55038763a17e4">IntelliToolFloodFill::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_flood_fill_8cpp_source.html#l00016">IntelliToolFloodFill.cpp:16</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="ttdef"><b>Definition:</b> <a href="_painting_area_8h_source.html#l00025">PaintingArea.h:25</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a13512e95d21a9934ecb36d73b118c25f"><div class="ttname"><a href="class_intelli_tool.html#a13512e95d21a9934ecb36d73b118c25f">IntelliTool::Active</a></div><div class="ttdeci">LayerObject * Active</div><div class="ttdoc">A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or prev...</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00043">IntelliTool.h:43</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#l00041">IntelliTool.cpp:41</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_flood_fill_html_ada0f7154d119102410a55038763a17e4"><div class="ttname"><a href="class_intelli_tool_flood_fill.html#ada0f7154d119102410a55038763a17e4">IntelliToolFloodFill::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_flood_fill_8cpp_source.html#l00017">IntelliToolFloodFill.cpp:17</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="ttdef"><b>Definition:</b> <a href="_painting_area_8h_source.html#l00026">PaintingArea.h:26</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#l00042">IntelliTool.cpp:42</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#l00046">IntelliTool.cpp:46</a></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#l00047">IntelliTool.cpp:47</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#l00004">IntelliToolsettings.h:4</a></div></div>
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
|
||||
Reference in New Issue
Block a user