My Project
drawingWindow.h
1 #ifndef MAINWINDOW_H
2 #define MAINWINDOW_H
3 
4 #include <QMainWindow>
5 #include <vector>
6 #include "tessellation.h"
7 #include "line.h"
8 
9 
10 using namespace std;
11 namespace Ui {
12 class DrawingWindow;
13 };
14 
19 class DrawingWindow : public QMainWindow
20 {
21  Q_OBJECT
22 
23 public:
29  explicit DrawingWindow(QWidget *parent = 0);
30 
36  ~DrawingWindow();
37 
45  void addTessellation(Tessellation &t);
46 
66  void addLine(int x0, int y0, int x1, int y1, int width, QColor color);
67 
87  void addLinePolar(int x0, int y0, int length, double angle, int width, QColor color);
88 private:
89  Ui::DrawingWindow *ui;
90  vector <Tessellation* > *vT;
91  vector <Tessellation *> *myTessellation;
92  vector <Line *> *vL;
94 protected:
100  void paintEvent(QPaintEvent *);
101 };
102 
103 #endif // MAINWINDOW_H
vector< Tessellation * > * vT
Definition: drawingWindow.h:90
Definition: drawingWindow.h:11
Definition: tessellation.h:11
Definition: drawingWindow.h:19
vector< Line * > * vL
Definition: drawingWindow.h:92
vector< Tessellation * > * myTessellation
Definition: drawingWindow.h:91