-
Notifications
You must be signed in to change notification settings - Fork 0
/
mediator.h
57 lines (45 loc) · 1.37 KB
/
mediator.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
52
53
54
55
56
57
#ifndef MEDIATOR_H
#define MEDIATOR_H
#include <QList>
#include <mainwindow.h>
#include <window.h>
#include <transform.h>
#include <geometricshape.h>
#include <displayfile.h>
#include <geometricshapefactory.h>
#include <coordinate.h>
using namespace std;
class Mediator
{
private:
//Variables
MainWindow *mainWindow;
Window* window;
DisplayFile *displayFile;
//Methods
Mediator();
void addGeometricShapeToDisplayFile(GeometricShape*);
public:
~Mediator();
QList<GeometricShape*> getGeometricShapes();
QList<GeometricShape*> getCppGeometricShapes();
static Mediator* getInstance();
static Mediator* init();
void addLine(QString*, double, double, double, double, QColor);
void addPolygon(QString*, QList<Coordinate*>, bool);
// void addBezierCurve(QString*, QList<Coordinate*>, QColor);
// void addBsplineCurve(QString*, QList<Coordinate*>, QColor);
void addPoint(QString*, double, double, QColor);
void deleteGeometricShape(int);
// void moveObject(int,double,double);
// void resizeObject(int,double,double);
// void rotateObject(int,int, rotateType);
// void rotateObject(int,int,double,double);
void zoomInWindow(int);
void zoomOutWindow(int);
void moveWindowVertical(int);
void moveWindowHorizontal(int);
// void rotateWindow(double);
void redraw();
};
#endif // MEDIATOR_H