[Kst] treatment of invalid data in KstImage

George Staikos staikos at kde.org
Thu Oct 27 19:36:24 CEST 2005


On Thursday 27 October 2005 13:25, Ted Kisner wrote:
> In KstMatrix, it is possible for some elements to be infinite or NAN.
> Currently, KstImage draws these matrix elements as the first color in the
> palette.  This is confusing since invalid data will then have the same
> color as normal data that is simply off-scale.
>
> I think that the correct thing to do is to paint these pixels the current
> background color (KstSettings::globalSettings()->backgroundColor).
> Unfortunately this class is compiled into libkstapp, and I need to access
> it from KstImage.cpp, which is in libkstmath.
>
> What is the most technically correct way to make KstSettings available
> globally?

  I'll investigate - I'm working on that class right now to fix the time 
stuff.  However, I think what you want is either the plot background color or 
the toplevelview background color, right?

-- 
George Staikos
KDE Developer				http://www.kde.org/
Staikos Computing Services Inc.		http://www.staikos.net/


More information about the Kst mailing list