trikRuntime
|
Base class for elements that can be drawn on display. More...
#include <shape.h>
Public Member Functions | |
Shape (const QColor &color, int penWidth) | |
virtual | ~Shape ()=default |
virtual void | draw (QPainter *painter)=0 |
Draws a shape with a given painter. More... | |
virtual bool | equals (const Shape *other) const =0 |
Checks whether to shapes are equal. More... | |
Protected Attributes | |
QColor | mColor |
int | mPenWidth |
Base class for elements that can be drawn on display.
|
inline |
color | - color of pen with which a shape must be drawn |
penWidth | - width of lines |
|
virtualdefault |
|
pure virtual |
Draws a shape with a given painter.
Implemented in trikControl::Arc, trikControl::Ellipse, trikControl::Line, trikControl::Point, and trikControl::Rectangle.
|
pure virtual |
Checks whether to shapes are equal.
Implemented in trikControl::Arc, trikControl::Ellipse, trikControl::Line, trikControl::Point, and trikControl::Rectangle.
|
protected |
|
protected |