qwt_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_CURVE_FITTER_H
00011 #define QWT_CURVE_FITTER_H
00012 
00013 #include "qwt_global.h"
00014 #include <qpolygon.h>
00015 #include <qpainterpath.h>
00016 
00020 class QWT_EXPORT QwtCurveFitter
00021 {
00022 public:
00031     enum Mode
00032     {
00039         Polygon,
00040 
00047         Path
00048     };
00049 
00050     virtual ~QwtCurveFitter();
00051 
00052     Mode mode() const;
00053 
00062     virtual QPolygonF fitCurve( const QPolygonF &polygon ) const = 0;
00063 
00072     virtual QPainterPath fitCurvePath( const QPolygonF &polygon ) const = 0;
00073 
00074 protected:
00075     explicit QwtCurveFitter( Mode mode );
00076 
00077 private:
00078     Q_DISABLE_COPY(QwtCurveFitter)
00079 
00080     const Mode d_mode;
00081 };
00082 
00083 #endif


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