more shapes

This commit is contained in:
thepra
2017-09-09 22:28:27 +02:00
parent c152ff4dec
commit 3b0554cb87
5 changed files with 195 additions and 8 deletions

View File

@ -17,7 +17,11 @@ class RenderArea : public QWidget
Cycloid,
HuygensCycloid,
HypoCycloid,
Line
Line,
Circle,
Ellipse,
Fancy,
Starfish
};
void setBackgroundColor(QColor color) { mBackgroundColour = color; }
@ -47,12 +51,16 @@ class RenderArea : public QWidget
private:
void OnShapeChanged();
QPointF Compute(double t);
QPointF ComputeAstroid(double t);
QPointF ComputeCycloid(double t);
QPointF ComputeHuygens(double t);
QPointF ComputeHypo(double t);
QPointF ComputeLine(double t);
QPointF Compute(double t);
QPointF ComputeCircle(double t);
QPointF ComputeEllipse(double t);
QPointF ComputeFancy(double t);
QPointF ComputeStarfish(double t);
QColor mBackgroundColour,mShapeColour;
ShapesType mShape;
double mScale,mIntervalLenght;