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

List:       kde-kimageshop
Subject:    Re: Yet another bug. This time filters vs selections
From:       Dmitry Kazakov <dimula73 () gmail ! com>
Date:       2009-09-14 10:37:18
Message-ID: ae32c1ef0909140337w50f94bd7p6c60caeac09feb19 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Well, there is a bit of misunderstanding =)

I don't want to feed filters with chunks of bytes. =) I just want to ask a
datamanager to tell me where the holes in selections are. It will look like:

QVector<QRect> rects = selection->getNonemptyRects();
applyFilterToRects(rects);


Where KisSelection::getNonemptyRects() is like:

QVector<QRect> KisSelection::getNonemptyRects()
{
    return m_paintDevice->datamanager()->getNonemptyRects();
}

QVector<QRect> KisTiledDataManager::getNonemptyRects()
{
QVector<QRect> vector;
    foreach(tile) {
        vector.append(tile.extent());
    }
return vector;
}


-- 
Dmitry Kazakov

[Attachment #5 (text/html)]

Well, there is a bit of misunderstanding =)<br><br>I don&#39;t want to feed filters \
with chunks of bytes. =) I just want to ask a datamanager to tell me where the holes \
in selections are. It will look like:<br><br>QVector&lt;QRect&gt; rects = \
selection-&gt;getNonemptyRects();<br> applyFilterToRects(rects);<br><br><br>Where \
KisSelection::getNonemptyRects() is like:<br><br>QVector&lt;QRect&gt; \
KisSelection::getNonemptyRects() <br>{<br>       return \
m_paintDevice-&gt;datamanager()-&gt;getNonemptyRects();<br> \
}<br><br>QVector&lt;QRect&gt; KisTiledDataManager::getNonemptyRects() <br>{<br> \
                QVector&lt;QRect&gt; vector;<br>       foreach(tile) {<br>
               vector.append(tile.extent());<br>       }<br>return vector;<br>
}<br><br clear="all"><br>-- <br>Dmitry Kazakov<br>



_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop


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

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