Go to the documentation of this file.
3 #include "QColorDialog"
4 #include "QInputDialog"
8 this->lineWidth = QInputDialog::getInt(
nullptr,
"Line Width Input",
"Width",1,1,50,1);
28 this->start=QPoint(x,y);
47 QPoint p1 =start.x() <= next.x() ? start : next;
48 QPoint p2 =start.x() < next.x() ? next : start;
49 int m = (float)(p2.y()-p1.y())/(
float)(p2.x()-p1.x())+0.5f;
50 int c = start.y()-start.x()*m;
virtual void drawLine(const QPoint &p1, const QPoint &p2, const QColor &color, const int &penWidth)
virtual void calculateVisiblity()=0
virtual void drawPlain(const QColor &color)