24 MainDialogBase::MainDialogBase( 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 bSizer2 =
new wxBoxSizer( wxVERTICAL );
32 bSizer2->Add( 0, 10, 0, 0, 5 );
35 bSizer10 =
new wxBoxSizer( wxHORIZONTAL );
38 bSizer10->Add( 20, 0, 0, 0, 5 );
40 label_caption =
new wxStaticText(
this, wxID_ANY, wxT(
"3D recognition parameters"), wxDefaultPosition, wxDefaultSize, 0 );
42 label_caption->SetFont( wxFont( 13, 70, 90, 92,
false, wxEmptyString ) );
44 bSizer10->Add(
label_caption, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
46 bSizer2->Add( bSizer10, 0, wxEXPAND, 5 );
49 bSizer2->Add( 0, 10, 0, 0, 5 );
52 bSizer3 =
new wxBoxSizer( wxHORIZONTAL );
54 label_name =
new wxStaticText(
this, wxID_ANY, wxT(
"Name"), wxDefaultPosition, wxDefaultSize, 0 );
56 bSizer3->Add(
label_name, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
59 bSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
61 edit_name =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 300,-1 ), wxTE_PROCESS_ENTER );
62 bSizer3->Add(
edit_name, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
65 bSizer3->Add( 20, 0, 0, wxEXPAND, 5 );
67 bSizer2->Add( bSizer3, 0, wxEXPAND|wxLEFT, 5 );
70 bSizer4 =
new wxBoxSizer( wxHORIZONTAL );
72 label_object_model =
new wxStaticText(
this, wxID_ANY, wxT(
"Object-Model"), wxDefaultPosition, wxDefaultSize, 0 );
77 bSizer4->Add( 0, 0, 1, wxEXPAND, 5 );
79 wxArrayString choice_object_modelChoices;
80 choice_object_model =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxSize( 300,-1 ), choice_object_modelChoices, 0 );
85 bSizer4->Add( 20, 0, 0, wxEXPAND, 5 );
87 bSizer2->Add( bSizer4, 0, wxEXPAND|wxLEFT, 5 );
90 bSizer41 =
new wxBoxSizer( wxHORIZONTAL );
92 label_mesh =
new wxStaticText(
this, wxID_ANY, wxT(
"Textured object-model (Visualisation)"), wxDefaultPosition, wxDefaultSize, 0 );
94 bSizer41->Add(
label_mesh, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
97 bSizer41->Add( 0, 0, 1, wxEXPAND, 5 );
99 wxArrayString choice_meshChoices;
100 choice_mesh =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxSize( 300,-1 ), choice_meshChoices, 0 );
102 bSizer41->Add(
choice_mesh, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxALL, 5 );
105 bSizer41->Add( 20, 0, 0, wxEXPAND, 5 );
107 bSizer2->Add( bSizer41, 0, wxEXPAND|wxLEFT, 5 );
109 wxBoxSizer* bSizer411;
110 bSizer411 =
new wxBoxSizer( wxHORIZONTAL );
112 label_rotation_type =
new wxStaticText(
this, wxID_ANY, wxT(
"Rotation-Model-Type"), wxDefaultPosition, wxDefaultSize, 0 );
117 bSizer411->Add( 0, 0, 1, wxEXPAND, 5 );
119 wxString choice_rotation_typeChoices[] = { wxT(
"No Rotation"), wxT(
"Cylinder"), wxT(
"Sphere") };
120 int choice_rotation_typeNChoices =
sizeof( choice_rotation_typeChoices ) /
sizeof( wxString );
121 choice_rotation_type =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxSize( 300,-1 ), choice_rotation_typeNChoices, choice_rotation_typeChoices, 0 );
126 bSizer411->Add( 20, 0, 0, wxEXPAND, 5 );
128 bSizer2->Add( bSizer411, 0, wxEXPAND|wxLEFT, 5 );
130 wxBoxSizer* bSizer12;
131 bSizer12 =
new wxBoxSizer( wxHORIZONTAL );
133 label_orientation =
new wxStaticText(
this, wxID_ANY, wxT(
"Model-Orientation"), wxDefaultPosition, wxDefaultSize, 0 );
138 bSizer12->Add( 0, 0, 1, wxEXPAND, 5 );
140 label_orientation_x =
new wxStaticText(
this, wxID_ANY, wxT(
"x:"), wxDefaultPosition, wxDefaultSize, 0 );
144 edit_orientation_x =
new wxTextCtrl(
this, wxID_ANY, wxT(
"1.0"), wxDefaultPosition, wxSize( 70,-1 ), wxTE_PROCESS_ENTER );
147 label_orientation_y =
new wxStaticText(
this, wxID_ANY, wxT(
"y:"), wxDefaultPosition, wxDefaultSize, 0 );
151 edit_orientation_y =
new wxTextCtrl(
this, wxID_ANY, wxT(
"0.0"), wxDefaultPosition, wxSize( 70,-1 ), wxTE_PROCESS_ENTER );
154 label_orientation_z =
new wxStaticText(
this, wxID_ANY, wxT(
"z:"), wxDefaultPosition, wxDefaultSize, 0 );
158 edit_orientation_z =
new wxTextCtrl(
this, wxID_ANY, wxT(
"0.0"), wxDefaultPosition, wxSize( 70,-1 ), wxTE_PROCESS_ENTER );
162 bSizer12->Add( 20, 0, 0, wxEXPAND, 5 );
164 bSizer2->Add( bSizer12, 0, wxEXPAND|wxLEFT, 5 );
166 wxBoxSizer* bSizer13;
167 bSizer13 =
new wxBoxSizer( wxHORIZONTAL );
169 label_diameter =
new wxStaticText(
this, wxID_ANY, wxT(
"Diameter"), wxDefaultPosition, wxDefaultSize, 0 );
171 bSizer13->Add(
label_diameter, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
174 bSizer13->Add( 0, 0, 1, wxEXPAND, 5 );
176 edit_diameter =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 200,-1 ), wxTE_PROCESS_ENTER );
180 bSizer13->Add( 20, 0, 0, wxEXPAND, 5 );
182 bSizer2->Add( bSizer13, 0, wxEXPAND|wxLEFT, 5 );
184 wxBoxSizer* bSizer14;
185 bSizer14 =
new wxBoxSizer( wxHORIZONTAL );
187 label_score_3D =
new wxStaticText(
this, wxID_ANY, wxT(
"Score 3D"), wxDefaultPosition, wxDefaultSize, 0 );
192 bSizer14->Add( 0, 0, 1, wxEXPAND, 5 );
194 edit_score_3D =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 200,-1 ), wxTE_PROCESS_ENTER );
198 bSizer14->Add( 20, 0, 0, wxEXPAND, 5 );
200 bSizer2->Add( bSizer14, 0, wxLEFT|wxEXPAND, 5 );
203 bSizer2->Add( 0, 5, 0, 0, 5 );
205 wxBoxSizer* bSizer15;
206 bSizer15 =
new wxBoxSizer( wxHORIZONTAL );
209 bSizer15->Add( 0, 0, 1, wxEXPAND, 5 );
211 button_cancel =
new wxButton(
this, wxID_ANY, wxT(
"Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
212 bSizer15->Add(
button_cancel, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
214 button_next =
new wxButton(
this, wxID_ANY, wxT(
"Next >"), wxDefaultPosition, wxDefaultSize, 0 );
215 bSizer15->Add(
button_next, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
217 bSizer2->Add( bSizer15, 1, wxEXPAND, 5 );
220 bSizer2->Add( 0, 10, 0, 0, 5 );
222 this->SetSizer( bSizer2 );
225 this->Centre( wxBOTH );
virtual void onKillFocusOrientationZ(wxFocusEvent &event)
virtual void onObjectModelSelected(wxCommandEvent &event)
virtual void onTextEnterOrientationZ(wxCommandEvent &event)
virtual void onTextEnterDiameter(wxCommandEvent &event)
virtual void onTextEnterOrientationY(wxCommandEvent &event)
wxStaticText * label_diameter
virtual void onKillFocusName(wxFocusEvent &event)
virtual void onTextEnterScore3D(wxCommandEvent &event)
virtual void onKillFocusDiameter(wxFocusEvent &event)
wxTextCtrl * edit_orientation_x
virtual void onKillFocusScore3D(wxFocusEvent &event)
wxStaticText * label_score_3D
virtual void onTextEnterName(wxCommandEvent &event)
virtual void onCancelPressed(wxCommandEvent &event)
wxTextCtrl * edit_orientation_y
wxTextCtrl * edit_diameter
virtual void onKillFocusOrientationX(wxFocusEvent &event)
wxChoice * choice_rotation_type
wxStaticText * label_orientation_z
virtual void onDialogClose(wxCloseEvent &event)
wxTextCtrl * edit_orientation_z
wxStaticText * label_object_model
virtual void onTextEnterOrientationX(wxCommandEvent &event)
wxStaticText * label_mesh
MainDialogBase(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxT("Descriptor Surface Based Trainer"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(600, 320), long style=wxDEFAULT_DIALOG_STYLE)
wxStaticText * label_name
wxStaticText * label_orientation_x
wxStaticText * label_rotation_type
wxStaticText * label_orientation_y
wxChoice * choice_object_model
wxStaticText * label_orientation
wxTextCtrl * edit_score_3D
wxStaticText * label_caption
virtual void onKillFocusOrientationY(wxFocusEvent &event)
virtual void onNextPressed(wxCommandEvent &event)