KiCad PCB EDA Suite
dialog_3D_view_option_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version 3.9.0 Aug 13 2020)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
9 
11 
12 DIALOG_3D_VIEW_OPTIONS_BASE::DIALOG_3D_VIEW_OPTIONS_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
13 {
14  this->SetSizeHints( wxDefaultSize, wxDefaultSize );
15 
16  wxBoxSizer* bSizerMain;
17  bSizerMain = new wxBoxSizer( wxVERTICAL );
18 
19  m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
20  m_panelDspOpt = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
21  wxBoxSizer* bSizerDisplayOptions;
22  bSizerDisplayOptions = new wxBoxSizer( wxHORIZONTAL );
23 
24  wxBoxSizer* bSizeLeft;
25  bSizeLeft = new wxBoxSizer( wxVERTICAL );
26 
27  wxStaticBoxSizer* sbSizer1;
28  sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( m_panelDspOpt, wxID_ANY, _("Render Options") ), wxVERTICAL );
29 
30  wxFlexGridSizer* fgSizerRenderOptions;
31  fgSizerRenderOptions = new wxFlexGridSizer( 0, 3, 0, 0 );
32  fgSizerRenderOptions->SetFlexibleDirection( wxBOTH );
33  fgSizerRenderOptions->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
34 
35 
36  fgSizerRenderOptions->Add( 0, 0, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 10 );
37 
38  m_bitmapRealisticMode = new wxStaticBitmap( sbSizer1->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
39  fgSizerRenderOptions->Add( m_bitmapRealisticMode, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
40 
41  m_checkBoxRealisticMode = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Realistic mode"), wxDefaultPosition, wxDefaultSize, 0 );
42  fgSizerRenderOptions->Add( m_checkBoxRealisticMode, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
43 
44 
45  fgSizerRenderOptions->Add( 0, 0, 0, wxRIGHT|wxLEFT, 10 );
46 
47  m_bitmapBoardBody = new wxStaticBitmap( sbSizer1->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
48  fgSizerRenderOptions->Add( m_bitmapBoardBody, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
49 
50  m_checkBoxBoardBody = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Show board body"), wxDefaultPosition, wxDefaultSize, 0 );
51  fgSizerRenderOptions->Add( m_checkBoxBoardBody, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
52 
53 
54  fgSizerRenderOptions->Add( 0, 0, 0, wxRIGHT|wxLEFT, 10 );
55 
56  m_bitmapAreas = new wxStaticBitmap( sbSizer1->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
57  fgSizerRenderOptions->Add( m_bitmapAreas, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
58 
59  m_checkBoxAreas = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Show filled areas in zones"), wxDefaultPosition, wxDefaultSize, 0 );
60  fgSizerRenderOptions->Add( m_checkBoxAreas, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
61 
62 
63  fgSizerRenderOptions->Add( 0, 0, 0, wxRIGHT|wxLEFT, 10 );
64 
65  m_bitmapSubtractMaskFromSilk = new wxStaticBitmap( sbSizer1->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
66  fgSizerRenderOptions->Add( m_bitmapSubtractMaskFromSilk, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
67 
68  m_checkBoxSubtractMaskFromSilk = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Subtract soldermask from silkscreen"), wxDefaultPosition, wxDefaultSize, 0 );
69  fgSizerRenderOptions->Add( m_checkBoxSubtractMaskFromSilk, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
70 
71 
72  fgSizerRenderOptions->Add( 0, 0, 0, wxALIGN_LEFT|wxALIGN_RIGHT, 10 );
73 
74  m_bitmapClipSilkOnViaAnnulus = new wxStaticBitmap( sbSizer1->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
75  fgSizerRenderOptions->Add( m_bitmapClipSilkOnViaAnnulus, 0, wxALL, 5 );
76 
77  m_checkBoxClipSilkOnViaAnnulus = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Clip silkscreen at via annulus"), wxDefaultPosition, wxDefaultSize, 0 );
78  fgSizerRenderOptions->Add( m_checkBoxClipSilkOnViaAnnulus, 0, wxALL, 5 );
79 
80  wxFlexGridSizer* fgSizer3;
81  fgSizer3 = new wxFlexGridSizer( 0, 2, 0, 0 );
82  fgSizer3->SetFlexibleDirection( wxBOTH );
83  fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
84 
85 
86  fgSizerRenderOptions->Add( fgSizer3, 1, wxEXPAND, 5 );
87 
88 
89  sbSizer1->Add( fgSizerRenderOptions, 0, wxEXPAND|wxBOTTOM, 5 );
90 
91 
92  bSizeLeft->Add( sbSizer1, 0, wxALL|wxEXPAND, 5 );
93 
94  wxStaticBoxSizer* sbSizer3DVis;
95  sbSizer3DVis = new wxStaticBoxSizer( new wxStaticBox( m_panelDspOpt, wxID_ANY, _("3D Model Visibility") ), wxVERTICAL );
96 
97  wxFlexGridSizer* fgSizer3DVisibility;
98  fgSizer3DVisibility = new wxFlexGridSizer( 0, 3, 0, 0 );
99  fgSizer3DVisibility->SetFlexibleDirection( wxBOTH );
100  fgSizer3DVisibility->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
101 
102 
103  fgSizer3DVisibility->Add( 0, 0, 1, wxLEFT|wxRIGHT, 10 );
104 
105  m_bitmap3DshapesTH = new wxStaticBitmap( sbSizer3DVis->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
106  fgSizer3DVisibility->Add( m_bitmap3DshapesTH, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
107 
108  m_checkBox3DshapesTH = new wxCheckBox( sbSizer3DVis->GetStaticBox(), wxID_ANY, _("Show 3D through hole models"), wxDefaultPosition, wxDefaultSize, 0 );
109  fgSizer3DVisibility->Add( m_checkBox3DshapesTH, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
110 
111 
112  fgSizer3DVisibility->Add( 0, 0, 0, wxRIGHT|wxLEFT, 10 );
113 
114  m_bitmap3DshapesSMD = new wxStaticBitmap( sbSizer3DVis->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
115  fgSizer3DVisibility->Add( m_bitmap3DshapesSMD, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
116 
117  m_checkBox3DshapesSMD = new wxCheckBox( sbSizer3DVis->GetStaticBox(), wxID_ANY, _("Show 3D SMD models"), wxDefaultPosition, wxDefaultSize, 0 );
118  fgSizer3DVisibility->Add( m_checkBox3DshapesSMD, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
119 
120 
121  fgSizer3DVisibility->Add( 0, 0, 0, wxRIGHT|wxLEFT, 10 );
122 
123  m_bitmap3DshapesVirtual = new wxStaticBitmap( sbSizer3DVis->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
124  fgSizer3DVisibility->Add( m_bitmap3DshapesVirtual, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
125 
126  m_checkBox3DshapesVirtual = new wxCheckBox( sbSizer3DVis->GetStaticBox(), wxID_ANY, _("Show 3D virtual models"), wxDefaultPosition, wxDefaultSize, 0 );
127  fgSizer3DVisibility->Add( m_checkBox3DshapesVirtual, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
128 
129 
130  sbSizer3DVis->Add( fgSizer3DVisibility, 0, wxEXPAND, 5 );
131 
132 
133  bSizeLeft->Add( sbSizer3DVis, 0, wxALL|wxEXPAND, 5 );
134 
135 
136  bSizerDisplayOptions->Add( bSizeLeft, 1, wxALL|wxEXPAND, 5 );
137 
138  m_staticlineVertical = new wxStaticLine( m_panelDspOpt, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_VERTICAL );
139  bSizerDisplayOptions->Add( m_staticlineVertical, 0, wxEXPAND | wxALL, 5 );
140 
141  wxBoxSizer* bSizerRight;
142  bSizerRight = new wxBoxSizer( wxVERTICAL );
143 
144  wxStaticBoxSizer* sbBoardLayers;
145  sbBoardLayers = new wxStaticBoxSizer( new wxStaticBox( m_panelDspOpt, wxID_ANY, _("Board Layers") ), wxVERTICAL );
146 
147  wxFlexGridSizer* fgSizerShowBrdLayersOpts;
148  fgSizerShowBrdLayersOpts = new wxFlexGridSizer( 0, 3, 0, 0 );
149  fgSizerShowBrdLayersOpts->SetFlexibleDirection( wxBOTH );
150  fgSizerShowBrdLayersOpts->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
151 
152 
153  fgSizerShowBrdLayersOpts->Add( 0, 0, 0, wxRIGHT|wxLEFT, 10 );
154 
155  m_bitmapSilkscreen = new wxStaticBitmap( sbBoardLayers->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
156  fgSizerShowBrdLayersOpts->Add( m_bitmapSilkscreen, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
157 
158  m_checkBoxSilkscreen = new wxCheckBox( sbBoardLayers->GetStaticBox(), wxID_ANY, _("Show silkscreen layers"), wxDefaultPosition, wxDefaultSize, 0 );
159  fgSizerShowBrdLayersOpts->Add( m_checkBoxSilkscreen, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
160 
161 
162  fgSizerShowBrdLayersOpts->Add( 0, 0, 0, wxRIGHT|wxLEFT, 10 );
163 
164  m_bitmapSolderMask = new wxStaticBitmap( sbBoardLayers->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
165  fgSizerShowBrdLayersOpts->Add( m_bitmapSolderMask, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
166 
167  m_checkBoxSolderMask = new wxCheckBox( sbBoardLayers->GetStaticBox(), wxID_ANY, _("Show solder mask layers"), wxDefaultPosition, wxDefaultSize, 0 );
168  fgSizerShowBrdLayersOpts->Add( m_checkBoxSolderMask, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
169 
170 
171  fgSizerShowBrdLayersOpts->Add( 0, 0, 0, wxRIGHT|wxLEFT, 10 );
172 
173  m_bitmapSolderPaste = new wxStaticBitmap( sbBoardLayers->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
174  fgSizerShowBrdLayersOpts->Add( m_bitmapSolderPaste, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
175 
176  m_checkBoxSolderpaste = new wxCheckBox( sbBoardLayers->GetStaticBox(), wxID_ANY, _("Show solder paste layers"), wxDefaultPosition, wxDefaultSize, 0 );
177  fgSizerShowBrdLayersOpts->Add( m_checkBoxSolderpaste, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
178 
179 
180  fgSizerShowBrdLayersOpts->Add( 0, 0, 0, wxRIGHT|wxLEFT, 10 );
181 
182  m_bitmapAdhesive = new wxStaticBitmap( sbBoardLayers->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
183  fgSizerShowBrdLayersOpts->Add( m_bitmapAdhesive, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
184 
185  m_checkBoxAdhesive = new wxCheckBox( sbBoardLayers->GetStaticBox(), wxID_ANY, _("Show adhesive layers"), wxDefaultPosition, wxDefaultSize, 0 );
186  fgSizerShowBrdLayersOpts->Add( m_checkBoxAdhesive, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
187 
188 
189  sbBoardLayers->Add( fgSizerShowBrdLayersOpts, 0, wxEXPAND, 5 );
190 
191 
192  bSizerRight->Add( sbBoardLayers, 0, wxALL|wxEXPAND, 5 );
193 
194  wxStaticBoxSizer* sbUserLayers;
195  sbUserLayers = new wxStaticBoxSizer( new wxStaticBox( m_panelDspOpt, wxID_ANY, _("User Layers (not shown in realistic mode)") ), wxVERTICAL );
196 
197  wxFlexGridSizer* fgSizerShowUserLayersOpts;
198  fgSizerShowUserLayersOpts = new wxFlexGridSizer( 0, 3, 0, 0 );
199  fgSizerShowUserLayersOpts->SetFlexibleDirection( wxBOTH );
200  fgSizerShowUserLayersOpts->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
201 
202 
203  fgSizerShowUserLayersOpts->Add( 0, 0, 0, wxRIGHT|wxLEFT, 10 );
204 
205  m_bitmapComments = new wxStaticBitmap( sbUserLayers->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
206  fgSizerShowUserLayersOpts->Add( m_bitmapComments, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
207 
208  m_checkBoxComments = new wxCheckBox( sbUserLayers->GetStaticBox(), wxID_ANY, _("Show comments and drawings layers"), wxDefaultPosition, wxDefaultSize, 0 );
209  fgSizerShowUserLayersOpts->Add( m_checkBoxComments, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
210 
211 
212  fgSizerShowUserLayersOpts->Add( 0, 0, 0, wxRIGHT|wxLEFT, 10 );
213 
214  m_bitmapECO = new wxStaticBitmap( sbUserLayers->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
215  fgSizerShowUserLayersOpts->Add( m_bitmapECO, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
216 
217  m_checkBoxECO = new wxCheckBox( sbUserLayers->GetStaticBox(), wxID_ANY, _("Show ECO layers"), wxDefaultPosition, wxDefaultSize, 0 );
218  fgSizerShowUserLayersOpts->Add( m_checkBoxECO, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
219 
220 
221  sbUserLayers->Add( fgSizerShowUserLayersOpts, 0, wxEXPAND, 5 );
222 
223 
224  bSizerRight->Add( sbUserLayers, 0, wxALL|wxEXPAND, 5 );
225 
226  wxStaticBoxSizer* sbCameraOptions;
227  sbCameraOptions = new wxStaticBoxSizer( new wxStaticBox( m_panelDspOpt, wxID_ANY, _("Camera Options") ), wxVERTICAL );
228 
229  wxBoxSizer* bSizerRotAngle;
230  bSizerRotAngle = new wxBoxSizer( wxHORIZONTAL );
231 
232  m_staticTextRotAngle = new wxStaticText( sbCameraOptions->GetStaticBox(), wxID_ANY, _("Rotation Increment:"), wxDefaultPosition, wxDefaultSize, 0 );
233  m_staticTextRotAngle->Wrap( -1 );
234  bSizerRotAngle->Add( m_staticTextRotAngle, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
235 
236  m_spinCtrlRotationAngle = new wxSpinCtrlDouble( sbCameraOptions->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 359, 10, 1 );
237  m_spinCtrlRotationAngle->SetDigits( 0 );
238  bSizerRotAngle->Add( m_spinCtrlRotationAngle, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
239 
240  m_staticTextRotAngleUnits = new wxStaticText( sbCameraOptions->GetStaticBox(), wxID_ANY, _("deg"), wxDefaultPosition, wxDefaultSize, 0 );
241  m_staticTextRotAngleUnits->Wrap( -1 );
242  bSizerRotAngle->Add( m_staticTextRotAngleUnits, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
243 
244 
245  sbCameraOptions->Add( bSizerRotAngle, 1, wxEXPAND, 5 );
246 
247  m_staticline3 = new wxStaticLine( sbCameraOptions->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
248  sbCameraOptions->Add( m_staticline3, 0, wxEXPAND | wxALL, 5 );
249 
250  m_checkBoxEnableAnimation = new wxCheckBox( sbCameraOptions->GetStaticBox(), wxID_ANY, _("Enable animation"), wxDefaultPosition, wxDefaultSize, 0 );
251  m_checkBoxEnableAnimation->SetValue(true);
252  sbCameraOptions->Add( m_checkBoxEnableAnimation, 0, wxALL, 5 );
253 
254  wxBoxSizer* bSizerSlider;
255  bSizerSlider = new wxBoxSizer( wxHORIZONTAL );
256 
257  m_staticAnimationSpeed = new wxStaticText( sbCameraOptions->GetStaticBox(), wxID_ANY, _("Animation speed:"), wxDefaultPosition, wxDefaultSize, 0 );
258  m_staticAnimationSpeed->Wrap( -1 );
259  bSizerSlider->Add( m_staticAnimationSpeed, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
260 
261  m_sliderAnimationSpeed = new wxSlider( sbCameraOptions->GetStaticBox(), wxID_ANY, 3, 1, 5, wxDefaultPosition, wxDefaultSize, wxSL_AUTOTICKS|wxSL_HORIZONTAL|wxSL_LABELS );
262  m_sliderAnimationSpeed->SetMinSize( wxSize( 100,-1 ) );
263 
264  bSizerSlider->Add( m_sliderAnimationSpeed, 1, wxALL|wxEXPAND, 5 );
265 
266 
267  sbCameraOptions->Add( bSizerSlider, 1, wxEXPAND, 5 );
268 
269 
270  bSizerRight->Add( sbCameraOptions, 0, wxALL|wxEXPAND, 5 );
271 
272 
273  bSizerDisplayOptions->Add( bSizerRight, 0, wxALL|wxEXPAND, 5 );
274 
275 
276  m_panelDspOpt->SetSizer( bSizerDisplayOptions );
277  m_panelDspOpt->Layout();
278  bSizerDisplayOptions->Fit( m_panelDspOpt );
279  m_notebook->AddPage( m_panelDspOpt, _("Display Options"), true );
280  m_panelOpenGL = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
281  wxBoxSizer* bSizerOpenGL;
282  bSizerOpenGL = new wxBoxSizer( wxHORIZONTAL );
283 
284  wxBoxSizer* bSizer7;
285  bSizer7 = new wxBoxSizer( wxVERTICAL );
286 
287  wxStaticBoxSizer* sbSizerOpenGLRenderoptions;
288  sbSizerOpenGLRenderoptions = new wxStaticBoxSizer( new wxStaticBox( m_panelOpenGL, wxID_ANY, _("OpenGL Render Options") ), wxVERTICAL );
289 
290  wxFlexGridSizer* fgSizer6;
291  fgSizer6 = new wxFlexGridSizer( 2, 3, 0, 0 );
292  fgSizer6->SetFlexibleDirection( wxBOTH );
293  fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
294 
295 
296  fgSizer6->Add( 0, 0, 1, wxLEFT|wxRIGHT, 5 );
297 
298  m_bitmapBoundingBoxes = new wxStaticBitmap( sbSizerOpenGLRenderoptions->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
299  fgSizer6->Add( m_bitmapBoundingBoxes, 0, wxALL, 5 );
300 
301  m_checkBoxBoundingBoxes = new wxCheckBox( sbSizerOpenGLRenderoptions->GetStaticBox(), wxID_ANY, _("Show model bounding boxes"), wxDefaultPosition, wxDefaultSize, 0 );
302  fgSizer6->Add( m_checkBoxBoundingBoxes, 0, wxALL, 5 );
303 
304 
305  fgSizer6->Add( 0, 0, 1, wxLEFT|wxRIGHT, 5 );
306 
307  m_bitmapCuThickness = new wxStaticBitmap( sbSizerOpenGLRenderoptions->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
308  fgSizer6->Add( m_bitmapCuThickness, 0, wxALL, 5 );
309 
310  m_checkBoxCuThickness = new wxCheckBox( sbSizerOpenGLRenderoptions->GetStaticBox(), wxID_ANY, _("Show copper thickness"), wxDefaultPosition, wxDefaultSize, 0 );
311  fgSizer6->Add( m_checkBoxCuThickness, 0, wxALL, 5 );
312 
313 
314  sbSizerOpenGLRenderoptions->Add( fgSizer6, 1, wxALL|wxEXPAND, 5 );
315 
316 
317  bSizer7->Add( sbSizerOpenGLRenderoptions, 1, wxALL|wxEXPAND, 5 );
318 
319  wxStaticBoxSizer* sbSizerAntialiasing;
320  sbSizerAntialiasing = new wxStaticBoxSizer( new wxStaticBox( m_panelOpenGL, wxID_ANY, _("Anti-aliasing") ), wxVERTICAL );
321 
322  wxFlexGridSizer* fgSizer7;
323  fgSizer7 = new wxFlexGridSizer( 1, 2, 0, 0 );
324  fgSizer7->SetFlexibleDirection( wxBOTH );
325  fgSizer7->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
326 
327 
328  fgSizer7->Add( 0, 0, 1, wxLEFT|wxRIGHT, 5 );
329 
330  wxString m_choiceAntiAliasingChoices[] = { _("Disabled"), _("2x"), _("4x"), _("8x"), wxEmptyString };
331  int m_choiceAntiAliasingNChoices = sizeof( m_choiceAntiAliasingChoices ) / sizeof( wxString );
332  m_choiceAntiAliasing = new wxChoice( sbSizerAntialiasing->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceAntiAliasingNChoices, m_choiceAntiAliasingChoices, 0 );
333  m_choiceAntiAliasing->SetSelection( 0 );
334  m_choiceAntiAliasing->SetToolTip( _("3D-Viewer must be closed and re-opened to apply this setting") );
335 
336  fgSizer7->Add( m_choiceAntiAliasing, 0, 0, 5 );
337 
338 
339  sbSizerAntialiasing->Add( fgSizer7, 1, wxALL|wxEXPAND, 5 );
340 
341 
342  bSizer7->Add( sbSizerAntialiasing, 1, wxALL|wxEXPAND, 5 );
343 
344  wxStaticBoxSizer* sbSizerWhileMoving;
345  sbSizerWhileMoving = new wxStaticBoxSizer( new wxStaticBox( m_panelOpenGL, wxID_ANY, _("While Moving") ), wxVERTICAL );
346 
347  wxFlexGridSizer* fgSizer8;
348  fgSizer8 = new wxFlexGridSizer( 2, 4, 0, 0 );
349  fgSizer8->SetFlexibleDirection( wxBOTH );
350  fgSizer8->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
351 
352 
353  fgSizer8->Add( 0, 0, 1, wxLEFT|wxRIGHT, 5 );
354 
355  m_checkBoxDisableAAMove = new wxCheckBox( sbSizerWhileMoving->GetStaticBox(), wxID_ANY, _("Disable anti-aliasing"), wxDefaultPosition, wxDefaultSize, 0 );
356  fgSizer8->Add( m_checkBoxDisableAAMove, 0, wxALL, 5 );
357 
358 
359  fgSizer8->Add( 0, 0, 1, wxLEFT|wxRIGHT, 5 );
360 
361  m_checkBoxDisableMoveThickness = new wxCheckBox( sbSizerWhileMoving->GetStaticBox(), wxID_ANY, _("Disable thickness"), wxDefaultPosition, wxDefaultSize, 0 );
362  fgSizer8->Add( m_checkBoxDisableMoveThickness, 0, wxALL, 5 );
363 
364 
365  fgSizer8->Add( 0, 0, 1, wxLEFT|wxRIGHT, 5 );
366 
367  m_checkBoxDisableMoveVias = new wxCheckBox( sbSizerWhileMoving->GetStaticBox(), wxID_ANY, _("Disable vias"), wxDefaultPosition, wxDefaultSize, 0 );
368  fgSizer8->Add( m_checkBoxDisableMoveVias, 0, wxALL, 5 );
369 
370 
371  fgSizer8->Add( 0, 0, 1, wxLEFT|wxRIGHT, 5 );
372 
373  m_checkBoxDisableMoveHoles = new wxCheckBox( sbSizerWhileMoving->GetStaticBox(), wxID_ANY, _("Disable holes"), wxDefaultPosition, wxDefaultSize, 0 );
374  fgSizer8->Add( m_checkBoxDisableMoveHoles, 0, wxALL, 5 );
375 
376 
377  sbSizerWhileMoving->Add( fgSizer8, 1, wxALL|wxEXPAND, 5 );
378 
379 
380  bSizer7->Add( sbSizerWhileMoving, 1, wxALL|wxEXPAND, 5 );
381 
382 
383  bSizerOpenGL->Add( bSizer7, 1, wxALL|wxEXPAND, 5 );
384 
385 
386  m_panelOpenGL->SetSizer( bSizerOpenGL );
387  m_panelOpenGL->Layout();
388  bSizerOpenGL->Fit( m_panelOpenGL );
389  m_notebook->AddPage( m_panelOpenGL, _("OpenGL"), false );
390  m_panelRaytracing = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
391  wxBoxSizer* bSizer14;
392  bSizer14 = new wxBoxSizer( wxVERTICAL );
393 
394  m_notebook2 = new wxNotebook( m_panelRaytracing, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
395  m_panel4 = new wxPanel( m_notebook2, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
396  wxBoxSizer* bSizerRaytracing;
397  bSizerRaytracing = new wxBoxSizer( wxVERTICAL );
398 
399  wxBoxSizer* bSizer12;
400  bSizer12 = new wxBoxSizer( wxVERTICAL );
401 
402  wxStaticBoxSizer* sbSizerRaytracingRenderOptions;
403  sbSizerRaytracingRenderOptions = new wxStaticBoxSizer( new wxStaticBox( m_panel4, wxID_ANY, _("Raytracing Render Options") ), wxVERTICAL );
404 
405  sbSizerRaytracingRenderOptions->SetMinSize( wxSize( -1,32 ) );
406  wxFlexGridSizer* fgSizer9;
407  fgSizer9 = new wxFlexGridSizer( 2, 4, 0, 0 );
408  fgSizer9->SetFlexibleDirection( wxBOTH );
409  fgSizer9->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_NONE );
410 
411 
412  fgSizer9->Add( 0, 0, 1, wxLEFT|wxRIGHT, 5 );
413 
414  m_checkBoxRaytracing_proceduralTextures = new wxCheckBox( sbSizerRaytracingRenderOptions->GetStaticBox(), wxID_ANY, _("Procedural textures"), wxDefaultPosition, wxDefaultSize, 0 );
416  fgSizer9->Add( m_checkBoxRaytracing_proceduralTextures, 0, wxALL, 5 );
417 
418 
419  fgSizer9->Add( 0, 0, 1, wxLEFT|wxRIGHT, 5 );
420 
421  m_checkBoxRaytracing_addFloor = new wxCheckBox( sbSizerRaytracingRenderOptions->GetStaticBox(), wxID_ANY, _("Add floor"), wxDefaultPosition, wxDefaultSize, 0 );
422  m_checkBoxRaytracing_addFloor->SetValue(true);
423  fgSizer9->Add( m_checkBoxRaytracing_addFloor, 0, wxALL, 5 );
424 
425 
426  fgSizer9->Add( 0, 0, 1, wxLEFT|wxRIGHT, 5 );
427 
428  m_checkBoxRaytracing_antiAliasing = new wxCheckBox( sbSizerRaytracingRenderOptions->GetStaticBox(), wxID_ANY, _("Anti-aliasing"), wxDefaultPosition, wxDefaultSize, 0 );
429  m_checkBoxRaytracing_antiAliasing->SetValue(true);
430  fgSizer9->Add( m_checkBoxRaytracing_antiAliasing, 0, wxALL, 5 );
431 
432 
433  fgSizer9->Add( 0, 0, 1, wxLEFT|wxRIGHT, 5 );
434 
435  m_checkBoxRaytracing_postProcessing = new wxCheckBox( sbSizerRaytracingRenderOptions->GetStaticBox(), wxID_ANY, _("Post-processing"), wxDefaultPosition, wxDefaultSize, 0 );
436  m_checkBoxRaytracing_postProcessing->SetValue(true);
437  fgSizer9->Add( m_checkBoxRaytracing_postProcessing, 0, wxALL, 5 );
438 
439 
440  sbSizerRaytracingRenderOptions->Add( fgSizer9, 0, wxALL, 5 );
441 
442  m_staticline4 = new wxStaticLine( sbSizerRaytracingRenderOptions->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
443  sbSizerRaytracingRenderOptions->Add( m_staticline4, 0, wxEXPAND | wxALL, 5 );
444 
445  wxFlexGridSizer* fgSizer111;
446  fgSizer111 = new wxFlexGridSizer( 0, 5, 0, 0 );
447  fgSizer111->SetFlexibleDirection( wxBOTH );
448  fgSizer111->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
449 
450 
451  fgSizer111->Add( 0, 0, 1, wxLEFT|wxRIGHT, 5 );
452 
453 
454  fgSizer111->Add( 0, 0, 1, wxEXPAND, 5 );
455 
456  m_staticText19 = new wxStaticText( sbSizerRaytracingRenderOptions->GetStaticBox(), wxID_ANY, _("Number of Samples"), wxDefaultPosition, wxDefaultSize, 0 );
457  m_staticText19->Wrap( -1 );
458  fgSizer111->Add( m_staticText19, 0, wxALL, 5 );
459 
460  m_staticText201 = new wxStaticText( sbSizerRaytracingRenderOptions->GetStaticBox(), wxID_ANY, _("Spread Factor %"), wxDefaultPosition, wxDefaultSize, 0 );
461  m_staticText201->Wrap( -1 );
462  fgSizer111->Add( m_staticText201, 0, wxALL, 5 );
463 
464  m_staticText211 = new wxStaticText( sbSizerRaytracingRenderOptions->GetStaticBox(), wxID_ANY, _("Recursive Level"), wxDefaultPosition, wxDefaultSize, 0 );
465  m_staticText211->Wrap( -1 );
466  fgSizer111->Add( m_staticText211, 0, wxALL, 5 );
467 
468 
469  fgSizer111->Add( 0, 0, 1, wxEXPAND, 5 );
470 
471  m_checkBoxRaytracing_renderShadows = new wxCheckBox( sbSizerRaytracingRenderOptions->GetStaticBox(), wxID_ANY, _("Shadows"), wxDefaultPosition, wxDefaultSize, 0 );
472  m_checkBoxRaytracing_renderShadows->SetValue(true);
473  fgSizer111->Add( m_checkBoxRaytracing_renderShadows, 0, wxALL, 5 );
474 
475  m_spinCtrl_NrSamples_Shadows = new wxSpinCtrl( sbSizerRaytracingRenderOptions->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 124,-1 ), wxSP_ARROW_KEYS, 1, 64, 0 );
476  m_spinCtrl_NrSamples_Shadows->SetToolTip( _("Number of rays that will be cast, into light direction, to evaluate a shadow point") );
477 
478  fgSizer111->Add( m_spinCtrl_NrSamples_Shadows, 0, wxALL, 5 );
479 
480  m_spinCtrlDouble_SpreadFactor_Shadows = new wxSpinCtrlDouble( sbSizerRaytracingRenderOptions->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 124,-1 ), wxSP_ARROW_KEYS, 0.1, 25, 0, 1 );
482  m_spinCtrlDouble_SpreadFactor_Shadows->SetToolTip( _("Random direction factor of the cast rays") );
483 
484  fgSizer111->Add( m_spinCtrlDouble_SpreadFactor_Shadows, 0, wxALL, 5 );
485 
486 
487  fgSizer111->Add( 0, 0, 1, wxEXPAND, 5 );
488 
489 
490  fgSizer111->Add( 0, 0, 1, wxLEFT|wxRIGHT, 5 );
491 
492  m_checkBoxRaytracing_showReflections = new wxCheckBox( sbSizerRaytracingRenderOptions->GetStaticBox(), wxID_ANY, _("Reflections"), wxDefaultPosition, wxDefaultSize, 0 );
493  m_checkBoxRaytracing_showReflections->SetValue(true);
494  fgSizer111->Add( m_checkBoxRaytracing_showReflections, 0, wxALL, 5 );
495 
496  m_spinCtrl_NrSamples_Reflections = new wxSpinCtrl( sbSizerRaytracingRenderOptions->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 124,-1 ), wxSP_ARROW_KEYS, 1, 32, 0 );
497  m_spinCtrl_NrSamples_Reflections->SetToolTip( _("Number of rays that will be cast to evaluate a reflection point") );
498 
499  fgSizer111->Add( m_spinCtrl_NrSamples_Reflections, 0, wxALL, 5 );
500 
501  m_spinCtrlDouble_SpreadFactor_Reflections = new wxSpinCtrlDouble( sbSizerRaytracingRenderOptions->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 124,-1 ), wxSP_ARROW_KEYS, 0.1, 25, 0, 1 );
503  m_spinCtrlDouble_SpreadFactor_Reflections->SetToolTip( _("Random direction factor of the cast rays") );
504 
505  fgSizer111->Add( m_spinCtrlDouble_SpreadFactor_Reflections, 0, wxALL, 5 );
506 
507  m_spinCtrlRecursiveLevel_Reflections = new wxSpinCtrl( sbSizerRaytracingRenderOptions->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 124,-1 ), wxSP_ARROW_KEYS, 1, 5, 0 );
508  m_spinCtrlRecursiveLevel_Reflections->SetToolTip( _("Interactions number that a ray can travel through objects. (higher number of levels improve results, specially on very transparent boards)") );
509 
510  fgSizer111->Add( m_spinCtrlRecursiveLevel_Reflections, 0, wxALL, 5 );
511 
512 
513  fgSizer111->Add( 0, 0, 1, wxLEFT|wxRIGHT, 5 );
514 
515  m_checkBoxRaytracing_showRefractions = new wxCheckBox( sbSizerRaytracingRenderOptions->GetStaticBox(), wxID_ANY, _("Refractions"), wxDefaultPosition, wxDefaultSize, 0 );
516  m_checkBoxRaytracing_showRefractions->SetValue(true);
517  fgSizer111->Add( m_checkBoxRaytracing_showRefractions, 0, wxALL, 5 );
518 
519  m_spinCtrl_NrSamples_Refractions = new wxSpinCtrl( sbSizerRaytracingRenderOptions->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 124,-1 ), wxSP_ARROW_KEYS, 1, 5, 0 );
520  m_spinCtrl_NrSamples_Refractions->SetToolTip( _("Number of rays that will be cast to evaluate a refraction point") );
521 
522  fgSizer111->Add( m_spinCtrl_NrSamples_Refractions, 0, wxALL, 5 );
523 
524  m_spinCtrlDouble_SpreadFactor_Refractions = new wxSpinCtrlDouble( sbSizerRaytracingRenderOptions->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 124,-1 ), wxSP_ARROW_KEYS, 0.1, 25, 0, 1 );
526  m_spinCtrlDouble_SpreadFactor_Refractions->SetToolTip( _("Random direction factor of the cast rays") );
527 
528  fgSizer111->Add( m_spinCtrlDouble_SpreadFactor_Refractions, 0, wxALL, 5 );
529 
530  m_spinCtrlRecursiveLevel_Refractions = new wxSpinCtrl( sbSizerRaytracingRenderOptions->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 124,-1 ), wxSP_ARROW_KEYS, 1, 7, 0 );
531  m_spinCtrlRecursiveLevel_Refractions->SetToolTip( _("Number of bounces that a ray can hit reflective objects") );
532 
533  fgSizer111->Add( m_spinCtrlRecursiveLevel_Refractions, 0, wxALL, 5 );
534 
535 
536  sbSizerRaytracingRenderOptions->Add( fgSizer111, 1, wxALL, 5 );
537 
538 
539  sbSizerRaytracingRenderOptions->Add( 0, 0, 1, wxEXPAND, 5 );
540 
541 
542  bSizer12->Add( sbSizerRaytracingRenderOptions, 0, wxALL|wxEXPAND, 5 );
543 
544 
545  bSizerRaytracing->Add( bSizer12, 1, wxALL|wxEXPAND, 5 );
546 
547 
548  m_panel4->SetSizer( bSizerRaytracing );
549  m_panel4->Layout();
550  bSizerRaytracing->Fit( m_panel4 );
551  m_notebook2->AddPage( m_panel4, _("Render Options"), true );
552  m_panel5 = new wxPanel( m_notebook2, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
553  wxBoxSizer* bSizer17;
554  bSizer17 = new wxBoxSizer( wxVERTICAL );
555 
556  wxStaticBoxSizer* sbSizerRaytracingLightConfiguration;
557  sbSizerRaytracingLightConfiguration = new wxStaticBoxSizer( new wxStaticBox( m_panel5, wxID_ANY, _("Lights configuration") ), wxVERTICAL );
558 
559  wxBoxSizer* bSizer11;
560  bSizer11 = new wxBoxSizer( wxHORIZONTAL );
561 
562 
563  bSizer11->Add( 0, 0, 1, 0, 5 );
564 
565  m_staticText17 = new wxStaticText( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, _("Ambient Camera Light"), wxDefaultPosition, wxDefaultSize, 0 );
566  m_staticText17->Wrap( -1 );
567  bSizer11->Add( m_staticText17, 0, wxALL, 5 );
568 
569  m_colourPickerCameraLight = new wxColourPickerCtrl( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, wxColour( 51, 51, 51 ), wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
570  bSizer11->Add( m_colourPickerCameraLight, 0, 0, 5 );
571 
572 
573  bSizer11->Add( 0, 0, 1, 0, 5 );
574 
575 
576  sbSizerRaytracingLightConfiguration->Add( bSizer11, 1, wxEXPAND, 5 );
577 
578  wxBoxSizer* bSizer13;
579  bSizer13 = new wxBoxSizer( wxHORIZONTAL );
580 
581 
582  bSizer13->Add( 0, 0, 1, 0, 5 );
583 
584  m_staticText5 = new wxStaticText( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, _("Top Light"), wxDefaultPosition, wxDefaultSize, 0 );
585  m_staticText5->Wrap( -1 );
586  bSizer13->Add( m_staticText5, 0, wxALL, 5 );
587 
588  m_colourPickerTopLight = new wxColourPickerCtrl( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, wxColour( 63, 63, 63 ), wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
589  bSizer13->Add( m_colourPickerTopLight, 0, 0, 5 );
590 
591 
592  bSizer13->Add( 0, 0, 1, 0, 5 );
593 
594  m_staticText6 = new wxStaticText( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, _("Bottom Light"), wxDefaultPosition, wxDefaultSize, 0 );
595  m_staticText6->Wrap( -1 );
596  bSizer13->Add( m_staticText6, 0, wxALL, 5 );
597 
598  m_colourPickerBottomLight = new wxColourPickerCtrl( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, wxColour( 63, 63, 63 ), wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
599  bSizer13->Add( m_colourPickerBottomLight, 0, 0, 5 );
600 
601 
602  bSizer13->Add( 0, 0, 1, 0, 5 );
603 
604 
605  sbSizerRaytracingLightConfiguration->Add( bSizer13, 1, wxEXPAND, 5 );
606 
607  wxFlexGridSizer* fgSizer11;
608  fgSizer11 = new wxFlexGridSizer( 0, 9, 0, 0 );
609  fgSizer11->SetFlexibleDirection( wxBOTH );
610  fgSizer11->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
611 
612 
613  fgSizer11->Add( 0, 0, 1, 0, 5 );
614 
615 
616  fgSizer11->Add( 0, 0, 1, 0, 5 );
617 
618  m_staticText20 = new wxStaticText( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, _("Elevation (degrees)"), wxDefaultPosition, wxDefaultSize, 0 );
619  m_staticText20->Wrap( -1 );
620  fgSizer11->Add( m_staticText20, 0, wxALL, 5 );
621 
622  m_staticText18 = new wxStaticText( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, _("Azimuth (degrees)"), wxDefaultPosition, wxDefaultSize, 0 );
623  m_staticText18->Wrap( -1 );
624  fgSizer11->Add( m_staticText18, 0, wxALL, 5 );
625 
626 
627  fgSizer11->Add( 0, 0, 1, 0, 5 );
628 
629 
630  fgSizer11->Add( 0, 0, 1, 0, 5 );
631 
632 
633  fgSizer11->Add( 0, 0, 1, 0, 5 );
634 
635  m_staticText27 = new wxStaticText( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, _("Elevation (degrees)"), wxDefaultPosition, wxDefaultSize, 0 );
636  m_staticText27->Wrap( -1 );
637  fgSizer11->Add( m_staticText27, 0, wxALL, 5 );
638 
639  m_staticText28 = new wxStaticText( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, _("Azimuth (degrees)"), wxDefaultPosition, wxDefaultSize, 0 );
640  m_staticText28->Wrap( -1 );
641  fgSizer11->Add( m_staticText28, 0, wxALL, 5 );
642 
643  m_staticText21 = new wxStaticText( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, _("1"), wxDefaultPosition, wxDefaultSize, 0 );
644  m_staticText21->Wrap( -1 );
645  fgSizer11->Add( m_staticText21, 0, wxALIGN_CENTER|wxALL, 5 );
646 
647  m_colourPickerLight1 = new wxColourPickerCtrl( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, *wxBLACK, wxDefaultPosition, wxSize( -1,-1 ), wxCLRP_DEFAULT_STYLE );
648  fgSizer11->Add( m_colourPickerLight1, 0, wxALL, 5 );
649 
650  m_spinCtrlLightElevation1 = new wxSpinCtrl( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 124,-1 ), wxSP_ARROW_KEYS, -90, 90, 0 );
651  fgSizer11->Add( m_spinCtrlLightElevation1, 0, wxALL, 1 );
652 
653  m_spinCtrlLightAzimuth1 = new wxSpinCtrl( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 124,-1 ), wxSP_ARROW_KEYS|wxSP_WRAP, 0, 359, 0 );
654  fgSizer11->Add( m_spinCtrlLightAzimuth1, 0, wxALL, 1 );
655 
656 
657  fgSizer11->Add( 0, 0, 1, wxALL, 5 );
658 
659  m_staticText22 = new wxStaticText( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, _("5"), wxDefaultPosition, wxDefaultSize, 0 );
660  m_staticText22->Wrap( -1 );
661  fgSizer11->Add( m_staticText22, 0, wxALIGN_CENTER|wxALL, 5 );
662 
663  m_colourPickerLight5 = new wxColourPickerCtrl( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, *wxBLACK, wxDefaultPosition, wxSize( -1,-1 ), wxCLRP_DEFAULT_STYLE );
664  fgSizer11->Add( m_colourPickerLight5, 0, wxALL, 5 );
665 
666  m_spinCtrlLightElevation5 = new wxSpinCtrl( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 124,-1 ), wxSP_ARROW_KEYS, -90, 90, 0 );
667  fgSizer11->Add( m_spinCtrlLightElevation5, 0, wxALL, 1 );
668 
669  m_spinCtrlLightAzimuth5 = new wxSpinCtrl( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 124,-1 ), wxSP_ARROW_KEYS|wxSP_WRAP, 0, 359, 0 );
670  fgSizer11->Add( m_spinCtrlLightAzimuth5, 0, wxALL, 1 );
671 
672  m_staticText23 = new wxStaticText( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, _("2"), wxDefaultPosition, wxDefaultSize, 0 );
673  m_staticText23->Wrap( -1 );
674  fgSizer11->Add( m_staticText23, 0, wxALIGN_CENTER|wxALL, 5 );
675 
676  m_colourPickerLight2 = new wxColourPickerCtrl( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, *wxBLACK, wxDefaultPosition, wxSize( -1,-1 ), wxCLRP_DEFAULT_STYLE );
677  fgSizer11->Add( m_colourPickerLight2, 0, wxALL, 5 );
678 
679  m_spinCtrlLightElevation2 = new wxSpinCtrl( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 124,-1 ), wxSP_ARROW_KEYS, -90, 90, 0 );
680  fgSizer11->Add( m_spinCtrlLightElevation2, 0, wxALL, 1 );
681 
682  m_spinCtrlLightAzimuth2 = new wxSpinCtrl( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 124,-1 ), wxSP_ARROW_KEYS|wxSP_WRAP, 0, 359, 0 );
683  fgSizer11->Add( m_spinCtrlLightAzimuth2, 0, wxALL, 1 );
684 
685 
686  fgSizer11->Add( 0, 0, 1, wxALL, 5 );
687 
688  m_staticText24 = new wxStaticText( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, _("6"), wxDefaultPosition, wxDefaultSize, 0 );
689  m_staticText24->Wrap( -1 );
690  fgSizer11->Add( m_staticText24, 0, wxALIGN_CENTER|wxALL, 5 );
691 
692  m_colourPickerLight6 = new wxColourPickerCtrl( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, *wxBLACK, wxDefaultPosition, wxSize( -1,-1 ), wxCLRP_DEFAULT_STYLE );
693  fgSizer11->Add( m_colourPickerLight6, 0, wxALL, 5 );
694 
695  m_spinCtrlLightElevation6 = new wxSpinCtrl( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 124,-1 ), wxSP_ARROW_KEYS, -90, 90, 0 );
696  fgSizer11->Add( m_spinCtrlLightElevation6, 0, wxALL, 1 );
697 
698  m_spinCtrlLightAzimuth6 = new wxSpinCtrl( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 124,-1 ), wxSP_ARROW_KEYS|wxSP_WRAP, 0, 359, 0 );
699  fgSizer11->Add( m_spinCtrlLightAzimuth6, 0, wxALL, 1 );
700 
701  m_staticText25 = new wxStaticText( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, _("3"), wxDefaultPosition, wxDefaultSize, 0 );
702  m_staticText25->Wrap( -1 );
703  fgSizer11->Add( m_staticText25, 0, wxALIGN_CENTER|wxALL, 5 );
704 
705  m_colourPickerLight3 = new wxColourPickerCtrl( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, *wxBLACK, wxDefaultPosition, wxSize( -1,-1 ), wxCLRP_DEFAULT_STYLE );
706  fgSizer11->Add( m_colourPickerLight3, 0, wxALL, 5 );
707 
708  m_spinCtrlLightElevation3 = new wxSpinCtrl( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 124,-1 ), wxSP_ARROW_KEYS, -90, 90, 0 );
709  fgSizer11->Add( m_spinCtrlLightElevation3, 0, wxALL, 1 );
710 
711  m_spinCtrlLightAzimuth3 = new wxSpinCtrl( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 124,-1 ), wxSP_ARROW_KEYS|wxSP_WRAP, 0, 359, 0 );
712  fgSizer11->Add( m_spinCtrlLightAzimuth3, 0, wxALL, 1 );
713 
714 
715  fgSizer11->Add( 0, 0, 1, wxALL, 5 );
716 
717  m_staticText26 = new wxStaticText( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, _("7"), wxDefaultPosition, wxDefaultSize, 0 );
718  m_staticText26->Wrap( -1 );
719  fgSizer11->Add( m_staticText26, 0, wxALIGN_CENTER|wxALL, 5 );
720 
721  m_colourPickerLight7 = new wxColourPickerCtrl( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, *wxBLACK, wxDefaultPosition, wxSize( -1,-1 ), wxCLRP_DEFAULT_STYLE );
722  fgSizer11->Add( m_colourPickerLight7, 0, wxALL, 5 );
723 
724  m_spinCtrlLightElevation7 = new wxSpinCtrl( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 124,-1 ), wxSP_ARROW_KEYS, -90, 90, 0 );
725  fgSizer11->Add( m_spinCtrlLightElevation7, 0, wxALL, 1 );
726 
727  m_spinCtrlLightAzimuth7 = new wxSpinCtrl( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 124,-1 ), wxSP_ARROW_KEYS|wxSP_WRAP, 0, 359, 0 );
728  fgSizer11->Add( m_spinCtrlLightAzimuth7, 0, wxALL, 1 );
729 
730  m_staticText171 = new wxStaticText( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, _("4"), wxDefaultPosition, wxDefaultSize, 0 );
731  m_staticText171->Wrap( -1 );
732  fgSizer11->Add( m_staticText171, 0, wxALIGN_CENTER|wxALL, 5 );
733 
734  m_colourPickerLight4 = new wxColourPickerCtrl( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, *wxBLACK, wxDefaultPosition, wxSize( -1,-1 ), wxCLRP_DEFAULT_STYLE );
735  fgSizer11->Add( m_colourPickerLight4, 0, wxALL, 5 );
736 
737  m_spinCtrlLightElevation4 = new wxSpinCtrl( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 124,-1 ), wxSP_ARROW_KEYS, -90, 90, 0 );
738  fgSizer11->Add( m_spinCtrlLightElevation4, 0, wxALL, 1 );
739 
740  m_spinCtrlLightAzimuth4 = new wxSpinCtrl( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 124,-1 ), wxSP_ARROW_KEYS|wxSP_WRAP, 0, 359, 0 );
741  fgSizer11->Add( m_spinCtrlLightAzimuth4, 0, wxALL, 1 );
742 
743 
744  fgSizer11->Add( 0, 0, 1, wxALL|wxEXPAND, 5 );
745 
746  m_staticText181 = new wxStaticText( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, _("8"), wxDefaultPosition, wxDefaultSize, 0 );
747  m_staticText181->Wrap( -1 );
748  fgSizer11->Add( m_staticText181, 0, wxALIGN_CENTER|wxALL, 5 );
749 
750  m_colourPickerLight8 = new wxColourPickerCtrl( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, *wxBLACK, wxDefaultPosition, wxSize( -1,-1 ), wxCLRP_DEFAULT_STYLE );
751  fgSizer11->Add( m_colourPickerLight8, 0, wxALL, 5 );
752 
753  m_spinCtrlLightElevation8 = new wxSpinCtrl( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 124,-1 ), wxSP_ARROW_KEYS, -90, 90, 0 );
754  fgSizer11->Add( m_spinCtrlLightElevation8, 0, wxALL, 1 );
755 
756  m_spinCtrlLightAzimuth8 = new wxSpinCtrl( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 124,-1 ), wxSP_ARROW_KEYS|wxSP_WRAP, 0, 359, 0 );
757  fgSizer11->Add( m_spinCtrlLightAzimuth8, 0, wxALL, 1 );
758 
759 
760  sbSizerRaytracingLightConfiguration->Add( fgSizer11, 0, wxALL|wxEXPAND, 5 );
761 
762  wxBoxSizer* bSizer19;
763  bSizer19 = new wxBoxSizer( wxHORIZONTAL );
764 
765 
766  bSizer19->Add( 0, 0, 1, wxEXPAND, 5 );
767 
768  m_buttonLightsResetToDefaults = new wxButton( sbSizerRaytracingLightConfiguration->GetStaticBox(), wxID_ANY, _("Reset to defaults"), wxDefaultPosition, wxDefaultSize, 0 );
769  bSizer19->Add( m_buttonLightsResetToDefaults, 0, wxALL, 5 );
770 
771 
772  sbSizerRaytracingLightConfiguration->Add( bSizer19, 1, wxEXPAND, 5 );
773 
774 
775  bSizer17->Add( sbSizerRaytracingLightConfiguration, 0, wxALL|wxEXPAND, 5 );
776 
777 
778  m_panel5->SetSizer( bSizer17 );
779  m_panel5->Layout();
780  bSizer17->Fit( m_panel5 );
781  m_notebook2->AddPage( m_panel5, _("Lights configuration"), false );
782 
783  bSizer14->Add( m_notebook2, 1, wxEXPAND | wxALL, 5 );
784 
785 
786  m_panelRaytracing->SetSizer( bSizer14 );
787  m_panelRaytracing->Layout();
788  bSizer14->Fit( m_panelRaytracing );
789  m_notebook->AddPage( m_panelRaytracing, _("Raytracing"), false );
790 
791  bSizerMain->Add( m_notebook, 1, wxALL|wxEXPAND, 5 );
792 
793  m_staticlineH = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
794  bSizerMain->Add( m_staticlineH, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
795 
796  m_sdbSizer = new wxStdDialogButtonSizer();
797  m_sdbSizerOK = new wxButton( this, wxID_OK );
798  m_sdbSizer->AddButton( m_sdbSizerOK );
799  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
800  m_sdbSizer->AddButton( m_sdbSizerCancel );
801  m_sdbSizer->Realize();
802 
803  bSizerMain->Add( m_sdbSizer, 0, wxALIGN_RIGHT|wxALL, 5 );
804 
805 
806  this->SetSizer( bSizerMain );
807  this->Layout();
808 
809  this->Centre( wxBOTH );
810 
811  // Connect Events
812  m_checkBoxRealisticMode->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_3D_VIEW_OPTIONS_BASE::OnCheckRealisticMode ), NULL, this );
813  m_checkBoxEnableAnimation->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_3D_VIEW_OPTIONS_BASE::OnCheckEnableAnimation ), NULL, this );
814  m_buttonLightsResetToDefaults->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_3D_VIEW_OPTIONS_BASE::OnLightsResetToDefaults ), NULL, this );
815 }
816 
818 {
819  // Disconnect Events
820  m_checkBoxRealisticMode->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_3D_VIEW_OPTIONS_BASE::OnCheckRealisticMode ), NULL, this );
821  m_checkBoxEnableAnimation->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_3D_VIEW_OPTIONS_BASE::OnCheckEnableAnimation ), NULL, this );
822  m_buttonLightsResetToDefaults->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_3D_VIEW_OPTIONS_BASE::OnLightsResetToDefaults ), NULL, this );
823 
824 }
wxSpinCtrlDouble * m_spinCtrlDouble_SpreadFactor_Refractions
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:83
wxColourPickerCtrl * m_colourPickerCameraLight
virtual void OnLightsResetToDefaults(wxCommandEvent &event)
#define NULL
#define _(s)
Definition: 3d_actions.cpp:33
virtual void OnCheckRealisticMode(wxCommandEvent &event)
DIALOG_3D_VIEW_OPTIONS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("3D Display Options"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(810, 567), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxSpinCtrlDouble * m_spinCtrlDouble_SpreadFactor_Reflections
wxColourPickerCtrl * m_colourPickerBottomLight
wxSpinCtrlDouble * m_spinCtrlDouble_SpreadFactor_Shadows
virtual void OnCheckEnableAnimation(wxCommandEvent &event)