17 #include <QtGui/QPainter> 28 Shape(
const QColor &color,
int penWidth)
34 virtual ~Shape() =
default;
37 virtual void draw(QPainter *painter) = 0;
QColor mColor
Definition: shape.h:43
virtual void draw(QPainter *painter)=0
Draws a shape with a given painter.
Base class for elements that can be drawn on display.
Definition: shape.h:22
Shape(const QColor &color, int penWidth)
Definition: shape.h:28
int mPenWidth
Definition: shape.h:44
Definition: trikCommunicator.h:27
virtual bool equals(const Shape *other) const =0
Checks whether to shapes are equal.