Implementing rending area

This commit is contained in:
thepra
2017-08-28 11:07:50 +02:00
parent 7ff3b29476
commit 93af42b93d
6 changed files with 211 additions and 37 deletions

View File

@ -11,6 +11,20 @@ class RenderArea : public QWidget
QSize minimumSizeHint() const Q_DECL_OVERRIDE;
QSize sizeHint() const Q_DECL_OVERRIDE;
enum ShapesType{
Astroid,
Cycloid,
HuygensCycloid,
HypoCycloid
};
void setBackgroundColor(QColor color) { mBackgroundColour = color; }
QColor backgroundColor() const { return mBackgroundColour; }
void setShape(ShapesType shape) { mShape = shape; }
ShapesType shape() const { return mShape; }
signals:
protected:
@ -21,6 +35,6 @@ class RenderArea : public QWidget
private:
QColor mBackgroundColour;
QColor mShapeColour;
ShapesType mShape;
};
#endif // RENDERAREA_H