qwt_spline_local.h
/******************************************************************************
* Qwt Widget Library
* Copyright (C) 1997 Josef Wilgen
* Copyright (C) 2002 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_SPLINE_LOCAL_H
#define QWT_SPLINE_LOCAL_H
#include "qwt_global.h"
#include "qwt_spline.h"
class QWT_EXPORT QwtSplineLocal : public QwtSplineC1
{
public:
enum Type
{
Cardinal,
ParabolicBlending,
Akima,
PChip
};
QwtSplineLocal( Type type );
virtual ~QwtSplineLocal();
Type type() const;
virtual uint locality() const QWT_OVERRIDE;
virtual QPainterPath painterPath( const QPolygonF& ) const QWT_OVERRIDE;
virtual QVector< QLineF > bezierControlLines( const QPolygonF& ) const QWT_OVERRIDE;
// calculating the parametric equations
virtual QVector< QwtSplinePolynomial > polynomials( const QPolygonF& ) const QWT_OVERRIDE;
virtual QVector< double > slopes( const QPolygonF& ) const QWT_OVERRIDE;
private:
const Type m_type;
};
#endif
QVector
Definition: qwt_clipper.h:23
QwtSplineC1
Base class for spline interpolations providing a first order parametric continuity ( C1 ) between adj...
Definition: qwt_spline.h:236
QwtSpline::locality
virtual uint locality() const
Definition: qwt_spline.cpp:564
QwtSplineLocal
A spline with C1 continuity.
Definition: qwt_spline_local.h:25
QwtSplineLocal::Type
Type
Spline interpolation type.
Definition: qwt_spline_local.h:35
QwtSplineLocal::Akima
@ Akima
Definition: qwt_spline_local.h:53
QwtSplineLocal::ParabolicBlending
@ ParabolicBlending
Definition: qwt_spline_local.h:48
QwtSplineLocal::Cardinal
@ Cardinal
Definition: qwt_spline_local.h:42
QwtSplinePolynomial
A cubic polynomial without constant term.
Definition: qwt_spline_polynomial.h:31