Changeset 8127 in ntrip for trunk/BNC/qwt/qwt_curve_fitter.h


Ignore:
Timestamp:
May 10, 2017, 3:20:54 PM (7 years ago)
Author:
stoecker
Message:

update qwt and qwtpolar, many QT5 fixes (unfinished)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/qwt/qwt_curve_fitter.h

    r4271 r8127  
    100100  smoothed curve.
    101101
     102  The runtime of the algorithm increases non linear ( worst case O( n*n ) )
     103  and might be very slow for huge polygons. To avoid performance issues
     104  it might be useful to split the polygon ( setChunkSize() ) and to run the algorithm
     105  for these smaller parts. The disadvantage of having no interpolation
     106  at the borders is for most use cases irrelevant.
     107
    102108  The smoothed curve consists of a subset of the points that defined the
    103109  original curve.
     
    117123    double tolerance() const;
    118124
     125    void setChunkSize( uint );
     126    uint chunkSize() const;
     127
    119128    virtual QPolygonF fitCurve( const QPolygonF & ) const;
    120129
    121130private:
     131    virtual QPolygonF simplify( const QPolygonF & ) const;
     132
    122133    class Line;
    123134
Note: See TracChangeset for help on using the changeset viewer.