My Project
drawingWindow.h
1 #ifndef MAINWINDOW_H
2 #define MAINWINDOW_H
3 
4 #include <QMainWindow>
5 #include <vector>
6 #include "line.h"
7 
8 
9 using namespace std;
10 namespace Ui {
11 class DrawingWindow;
12 };
13 
14 class DrawingWindow : public QMainWindow
15 {
16  Q_OBJECT
17 
18 public:
26  explicit DrawingWindow(QWidget *parent = 0);
27 
33  ~DrawingWindow();
34 
54  void addLine(int x0, int y0, int x1, int y1, int width, QColor color);
55 
75  void addLinePolar(int x0, int y0, int length, double angle, int width, QColor color);
76 
90  void box(int x, int y, int sideLength, QColor c) ;
91 
115  void boxes(int x, int y, int sideLength, double shrinkFactor, int smallestLength, QColor c) ;
116 
126  void snowHelper(int size, int level) ;
127 
151  void snowflake(int x, int y, int size, double angle, int level, QColor c) ;
152 private:
153  Ui::DrawingWindow *ui;
154  vector <Line *> *vL;
155 
156 protected:
157 
163  void paintEvent(QPaintEvent *);
164 };
165 
166 #endif // MAINWINDOW_H
Definition: drawingWindow.h:10
Definition: drawingWindow.h:14