Desc_Models_Dialog_Base.cpp
Go to the documentation of this file.
1 
22 
23 
24 DescModelsDialogBase::DescModelsDialogBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
25 {
26  this->SetSizeHints( wxDefaultSize, wxDefaultSize );
27 
28  wxBoxSizer* bSizer1;
29  bSizer1 = new wxBoxSizer( wxVERTICAL );
30 
31  bSizer1->Add(0, 10, 0, 0, 5);
32 
33  wxBoxSizer* bSizer201;
34  bSizer201 = new wxBoxSizer(wxHORIZONTAL);
35 
36  bSizer201->Add( 20, 0, 0, 0, 5);
37 
38  label_caption = new wxStaticText(this, wxID_ANY, wxT("2D recognition parameters"), wxDefaultPosition, wxDefaultSize, 0);
39  label_caption->Wrap(-1);
40  label_caption->SetFont(wxFont(13, 70, 90, 92, false, wxEmptyString));
41 
42  bSizer201->Add(label_caption, 1, wxALL, 5);
43 
44  bSizer1->Add(bSizer201, 0, wxEXPAND, 5);
45 
46  bSizer1->Add(0, 5, 0, 0, 5);
47 
48  wxBoxSizer* bSizer2;
49  bSizer2 = new wxBoxSizer( wxHORIZONTAL );
50 
51  list_box_views = new wxListBox( this, wxID_ANY, wxDefaultPosition, wxSize( 200,-1 ), 0, NULL, 0 );
52  bSizer2->Add( list_box_views, 0, wxEXPAND|wxALL, 5 );
53 
54  wxBoxSizer* bSizer4;
55  bSizer4 = new wxBoxSizer( wxVERTICAL );
56 
57 
58  bSizer4->Add( 0, 0, 1, wxEXPAND, 5 );
59 
60  wxBoxSizer* bSizer5;
61  bSizer5 = new wxBoxSizer( wxHORIZONTAL );
62 
63  button_add_model = new wxButton( this, wxID_ANY, wxT("+"), wxDefaultPosition, wxSize( 30,-1 ), 0 );
64  bSizer5->Add( button_add_model, 0, wxALL, 5 );
65 
66  button_delete_model = new wxButton( this, wxID_ANY, wxT("-"), wxDefaultPosition, wxSize( 30,-1 ), 0 );
67  bSizer5->Add( button_delete_model, 0, wxALL, 5 );
68 
69  bSizer5->Add( 0, 0, 1, wxEXPAND, 5 );
70 
71  button_edit_model = new wxButton( this, wxID_ANY, wxT("Edit"), wxDefaultPosition, wxDefaultSize, 0 );
72  bSizer5->Add( button_edit_model, 0, wxALL, 5 );
73 
74  bSizer4->Add( bSizer5, 0, wxEXPAND, 5 );
75 
76  wxBoxSizer* bSizer6;
77  bSizer6 = new wxBoxSizer( wxHORIZONTAL );
78 
79  label_orientation = new wxStaticText( this, wxID_ANY, wxT("Orientation:"), wxDefaultPosition, wxSize( 130,-1 ), 0 );
80  label_orientation->Wrap( -1 );
81  label_orientation->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92, false, wxEmptyString ) );
82 
83  bSizer6->Add( label_orientation, 0, wxALL, 5 );
84 
85 
86  bSizer6->Add( 30, 0, 0, 0, 5 );
87 
88  label_orientation_x = new wxStaticText( this, wxID_ANY, wxT("x:"), wxDefaultPosition, wxDefaultSize, 0 );
89  label_orientation_x->Wrap( -1 );
90  bSizer6->Add( label_orientation_x, 0, wxALL, 5 );
91 
92  label_orientation_x_value = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 70,-1 ), 0 );
93  label_orientation_x_value->Wrap( -1 );
94  bSizer6->Add( label_orientation_x_value, 0, wxALL, 5 );
95 
96  label_orientation_y = new wxStaticText( this, wxID_ANY, wxT("y:"), wxDefaultPosition, wxDefaultSize, 0 );
97  label_orientation_y->Wrap( -1 );
98  bSizer6->Add( label_orientation_y, 0, wxALL, 5 );
99 
100  label_orientation_y_value = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 70,-1 ), 0 );
101  label_orientation_y_value->Wrap( -1 );
102  bSizer6->Add( label_orientation_y_value, 0, wxALL, 5 );
103 
104  label_orientation_z = new wxStaticText( this, wxID_ANY, wxT("z:"), wxDefaultPosition, wxDefaultSize, 0 );
105  label_orientation_z->Wrap( -1 );
106  bSizer6->Add( label_orientation_z, 0, wxALL, 5 );
107 
108  label_orientation_z_value = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 70,-1 ), 0 );
109  label_orientation_z_value->Wrap( -1 );
110  bSizer6->Add( label_orientation_z_value, 0, wxALL, 5 );
111 
112  bSizer4->Add( bSizer6, 0, wxEXPAND, 5 );
113 
114  wxBoxSizer* bSizer61;
115  bSizer61 = new wxBoxSizer( wxHORIZONTAL );
116 
117  label_axis_1 = new wxStaticText( this, wxID_ANY, wxT("Axis 1:"), wxDefaultPosition, wxSize( 130,-1 ), 0 );
118  label_axis_1->Wrap( -1 );
119  label_axis_1->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92, false, wxEmptyString ) );
120 
121  bSizer61->Add( label_axis_1, 0, wxALL, 5 );
122 
123 
124  bSizer61->Add( 30, 0, 0, 0, 5 );
125 
126  label_axis_1_x = new wxStaticText( this, wxID_ANY, wxT("x:"), wxDefaultPosition, wxDefaultSize, 0 );
127  label_axis_1_x->Wrap( -1 );
128  bSizer61->Add( label_axis_1_x, 0, wxALL, 5 );
129 
130  label_axis_1_x_value = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 70,-1 ), 0 );
131  label_axis_1_x_value->Wrap( -1 );
132  bSizer61->Add( label_axis_1_x_value, 0, wxALL, 5 );
133 
134  label_axis_1_y = new wxStaticText( this, wxID_ANY, wxT("y:"), wxDefaultPosition, wxDefaultSize, 0 );
135  label_axis_1_y->Wrap( -1 );
136  bSizer61->Add( label_axis_1_y, 0, wxALL, 5 );
137 
138  label_axis_1_y_value = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 70,-1 ), 0 );
139  label_axis_1_y_value->Wrap( -1 );
140  bSizer61->Add( label_axis_1_y_value, 0, wxALL, 5 );
141 
142  label_axis_1_z = new wxStaticText( this, wxID_ANY, wxT("z:"), wxDefaultPosition, wxDefaultSize, 0 );
143  label_axis_1_z->Wrap( -1 );
144  bSizer61->Add( label_axis_1_z, 0, wxALL, 5 );
145 
146  label_axis_1_z_value = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 70,-1 ), 0 );
147  label_axis_1_z_value->Wrap( -1 );
148  bSizer61->Add( label_axis_1_z_value, 0, wxALL, 5 );
149 
150  label_axis_1_angle = new wxStaticText(this, wxID_ANY, wxT("angle:"), wxDefaultPosition, wxDefaultSize, 0);
151  label_axis_1_angle->Wrap(-1);
152  bSizer61->Add(label_axis_1_angle, 0, wxALL, 5);
153 
154  label_axis_1_angle_value = new wxStaticText(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(70, -1), 0);
155  label_axis_1_angle_value->Wrap(-1);
156  bSizer61->Add(label_axis_1_angle_value, 0, wxALL, 5);
157 
158 
159 
160  bSizer4->Add( bSizer61, 0, wxEXPAND, 5 );
161 
162  wxBoxSizer* bSizer611;
163  bSizer611 = new wxBoxSizer( wxHORIZONTAL );
164 
165  label_axis_2 = new wxStaticText( this, wxID_ANY, wxT("Axis 2:"), wxDefaultPosition, wxSize( 130,-1 ), 0 );
166  label_axis_2->Wrap( -1 );
167  label_axis_2->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92, false, wxEmptyString ) );
168 
169  bSizer611->Add( label_axis_2, 0, wxALL, 5 );
170 
171 
172  bSizer611->Add( 30, 0, 0, 0, 5 );
173 
174  label_axis_2_x = new wxStaticText( this, wxID_ANY, wxT("x:"), wxDefaultPosition, wxDefaultSize, 0 );
175  label_axis_2_x->Wrap( -1 );
176  bSizer611->Add( label_axis_2_x, 0, wxALL, 5 );
177 
178  label_axis_2_x_value = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 70,-1 ), 0 );
179  label_axis_2_x_value->Wrap( -1 );
180  bSizer611->Add( label_axis_2_x_value, 0, wxALL, 5 );
181 
182  label_axis_2_y = new wxStaticText( this, wxID_ANY, wxT("y:"), wxDefaultPosition, wxDefaultSize, 0 );
183  label_axis_2_y->Wrap( -1 );
184  bSizer611->Add( label_axis_2_y, 0, wxALL, 5 );
185 
186  label_axis_2_y_value = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 70,-1 ), 0 );
187  label_axis_2_y_value->Wrap( -1 );
188  bSizer611->Add( label_axis_2_y_value, 0, wxALL, 5 );
189 
190  label_axis_2_z = new wxStaticText( this, wxID_ANY, wxT("z:"), wxDefaultPosition, wxDefaultSize, 0 );
191  label_axis_2_z->Wrap( -1 );
192  bSizer611->Add( label_axis_2_z, 0, wxALL, 5 );
193 
194  label_axis_2_z_value = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 70,-1 ), 0 );
195  label_axis_2_z_value->Wrap( -1 );
196  bSizer611->Add( label_axis_2_z_value, 0, wxALL, 5 );
197 
198  label_axis_2_angle = new wxStaticText(this, wxID_ANY, wxT("angle:"), wxDefaultPosition, wxDefaultSize, 0);
199  label_axis_2_angle->Wrap(-1);
200  bSizer611->Add(label_axis_2_angle, 0, wxALL, 5);
201 
202  label_axis_2_angle_value = new wxStaticText(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(70, -1), 0);
203  label_axis_2_angle_value->Wrap(-1);
204  bSizer611->Add(label_axis_2_angle_value, 0, wxALL, 5);
205 
206  bSizer4->Add( bSizer611, 0, wxEXPAND, 5 );
207 
208  wxBoxSizer* bSizer15;
209  bSizer15 = new wxBoxSizer( wxHORIZONTAL );
210 
211  label_score_2D = new wxStaticText( this, wxID_ANY, wxT("Score:"), wxDefaultPosition, wxSize( 130,-1 ), 0 );
212  label_score_2D->Wrap( -1 );
213  label_score_2D->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92, false, wxEmptyString ) );
214 
215  bSizer15->Add( label_score_2D, 0, wxALL, 5 );
216 
217 
218  bSizer15->Add( 30, 0, 0, 0, 5 );
219 
220  label_score_2D_value = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 50,-1 ), 0 );
221  label_score_2D_value->Wrap( -1 );
222  bSizer15->Add( label_score_2D_value, 0, wxALL, 5 );
223 
224 
225  bSizer15->Add( 100, 0, 1, wxEXPAND, 5 );
226 
227  bSizer4->Add( bSizer15, 0, wxEXPAND, 5 );
228 
229  wxBoxSizer* bSizer16;
230  bSizer16 = new wxBoxSizer( wxHORIZONTAL );
231 
232  label_use_color = new wxStaticText( this, wxID_ANY, wxT("Color:"), wxDefaultPosition, wxSize( 130,-1 ), 0 );
233  label_use_color->Wrap( -1 );
234  label_use_color->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92, false, wxEmptyString ) );
235 
236  bSizer16->Add( label_use_color, 0, wxALL, 5 );
237 
238 
239  bSizer16->Add( 30, 0, 0, 0, 5 );
240 
241  label_use_color_value = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 50,-1 ), 0 );
242  label_use_color_value->Wrap( -1 );
243  bSizer16->Add( label_use_color_value, 0, wxALL, 5 );
244 
245 
246  bSizer16->Add( 0, 0, 1, wxEXPAND, 5 );
247 
248  label_invertible = new wxStaticText( this, wxID_ANY, wxT("Can be upside-down:"), wxDefaultPosition, wxDefaultSize, 0 );
249  label_invertible->Wrap( -1 );
250  label_invertible->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92, false, wxEmptyString ) );
251 
252  bSizer16->Add( label_invertible, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
253 
254 
255  bSizer16->Add( 30, 0, 0, 0, 5 );
256 
257  label_invertible_value = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 50,-1 ), 0 );
258  label_invertible_value->Wrap( -1 );
259  bSizer16->Add( label_invertible_value, 0, wxALL, 5 );
260 
261 
262  bSizer16->Add( 50, 0, 0, 0, 5 );
263 
264  bSizer4->Add( bSizer16, 0, wxEXPAND, 5 );
265 
266  wxBoxSizer* bSizer18;
267  bSizer18 = new wxBoxSizer( wxHORIZONTAL );
268 
269  label_vertical_offset = new wxStaticText( this, wxID_ANY, wxT("Vertical offset:"), wxDefaultPosition, wxSize( 130,-1 ), 0 );
270  label_vertical_offset->Wrap( -1 );
271  label_vertical_offset->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92, false, wxEmptyString ) );
272 
273  bSizer18->Add( label_vertical_offset, 0, wxALL, 5 );
274 
275 
276  bSizer18->Add( 30, 0, 0, 0, 5 );
277 
278  label_vertical_offset_value = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 50,-1 ), 0 );
279  label_vertical_offset_value->Wrap( -1 );
280  bSizer18->Add( label_vertical_offset_value, 0, wxALL, 5 );
281 
282 
283  bSizer18->Add( 0, 0, 1, wxEXPAND, 5 );
284 
285  label_horizontal_offset = new wxStaticText( this, wxID_ANY, wxT("Horizontal offset:"), wxDefaultPosition, wxDefaultSize, 0 );
286  label_horizontal_offset->Wrap( -1 );
287  label_horizontal_offset->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92, false, wxEmptyString ) );
288 
289  bSizer18->Add( label_horizontal_offset, 0, wxALL, 5 );
290 
291 
292  bSizer18->Add( 30, 0, 0, 0, 5 );
293 
294  label_horizontal_offset_value = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 50,-1 ), 0 );
295  label_horizontal_offset_value->Wrap( -1 );
296  bSizer18->Add( label_horizontal_offset_value, 0, wxALL, 5 );
297 
298 
299  bSizer18->Add( 50, 0, 0, 0, 5 );
300 
301  bSizer4->Add( bSizer18, 0, wxEXPAND, 5 );
302 
303 
304  bSizer4->Add( 0, 20, 0, 0, 5 );
305 
306  wxBoxSizer* bSizer13;
307  bSizer13 = new wxBoxSizer( wxHORIZONTAL );
308 
309 
310  bSizer13->Add( 5, 0, 0, 0, 5 );
311 
312  wxBoxSizer* bSizer20;
313  bSizer20 = new wxBoxSizer( wxVERTICAL );
314 
315 
316  bSizer20->Add( 0, 0, 1, wxEXPAND, 5 );
317 
318  m_panel1 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxSize( 300,225 ), wxTAB_TRAVERSAL );
319 
320  bSizer20->Add( m_panel1, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
321 
322  image = new wxImagePanel(m_panel1, 225, 300);
323 
324 
325  bSizer20->Add( 0, 0, 1, wxEXPAND, 5 );
326 
327  bSizer13->Add( bSizer20, 0, wxEXPAND, 5 );
328 
329 
330  bSizer13->Add( 20, 0, 0, 0, 5 );
331 
332  wxBoxSizer* bSizer14;
333  bSizer14 = new wxBoxSizer( wxVERTICAL );
334 
335 
336  bSizer14->Add( 0, 0, 1, wxEXPAND, 5 );
337 
338  wxBoxSizer* bSizer151;
339  bSizer151 = new wxBoxSizer( wxHORIZONTAL );
340 
341  label_depth = new wxStaticText( this, wxID_ANY, wxT("Depth:"), wxDefaultPosition, wxSize( 120,-1 ), 0 );
342  label_depth->Wrap( -1 );
343  label_depth->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92, false, wxEmptyString ) );
344 
345  bSizer151->Add( label_depth, 0, wxALL, 5 );
346 
347 
348  bSizer151->Add( 30, 0, 0, 0, 5 );
349 
350  label_depth_value = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 50,-1 ), 0 );
351  label_depth_value->Wrap( -1 );
352  bSizer151->Add( label_depth_value, 0, wxALL, 5 );
353 
354  bSizer14->Add( bSizer151, 0, wxEXPAND, 5 );
355 
356  wxBoxSizer* bSizer161;
357  bSizer161 = new wxBoxSizer( wxHORIZONTAL );
358 
359  label_number_ferns = new wxStaticText( this, wxID_ANY, wxT("Fern number:"), wxDefaultPosition, wxSize( 120,-1 ), 0 );
360  label_number_ferns->Wrap( -1 );
361  label_number_ferns->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92, false, wxEmptyString ) );
362 
363  bSizer161->Add( label_number_ferns, 0, wxALL, 5 );
364 
365 
366  bSizer161->Add( 30, 0, 0, 0, 5 );
367 
368  label_number_ferns_value = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 50,-1 ), 0 );
369  label_number_ferns_value->Wrap( -1 );
370  bSizer161->Add( label_number_ferns_value, 0, wxALL, 5 );
371 
372  bSizer14->Add( bSizer161, 0, wxEXPAND, 5 );
373 
374  wxBoxSizer* bSizer17;
375  bSizer17 = new wxBoxSizer( wxHORIZONTAL );
376 
377  label_patch_size = new wxStaticText( this, wxID_ANY, wxT("Patch size:"), wxDefaultPosition, wxSize( 120,-1 ), 0 );
378  label_patch_size->Wrap( -1 );
379  label_patch_size->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92, false, wxEmptyString ) );
380 
381  bSizer17->Add( label_patch_size, 0, wxALL, 5 );
382 
383 
384  bSizer17->Add( 30, 0, 0, 0, 5 );
385 
386  label_patch_size_value = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 50,-1 ), 0 );
387  label_patch_size_value->Wrap( -1 );
388  bSizer17->Add( label_patch_size_value, 0, wxALL, 5 );
389 
390  bSizer14->Add( bSizer17, 0, wxEXPAND, 5 );
391 
392  wxBoxSizer* bSizer181;
393  bSizer181 = new wxBoxSizer( wxHORIZONTAL );
394 
395  label_min_scale = new wxStaticText( this, wxID_ANY, wxT("Min. scale:"), wxDefaultPosition, wxSize( 120,-1 ), 0 );
396  label_min_scale->Wrap( -1 );
397  label_min_scale->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92, false, wxEmptyString ) );
398 
399  bSizer181->Add( label_min_scale, 0, wxALL, 5 );
400 
401 
402  bSizer181->Add( 30, 0, 0, 0, 5 );
403 
404  label_min_scale_value = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 50,-1 ), 0 );
405  label_min_scale_value->Wrap( -1 );
406  bSizer181->Add( label_min_scale_value, 0, wxALL, 5 );
407 
408  bSizer14->Add( bSizer181, 0, wxEXPAND, 5 );
409 
410  wxBoxSizer* bSizer19;
411  bSizer19 = new wxBoxSizer( wxHORIZONTAL );
412 
413  label_max_scale = new wxStaticText( this, wxID_ANY, wxT("Max. scale:"), wxDefaultPosition, wxSize( 120,-1 ), 0 );
414  label_max_scale->Wrap( -1 );
415  label_max_scale->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92, false, wxEmptyString ) );
416 
417  bSizer19->Add( label_max_scale, 0, wxALL, 5 );
418 
419 
420  bSizer19->Add( 30, 0, 0, 0, 5 );
421 
422  label_max_scale_value = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 50,-1 ), 0 );
423  label_max_scale_value->Wrap( -1 );
424  bSizer19->Add( label_max_scale_value, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
425 
426  bSizer14->Add( bSizer19, 0, wxEXPAND, 5 );
427 
428 
429  bSizer14->Add( 0, 0, 1, wxEXPAND, 5 );
430 
431  bSizer13->Add( bSizer14, 1, wxEXPAND, 5 );
432 
433 
434  bSizer13->Add( 50, 0, 0, 0, 5 );
435 
436  bSizer4->Add( bSizer13, 0, wxEXPAND, 5 );
437 
438 
439  bSizer4->Add( 0, 0, 1, wxEXPAND, 5 );
440 
441  bSizer2->Add( bSizer4, 1, wxEXPAND, 5 );
442 
443  bSizer1->Add( bSizer2, 1, wxEXPAND, 5 );
444 
445  bSizer1->Add(0, 5, 0, 0, 5);
446 
447  wxBoxSizer* bSizer3;
448  bSizer3 = new wxBoxSizer( wxHORIZONTAL );
449 
450 
451  bSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
452 
453  button_back = new wxButton(this, wxID_ANY, wxT("< Back"), wxDefaultPosition, wxDefaultSize, 0);
454  bSizer3->Add(button_back, 0, wxALL, 5);
455 
456  button_cancel = new wxButton( this, wxID_ANY, wxT("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
457  bSizer3->Add( button_cancel, 0, wxALL, 5 );
458 
459  button_finish = new wxButton( this, wxID_ANY, wxT("Finish"), wxDefaultPosition, wxDefaultSize, 0 );
460  bSizer3->Add( button_finish, 0, wxALL, 5 );
461 
462  bSizer1->Add( bSizer3, 0, wxEXPAND, 5 );
463 
464  bSizer1->Add(0, 10, 0, 0, 5);
465 
466  this->SetSizer( bSizer1 );
467  this->Layout();
468 
469  // Connect Events
470  this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DescModelsDialogBase::OnDialogClose ) );
471  list_box_views->Connect( wxEVT_COMMAND_LISTBOX_SELECTED, wxCommandEventHandler( DescModelsDialogBase::onListBoxSelected ), NULL, this );
472  button_add_model->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DescModelsDialogBase::onAddModelClicked ), NULL, this );
473  button_delete_model->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DescModelsDialogBase::onDeleteModelClicked ), NULL, this );
474  button_cancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DescModelsDialogBase::onCancelClicked ), NULL, this );
475  button_finish->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DescModelsDialogBase::onFinishClicked ), NULL, this );
476  button_back->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DescModelsDialogBase::onBackClicked ), NULL, this );
477  button_edit_model->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DescModelsDialogBase::onEditModelClicked ), NULL, this );
478 
479  image->Connect(wxEVT_LEFT_UP, wxMouseEventHandler(DescModelsDialogBase::onImageClicked), NULL, this);
480  image->Connect(wxEVT_RIGHT_UP, wxMouseEventHandler(DescModelsDialogBase::onImageClickedRight), NULL, this);
481 }
482 
484 {
485  // Disconnect Events
486  this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DescModelsDialogBase::OnDialogClose ) );
487  list_box_views->Disconnect( wxEVT_COMMAND_LISTBOX_SELECTED, wxCommandEventHandler( DescModelsDialogBase::onListBoxSelected ), NULL, this );
488  button_add_model->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DescModelsDialogBase::onAddModelClicked ), NULL, this );
489  button_delete_model->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DescModelsDialogBase::onDeleteModelClicked ), NULL, this );
490  button_cancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DescModelsDialogBase::onCancelClicked ), NULL, this );
491  button_finish->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DescModelsDialogBase::onFinishClicked ), NULL, this );
492  button_back->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DescModelsDialogBase::onBackClicked ), NULL, this );
493  button_edit_model->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DescModelsDialogBase::onEditModelClicked ), NULL, this );
494 
495  image->Disconnect(wxEVT_LEFT_UP, wxMouseEventHandler(DescModelsDialogBase::onImageClicked), NULL, this);
496  image->Disconnect(wxEVT_RIGHT_UP, wxMouseEventHandler(DescModelsDialogBase::onImageClickedRight), NULL, this);
497 }
#define NULL
wxStaticText * label_invertible_value
wxStaticText * label_axis_1_x_value
wxStaticText * label_max_scale_value
wxStaticText * label_horizontal_offset_value
virtual void onDeleteModelClicked(wxCommandEvent &event)
virtual void onFinishClicked(wxCommandEvent &event)
virtual void onBackClicked(wxCommandEvent &event)
wxStaticText * label_min_scale_value
wxStaticText * label_axis_2_y_value
virtual void onCancelClicked(wxCommandEvent &event)
wxStaticText * label_vertical_offset_value
wxStaticText * label_axis_1_angle_value
DescModelsDialogBase(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxT("Descriptor Surfaced Based Trainer - Create views"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(800, 540), long style=wxDEFAULT_DIALOG_STYLE)
wxStaticText * label_axis_2_angle_value
wxStaticText * label_use_color_value
virtual void OnDialogClose(wxCloseEvent &event)
wxStaticText * label_orientation_y
wxStaticText * label_orientation_x
wxStaticText * label_axis_1_y_value
wxStaticText * label_score_2D_value
wxStaticText * label_horizontal_offset
virtual void onAddModelClicked(wxCommandEvent &event)
wxStaticText * label_axis_2_z_value
virtual void onImageClickedRight(wxMouseEvent &event)
wxStaticText * label_axis_1_z_value
wxStaticText * label_vertical_offset
wxStaticText * label_orientation_x_value
virtual void onImageClicked(wxMouseEvent &event)
wxStaticText * label_orientation_z_value
wxStaticText * label_number_ferns_value
virtual void onEditModelClicked(wxCommandEvent &event)
wxStaticText * label_orientation_z
wxStaticText * label_patch_size_value
wxStaticText * label_orientation_y_value
virtual void onListBoxSelected(wxCommandEvent &event)
wxStaticText * label_axis_2_x_value


asr_descriptor_surface_based_recognition
Author(s): Allgeyer Tobias, Hutmacher Robin, Meißner Pascal
autogenerated on Mon Dec 16 2019 03:31:15