[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    Re: Implementing Magnetic Lasso for Krita
From:       Dmitry Kazakov <dimula73 () gmail ! com>
Date:       2019-03-30 10:03:20
Message-ID: CAEkBSfVuNBtDXM6p2o8vDnMpFpdXESqtyXYK3orXpfj1rUjaDg () mail ! gmail ! com
[Download RAW message or body]

From your description it looks as if you don't actually need to inherit
from KoCreatePathTool. That can be implemented directly.

On Mon, Mar 25, 2019 at 4:34 PM Kuntal Majumder <hellozee@disroot.org>
wrote:

> Hi
> On ২৫/৩/১৯ ৫:৫৯ PM, Dmitry Kazakov wrote:
>
> Whether or not to use this "third" way is actually depends on whether you
> tool will generate  bezier curves. If you are going to have bezier curves,
> then you should reuse the code from KoCreatePathTool. How to use it? This
> decision is up to you. You can either reuse it in the current (not very
> pretty approach) or just refactor the base tool into some kind of strategy
> that will be reused by both KisToolPath and your tool.
>
> My idea is to have points/anchors/nodes but not bezier curves, the
> selection would just be a vector of points like what the outline tool does
> and the points/anchors/nodes act as checkpoints where you can go back if
> you make any mistake. Though some of the functionality of the path tool
> like creating points/nodes/anchors on click, removing points/nodes/anchors
> with right click and completing the path when the user clicks on the first
> node will be duplicated. Is that enough functionality I am borrowing that I
> will redoing the Path Tool, though feels like the polygon tool is a closer
> candidate but I am confused. :-(
>
>
> Regards
> Kuntal M
> http://hellozee.me
>


-- 
Dmitry Kazakov

[Attachment #3 (text/html)]

<div dir="ltr">From your description it looks as if you don&#39;t actually need to \
inherit from KoCreatePathTool. That can be implemented directly.<br></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 25, 2019 at 4:34 PM \
Kuntal Majumder &lt;<a \
href="mailto:hellozee@disroot.org">hellozee@disroot.org</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">  
    
  
  <div bgcolor="#FFFFFF">
    <p>Hi<br>
    </p>
    <div class="gmail-m_8545480046396908794moz-cite-prefix">On ২৫/৩/১৯ \
৫:৫৯ PM, Dmitry Kazakov  wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div class="gmail_quote">
          <div>Whether or not to use this &quot;third&quot; way is actually
            depends on whether you tool will generate   bezier curves. If
            you are going to have bezier curves, then you should reuse
            the code from KoCreatePathTool. How to use it? This decision
            is up to you. You can either reuse it in the current (not
            very pretty approach) or just refactor the base tool into
            some kind of strategy that will be reused by both
            KisToolPath and your tool. <br>
          </div>
        </div>
      </div>
    </blockquote>
    <p>
      My idea is to have points/anchors/nodes but not bezier curves, the
      selection would just be a vector of points like what the outline
      tool does and the points/anchors/nodes act as checkpoints where
      you can go back if you make any mistake. Though some of the
      functionality of the path tool like creating points/nodes/anchors
      on click, removing points/nodes/anchors with right click and
      completing the path when the user clicks on the first node will be
      duplicated. Is that enough functionality I am borrowing that I
      will redoing the Path Tool, though feels like the polygon tool is
      a closer candidate but I am confused. :-(<br>
    </p>
    <p><br>
    </p>
    <p>Regards<br>
      Kuntal M<br>
      <a class="gmail-m_8545480046396908794moz-txt-link-freetext" \
href="http://hellozee.me" target="_blank">http://hellozee.me</a><br>  </p>
  </div>

</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" \
class="gmail_signature">Dmitry Kazakov</div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic