subsurface/stats/statsseries.cpp

19 lines
436 B
C++
Raw Normal View History

// SPDX-License-Identifier: GPL-2.0
#include "statsseries.h"
#include "statsaxis.h"
StatsSeries::StatsSeries(QGraphicsScene *scene, StatsView &view, StatsAxis *xAxis, StatsAxis *yAxis) :
scene(scene), view(view), xAxis(xAxis), yAxis(yAxis)
{
}
StatsSeries::~StatsSeries()
{
}
QPointF StatsSeries::toScreen(QPointF p)
{
return xAxis && yAxis ? QPointF(xAxis->toScreen(p.x()), yAxis->toScreen(p.y()))
: QPointF(0.0, 0.0);
}