Implementing rending area
This commit is contained in:
16
renderarea.h
16
renderarea.h
@ -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
|
||||
|
Reference in New Issue
Block a user