ich habe kürzlich mein Programm von QwtPolar-0.1.0 auf Version 1.0.0 umgestellt ( natürlich habe ich auch Qwt-6.0.1). Da hat sich ja die Klasse Qwt_data verändert bzw. ist ersetzt worden und nach einigem Hin und Her habe ich mein Programm auf QwtSeriesData umstellen können. Dabei habe ich mich an das mitgelieferte Beispiel gehalten. Meine Data-Klasse sieht dementsprechend so aus:
Code: Alles auswählen
class Data: public QwtSeriesData<QwtPointPolar>
{
public:
Data(const QwtDoubleInterval &radialInterval,
const QwtDoubleInterval &azimuthInterval, size_t size, double* yarray, double* xarray):
d_radialInterval(radialInterval),
d_azimuthInterval(azimuthInterval),
d_size(size)
{
yValues = yarray;
xValues = xarray;
}
virtual QwtPointPolar sample( size_t i ) const
{
return QwtPointPolar( xValues[i], yValues[i] );
}
virtual QRectF boundingRect() const
{
if ( d_boundingRect.width() < 0.0 )
d_boundingRect = qwtBoundingRect( *this );
return d_boundingRect;
}
virtual size_t size() const
{
return d_size;
}
private:
QwtDoubleInterval d_radialInterval;
QwtDoubleInterval d_azimuthInterval;
size_t d_size;
double *yValues,
*xValues;
};

Ich habe keine Ahnung woran das liegen könnte, da ich das neue Konzept noch nicht so recht verstehe.
Bin für jede Hilfe dankbar!
LotB