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 )
26 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
29 bSizer1 =
new wxBoxSizer( wxVERTICAL );
31 bSizer1->Add(0, 10, 0, 0, 5);
33 wxBoxSizer* bSizer201;
34 bSizer201 =
new wxBoxSizer(wxHORIZONTAL);
36 bSizer201->Add( 20, 0, 0, 0, 5);
38 label_caption =
new wxStaticText(
this, wxID_ANY, wxT(
"2D recognition parameters"), wxDefaultPosition, wxDefaultSize, 0);
40 label_caption->SetFont(wxFont(13, 70, 90, 92,
false, wxEmptyString));
44 bSizer1->Add(bSizer201, 0, wxEXPAND, 5);
46 bSizer1->Add(0, 5, 0, 0, 5);
49 bSizer2 =
new wxBoxSizer( wxHORIZONTAL );
51 list_box_views =
new wxListBox(
this, wxID_ANY, wxDefaultPosition, wxSize( 200,-1 ), 0,
NULL, 0 );
55 bSizer4 =
new wxBoxSizer( wxVERTICAL );
58 bSizer4->Add( 0, 0, 1, wxEXPAND, 5 );
61 bSizer5 =
new wxBoxSizer( wxHORIZONTAL );
63 button_add_model =
new wxButton(
this, wxID_ANY, wxT(
"+"), wxDefaultPosition, wxSize( 30,-1 ), 0 );
66 button_delete_model =
new wxButton(
this, wxID_ANY, wxT(
"-"), wxDefaultPosition, wxSize( 30,-1 ), 0 );
69 bSizer5->Add( 0, 0, 1, wxEXPAND, 5 );
71 button_edit_model =
new wxButton(
this, wxID_ANY, wxT(
"Edit"), wxDefaultPosition, wxDefaultSize, 0 );
74 bSizer4->Add( bSizer5, 0, wxEXPAND, 5 );
77 bSizer6 =
new wxBoxSizer( wxHORIZONTAL );
79 label_orientation =
new wxStaticText(
this, wxID_ANY, wxT(
"Orientation:"), wxDefaultPosition, wxSize( 130,-1 ), 0 );
81 label_orientation->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92,
false, wxEmptyString ) );
86 bSizer6->Add( 30, 0, 0, 0, 5 );
88 label_orientation_x =
new wxStaticText(
this, wxID_ANY, wxT(
"x:"), wxDefaultPosition, wxDefaultSize, 0 );
96 label_orientation_y =
new wxStaticText(
this, wxID_ANY, wxT(
"y:"), wxDefaultPosition, wxDefaultSize, 0 );
104 label_orientation_z =
new wxStaticText(
this, wxID_ANY, wxT(
"z:"), wxDefaultPosition, wxDefaultSize, 0 );
112 bSizer4->Add( bSizer6, 0, wxEXPAND, 5 );
114 wxBoxSizer* bSizer61;
115 bSizer61 =
new wxBoxSizer( wxHORIZONTAL );
117 label_axis_1 =
new wxStaticText(
this, wxID_ANY, wxT(
"Axis 1:"), wxDefaultPosition, wxSize( 130,-1 ), 0 );
119 label_axis_1->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92,
false, wxEmptyString ) );
124 bSizer61->Add( 30, 0, 0, 0, 5 );
126 label_axis_1_x =
new wxStaticText(
this, wxID_ANY, wxT(
"x:"), wxDefaultPosition, wxDefaultSize, 0 );
130 label_axis_1_x_value =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 70,-1 ), 0 );
134 label_axis_1_y =
new wxStaticText(
this, wxID_ANY, wxT(
"y:"), wxDefaultPosition, wxDefaultSize, 0 );
138 label_axis_1_y_value =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 70,-1 ), 0 );
142 label_axis_1_z =
new wxStaticText(
this, wxID_ANY, wxT(
"z:"), wxDefaultPosition, wxDefaultSize, 0 );
146 label_axis_1_z_value =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 70,-1 ), 0 );
150 label_axis_1_angle =
new wxStaticText(
this, wxID_ANY, wxT(
"angle:"), wxDefaultPosition, wxDefaultSize, 0);
160 bSizer4->Add( bSizer61, 0, wxEXPAND, 5 );
162 wxBoxSizer* bSizer611;
163 bSizer611 =
new wxBoxSizer( wxHORIZONTAL );
165 label_axis_2 =
new wxStaticText(
this, wxID_ANY, wxT(
"Axis 2:"), wxDefaultPosition, wxSize( 130,-1 ), 0 );
167 label_axis_2->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92,
false, wxEmptyString ) );
172 bSizer611->Add( 30, 0, 0, 0, 5 );
174 label_axis_2_x =
new wxStaticText(
this, wxID_ANY, wxT(
"x:"), wxDefaultPosition, wxDefaultSize, 0 );
178 label_axis_2_x_value =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 70,-1 ), 0 );
182 label_axis_2_y =
new wxStaticText(
this, wxID_ANY, wxT(
"y:"), wxDefaultPosition, wxDefaultSize, 0 );
186 label_axis_2_y_value =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 70,-1 ), 0 );
190 label_axis_2_z =
new wxStaticText(
this, wxID_ANY, wxT(
"z:"), wxDefaultPosition, wxDefaultSize, 0 );
194 label_axis_2_z_value =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 70,-1 ), 0 );
198 label_axis_2_angle =
new wxStaticText(
this, wxID_ANY, wxT(
"angle:"), wxDefaultPosition, wxDefaultSize, 0);
206 bSizer4->Add( bSizer611, 0, wxEXPAND, 5 );
208 wxBoxSizer* bSizer15;
209 bSizer15 =
new wxBoxSizer( wxHORIZONTAL );
211 label_score_2D =
new wxStaticText(
this, wxID_ANY, wxT(
"Score:"), wxDefaultPosition, wxSize( 130,-1 ), 0 );
213 label_score_2D->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92,
false, wxEmptyString ) );
218 bSizer15->Add( 30, 0, 0, 0, 5 );
220 label_score_2D_value =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 50,-1 ), 0 );
225 bSizer15->Add( 100, 0, 1, wxEXPAND, 5 );
227 bSizer4->Add( bSizer15, 0, wxEXPAND, 5 );
229 wxBoxSizer* bSizer16;
230 bSizer16 =
new wxBoxSizer( wxHORIZONTAL );
232 label_use_color =
new wxStaticText(
this, wxID_ANY, wxT(
"Color:"), wxDefaultPosition, wxSize( 130,-1 ), 0 );
234 label_use_color->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92,
false, wxEmptyString ) );
239 bSizer16->Add( 30, 0, 0, 0, 5 );
241 label_use_color_value =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 50,-1 ), 0 );
246 bSizer16->Add( 0, 0, 1, wxEXPAND, 5 );
248 label_invertible =
new wxStaticText(
this, wxID_ANY, wxT(
"Can be upside-down:"), wxDefaultPosition, wxDefaultSize, 0 );
250 label_invertible->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92,
false, wxEmptyString ) );
255 bSizer16->Add( 30, 0, 0, 0, 5 );
257 label_invertible_value =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 50,-1 ), 0 );
262 bSizer16->Add( 50, 0, 0, 0, 5 );
264 bSizer4->Add( bSizer16, 0, wxEXPAND, 5 );
266 wxBoxSizer* bSizer18;
267 bSizer18 =
new wxBoxSizer( wxHORIZONTAL );
269 label_vertical_offset =
new wxStaticText(
this, wxID_ANY, wxT(
"Vertical offset:"), wxDefaultPosition, wxSize( 130,-1 ), 0 );
271 label_vertical_offset->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92,
false, wxEmptyString ) );
276 bSizer18->Add( 30, 0, 0, 0, 5 );
283 bSizer18->Add( 0, 0, 1, wxEXPAND, 5 );
285 label_horizontal_offset =
new wxStaticText(
this, wxID_ANY, wxT(
"Horizontal offset:"), wxDefaultPosition, wxDefaultSize, 0 );
292 bSizer18->Add( 30, 0, 0, 0, 5 );
299 bSizer18->Add( 50, 0, 0, 0, 5 );
301 bSizer4->Add( bSizer18, 0, wxEXPAND, 5 );
304 bSizer4->Add( 0, 20, 0, 0, 5 );
306 wxBoxSizer* bSizer13;
307 bSizer13 =
new wxBoxSizer( wxHORIZONTAL );
310 bSizer13->Add( 5, 0, 0, 0, 5 );
312 wxBoxSizer* bSizer20;
313 bSizer20 =
new wxBoxSizer( wxVERTICAL );
316 bSizer20->Add( 0, 0, 1, wxEXPAND, 5 );
318 m_panel1 =
new wxPanel(
this, wxID_ANY, wxDefaultPosition, wxSize( 300,225 ), wxTAB_TRAVERSAL );
320 bSizer20->Add(
m_panel1, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
325 bSizer20->Add( 0, 0, 1, wxEXPAND, 5 );
327 bSizer13->Add( bSizer20, 0, wxEXPAND, 5 );
330 bSizer13->Add( 20, 0, 0, 0, 5 );
332 wxBoxSizer* bSizer14;
333 bSizer14 =
new wxBoxSizer( wxVERTICAL );
336 bSizer14->Add( 0, 0, 1, wxEXPAND, 5 );
338 wxBoxSizer* bSizer151;
339 bSizer151 =
new wxBoxSizer( wxHORIZONTAL );
341 label_depth =
new wxStaticText(
this, wxID_ANY, wxT(
"Depth:"), wxDefaultPosition, wxSize( 120,-1 ), 0 );
343 label_depth->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92,
false, wxEmptyString ) );
348 bSizer151->Add( 30, 0, 0, 0, 5 );
350 label_depth_value =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 50,-1 ), 0 );
354 bSizer14->Add( bSizer151, 0, wxEXPAND, 5 );
356 wxBoxSizer* bSizer161;
357 bSizer161 =
new wxBoxSizer( wxHORIZONTAL );
359 label_number_ferns =
new wxStaticText(
this, wxID_ANY, wxT(
"Fern number:"), wxDefaultPosition, wxSize( 120,-1 ), 0 );
361 label_number_ferns->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92,
false, wxEmptyString ) );
366 bSizer161->Add( 30, 0, 0, 0, 5 );
368 label_number_ferns_value =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 50,-1 ), 0 );
372 bSizer14->Add( bSizer161, 0, wxEXPAND, 5 );
374 wxBoxSizer* bSizer17;
375 bSizer17 =
new wxBoxSizer( wxHORIZONTAL );
377 label_patch_size =
new wxStaticText(
this, wxID_ANY, wxT(
"Patch size:"), wxDefaultPosition, wxSize( 120,-1 ), 0 );
379 label_patch_size->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92,
false, wxEmptyString ) );
384 bSizer17->Add( 30, 0, 0, 0, 5 );
386 label_patch_size_value =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 50,-1 ), 0 );
390 bSizer14->Add( bSizer17, 0, wxEXPAND, 5 );
392 wxBoxSizer* bSizer181;
393 bSizer181 =
new wxBoxSizer( wxHORIZONTAL );
395 label_min_scale =
new wxStaticText(
this, wxID_ANY, wxT(
"Min. scale:"), wxDefaultPosition, wxSize( 120,-1 ), 0 );
397 label_min_scale->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92,
false, wxEmptyString ) );
402 bSizer181->Add( 30, 0, 0, 0, 5 );
404 label_min_scale_value =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 50,-1 ), 0 );
408 bSizer14->Add( bSizer181, 0, wxEXPAND, 5 );
410 wxBoxSizer* bSizer19;
411 bSizer19 =
new wxBoxSizer( wxHORIZONTAL );
413 label_max_scale =
new wxStaticText(
this, wxID_ANY, wxT(
"Max. scale:"), wxDefaultPosition, wxSize( 120,-1 ), 0 );
415 label_max_scale->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92,
false, wxEmptyString ) );
420 bSizer19->Add( 30, 0, 0, 0, 5 );
422 label_max_scale_value =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 50,-1 ), 0 );
426 bSizer14->Add( bSizer19, 0, wxEXPAND, 5 );
429 bSizer14->Add( 0, 0, 1, wxEXPAND, 5 );
431 bSizer13->Add( bSizer14, 1, wxEXPAND, 5 );
434 bSizer13->Add( 50, 0, 0, 0, 5 );
436 bSizer4->Add( bSizer13, 0, wxEXPAND, 5 );
439 bSizer4->Add( 0, 0, 1, wxEXPAND, 5 );
441 bSizer2->Add( bSizer4, 1, wxEXPAND, 5 );
443 bSizer1->Add( bSizer2, 1, wxEXPAND, 5 );
445 bSizer1->Add(0, 5, 0, 0, 5);
448 bSizer3 =
new wxBoxSizer( wxHORIZONTAL );
451 bSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
453 button_back =
new wxButton(
this, wxID_ANY, wxT(
"< Back"), wxDefaultPosition, wxDefaultSize, 0);
456 button_cancel =
new wxButton(
this, wxID_ANY, wxT(
"Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
459 button_finish =
new wxButton(
this, wxID_ANY, wxT(
"Finish"), wxDefaultPosition, wxDefaultSize, 0 );
462 bSizer1->Add( bSizer3, 0, wxEXPAND, 5 );
464 bSizer1->Add(0, 10, 0, 0, 5);
466 this->SetSizer( bSizer1 );
wxStaticText * label_score_2D
wxStaticText * label_invertible_value
wxStaticText * label_axis_1_x_value
wxStaticText * label_max_scale_value
wxStaticText * label_horizontal_offset_value
wxStaticText * label_axis_2
virtual void onDeleteModelClicked(wxCommandEvent &event)
wxStaticText * label_axis_2_angle
virtual void onFinishClicked(wxCommandEvent &event)
wxStaticText * label_number_ferns
wxStaticText * label_min_scale
wxListBox * list_box_views
wxStaticText * label_caption
virtual void onBackClicked(wxCommandEvent &event)
wxStaticText * label_min_scale_value
wxButton * button_edit_model
wxStaticText * label_axis_2_y_value
virtual void onCancelClicked(wxCommandEvent &event)
wxStaticText * label_axis_1
wxStaticText * label_vertical_offset_value
wxStaticText * label_axis_1_angle_value
wxStaticText * label_max_scale
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_axis_1_angle
wxStaticText * label_use_color_value
virtual void OnDialogClose(wxCloseEvent &event)
wxStaticText * label_orientation_y
wxStaticText * label_orientation_x
wxStaticText * label_axis_2_z
wxStaticText * label_axis_1_y_value
wxStaticText * label_score_2D_value
wxStaticText * label_axis_1_y
wxStaticText * label_axis_2_y
wxStaticText * label_horizontal_offset
virtual void onAddModelClicked(wxCommandEvent &event)
wxStaticText * label_axis_2_z_value
wxStaticText * label_axis_1_z
virtual void onImageClickedRight(wxMouseEvent &event)
wxStaticText * label_axis_1_x
wxStaticText * label_axis_1_z_value
wxStaticText * label_vertical_offset
wxStaticText * label_orientation_x_value
wxStaticText * label_orientation
wxButton * button_delete_model
virtual void onImageClicked(wxMouseEvent &event)
wxStaticText * label_orientation_z_value
wxStaticText * label_axis_2_x
wxStaticText * label_number_ferns_value
virtual void onEditModelClicked(wxCommandEvent &event)
wxStaticText * label_depth_value
wxStaticText * label_use_color
wxStaticText * label_orientation_z
wxStaticText * label_invertible
wxStaticText * label_patch_size_value
wxStaticText * label_orientation_y_value
virtual void onListBoxSelected(wxCommandEvent &event)
wxStaticText * label_patch_size
wxStaticText * label_depth
wxStaticText * label_axis_2_x_value
wxButton * button_add_model