mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-12 19:40:28 +02:00
Updated docs
This commit is contained in:
@@ -93,109 +93,126 @@ $(document).ready(function(){initNavTree('_intelli_tool_8cpp_source.html','');})
|
||||
<a href="_intelli_tool_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> <span class="preprocessor">#include "<a class="code" href="_intelli_tool_8h.html">IntelliTool.h</a>"</span></div>
|
||||
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#include "<a class="code" href="_painting_area_8h.html">Layer/PaintingArea.h</a>"</span></div>
|
||||
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>  </div>
|
||||
<div class="line"><a name="l00004"></a><span class="lineno"><a class="line" href="class_intelli_tool.html#a346dd55d489fced38e7bb46f9168af91"> 4</a></span> <a class="code" href="class_intelli_tool.html#a346dd55d489fced38e7bb46f9168af91">IntelliTool::IntelliTool</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="l00004"></a><span class="lineno"><a class="line" href="class_intelli_tool.html#a08ef094271ce6248b42f888472463526"> 4</a></span> <a class="code" href="class_intelli_tool.html#a08ef094271ce6248b42f888472463526">IntelliTool::IntelliTool</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="l00005"></a><span class="lineno"> 5</span>  this->Area=<a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>;</div>
|
||||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>  this->colorPicker=<a class="code" href="class_intelli_tool.html#ae2e0ac394611a361ab4ef2fe55c03fef">colorPicker</a>;</div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> }</div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>  </div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>  this->Toolsettings=<a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>;</div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> }</div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>  </div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="class_intelli_tool.html#a57fb1b27d364c9e3696eb928b75fa9f2"> 10</a></span> <a class="code" href="class_intelli_tool.html#a57fb1b27d364c9e3696eb928b75fa9f2">IntelliTool::~IntelliTool</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"> 13</span>  </div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="class_intelli_tool.html#a1e6aa68ac5f3c2ca02319e5ef3f0c966"> 14</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool.html#a1e6aa68ac5f3c2ca02319e5ef3f0c966">IntelliTool::onMouseRightPressed</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  <span class="keywordflow">if</span>(<a class="code" href="class_intelli_tool.html#af256de16e9825922d20a23d11617b51b">drawing</a>) {</div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  <a class="code" href="class_intelli_tool.html#af256de16e9825922d20a23d11617b51b">drawing</a>=<span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  this->deleteToolLayer();</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"> 20</span>  </div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="class_intelli_tool.html#a16189b00307c6d7e89f28198f54404b0"> 21</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool.html#a16189b00307c6d7e89f28198f54404b0">IntelliTool::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>  <span class="comment">//optional for tool</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"> 24</span>  </div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="class_intelli_tool.html#a34b7ef1dde96b94a0ce450a25ae1778c"> 25</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool.html#a34b7ef1dde96b94a0ce450a25ae1778c">IntelliTool::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>  this-><a class="code" href="class_intelli_tool.html#af256de16e9825922d20a23d11617b51b">drawing</a>=<span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="comment">//create drawing layer</span></div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  this->createToolLayer();</div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</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="l00030"></a><span class="lineno"> 30</span> }</div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  </div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="class_intelli_tool.html#a906a2575c16c8a33cb2a5197f8d8cc5b"> 32</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool.html#a906a2575c16c8a33cb2a5197f8d8cc5b">IntelliTool::onMouseLeftReleased</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keywordflow">if</span>(<a class="code" href="class_intelli_tool.html#af256de16e9825922d20a23d11617b51b">drawing</a>) {</div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <a class="code" href="class_intelli_tool.html#af256de16e9825922d20a23d11617b51b">drawing</a>=<span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  this->mergeToolLayer();</div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  this->deleteToolLayer();</div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <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#aebbced93f4744fad81b7f141b21f4ab2">calculateVisiblity</a>();</div>
|
||||
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  }</div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> }</div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  </div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="class_intelli_tool.html#ac10e20414cd8855a2f9b103fb6408639"> 41</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool.html#ac10e20414cd8855a2f9b103fb6408639">IntelliTool::onMouseMoved</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keywordflow">if</span>(<a class="code" href="class_intelli_tool.html#af256de16e9825922d20a23d11617b51b">drawing</a>)</div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</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="l00044"></a><span class="lineno"> 44</span> }</div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  </div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="class_intelli_tool.html#a4dccfd4460255ccb866f336406a33574"> 46</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool.html#a4dccfd4460255ccb866f336406a33574">IntelliTool::onWheelScrolled</a>(<span class="keywordtype">int</span> value){</div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="comment">//if needed for future general tasks implement in here</span></div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> }</div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  </div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="keywordtype">void</span> IntelliTool::createToolLayer(){</div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>->createTempLayerAfter(<a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>->activeLayer);</div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  this-><a class="code" href="class_intelli_tool.html#a13512e95d21a9934ecb36d73b118c25f">Active</a>=&<a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>->layerBundle[<a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>->activeLayer];</div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  this-><a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>=&<a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>->layerBundle[<a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>->activeLayer+1];</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>  </div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="keywordtype">void</span> IntelliTool::mergeToolLayer(){</div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  QColor clr_0;</div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  QColor clr_1;</div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> y=0; y<<a class="code" href="class_intelli_tool.html#a13512e95d21a9934ecb36d73b118c25f">Active</a>-><a class="code" href="struct_layer_object.html#ae0003fb815e50ed587a9897988befc90">height</a>; y++) {</div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> x=0; x<<a class="code" href="class_intelli_tool.html#a13512e95d21a9934ecb36d73b118c25f">Active</a>-><a class="code" href="struct_layer_object.html#af261813df52ff0b0c82bfa57efeb9897">width</a>; x++) {</div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  clr_0=<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#a2431be82e9e85dd34b62a7f7cba053c2">imageData</a>.pixelColor(x,y);</div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  clr_1=<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#a2431be82e9e85dd34b62a7f7cba053c2">imageData</a>.pixelColor(x,y);</div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordtype">float</span> t = static_cast<float>(clr_1.alpha())/255.f;</div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordtype">int</span> r =static_cast<int>(static_cast<float>(clr_1.red())*(t)+static_cast<float>(clr_0.red())*(1.f-t)+0.5f);</div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordtype">int</span> g =static_cast<int>(static_cast<float>(clr_1.green())*(t)+static_cast<float>(clr_0.green())*(1.f-t)+0.5f);</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordtype">int</span> b =static_cast<int>(static_cast<float>(clr_1.blue())*(t)+static_cast<float>(clr_0.blue()*(1.f-t))+0.5f);</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordtype">int</span> a =std::min(clr_0.alpha()+clr_1.alpha(), 255);</div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  clr_0.setRed(r);</div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  clr_0.setGreen(g);</div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  clr_0.setBlue(b);</div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  clr_0.setAlpha(a);</div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  </div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <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#a2431be82e9e85dd34b62a7f7cba053c2">imageData</a>.setPixelColor(x, y, clr_0);</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"> 77</span>  </div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="keywordtype">void</span> IntelliTool::deleteToolLayer(){</div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>-><a class="code" href="class_painting_area.html#a6efad6f8ea060674b157b42b431cd173">deleteLayer</a>(<a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>->activeLayer+1);</div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  this-><a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>=<span class="keyword">nullptr</span>;</div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> }</div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  </div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="class_intelli_tool.html#a57fb1b27d364c9e3696eb928b75fa9f2"> 11</a></span> <a class="code" href="class_intelli_tool.html#a57fb1b27d364c9e3696eb928b75fa9f2">IntelliTool::~IntelliTool</a>(){</div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  </div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> }</div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  </div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="class_intelli_tool.html#a1e6aa68ac5f3c2ca02319e5ef3f0c966"> 15</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool.html#a1e6aa68ac5f3c2ca02319e5ef3f0c966">IntelliTool::onMouseRightPressed</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  <span class="keywordflow">if</span>(<a class="code" href="class_intelli_tool.html#a555aa8a74992327f740dd69b3bb0ccca">isDrawing</a>) {</div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  <a class="code" href="class_intelli_tool.html#a555aa8a74992327f740dd69b3bb0ccca">isDrawing</a>=<span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  this->deleteToolLayer();</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"> 21</span>  </div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="class_intelli_tool.html#a16189b00307c6d7e89f28198f54404b0"> 22</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool.html#a16189b00307c6d7e89f28198f54404b0">IntelliTool::onMouseRightReleased</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <span class="comment">//optional for tool</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"> 25</span>  </div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="class_intelli_tool.html#a34b7ef1dde96b94a0ce450a25ae1778c"> 26</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool.html#a34b7ef1dde96b94a0ce450a25ae1778c">IntelliTool::onMouseLeftPressed</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  this-><a class="code" href="class_intelli_tool.html#a555aa8a74992327f740dd69b3bb0ccca">isDrawing</a>=<span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="comment">//create drawing layer</span></div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  this->createToolLayer();</div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</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="l00031"></a><span class="lineno"> 31</span> }</div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  </div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="class_intelli_tool.html#a906a2575c16c8a33cb2a5197f8d8cc5b"> 33</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool.html#a906a2575c16c8a33cb2a5197f8d8cc5b">IntelliTool::onMouseLeftReleased</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordflow">if</span>(<a class="code" href="class_intelli_tool.html#a555aa8a74992327f740dd69b3bb0ccca">isDrawing</a>) {</div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <a class="code" href="class_intelli_tool.html#a555aa8a74992327f740dd69b3bb0ccca">isDrawing</a>=<span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  this->mergeToolLayer();</div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  this->deleteToolLayer();</div>
|
||||
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <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#aebbced93f4744fad81b7f141b21f4ab2">calculateVisiblity</a>();</div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  }</div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> }</div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  </div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="class_intelli_tool.html#ac10e20414cd8855a2f9b103fb6408639"> 42</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool.html#ac10e20414cd8855a2f9b103fb6408639">IntelliTool::onMouseMoved</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordflow">if</span>(<a class="code" href="class_intelli_tool.html#a555aa8a74992327f740dd69b3bb0ccca">isDrawing</a>)</div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</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="l00045"></a><span class="lineno"> 45</span> }</div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  </div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="class_intelli_tool.html#a4dccfd4460255ccb866f336406a33574"> 47</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool.html#a4dccfd4460255ccb866f336406a33574">IntelliTool::onWheelScrolled</a>(<span class="keywordtype">int</span> value){</div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="comment">//if needed for future general tasks implement in here</span></div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> }</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="keywordtype">void</span> IntelliTool::createToolLayer(){</div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>->createTempTopLayer(<a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>->activeLayer);</div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  this-><a class="code" href="class_intelli_tool.html#aedccdad01b2bc6ec84fad3582251ff5d">activeLayer</a>=&<a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>->layerBundle[static_cast<unsigned long long>(<a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>->activeLayer)];</div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  this-><a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>=&<a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>->layerBundle[static_cast<unsigned long long>(<a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>->activeLayer+1)];</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>  </div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="keywordtype">void</span> IntelliTool::mergeToolLayer(){</div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  QColor clr_0;</div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  QColor clr_1;</div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> y=0; y<<a class="code" href="class_intelli_tool.html#aedccdad01b2bc6ec84fad3582251ff5d">activeLayer</a>-><a class="code" href="struct_layer_object.html#ae0003fb815e50ed587a9897988befc90">height</a>; y++) {</div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> x=0; x<<a class="code" href="class_intelli_tool.html#aedccdad01b2bc6ec84fad3582251ff5d">activeLayer</a>-><a class="code" href="struct_layer_object.html#af261813df52ff0b0c82bfa57efeb9897">width</a>; x++) {</div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  clr_0=<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#a2431be82e9e85dd34b62a7f7cba053c2">imageData</a>.pixelColor(x,y);</div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  clr_1=<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#a2431be82e9e85dd34b62a7f7cba053c2">imageData</a>.pixelColor(x,y);</div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordtype">float</span> t = static_cast<float>(clr_1.alpha())/255.f;</div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordtype">int</span> r =static_cast<int>(static_cast<float>(clr_1.red())*(t)+static_cast<float>(clr_0.red())*(1.f-t)+0.5f);</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordtype">int</span> g =static_cast<int>(static_cast<float>(clr_1.green())*(t)+static_cast<float>(clr_0.green())*(1.f-t)+0.5f);</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordtype">int</span> b =static_cast<int>(static_cast<float>(clr_1.blue())*(t)+static_cast<float>(clr_0.blue()*(1.f-t))+0.5f);</div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordtype">int</span> a =std::min(clr_0.alpha()+clr_1.alpha(), 255);</div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  clr_0.setRed(r);</div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  clr_0.setGreen(g);</div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  clr_0.setBlue(b);</div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  clr_0.setAlpha(a);</div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  </div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <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#a2431be82e9e85dd34b62a7f7cba053c2">imageData</a>.setPixelColor(x, y, clr_0);</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>  <a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>->DumpyGui-><a class="code" href="class_intelli_photo_gui.html#a1dbef8d4688227aa9455aea52db00bf4">UpdateGui</a>();</div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> }</div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  </div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="keywordtype">void</span> IntelliTool::deleteToolLayer(){</div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>-><a class="code" href="class_painting_area.html#a2382ebf8c31dee36cb714f34a18b71e4">deleteLayer</a>(<a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>->activeLayer+1);</div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  this-><a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>=<span class="keyword">nullptr</span>;</div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> }</div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  </div>
|
||||
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="class_intelli_tool.html#aae2a11c5bae4973ed827c60e0c1352b1"> 85</a></span> <a class="code" href="class_intelli_tool.html#a3fbd2584566b3cefcf3c070ae0b69d8f">IntelliTool::Tooltype</a> <a class="code" href="class_intelli_tool.html#aae2a11c5bae4973ed827c60e0c1352b1">IntelliTool::getTooltype</a>(){</div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordflow">return</span> <a class="code" href="class_intelli_tool.html#a631388999f36013628e13b9de87a6f7b">ActiveType</a>;</div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> }</div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  </div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="class_intelli_tool.html#a0020fad2e26315d5c4d96dbc95d1dceb"> 89</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_intelli_tool.html#a0020fad2e26315d5c4d96dbc95d1dceb">IntelliTool::getIsDrawing</a>(){</div>
|
||||
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordflow">return</span> <a class="code" href="class_intelli_tool.html#a555aa8a74992327f740dd69b3bb0ccca">isDrawing</a>;</div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</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_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="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_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_tool_html_a346dd55d489fced38e7bb46f9168af91"><div class="ttname"><a href="class_intelli_tool.html#a346dd55d489fced38e7bb46f9168af91">IntelliTool::IntelliTool</a></div><div class="ttdeci">IntelliTool(PaintingArea *Area, IntelliColorPicker *colorPicker)</div><div class="ttdoc">A constructor setting the general Painting Area and colorPicker.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8cpp_source.html#l00004">IntelliTool.cpp:4</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#l00033">IntelliTool.h:33</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_painting_area_html_a6efad6f8ea060674b157b42b431cd173"><div class="ttname"><a href="class_painting_area.html#a6efad6f8ea060674b157b42b431cd173">PaintingArea::deleteLayer</a></div><div class="ttdeci">void deleteLayer(int index)</div><div class="ttdoc">The deleteLayer method removes a layer at a given index.</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8cpp_source.html#l00073">PaintingArea.cpp:73</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_html_af256de16e9825922d20a23d11617b51b"><div class="ttname"><a href="class_intelli_tool.html#af256de16e9825922d20a23d11617b51b">IntelliTool::drawing</a></div><div class="ttdeci">bool drawing</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#l00053">IntelliTool.h:53</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_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#l00053">IntelliTool.h:53</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#l00044">IntelliTool.h:44</a></div></div>
|
||||
<div class="ttc" id="aclass_painting_area_html_a2382ebf8c31dee36cb714f34a18b71e4"><div class="ttname"><a href="class_painting_area.html#a2382ebf8c31dee36cb714f34a18b71e4">PaintingArea::deleteLayer</a></div><div class="ttdeci">void deleteLayer(int idx)</div><div class="ttdoc">The deleteLayer method removes a layer at a given idx.</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8cpp_source.html#l00074">PaintingArea.cpp:74</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a3fbd2584566b3cefcf3c070ae0b69d8f"><div class="ttname"><a href="class_intelli_tool.html#a3fbd2584566b3cefcf3c070ae0b69d8f">IntelliTool::Tooltype</a></div><div class="ttdeci">Tooltype</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00016">IntelliTool.h:16</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_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#l00068">IntelliTool.h:68</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_aae2a11c5bae4973ed827c60e0c1352b1"><div class="ttname"><a href="class_intelli_tool.html#aae2a11c5bae4973ed827c60e0c1352b1">IntelliTool::getTooltype</a></div><div class="ttdeci">Tooltype getTooltype()</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8cpp_source.html#l00085">IntelliTool.cpp:85</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_html_a0020fad2e26315d5c4d96dbc95d1dceb"><div class="ttname"><a href="class_intelli_tool.html#a0020fad2e26315d5c4d96dbc95d1dceb">IntelliTool::getIsDrawing</a></div><div class="ttdeci">bool getIsDrawing()</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8cpp_source.html#l00089">IntelliTool.cpp:89</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="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="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_image_html_a2431be82e9e85dd34b62a7f7cba053c2"><div class="ttname"><a href="class_intelli_image.html#a2431be82e9e85dd34b62a7f7cba053c2">IntelliImage::imageData</a></div><div class="ttdeci">QImage imageData</div><div class="ttdoc">The underlying image data.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_image_8h_source.html#l00032">IntelliImage.h:32</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_html_a08ef094271ce6248b42f888472463526"><div class="ttname"><a href="class_intelli_tool.html#a08ef094271ce6248b42f888472463526">IntelliTool::IntelliTool</a></div><div class="ttdeci">IntelliTool(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)</div><div class="ttdoc">A constructor setting the general Painting Area and colorPicker.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8cpp_source.html#l00004">IntelliTool.cpp:4</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_photo_gui_html_a1dbef8d4688227aa9455aea52db00bf4"><div class="ttname"><a href="class_intelli_photo_gui.html#a1dbef8d4688227aa9455aea52db00bf4">IntelliPhotoGui::UpdateGui</a></div><div class="ttdeci">void UpdateGui()</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_photo_gui_8cpp_source.html#l00694">IntelliPhotoGui.cpp:694</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_image_html_a2431be82e9e85dd34b62a7f7cba053c2"><div class="ttname"><a href="class_intelli_image.html#a2431be82e9e85dd34b62a7f7cba053c2">IntelliImage::imageData</a></div><div class="ttdeci">QImage imageData</div><div class="ttdoc">The underlying image data.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_image_8h_source.html#l00037">IntelliImage.h:37</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_a57fb1b27d364c9e3696eb928b75fa9f2"><div class="ttname"><a href="class_intelli_tool.html#a57fb1b27d364c9e3696eb928b75fa9f2">IntelliTool::~IntelliTool</a></div><div class="ttdeci">virtual ~IntelliTool()=0</div><div class="ttdoc">An abstract Destructor.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8cpp_source.html#l00010">IntelliTool.cpp:10</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>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a57fb1b27d364c9e3696eb928b75fa9f2"><div class="ttname"><a href="class_intelli_tool.html#a57fb1b27d364c9e3696eb928b75fa9f2">IntelliTool::~IntelliTool</a></div><div class="ttdeci">virtual ~IntelliTool()=0</div><div class="ttdoc">An abstract Destructor.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8cpp_source.html#l00011">IntelliTool.cpp:11</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