-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainCtrl.h
63 lines (47 loc) · 1.05 KB
/
MainCtrl.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
58
59
60
61
62
63
#ifndef MainCtrl_h
#define MainCtrl_h
#include "Graphics.h"
#include "Point.h"
#include "Line.h"
#include "Polygon.h"
#include "Circle.h"
#include "Elipse.h"
#include "Teapot.h"
#include "Curve.h"
#include <iostream>
using namespace std;
#include <string>
#include <stdlib.h>
#include <fstream>
#include <sstream>
class MainCtrl
{
public:
MainCtrl();
MainCtrl(string filename);
void ReadFromFile(string filename);
~MainCtrl();
void SetLineColor(float r, float g, float b);
void SetLineWidth(float lw);
void DrawGraph();
void UpGraph();
void DownGraph();
void LeftGraph();
void RightGraph();
void Increase();
void Decrease();
void Rotate(char c);
void Fill(float r, float g, float b);
void CutGraph();
void Disappear();
void SaveToFile(string filename);
float str2float(string s);
//Type str2type(string s);
COLOR str2COLOR(string s);
vector<string> splitStr(string line, string flag);
public:
vector<Graphics*> GraphList;
vector<string> GraphData;
COORD c[2];
};
#endif