-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGUIMyFrame1.h
More file actions
74 lines (60 loc) · 1.58 KB
/
GUIMyFrame1.h
File metadata and controls
74 lines (60 loc) · 1.58 KB
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
64
65
66
67
68
69
70
71
72
73
74
#ifndef __GUIMyFrame1__
#define __GUIMyFrame1__
/**
@file
Subclass of MyFrame1, which is generated by wxFormBuilder.
*/
#include "GUI.h"
#include "MyPrinter.h"
#include "perspectivic.h"
//// end generated include
#include <wx/filedlg.h>
#include <wx/dcmemory.h>
#include <wx/dcclient.h>
#include <wx/dcbuffer.h>
#include <wx/colourdata.h>
#include <wx/colordlg.h>
#include <wx/print.h>
#include <wx/printdlg.h>
#include <iostream>
#include <string>
#include <regex>
using namespace std;
/** Implementing MyFrame1 */
class GUIMyFrame1 : public MyFrame1
{
private:
string function = "x^2 + y^2";
double xMin = -10;
double xMax = 10;
double yMin = -10;
double yMax = 10;
double zMin = -10;
double zMax = 10;
bool inPerspective = true;
bool inMap = false;
public:
// Handlers for MyFrame1 events;
void showInfo(wxMouseEvent& event);
void perspectiveClick(wxMouseEvent& event);
void outlineClick(wxMouseEvent& event);
void printClick(wxMouseEvent& event);
void saveClick(wxMouseEvent& event);
void generateClick(wxMouseEvent& event);
string getFunction() const { return function; }
bool checkFunction();
double getxMin() const { return xMin; }
double getxMax() const { return xMax; }
double getyMin() const { return yMin; }
double getyMax() const { return yMax; }
double getzMin() const { return zMin; }
double getzMax() const { return zMax; }
bool checkNumbers();
bool isPerspective() const { return inPerspective; }
bool isMap() const { return inMap; }
public:
/** Constructor */
GUIMyFrame1(wxWindow* parent);
//// end generated class members
};
#endif // __GUIMyFrame1__