mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-05 00:09:32 -04:00
* require qwt >=6.2 (and fallback to internal 6.3 if system's qwt doesn't suffice) * debian doesn't have qwt for Qt6 and won't have it for trixie
42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
/******************************************************************************
|
|
* QwtPolar Widget Library
|
|
* Copyright (C) 2008 Uwe Rathmann
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the Qwt License, Version 1.0
|
|
*****************************************************************************/
|
|
|
|
#ifndef QWT_POLAR_FITTER_H
|
|
#define QWT_POLAR_FITTER_H
|
|
|
|
#include "qwt_global.h"
|
|
#include "qwt_curve_fitter.h"
|
|
|
|
/*!
|
|
\brief A simple curve fitter for polar points
|
|
|
|
QwtPolarFitter adds equidistant points between 2 curve points,
|
|
so that the connection gets rounded according to the nature of
|
|
a polar plot.
|
|
|
|
\sa QwtPolarCurve::setCurveFitter()
|
|
*/
|
|
class QWT_EXPORT QwtPolarFitter : public QwtCurveFitter
|
|
{
|
|
public:
|
|
QwtPolarFitter( int stepCount = 5 );
|
|
virtual ~QwtPolarFitter();
|
|
|
|
void setStepCount( int size );
|
|
int stepCount() const;
|
|
|
|
virtual QPolygonF fitCurve( const QPolygonF& ) const QWT_OVERRIDE;
|
|
virtual QPainterPath fitCurvePath( const QPolygonF& ) const QWT_OVERRIDE;
|
|
|
|
private:
|
|
class PrivateData;
|
|
PrivateData* m_data;
|
|
};
|
|
|
|
#endif
|