From kde-kimageshop Wed Jun 06 09:11:40 2007 From: Boudewijn Rempt Date: Wed, 06 Jun 2007 09:11:40 +0000 To: kde-kimageshop Subject: Re: QRegion Message-Id: <200706061111.42545.boud () valdyas ! org> X-MARC-Message: https://marc.info/?l=kde-kimageshop&m=118112115715042 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============1477990034==" --===============1477990034== Content-Type: multipart/signed; boundary="nextPart3241889.8ZIdGzKZ0H"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart3241889.8ZIdGzKZ0H Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 06 June 2007, Boudewijn Rempt wrote: > On Monday 04 June 2007, Boudewijn Rempt wrote: > > It uses internally some X11 stuff that's meant for optimizing screen > > updates. Yes, having a class that collects rects, computes the smallest > > set of the biggests possible rects is an interesting problem. > > I did think a bit on a KisRegion class and I fairly sure that I cannot ma= ke > it work. Apparently it's really a hard problem: Pippin doesn't have a solution eithe= r.=20 I asked Zack Rusin, and he suggested to use QPainterPath and the Qt4=20 tesselator. In Qt 4.4, we'll be able to add and subtract rects from a=20 QPainterPath -- and we'll have access to the tesselator. That should make i= t=20 possible to replace QRegion. Whether it'll be faster I don't know, but give= n=20 that it's Zack working on the thing I guess it will. Of course, we could already try to use QPainterPath together with=20 toFillPolygons and then QPolygonF::boundingRect() -- but that doesn't help= =20 with the layer dirty region marking. =2D-=20 Boudewijn Rempt=20 http://www.valdyas.org/fading/index.cgi --nextPart3241889.8ZIdGzKZ0H Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBGZnpOdaCcgCmN5d8RAsR3AKCd8Vpy/5jhlwoVP6bE9GwaiphsXgCgjPu/ KhkYW+9jhM5ilLJ9tzbT+mQ= =tWop -----END PGP SIGNATURE----- --nextPart3241889.8ZIdGzKZ0H-- --===============1477990034== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kimageshop mailing list kimageshop@kde.org https://mail.kde.org/mailman/listinfo/kimageshop --===============1477990034==--