drawingWindow.h
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <vector>
#include "line.h"
using namespace std;
namespace Ui {
class DrawingWindow;
};
class DrawingWindow : public QMainWindow
{
Q_OBJECT
public:
explicit DrawingWindow(QWidget *parent = 0);
~DrawingWindow();
void addLine(int x0, int y0, int x1, int y1, int width, QColor color);
void addLinePolar(int x0, int y0, int length, double angle, int width, QColor color);
void box(int x, int y, int sideLength, QColor c) ;
void boxes(int x, int y, int sideLength, double shrinkFactor, int smallestLength, QColor c) ;
void snowHelper(int size, int level) ;
void snowflake(int x, int y, int size, double angle, int level, QColor c) ;
private:
Ui::DrawingWindow *ui;
vector <Line *> *vL;
protected:
void paintEvent(QPaintEvent *);
};
#endif // MAINWINDOW_H
Ui
Definition: drawingWindow.h:10
std
DrawingWindow
Definition: drawingWindow.h:14