#ifndef WIDGETS_GRAPHPLOTTER_STEPINTERPOLATOR_H
#define WIDGETS_GRAPHPLOTTER_STEPINTERPOLATOR_H

#include "Interpolator.h"


// -- TDE NAMESPACE ----------------------------------------------------

namespace TDE {

// -- Widgets NAMESPACE ------------------------------------------------

namespace Widgets {

namespace Plot {


class StepInterpolator : public Interpolator
{
public:
	typedef std::pair<int, int> Segment;

	StepInterpolator(const std::vector<Point>& points);
	virtual ~StepInterpolator();

	virtual double compute(double x) const;

	std::vector<Point> m_points;
};


} /* end of namespace Plot */

} /* end of namespace Widgets */

} /* end of namespace TDE */

#endif /* WIDGETS_GRAPHPLOTTER_STEPINTERPOLATOR_H */
