26 void setPoints(
const QList<int> &points_x,
const QList<int> &points_y)
28 if(points_x.size() != points_y.size())
29 throw std::runtime_error(
"size of points_x differs from the size of points_y");
31 this->points_x = points_x;
32 this->points_y = points_y;
34 if(points_x.size() > 0)
46 void renderOnGl(QGLWidget &widget,QRectF &source,QRectF &target);
47 void draw(QPainter* painter, QRectF &source, QRectF &target);
void renderOnGl(QGLWidget &widget, QRectF &source, QRectF &target)
void draw(QPainter *painter, QRectF &source, QRectF &target)
void setPoints(const QList< int > &points_x, const QList< int > &points_y)
PointItem(const QList< int > &points_x, const QList< int > &points_y, int groupNr, const QColor &color)