-
Notifications
You must be signed in to change notification settings - Fork 0
/
classAnimation1init.h
130 lines (94 loc) · 2.19 KB
/
classAnimation1init.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
#pragma once
void Animation::setdefaultaxes()
{
this->Axes = false;
}
void Animation::setdefaultgrid()
{
this->Grid = false;
}
void Animation::setdefaultcolors()
{
this->xAxisColor = ROJO_INDIANRED;
this->yAxisColor = ROJO_INDIANRED;
this->hLinesColor = MARRON_CHOCOLATE;
this->vLinesColor = VERDE_CHARTREUSE;
wacolor = BLANCO_ALICEBLUE;
}
void Animation::setdefaultscales()
{
this->ex = 40;
this->ey = 40;
this->getexy();
}
void Animation::setconsole()
{
this->consoletitle = "INSTANT NUMERICAL INPUT";
this->consolemessage = "";
}
void Animation::setwabgcolor()
{
if (this->darkbg)
{
wacolor = _black;
}
if (this->whitebg)
{
wacolor = _white;
}
}
void Animation::setmessagecolor()
{
if (this->darkbg) this->_pixGlobal->setmessagecolor(_white);
if (this->whitebg) this->_pixGlobal->setmessagecolor(_black);
}
void Animation::setdefaultsinterface()
{
this->G = 0.1;
this->K = 1;
this->drawlabels = false;
this->_drawxlabels = false;
this->_drawylabels = false;
this->Help = false;
this->About = false;
this->darkbg = true;
this->whitebg = false;
this->setmessagecolor();
this->fontcolor = text_color;
this->setwabgcolor();
this->setconsole();
this->setdefaultaxes();
this->setdefaultgrid();
this->setdefaultcolors();
this->setdefaultscales();
this->setxymax();
}
void Animation::setdefaultselements()
{
// CONFIGURATIONS
istatesm1 = getistatesmcirc(par(-7, 0), par(200, 0), 1, -1, true, ROJO_RED, 0.1, 0.1, 2);
istatesm2 = getistatesmrectfill(par(7, -2), par(0, 0), 100, 0, true, VERDE_GREEN, par(8, 2), 0.2, 0.2, 2);
istatesm3 = sumnistatesm(2, istatesm1, istatesm2);
// Global Matrix - Container for interacting matrices -
// Initial conditions
this->_pixGlobal->setdefaults(istatesm3);
this->updatestateelements();
this->getidforelements();
}
void Animation::getidforelements()
{
this->_pixGlobal->getid();
}
void Animation::setupinterface()
{
// Animation's Interface
this->setdefaultsinterface();
}
void Animation::setnull()
{
}
Animation Animation::initinterface()
{
this->setupinterface();
return *this;
}