11 #include <qpainterpath.h> 77 QPolygonF fittedPoints;
79 int numPoints = points.size() + ( points.size() - 1 ) *
d_data->
stepCount;
81 fittedPoints.resize( numPoints );
84 fittedPoints[index++] = points[0];
85 for (
int i = 1; i < points.size(); i++ )
87 const QPointF &p1 = points[i-1];
88 const QPointF &p2 = points[i];
94 const double x = p1.x() + j * dx;
95 const double y = p1.y() + j * dy;
97 fittedPoints[index++] = QPointF( x, y );
100 fittedPoints.resize( index );
113 path.addPolygon(
fitCurve( points ) );
virtual QPolygonF fitCurve(const QPolygonF &) const QWT_OVERRIDE
A simple curve fitter for polar points.
void setStepCount(int size)
virtual QPainterPath fitCurvePath(const QPolygonF &) const QWT_OVERRIDE
QwtPolarFitter(int stepCount=5)
virtual ~QwtPolarFitter()
Destructor.
Abstract base class for a curve fitter.