Alan W. Irwin wrote:
> On 2009-07-30 14:16+0100 Alban Rochel wrote:
>
>   
>> Dear Alan and PLplot community,
>>
>> Please find attached an update for the Qt driver, allowing changes to
>> the background colors (supporting transparency), based on svn revision
>> 10819.
>>     
>
> Hi Alban:
>
> I have committed your patch (revision 10192).  My tests of the qtwidgets,
> pngqt, epsqt, and svgqt devices looked good for semi-transparent backgrounds
> specified with -bg.  Also, C example 16 now gives the correct results.
>
> Thanks very much for this fix.
>
> Note, there has been a minor background regression introduced for extqt by
> your changes; if you run ./qt_example, then the first time you try one of
> "Curves" or "Histogram" the result is background colour that is the same as
> the underlying widget colour (gray). Subsequent tries of Curves or Histogram
> give you the correct (default) black background.
>
> Whether or not you can fix that minor issue, could you also implement
> command-line parsing for qt_example so we can thoroughly and conveniently
> test various colour options (e.g., -bg, -cmap0, and -cmap1)?  That just
> means inserting the appropriate call to plparseopts in the correct place,
> but when I attempted to do that simple enhancement myself, I kept running up
> against C++ issues I didn't understand.
>
> Alan
> __________________________
> Alan W. Irwin
>
> Astronomical research affiliation with Department of Physics and Astronomy,
> University of Victoria (astrowww.phys.uvic.ca).
>
> Programming affiliations with the FreeEOS equation-of-state implementation
> for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
> package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
> Linux Links project (loll.sf.net); and the Linux Brochure Project
> (lbproject.sf.net).
> __________________________
>
> Linux-powered Science
> __________________________
>   
Hi Alan,

Here is a big patch for all the Qt-related stuff, based on revision 10192:
- It fixes the issue you've just raised
- It cleans up a little bit the code (including changing tabs into
spaces, which results in a patch replacing all the code)
- QtWidget and ExtQt plot faster (1), especially when plotting x/y
rectangular filled shapes (2). Example x20c is now *much* faster.

These are all the changes that I intended to do, so unless issues or
missing features are noticed, I don't plan other updates.

Cheers,

Alban

(1) - The buffer stores pointers to Qt plot primitives rather than the
data used to generate them at every plot (e.g QRect* rather than struct
holding x, y, width and height). I feared that this would consume more
memory, but this is barely noticeable if at all in the end.
- Colours are now only stored at colour changes, not associated to every
primitive any more
(2) - We used to use pens to draw the rectangles outlines, which is
wrong as it adds width, and makes drawing much slower
- Disabling of antialiasing for these primitives, as this could result
in thin "gaps" between tiles, producing Moire patterns



Attachment: qt_patch.gz
Description: GNU Zip compressed data

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to