-
Notifications
You must be signed in to change notification settings - Fork 0
/
graphwidget.h
51 lines (41 loc) · 977 Bytes
/
graphwidget.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef GRAPHWIDGET_H
#define GRAPHWIDGET_H
#include <QMainWindow>
#include <QWidget>
#include <QFile>
#include <QSet>
#include <QPointF>
#include <qpainter.h>
class GraphWidget : public QWidget
{
Q_OBJECT
public:
explicit GraphWidget(QWidget *parent = 0);
void paintEvent(QPaintEvent *);
int randomColorDeviation();
QColor getNewLeafsColor();
void recursiveFuction(QPointF currentPoint, int currentDepth, int currentAngle, int currentLength, bool wasOne);
int regime;
int depth;
int angle;
double lineLength;
double koef;
double probability1;
double probability2;
bool withLeafs;
QColor leafsColor;
QColor stemColor;
QPainter painter1;
private:
//QVector<QPointF> currentPoints;
//QVector<double> currentData;
//QFile* currentFile;
uint leafsColorR;
uint leafsColorG;
uint leafsColorB;
int leafSize1;
int leafSize2;
signals:
public slots:
};
#endif // GRAPHWIDGET_H