Hmm, that's slightly odd - to be honest that was a bit of a workaround for what
is probably my own deficient knowledge.
I really like your Contourable_Data interface for shadeplots. It's particulary
good for me as I tend to use std::vector<std::vector<double>> as a containor
for my 2d arrays, so I can use a Contourable_Data object as an interface rather
than copy data into contiguous memory.
I looked some time ago into copying your interface for plcont to do contour
plots, but could't figure it out. I know the code a bit better now so should be
able to have a crack at it if you'd be happy with that? I know in the manual
you say the C++ interface is in a state of flux so I'm not sure if you intended
to roll this out eventually to the other 2d data routines, but it would get my
thimbs up.
Phil
________________________________
From: Andrew Ross <[email protected]>
To: phil rosenberg <[email protected]>
Cc: "[email protected]" <[email protected]>
Sent: Friday, 16 November 2012, 21:29
Subject: Re: [Plplot-devel] wxDC transparency
Phil,
I've committed part of your patch (to set the alpha values), but the other
part which ignores fills with an alpha value of 0 causes me problems with
example 30 (most of the rectangles are no longer visible). Not sure why,
since these don't have zero alpha values?
Under Linux wxDC doesn't support transparency so I can't check the changes
actually work.
Andrew
On Sat, Nov 10, 2012 at 10:19:02AM -0800, phil rosenberg wrote:
> Hi
> I'm just emailing after having a couple of transparency issues with wxDC. It
> turns out that most of the derivatives of wxDC don't support the alpha
> channel and so it seems alpha was not passed to this backend by plPlot. I
> think, however, that we should support the few that do.
> ?
> One of the ones that doesn't is the MemoryDC, which has caused me some
> problems. I currently call the C++ version of plshade using a
> Contourable_Data object with the fill set with an alpha of 0 to plot only
> contours. Unfortunately this dousen't work when the wxDC doesn't support
> alpha.
> ?
> My workaround is to modify wxPLDevDC::FillPolygon so that if alpha is 0, the
> polygon simply isn't drawn.
> ?
> I've attached a patch with the two changes (alpha used in case the DC
> supports it and not drawing entirely transparent polygons), but maybe someone
> can indicate a better way to use Contourable_Data objects to plot contours
> only.
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_nov
> _______________________________________________
> Plplot-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/plplot-devel
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel