[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-kimageshop
Subject: Re: Polygon Class
From: Boudewijn Rempt <boud () valdyas ! org>
Date: 2005-07-06 12:54:33
Message-ID: 200507061454.37144.boud () valdyas ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Wednesday 06 July 2005 13:31, Michael Thaler wrote:
> Hello,
>
> I want to port the Cubism filter from gimp to Krita. The filter uses a
> polygon class. This class just stores points as double values and can
> rotate the polygon and translate the polygon. Is there any class that
> already does this in QT, KDE or Krita? If not it is simple to write this
> class, but I think it is more of more general use. Where should I put it
> then? In krita/core?
I'm not sure; QPoinArray together with QWMatrix does what you need, except
only with ints. You'd need a vector of KisPoints -- which we have, KisVec,
and transform/translate function. So, there are a number of components
already, but the whole is lacking.
--
Boudewijn Rempt
http://www.valdyas.org/fading/index.cgi
[Attachment #5 (application/pgp-signature)]
_______________________________________________
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