-
Notifications
You must be signed in to change notification settings - Fork 0
/
przekUI.fl
136 lines (126 loc) · 3.64 KB
/
przekUI.fl
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
131
132
133
134
135
136
# data file for the Fltk User Interface Designer (fluid)
version 1.0105
header_name {.h}
code_name {.cxx}
decl {\#include <cmath>} {public
}
decl {\#include <cerrno>} {public
}
decl {\#include <cmath>} {public
}
decl {\#include "macierze.h"} {public
}
decl {\#include "app.h"} {public
}
class przekUI {open : {public Fl_Group}
} {
decl {unsigned numer;} {public
}
Function {przekUI(int x, int y, int w, int h, const char *label = 0) : Fl_Group(x, y, w, h, label)} {} {
Fl_Window {} {open
xywh {937 209 300 213} type Double visible
} {
Fl_Group {} {open
xywh {48 47 210 70} box THIN_DOWN_FRAME
} {
Fl_Slider P {
user_data this
callback {((przekUI*)v)->do_callback();}
tooltip Prawdopodobienstwo xywh {54 100 198 12} type {Horz Fill} selection_color 89 align 20 maximum 100 step 1 value 20
}
Fl_Box {} {
label Translacje
private xywh {51 49 66 14} labelsize 10
}
Fl_Box {} {
label Obroty
private xywh {115 49 66 14} labelsize 10
}
Fl_Box {} {
label Skalowania
private xywh {190 49 66 14} labelsize 10
}
Fl_Box {} {
label x
private xywh {58 62 16 13} labelsize 10
}
Fl_Box {} {
label y
private xywh {93 62 16 13} labelsize 10
}
Fl_Box {} {
label q
private xywh {126 62 16 13} labelfont 12 labelsize 10
}
Fl_Box {} {
label f
private xywh {160 62 16 13} labelfont 12 labelsize 10
}
Fl_Box {} {
label r
private xywh {202 62 16 13} labelsize 10
}
Fl_Box {} {
label s
private xywh {232 62 16 13} labelsize 10
}
Fl_Value_Input c {
user_data this
callback {((przekUI*)v)->do_callback();}
xywh {51 76 31 20} labelsize 10 minimum -100 maximum 100 step 0.01 textsize 10
}
Fl_Value_Input f {
user_data this
callback {((przekUI*)v)->do_callback();}
xywh {87 76 31 20} labelsize 10 minimum -100 maximum 100 step 0.01 textsize 10
}
Fl_Value_Input theta {
user_data this
callback {((przekUI*)v)->do_callback();}
xywh {121 76 31 20} labelsize 10 minimum -360 maximum 360 step 1 textsize 10
}
Fl_Value_Input fi {
user_data this
callback {((przekUI*)v)->do_callback();}
xywh {153 76 31 20} labelsize 10 minimum -360 maximum 360 step 1 textsize 10
}
Fl_Value_Input r {
user_data this
callback {((przekUI*)v)->do_callback();}
xywh {192 76 31 20} labelsize 10 minimum -10 maximum 10 step 0.1 value 1 textsize 10
}
Fl_Value_Input s {
user_data this
callback {((przekUI*)v)->do_callback();}
xywh {226 76 31 20} labelsize 10 minimum -10 maximum 10 step 0.1 value 1 textsize 10
}
}
}
code {numer = przekUI::ostatni++;} {}
}
decl {static unsigned ostatni;} {}
Function {Resetuj()} {open
} {
code {Ustaw(Macierz());} {}
}
Function {Ustaw(const Macierz &M)} {open
} {
code {float x;
c->value(M.c);
f->value(M.f);
if (M.a == 0 && M.d == 0)
x = 0;
else if ((x = (M.d<0?-1.0:1.0) * 180.0 * acos(M.a / hypot(M.a, M.d)) / PI) == EDOM)
x = 0;
fi->value(x);
if (M.b == 0 && M.e == 0)
x = 0;
else if ((x = (M.b>0?-1.0:1.0) * 180.0 * acos(M.e / hypot(M.b, M.e)) / PI) == EDOM)
x = 0;
theta->value(x);
r->value(hypot(M.a, M.d));
s->value(hypot(M.b, M.e));} {}
}
}
decl {unsigned przekUI::ostatni = 0;} {public
}