16 Apr 15:49
Help with understanding QwtRasterData needed
From: Matthias Pospiech <matthias.pospiech <at> gmx.de>
Subject: Help with understanding QwtRasterData needed
Newsgroups: gmane.comp.graphics.qwt.general
Date: 2008-04-16 13:54:07 GMT
Subject: Help with understanding QwtRasterData needed
Newsgroups: gmane.comp.graphics.qwt.general
Date: 2008-04-16 13:54:07 GMT
This here is the example qwt delivers:
class SpectrogramData: public QwtRasterData
{
public:
SpectrogramData(): QwtRasterData(QwtDoubleRect(-1.5, -1.5, 3.0, 3.0)) {}
virtual QwtRasterData *copy() const { return new SpectrogramData();}
virtual QwtDoubleInterval range() const { return QwtDoubleInterval(0.0,
10.0);}
virtual double value(double x, double y) const{
const double c = 0.842;
const double v1 = x * x + (y-c) * (y+c);
const double v2 = x * (y+c) + x * (y+c);
return 1.0 / (v1 * v1 + v2 * v2);
}
};
In my problem the data however has to be delivered to the plot as a
(Continue reading)
RSS Feed