qwt_weeding_curve_fitter.h
Go to the documentation of this file.
00001 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
00002  * Qwt Widget Library
00003  * Copyright (C) 1997   Josef Wilgen
00004  * Copyright (C) 2002   Uwe Rathmann
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the Qwt License, Version 1.0
00008  *****************************************************************************/
00009 
00010 #ifndef QWT_WEEDING_CURVE_FITTER_H
00011 #define QWT_WEEDING_CURVE_FITTER_H
00012 
00013 #include "qwt_curve_fitter.h"
00014 
00038 class QWT_EXPORT QwtWeedingCurveFitter: public QwtCurveFitter
00039 {
00040 public:
00041     explicit QwtWeedingCurveFitter( double tolerance = 1.0 );
00042     virtual ~QwtWeedingCurveFitter();
00043 
00044     void setTolerance( double );
00045     double tolerance() const;
00046 
00047     void setChunkSize( uint );
00048     uint chunkSize() const;
00049 
00050     virtual QPolygonF fitCurve( const QPolygonF & ) const;
00051     virtual QPainterPath fitCurvePath( const QPolygonF & ) const;
00052 
00053 private:
00054     virtual QPolygonF simplify( const QPolygonF & ) const;
00055 
00056     class Line;
00057 
00058     class PrivateData;
00059     PrivateData *d_data;
00060 };
00061 
00062 #endif


plotjuggler
Author(s): Davide Faconti
autogenerated on Fri Sep 1 2017 02:41:57