Normand Briere
2019-05-02 c209bbe1cf788c9af3dcffea7667c830170a3f1f
GroupEditor.java
....@@ -12,6 +12,7 @@
1212 import com.jme.math.Vector3f;
1313 import com.jme.renderer.ColorRGBA;
1414
15
+import grafeme.ui.*;
1516 //import buoy.widget.BFileChooser;
1617
1718 class GroupEditor extends ObjEditor implements //iParse, //iCallBack,
....@@ -149,6 +150,8 @@
149150
150151 void SetupMenu2(ObjEditor oe)
151152 {
153
+ if (Globals.ADVANCED)
154
+ {
152155 oe.cameraMenu.add(lookAtItem = new MenuItem("Set Interest"));
153156 //cameraMenu.add(lookFromItem = new MenuItem("Look From Selection"));
154157 //cameraMenu.add(switchItem = new MenuItem("Reverse View"));
....@@ -160,36 +163,48 @@
160163 lookAtItem.addActionListener(this);
161164 //lookFromItem.addActinoListener(this);
162165 //switchItem.addActionListener(this);
166
+ }
167
+
163168 Menu menu;
164169 oe.menuBar.add(menu = new Menu("Edit"));
165170 //editItem = menu.add(new MenuItem("Edit"));
166171 //editItem.addActionListener(this);
167172 duplicateItem = menu.add(new MenuItem("Duplicate"));
168173 duplicateItem.addActionListener(this);
169
- menu.add("-");
170
- cloneItem = menu.add(new MenuItem("Clone"));
171
- cloneItem.addActionListener(this);
172
- cloneSupportItem = menu.add(new MenuItem("Clone (+supports)"));
173
- cloneSupportItem.addActionListener(this);
174
- menu.add("-");
175174 cutItem = menu.add(new MenuItem("Cut"));
176175 cutItem.addActionListener(this);
177176 copyItem = menu.add(new MenuItem("Copy"));
178177 copyItem.addActionListener(this);
179178 pasteItem = menu.add(new MenuItem("Paste"));
180179 pasteItem.addActionListener(this);
180
+ menu.add("-");
181
+ cloneItem = menu.add(new MenuItem("Clone"));
182
+ cloneItem.addActionListener(this);
183
+ cloneSupportItem = menu.add(new MenuItem("Clone (+supports)"));
184
+ cloneSupportItem.addActionListener(this);
185
+ menu.add("-");
186
+ pasteIntoItem = menu.add(new MenuItem("Paste into"));
187
+ pasteIntoItem.addActionListener(this);
181188 pasteLinkItem = menu.add(new MenuItem("Paste link"));
182189 pasteLinkItem.addActionListener(this);
183190 pasteCloneItem = menu.add(new MenuItem("Paste clone"));
184191 pasteCloneItem.addActionListener(this);
185192 // pasteExpandItem = menu.add(new MenuItem("Paste expand"));
186193 // pasteExpandItem.addActionListener(this);
194
+ menu.add("-");
187195 clearItem = menu.add(new MenuItem("Clear"));
188196 clearItem.addActionListener(this);
197
+
198
+ if (Globals.ADVANCED)
199
+ {
200
+ // Deletes the cameras...
189201 clearAllItem = menu.add(new MenuItem("Clear All"));
190202 clearAllItem.addActionListener(this);
203
+ }
191204
192205 oe.menuBar.add(menu = new Menu("Setting"));
206
+ if (Globals.ADVANCED)
207
+ {
193208 resetMeshItem = menu.add(new MenuItem("Reset All"));
194209 resetMeshItem.addActionListener(this);
195210 stepAllItem = menu.add(new MenuItem("Step All"));
....@@ -199,6 +214,7 @@
199214 resetreferencesItem = menu.add(new MenuItem("Reset Mesh References"));
200215 resetreferencesItem.addActionListener(this);
201216 menu.add("-");
217
+ }
202218 overwriteGeoItem = menu.add(new MenuItem("Overwrite Geometry"));
203219 overwriteGeoItem.addActionListener(this);
204220 overwriteMatItem = menu.add(new MenuItem("Overwrite Material"));
....@@ -210,19 +226,26 @@
210226 overwriteUVItem = menu.add(new MenuItem("Overwrite UV"));
211227 overwriteUVItem.addActionListener(this);
212228 menu.add("-");
229
+ if (Globals.ADVANCED)
230
+ {
213231 generateMeshItem = menu.add(new MenuItem("Generate Meshes"));
214232 generateMeshItem.addActionListener(this);
215233 poseMeshItem = menu.add(new MenuItem("Set Pose Meshes"));
216234 poseMeshItem.addActionListener(this);
217235 menu.add("-");
236
+ }
218237 resetsupportItem = menu.add(new MenuItem("Reset support"));
219238 resetsupportItem.addActionListener(this);
220239 linkverticesItem = menu.add(new MenuItem("Link to Support"));
221240 linkverticesItem.addActionListener(this);
222241 relinkverticesItem = menu.add(new MenuItem("Re-link to Support"));
223242 relinkverticesItem.addActionListener(this);
243
+
244
+ if (Globals.ADVANCED)
245
+ {
224246 setMasterItem = menu.add(new MenuItem("Set Master Mesh"));
225247 setMasterItem.addActionListener(this);
248
+ }
226249
227250 oe.menuBar.add(menu = new Menu("Group"));
228251 grabItem = menu.add(new MenuItem("Grab"));
....@@ -233,27 +256,31 @@
233256 frontItem.addActionListener(this);
234257 compositeItem = menu.add(new MenuItem("Composite"));
235258 compositeItem.addActionListener(this);
236
- hideItem = menu.add(new MenuItem("Hide"));
259
+ hideItem = menu.add(new MenuItem("Hidden Group"));
237260 hideItem.addActionListener(this);
238261 ungroupItem = menu.add(new MenuItem("Ungroup"));
239262 ungroupItem.addActionListener(this);
240263 menu.add("-");
241
- randomItem = menu.add(new MenuItem("Random"));
264
+ randomItem = menu.add(new MenuItem("Switch node"));
242265 randomItem.addActionListener(this);
243
- physicsItem = menu.add(new MenuItem("Physics"));
244
- physicsItem.addActionListener(this);
245
- frameselectorItem = menu.add(new MenuItem("Frame Selector"));
246
- frameselectorItem.addActionListener(this);
247266 switchGeoItem = menu.add(new MenuItem("Switch Geometry"));
248267 switchGeoItem.addActionListener(this);
249268 switchTransfoItem = menu.add(new MenuItem("Switch Transform"));
250269 switchTransfoItem.addActionListener(this);
251
- morphItem = menu.add(new MenuItem("Morph"));
270
+ morphItem = menu.add(new MenuItem("Morph Group"));
252271 morphItem.addActionListener(this);
272
+
273
+ if (Globals.ADVANCED)
274
+ {
275
+ physicsItem = menu.add(new MenuItem("Physics"));
276
+ physicsItem.addActionListener(this);
277
+ frameselectorItem = menu.add(new MenuItem("Frame Selector"));
278
+ frameselectorItem.addActionListener(this);
253279 scriptNodeItem = menu.add(new MenuItem("Script Node"));
254280 scriptNodeItem.addActionListener(this);
255281 cameraItem = menu.add(new MenuItem("Camera"));
256282 cameraItem.addActionListener(this);
283
+ }
257284
258285 oe.menuBar.add(menu = new Menu("Object"));
259286 textureItem = menu.add(new MenuItem("Texture"));
....@@ -268,15 +295,18 @@
268295 shadowYItem.addActionListener(this);
269296 shadowZItem = menu.add(new MenuItem("Shadow Z"));
270297 shadowZItem.addActionListener(this);
298
+ if (Globals.ADVANCED)
299
+ {
271300 linkerItem = menu.add(new MenuItem("Linker"));
272301 linkerItem.addActionListener(this);
273
- templateItem = menu.add(new MenuItem("Template"));
274
- templateItem.addActionListener(this);
275302 attributeItem = menu.add(new MenuItem("Attribute"));
276303 attributeItem.addActionListener(this);
304
+ templateItem = menu.add(new MenuItem("Template"));
305
+ templateItem.addActionListener(this);
277306 pointflowItem = menu.add(new MenuItem("Point Flow"));
278307 pointflowItem.addActionListener(this);
279308 menu.add("-");
309
+ }
280310 resetTransformItem = menu.add(new MenuItem("Reset Transform"));
281311 resetTransformItem.addActionListener(this);
282312 resetCentroidItem = menu.add(new MenuItem("Reset Centroid"));
....@@ -293,8 +323,11 @@
293323 genNormalsCADItem.addActionListener(this);
294324 genNormalsMESHItem = menu.add(new MenuItem("Mesh Normals"));
295325 genNormalsMESHItem.addActionListener(this);
326
+ if (Globals.ADVANCED)
327
+ {
296328 genNormalsMINEItem = menu.add(new MenuItem("My Normals"));
297329 genNormalsMINEItem.addActionListener(this);
330
+ }
298331 stripifyItem = menu.add(new MenuItem("Stripify"));
299332 stripifyItem.addActionListener(this);
300333 unstripifyItem = menu.add(new MenuItem("Unstripify"));
....@@ -316,10 +349,14 @@
316349 reduce34MeshItem.addActionListener(this);
317350 increaseMeshItem = menu.add(new MenuItem("Increase mesh"));
318351 increaseMeshItem.addActionListener(this);
319
- smoothMeshItem = menu.add(new MenuItem("Smooth mesh"));
320
- smoothMeshItem.addActionListener(this);
321352 clipMeshItem = menu.add(new MenuItem("Clip mesh"));
322353 clipMeshItem.addActionListener(this);
354
+
355
+ if (Globals.ADVANCED)
356
+ {
357
+ smoothMeshItem = menu.add(new MenuItem("Smooth mesh"));
358
+ smoothMeshItem.addActionListener(this);
359
+ }
323360
324361 oe.menuBar.add(menu = new Menu("Attributes"));
325362 clearMaterialsItem = menu.add(new MenuItem("Clear Materials"));
....@@ -329,10 +366,13 @@
329366 liveleavesItem.addActionListener(this);
330367 unliveleavesItem = menu.add(new MenuItem("Unlive Leaves"));
331368 unliveleavesItem.addActionListener(this);
369
+ if (Globals.ADVANCED)
370
+ {
332371 supportleavesItem = menu.add(new MenuItem("Support Leaves"));
333372 supportleavesItem.addActionListener(this);
334373 unsupportleavesItem = menu.add(new MenuItem("Unsupport Leaves"));
335374 unsupportleavesItem.addActionListener(this);
375
+ }
336376 hideleavesItem = menu.add(new MenuItem("Hide Leaves"));
337377 hideleavesItem.addActionListener(this);
338378 showleavesItem = menu.add(new MenuItem("Show Leaves"));
....@@ -375,6 +415,8 @@
375415 sortbysizeItem.addActionListener(this);
376416 sortbynameItem = menu.add(new MenuItem("Sort by name"));
377417 sortbynameItem.addActionListener(this);
418
+ if (Globals.ADVANCED)
419
+ {
378420 menu.add("-");
379421 extractGeometriesItem = menu.add(new MenuItem("Link Geometry"));
380422 extractGeometriesItem.addActionListener(this);
....@@ -384,11 +426,11 @@
384426 shareGeometriesItem.addActionListener(this);
385427 mergeGeometriesItem = menu.add(new MenuItem("Merge Geometry"));
386428 mergeGeometriesItem.addActionListener(this);
429
+ }
387430
388431 oe.menuBar.add(menu = new Menu("Insert"));
389432 buildCreateMenu(menu);
390433
391
-
392434 oe.menuBar.add(menu = new Menu("Include"));
393435 importGFDItem = menu.add(new MenuItem("GrafreeD Object..."));
394436 importGFDItem.addActionListener(this);
....@@ -433,153 +475,98 @@
433475 oe.radioPanel.add(dummyButton);
434476 oe.buttonGroup.add(dummyButton);
435477 */
436
- aConstraints.gridy += 1;
437
- oe.aConstraints.gridwidth = 1;
438
- oe.aConstraints.gridx = 0;
478
+ //this.AddOptions(oe.toolbarPanel, oe.aConstraints);
439479
440
- oe.toolbarPanel.add(liveCB = new cCheckBox("Live", CameraPane.isLIVE()), oe.aConstraints);
480
+ oe.toolbarPanel.add(liveCB = new cCheckBox("Live", Globals.isLIVE())); //, oe.aConstraints);
481
+ liveCB.setToolTipText("Enabled animation");
441482 liveCB.addItemListener(this);
442483
443
- oe.aConstraints.gridx += 1;
444
- oe.toolbarPanel.add(supportCB = new cCheckBox("Support", CameraPane.SUPPORT), oe.aConstraints);
445
- supportCB.addItemListener(this);
446
-
447
- // oe.aConstraints.gridx += 1;
448
- // oe.toolbarPanel.add(localCB = new cCheckBox("Local", CameraPane.LOCALTRANSFORM), oe.aConstraints);
449
- // localCB.addItemListener(this);
450
-
451
- oe.aConstraints.gridx += 1;
452
- oe.toolbarPanel.add(crowdCB = new cCheckBox("Crowd", CameraPane.CROWD), oe.aConstraints);
453
- crowdCB.addItemListener(this);
454
-
455
- oe.aConstraints.gridx += 1;
456
- oe.toolbarPanel.add(smoothCB = new cCheckBox("Inertia", CameraPane.INERTIA), oe.aConstraints);
457
- smoothCB.addItemListener(this);
458
-
459
- oe.aConstraints.gridx += 1;
460
- oe.toolbarPanel.add(fastCB = new cCheckBox("Fast", CameraPane.FAST), oe.aConstraints);
484
+ oe.toolbarPanel.add(oneStepButton = new cButton("Step", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
485
+ oneStepButton.setToolTipText("Animate one step forward");
486
+ oneStepButton.addActionListener(this);
487
+
488
+ oe.toolbarPanel.add(fastCB = new cCheckBox("Fast", CameraPane.FAST)); //, constraints);
489
+ fastCB.setToolTipText("Fast mode");
461490 fastCB.addItemListener(this);
462
- oe.aConstraints.gridx += 1;
463
- oe.toolbarPanel.add(slowCB = new cCheckBox("Slow", CameraPane.SLOWPOSE), oe.aConstraints);
464
- slowCB.addItemListener(this);
465
- oe.aConstraints.gridx += 1;
466
- oe.toolbarPanel.add(boxCB = new cCheckBox("Box", CameraPane.FAST), oe.aConstraints);
467
- boxCB.addItemListener(this);
468
-
469
-// oe.aConstraints.gridx += 1;
470
-// oe.toolbarPanel.add(speakerMocapCB = new cCheckBox("Mocap", CameraPane.SPEAKERMOCAP), oe.aConstraints);
471
-// speakerMocapCB.addItemListener(this);
472
-
473
- if (false)
474
- {
475
- // handled in scripts
476
- oe.aConstraints.gridx += 1;
477
- oe.toolbarPanel.add(speakerCameraCB = new cCheckBox("Cam", CameraPane.SPEAKERCAMERA), oe.aConstraints);
478
- speakerCameraCB.addItemListener(this);
479
-
480
- oe.aConstraints.gridx += 1;
481
- oe.toolbarPanel.add(speakerFocusCB = new cCheckBox("Focus", CameraPane.SPEAKERFOCUS), oe.aConstraints);
482
- speakerFocusCB.addItemListener(this);
483
-
484
- oe.aConstraints.gridx += 1;
485
- oe.toolbarPanel.add(smoothfocusCB = new cCheckBox("Smooth", CameraPane.SMOOTHFOCUS), oe.aConstraints);
486
- smoothfocusCB.addItemListener(this);
487
- }
488
-
489
-//oe.aConstraints.gridx += 1;
490
-//oe.toolbarPanel.add(debugCB = new cCheckBox("Debug", CameraPane.DEBUG), oe.aConstraints);
491
-// debugCB.addItemListener(this);
492
-
493
- oe.aConstraints.gridx += 1;
494
- oe.toolbarPanel.add(oeilCB = new cCheckBox("O", CameraPane.OEIL), oe.aConstraints);
495
- oeilCB.addItemListener(this);
496
-
497
- oe.aConstraints.gridx += 1;
498
- oe.toolbarPanel.add(lookAtCB = new cCheckBox("T", CameraPane.LOOKAT), oe.aConstraints);
499
- lookAtCB.addItemListener(this);
500
-
501
- oe.aConstraints.gridx += 1;
502
- oe.toolbarPanel.add(trackCB = new cCheckBox(":", CameraPane.TRACK), oe.aConstraints);
491
+
492
+ oe.toolbarPanel.add(trackCB = new cCheckBox("Track", CameraPane.TRACK)); //, oe.aConstraints);
493
+ trackCB.setToolTipText("Enable tracking");
503494 trackCB.addItemListener(this);
504495
505
- oe.aConstraints.gridx += 1;
506
- oe.toolbarPanel.add(screenfitButton = new cButton("@ ")); //, oe.aConstraints);
496
+ oe.toolbarPanel.add(screenfitButton = new cButton("@", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
497
+ screenfitButton.setToolTipText("Screen fit");
507498 screenfitButton.addActionListener(this);
508
- oe.aConstraints.gridx += 1;
499
+
509500 // oe.toolbarPanel.add(screenfitpointButton = new cButton(" @+ ")); //, oe.aConstraints);
510501 // screenfitpointButton.addActionListener(this);
511
-// oe.aConstraints.gridx += 1;
512
- oe.toolbarPanel.add(snapobjectButton = new cButton(" O+ ")); //, oe.aConstraints);
513
- snapobjectButton.addActionListener(this);
514
- oe.aConstraints.gridx += 1;
515502
516
- //aConstraints.gridx = 0;
517
- //aConstraints.gridy += 1;
518
- oe.aConstraints.weighty = 0;
519
- oe.aConstraints.gridwidth = 1;
520
-
521
- oe.toolbarPanel.add(flashSelectionButton = new cButton(" ? ")); //, oe.aConstraints);
503
+ if (Globals.ADVANCED)
504
+ {
505
+ oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
506
+ snapobjectButton.addActionListener(this);
507
+ snapobjectButton.setToolTipText("Snap Object");
508
+ }
509
+
510
+ oe.toolbarPanel.add(flashSelectionButton = new cButton("?", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
511
+ flashSelectionButton.setToolTipText("Show selection");
522512 flashSelectionButton.addActionListener(this);
523513
524
- oe.toolbarPanel.add(new cButton(" ", false));
514
+ oe.toolbarPanel.add(new JSeparator(SwingConstants.VERTICAL));
525515
526
- oe.aConstraints.gridx += 1;
527
- oe.aConstraints.weighty = 0;
528
- oe.aConstraints.gridwidth = 1;
529
-
530
- //
531
- oe.toolbarPanel.add(twoButton = new cButton(" |+| ")); //, oe.aConstraints);
516
+ oe.toolbarPanel.add(twoButton = new cButton("|+|", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
517
+ twoButton.setToolTipText("Show center view only");
532518 twoButton.addActionListener(this);
533
- oe.toolbarPanel.add(fourButton = new cButton("+|| ")); //, oe.aConstraints);
519
+ oe.toolbarPanel.add(fourButton = new cButton("+||", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
534520 fourButton.addActionListener(this);
535
- oe.toolbarPanel.add(sixButton = new cButton("+|+| ")); //, oe.aConstraints);
521
+ fourButton.setToolTipText("Show left panel only");
522
+ oe.toolbarPanel.add(sixButton = new cButton("+|+|", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
523
+ sixButton.setToolTipText("2-column layout left");
536524 sixButton.addActionListener(this);
537
- oe.toolbarPanel.add(threeButton = new cButton(" |+|+")); //, oe.aConstraints);
525
+ oe.toolbarPanel.add(threeButton = new cButton("|+|+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
526
+ threeButton.setToolTipText("2-column layout right");
538527 threeButton.addActionListener(this);
539
- oe.toolbarPanel.add(sevenButton = new cButton("+|+|+")); //, oe.aConstraints);
528
+ oe.toolbarPanel.add(sevenButton = new cButton("+|+|+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
529
+ sevenButton.setToolTipText("3-column layout");
540530 sevenButton.addActionListener(this);
541531 //
542532
543
- oe.toolbarPanel.add(rootButton = new cButton(" o o o E ")); //, oe.aConstraints);
533
+ oe.toolbarPanel.add(rootButton = new cButton("o o o", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
534
+ rootButton.setToolTipText("Edit selection in new tab");
544535 rootButton.addActionListener(this);
545
- oe.aConstraints.gridx += 1;
546
- oe.toolbarPanel.add(closeButton = new cButton(" X ")); //, oe.aConstraints);
536
+
537
+ oe.toolbarPanel.add(closeButton = new cButton("X", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
538
+ closeButton.setToolTipText("Close tab");
547539 closeButton.addActionListener(this);
548540 //oe.treePanel.add(clearButton = new cButton("X"), oe.aConstraints);
549541 //clearButton.addActionListener(this);
550
- oe.aConstraints.gridx += 1;
551542
552
- oe.aConstraints.gridx = 1; //
553
- oe.treePanel.add(editButton = new cButton("+"), oe.aConstraints);
543
+ cGridBag commandsPanel = new cGridBag();
544
+
545
+ commandsPanel.add(editButton = new cButton("+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
546
+ editButton.setToolTipText("Edit selection");
554547 editButton.addActionListener(this);
555
- oe.aConstraints.gridx += 1;
556
- oe.aConstraints.weighty = 0;
557
- oe.aConstraints.gridwidth = 1;
558548
559
- oe.treePanel.add(uneditButton = new cButton("-"), oe.aConstraints);
549
+ commandsPanel.add(uneditButton = new cButton("-", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
550
+ uneditButton.setToolTipText("Unedit selection");
560551 uneditButton.addActionListener(this);
561552
562
- oe.aConstraints.gridx += 1;
563
- oe.aConstraints.weighty = 0;
564
- oe.aConstraints.gridwidth = 1;
565
-
566
- oe.treePanel.add(clearPanelButton = new cButton("C"), oe.aConstraints);
567
- clearPanelButton.addActionListener(this);
568
-
569
- oe.aConstraints.gridx += 1;
570
- oe.aConstraints.weighty = 0;
571
- oe.aConstraints.gridwidth = 1;
572
-
573
- oe.treePanel.add(allParamsButton = new cButton("A"), oe.aConstraints);
553
+ commandsPanel.add(allParamsButton = new JCheckBox("All", allparams)); //, oe.aConstraints);
554
+ allParamsButton.setToolTipText("Edit all params");
574555 allParamsButton.addActionListener(this);
575556
576
- oe.aConstraints.gridx += 1;
577
- oe.aConstraints.weighty = 0;
578
- oe.aConstraints.gridwidth = 1;
579
-
580
- oe.treePanel.add(unselectButton = new cButton("U"), oe.aConstraints);
557
+ commandsPanel.add(clearPanelButton = new cButton("C", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
558
+ clearPanelButton.setToolTipText("Clear edit panel");
559
+ clearPanelButton.addActionListener(this);
560
+
561
+ commandsPanel.add(unselectButton = new cButton("U", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
562
+ unselectButton.setToolTipText("Unselect");
581563 unselectButton.addActionListener(this);
582564
565
+ commandsPanel.preferredHeight = 1;
566
+
567
+ oe.treePanel.add(commandsPanel);
568
+ oe.treePanel.Return();
569
+
583570 // oe.aConstraints.gridx += 1;
584571 // oe.aConstraints.weighty = 0;
585572 // oe.aConstraints.gridwidth = 1;
....@@ -591,40 +578,37 @@
591578 // oe.treePanel.add(gcButton = new cButton("GC"), oe.aConstraints);
592579 // gcButton.addActionListener(this);
593580
594
- oe.aConstraints.gridx = 0;
595
- oe.aConstraints.gridy += 1;
596
-
597
- //ctrlPanel.add(objList = new List(5, true));
598
- oe.aConstraints.gridwidth = 100;
599
- // oe.aConstraints.gridheight = 100;
600
- oe.aConstraints.fill = GridBagConstraints.BOTH; // HORIZONTAL;
601
- oe.aConstraints.gridheight = 1;
602
- oe.aConstraints.weighty = 0.5;
603
- oe.aConstraints.gridx = 0;
604
- JScrollPane jSP;
581
+ cGridBag jSPPanel = new cGridBag();
582
+
583
+ JScrollPane jSP;
605584 //ctrlPanel.add(new JScrollPane(jTree = new cTree(new cTreeModel(this))), aConstraints);
606
- oe.treePanel.add(jSP = new JScrollPane(oe.jTree = new cTree(null)), oe.aConstraints);
585
+ jSPPanel.add(jSP = new JScrollPane(oe.jTree = new cTree(null))); //, oe.aConstraints);
607586 ResetModel();
608
- oe.aConstraints.weighty = 0.5;
609
- oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;
610
- oe.aConstraints.gridy += 1;
611
- oe.aConstraints.gridwidth = 1;
587
+
588
+ oe.treePanel.add(jSPPanel);
589
+ oe.treePanel.Return();
612590
613
- oe.aConstraints.weighty = 0;
614
- oe.aConstraints.gridwidth = 2;
615
-
616
- oe.treePanel.add(colorCB = new cCheckBox("Color", (dropAttributes&Object3D.COLOR)!=0), oe.aConstraints);
591
+ cGridBag copyOptionsPanel = new cGridBag();
592
+
593
+ copyOptionsPanel.add(colorCB = new cCheckBox("Color", (dropAttributes&Object3D.COLOR)!=0)); //, oe.aConstraints);
594
+ colorCB.setToolTipText("Copy color when dropped");
617595 colorCB.addItemListener(this);
618
- oe.aConstraints.gridx += 2;
619
- oe.treePanel.add(materialCB = new cCheckBox("Material", (dropAttributes&Object3D.MATERIAL)!=0), oe.aConstraints);
596
+
597
+ copyOptionsPanel.add(materialCB = new cCheckBox("Material", (dropAttributes&Object3D.MATERIAL)!=0)); //, oe.aConstraints);
598
+ materialCB.setToolTipText("Copy material when dropped");
620599 materialCB.addItemListener(this);
621
- oe.aConstraints.gridx += 2;
622
- oe.treePanel.add(textureCB = new cCheckBox("Texture", (dropAttributes&Object3D.TEXTURE)!=0), oe.aConstraints);
600
+
601
+ copyOptionsPanel.add(textureCB = new cCheckBox("Texture", (dropAttributes&Object3D.TEXTURE)!=0)); //, oe.aConstraints);
602
+ textureCB.setToolTipText("Copy texture when dropped");
623603 textureCB.addItemListener(this);
624604
625
- oe.aConstraints.gridx = 0;
626
- oe.aConstraints.gridy += 1;
605
+ copyOptionsPanel.preferredHeight = 1;
606
+ oe.treePanel.add(copyOptionsPanel);
607
+ oe.treePanel.Return();
627608
609
+// mainPanel.setDividerLocation(0.5); //1.0);
610
+// mainPanel.setResizeWeight(0.5);
611
+
628612 //jList.addListSelectionListener(this);
629613 oe.jTree.addTreeSelectionListener(this);
630614 //jTree.setRootVisible(false);
....@@ -646,6 +630,78 @@
646630 radio.layout = sevenButton;
647631 oe.toolbarPanel.add(radioPanel); //, oe.aConstraints);
648632 }
633
+
634
+ void AddOptions(cGridBag panel) //, GridBagConstraints constraints)
635
+ {
636
+ panel.add(boxCB = new cCheckBox("Box", CameraPane.BOXMODE)); //, constraints);
637
+ boxCB.setToolTipText("Display bounding boxes");
638
+ boxCB.addItemListener(this);
639
+
640
+ panel.add(zoomBoxCB = new cCheckBox("Zoom", CameraPane.ZOOMBOXMODE)); //, constraints);
641
+ zoomBoxCB.setToolTipText("Display bounding boxes when moving the wheel");
642
+ zoomBoxCB.addItemListener(this);
643
+
644
+ if (Globals.ADVANCED)
645
+ {
646
+ panel.add(supportCB = new cCheckBox("Support", CameraPane.SUPPORT)); //, constraints);
647
+ supportCB.setToolTipText("Enable rigging");
648
+ supportCB.addItemListener(this);
649
+
650
+ // panel.add(localCB = new cCheckBox("Local", CameraPane.LOCALTRANSFORM), constraints);
651
+ // localCB.addItemListener(this);
652
+
653
+ panel.add(crowdCB = new cCheckBox("Crowd", Globals.CROWD)); //, constraints);
654
+ crowdCB.setToolTipText("Used for crowds");
655
+ crowdCB.addItemListener(this);
656
+
657
+ panel.add(smoothCB = new cCheckBox("Inertia", CameraPane.INERTIA)); //, constraints);
658
+ smoothCB.setToolTipText("Snapping delay");
659
+ smoothCB.addItemListener(this);
660
+
661
+ panel.add(slowCB = new cCheckBox("Slow", CameraPane.SLOWPOSE)); //, constraints);
662
+ slowCB.setToolTipText("Smooth interpolation");
663
+ slowCB.addItemListener(this);
664
+
665
+// constraints.gridy += 1;
666
+// panel.add(speakerMocapCB = new cCheckBox("Mocap", CameraPane.SPEAKERMOCAP), constraints);
667
+// speakerMocapCB.addItemListener(this);
668
+
669
+ if (false)
670
+ {
671
+ // handled in scripts
672
+ //constraints.gridy += 1;
673
+ panel.add(speakerCameraCB = new cCheckBox("Cam", CameraPane.SPEAKERCAMERA)); //, constraints);
674
+ speakerCameraCB.addItemListener(this);
675
+
676
+ //constraints.gridy += 1;
677
+ panel.add(speakerFocusCB = new cCheckBox("Focus", CameraPane.SPEAKERFOCUS)); //, constraints);
678
+ speakerFocusCB.addItemListener(this);
679
+
680
+ //constraints.gridy += 1;
681
+ panel.add(smoothfocusCB = new cCheckBox("Smooth", CameraPane.SMOOTHFOCUS)); //, constraints);
682
+ smoothfocusCB.addItemListener(this);
683
+ }
684
+
685
+//constraints.gridx += 1;
686
+//panel.add(debugCB = new cCheckBox("Debug", CameraPane.DEBUG), constraints);
687
+// debugCB.addItemListener(this);
688
+
689
+ panel.add(oeilCB = new cCheckBox("Eye", CameraPane.OEIL)); //, constraints);
690
+ oeilCB.addItemListener(this);
691
+
692
+ panel.add(lookAtCB = new cCheckBox("Target", CameraPane.LOOKAT)); //, constraints);
693
+ lookAtCB.setToolTipText("Look-at target");
694
+ lookAtCB.addItemListener(this);
695
+
696
+ }
697
+
698
+ cGridBag fill = new cGridBag();
699
+
700
+ fill.preferredHeight = 200;
701
+
702
+ panel.add(fill);
703
+
704
+ }
649705
650706 void EditObject(Object3D obj)
651707 {
....@@ -676,6 +732,7 @@
676732 JCheckBox fastCB;
677733 JCheckBox slowCB;
678734 JCheckBox boxCB;
735
+ JCheckBox zoomBoxCB;
679736 JCheckBox trackCB;
680737 JCheckBox smoothfocusCB;
681738 // JCheckBox speakerMocapCB;
....@@ -755,6 +812,10 @@
755812 Recompile();
756813 cameraView.repaint();
757814 // refreshContents();
815
+ }
816
+ else if(e.getSource() == zoomBoxCB)
817
+ {
818
+ cameraView.ToggleZoomBoxMode();
758819 }
759820 else if(e.getSource() == smoothfocusCB)
760821 {
....@@ -923,11 +984,11 @@
923984 {
924985 loadClipboard(true);
925986 objEditor.jTree.setSelectionPath(destinationPath);
926
- pasteInto(false);
987
+ pasteInto(false, false);
927988 } else {
928989 loadClipboard(false);
929990 objEditor.jTree.setSelectionPath(destinationPath);
930
- pasteInto(false); // true); // ???
991
+ pasteInto(false, false); // true); // ???
931992 }
932993 }
933994 public void dropActionChanged(DropTargetDragEvent dtde)
....@@ -1049,27 +1110,33 @@
10491110 kleinItem.addActionListener(this);
10501111 particleItem = menu.add(new MenuItem("Particle system"));
10511112 particleItem.addActionListener(this);
1113
+ if (Globals.ADVANCED)
1114
+ {
10521115 ragdollItem = menu.add(new MenuItem("Rag Walk"));
10531116 ragdollItem.addActionListener(this);
10541117 ragdoll2Item = menu.add(new MenuItem("Rag Fall"));
10551118 ragdoll2Item.addActionListener(this);
1119
+ }
10561120 menu.add("-");
1057
- meshItem = menu.add(new MenuItem("Mesh"));
1121
+ meshItem = menu.add(new MenuItem("Dynamic Mesh"));
10581122 meshItem.addActionListener(this);
10591123 // meshGroupItem = menu.add(new MenuItem("Mesh Group"));
10601124 // meshGroupItem.addActionListener(this);
1125
+ if (Globals.ADVANCED)
1126
+ {
10611127 springItem = menu.add(new MenuItem("Spring"));
10621128 springItem.addActionListener(this);
10631129 flagItem = menu.add(new MenuItem("Flag"));
10641130 flagItem.addActionListener(this);
1065
- bezierItem = menu.add(new MenuItem("Patch"));
1066
- bezierItem.addActionListener(this);
1067
- checkerItem = menu.add(new MenuItem("Checker"));
1068
- checkerItem.addActionListener(this);
10691131 blobItem = menu.add(new MenuItem("Blob"));
10701132 blobItem.addActionListener(this);
10711133 latheItem = menu.add(new MenuItem("Lathe"));
10721134 latheItem.addActionListener(this);
1135
+ }
1136
+ bezierItem = menu.add(new MenuItem("Bezier Patch"));
1137
+ bezierItem.addActionListener(this);
1138
+ overlayItem = menu.add(new MenuItem("Overlay"));
1139
+ overlayItem.addActionListener(this);
10731140 lightItem = menu.add(new MenuItem("Light"));
10741141 lightItem.addActionListener(this);
10751142 menu.add("-");
....@@ -1079,25 +1146,26 @@
10791146 loopItem.addActionListener(this);
10801147 doubleItem = menu.add(new MenuItem("Fork"));
10811148 doubleItem.addActionListener(this);
1149
+ if (Globals.ADVANCED)
1150
+ {
10821151 tripleItem = menu.add(new MenuItem("Trident"));
10831152 tripleItem.addActionListener(this);
1153
+ }
10841154 }
10851155
10861156 void buildToolsMenu(Menu menu)
10871157 {
10881158 menu.add(animationItem = new CheckboxMenuItem("Animation..."));
10891159 animationItem.addItemListener(this);
1090
- animationItem.setState(CameraPane.ANIMATION);
1160
+ animationItem.setState(Globals.ANIMATION);
10911161
10921162 menu.add("-");
10931163 parseverticesItem = menu.add(new MenuItem("Multiplicity"));
10941164 parseverticesItem.addActionListener(this);
10951165 textureFieldItem = menu.add(new MenuItem("Texture Field"));
10961166 textureFieldItem.addActionListener(this);
1097
- alignItem = menu.add(new MenuItem("Align"));
1167
+ alignItem = menu.add(new MenuItem("Align Object"));
10981168 alignItem.addActionListener(this);
1099
- mirrorItem = menu.add(new MenuItem("Mirror Poses"));
1100
- mirrorItem.addActionListener(this);
11011169 reduceMorphItem = menu.add(new MenuItem("Reduce Morphs"));
11021170 reduceMorphItem.addActionListener(this);
11031171 reduce34MorphItem = menu.add(new MenuItem("Reduce Morphs (34)"));
....@@ -1105,8 +1173,12 @@
11051173
11061174 menu.add(computeAOItem = new MenuItem("Compute AO"));
11071175 computeAOItem.addActionListener(this);
1108
- menu.add("-");
11091176
1177
+ if (Globals.ADVANCED)
1178
+ {
1179
+ mirrorItem = menu.add(new MenuItem("Mirror Poses"));
1180
+ mirrorItem.addActionListener(this);
1181
+ menu.add("-");
11101182 menu.add(memoryItem = new MenuItem("Memory Usage"));
11111183 memoryItem.addActionListener(this);
11121184 menu.add(analyzeItem = new MenuItem("Analyze"));
....@@ -1120,6 +1192,8 @@
11201192 resetParentItem.addActionListener(this);
11211193 repairParentItem = menu.add(new MenuItem("Repair Parent"));
11221194 repairParentItem.addActionListener(this);
1195
+ repairShadowItem = menu.add(new MenuItem("Repair Shadow"));
1196
+ repairShadowItem.addActionListener(this);
11231197 menu.add(invariantsItem = new MenuItem("Invariants"));
11241198 invariantsItem.addActionListener(this);
11251199 menu.add(recompileItem = new MenuItem("Recompile"));
....@@ -1127,6 +1201,7 @@
11271201 menu.add("-");
11281202 menu.add(editScriptItem = new MenuItem("Edit Script..."));
11291203 editScriptItem.addActionListener(this);
1204
+ }
11301205 }
11311206
11321207 void ScreenFit()
....@@ -1480,6 +1555,7 @@
14801555 //
14811556 public void actionPerformed(ActionEvent event) // , Object arg)
14821557 {
1558
+ Object source = event.getSource();
14831559 /*
14841560 if (event.getSource() == nameField)
14851561 {
....@@ -1491,11 +1567,11 @@
14911567 }
14921568 else
14931569 */
1494
- if (event.getSource() == lookAtItem || event.getSource() == lookFromItem)
1570
+ if (source == lookAtItem || source == lookFromItem)
14951571 {
14961572 ScreenFit();
14971573 } else
1498
- if (event.getSource() == switchItem)
1574
+ if (source == switchItem)
14991575 {
15001576 cVector v1 = new cVector();
15011577 cVector v2 = new cVector();
....@@ -1504,11 +1580,11 @@
15041580 objEditor.cameraView.renderCamera.setAim(v2, v1);
15051581 objEditor.cameraView.repaint();
15061582 } else
1507
- if (event.getSource() == rectoidItem)
1583
+ if (source == rectoidItem)
15081584 {
15091585 makeSomething(new Box());
15101586 } else
1511
- if (event.getSource() == particleItem)
1587
+ if (source == particleItem)
15121588 {
15131589 ParticleNode particleGeom = new ParticleNode("Particles", 1000); //, particleType);
15141590 ParticleController particleController = new ParticleController(particleGeom);
....@@ -1529,9 +1605,9 @@
15291605 applyExample(particleGeom, "SMOKE");
15301606 makeSomething(particleGeom);
15311607 } else
1532
- if (event.getSource() == ragdollItem || event.getSource() == ragdoll2Item)
1608
+ if (source == ragdollItem || source == ragdoll2Item)
15331609 {
1534
- GenericJoint ragdoll = new GenericJoint(event.getSource() == ragdollItem);
1610
+ GenericJoint ragdoll = new GenericJoint(source == ragdollItem);
15351611
15361612 ragdoll.toParent = LA.newMatrix();
15371613 ragdoll.fromParent = LA.newMatrix();
....@@ -1549,7 +1625,7 @@
15491625 } else
15501626 /*
15511627 */
1552
- if (event.getSource() == heightFieldItem)
1628
+ if (source == heightFieldItem)
15531629 {
15541630 Object3D obj = new Object3D();
15551631
....@@ -1587,31 +1663,31 @@
15871663
15881664 makeSomething(obj);
15891665 } else
1590
- if (event.getSource() == gridItem)
1666
+ if (source == gridItem)
15911667 {
15921668 makeSomething(new Grid());
15931669 } else
1594
- if (event.getSource() == ellipsoidItem)
1670
+ if (source == ellipsoidItem)
15951671 {
15961672 makeSomething(new Sphere());
15971673 } else
1598
- if (event.getSource() == coneItem)
1674
+ if (source == coneItem)
15991675 {
16001676 makeSomething(new Cone());
16011677 } else
1602
- if (event.getSource() == torusItem)
1678
+ if (source == torusItem)
16031679 {
16041680 makeSomething(new Torus());
16051681 } else
1606
- if (event.getSource() == superItem)
1682
+ if (source == superItem)
16071683 {
16081684 makeSomething(new Superellipsoid());
16091685 } else
1610
- if (event.getSource() == kleinItem)
1686
+ if (source == kleinItem)
16111687 {
16121688 makeSomething(new Klein());
16131689 } else
1614
- if (event.getSource() == blobItem)
1690
+ if (source == blobItem)
16151691 {
16161692 Blob blob = new Blob();
16171693 BlobComponent comp = new BlobComponent();
....@@ -1619,15 +1695,15 @@
16191695 //blob.retile();
16201696 makeSomething(blob);
16211697 } else
1622
- if (event.getSource() == latheItem)
1698
+ if (source == latheItem)
16231699 {
16241700 makeSomething(new Lathe());
16251701 } else
1626
- if (event.getSource() == bezierItem)
1702
+ if (source == bezierItem)
16271703 {
16281704 makeSomething(new BezierSurface());
16291705 } else
1630
- if (event.getSource() == checkerItem)
1706
+ if (source == overlayItem)
16311707 {
16321708 /*
16331709 Object3D obj = new BezierSurface(5,8);
....@@ -1642,7 +1718,7 @@
16421718 */
16431719 makeSomething(new Checker());
16441720 } else
1645
- if (event.getSource() == meshItem)
1721
+ if (source == meshItem)
16461722 {
16471723 Object3D itemtomake = new Object3D();
16481724 Object3D child;
....@@ -1663,35 +1739,35 @@
16631739 makeSomething(child);
16641740 }
16651741 } else
1666
- if (event.getSource() == springItem)
1742
+ if (source == springItem)
16671743 {
16681744 cSpring s = new cSpring();
16691745 s.setup();
16701746 makeSomething(s);
16711747 } else
1672
- if (event.getSource() == flagItem)
1748
+ if (source == flagItem)
16731749 {
16741750 cSpring s = new cFlag();
16751751 s.setup();
16761752 makeSomething(s);
16771753 } else
1678
- if (event.getSource() == lightItem)
1754
+ if (source == lightItem)
16791755 {
16801756 makeSomething(new Light());
16811757 } else
1682
- if (event.getSource() == csgItem)
1758
+ if (source == csgItem)
16831759 {
16841760 group(new CSG());
16851761 } else
1686
- if (event.getSource() == templateItem)
1762
+ if (source == templateItem)
16871763 {
16881764 group(new cTemplate());
16891765 } else
1690
- if (event.getSource() == attributeItem)
1766
+ if (source == attributeItem)
16911767 {
16921768 makeSomething(new Attribute());
16931769 } else
1694
- if (event.getSource() == pointflowItem)
1770
+ if (source == pointflowItem)
16951771 {
16961772 makeSomething(new PointFlow());
16971773 } else
....@@ -1703,7 +1779,7 @@
17031779 } else
17041780 */
17051781
1706
- if (event.getSource() == superLoopItem)
1782
+ if (source == superLoopItem)
17071783 {
17081784 Composite g = new cGroup();
17091785 for (int i=0; i<15; i++)
....@@ -1725,7 +1801,7 @@
17251801
17261802 group(g);
17271803 } else
1728
- if (event.getSource() == loopItem)
1804
+ if (source == loopItem)
17291805 {
17301806 Composite csg = new GroupLeaf();
17311807 csg.count = 5;
....@@ -1734,7 +1810,7 @@
17341810 csg.addChild(child);
17351811 child.addChild(csg);
17361812 } else
1737
- if (event.getSource() == doubleItem)
1813
+ if (source == doubleItem)
17381814 {
17391815 Composite csg = new GroupLeaf();
17401816 csg.count = 5;
....@@ -1746,7 +1822,7 @@
17461822 csg.addChild(child);
17471823 child.addChild(csg);
17481824 } else
1749
- if (event.getSource() == tripleItem)
1825
+ if (source == tripleItem)
17501826 {
17511827 Composite csg = new GroupLeaf();
17521828 csg.count = 4;
....@@ -1762,70 +1838,75 @@
17621838 child.addChild(csg);
17631839 } else
17641840
1765
- if (event.getSource() == importGFDItem)
1841
+ if (source == importGFDItem)
17661842 {
17671843 ImportGFD();
17681844 } else
1769
- if (event.getSource() == importVRMLX3DItem)
1845
+ if (source == importVRMLX3DItem)
17701846 {
17711847 ImportVRMLX3D();
17721848 } else
1773
- if (event.getSource() == import3DSItem)
1849
+ if (source == import3DSItem)
17741850 {
17751851 objEditor.ImportJME(new com.jmex.model.converters.MaxToJme(), "3ds", "Import 3DS");
17761852 } else
1777
- if (event.getSource() == importOBJItem)
1853
+ if (source == importOBJItem)
17781854 {
17791855 objEditor.ImportJME(new com.jmex.model.converters.ObjToJme(), "obj", "Import OBJ");
17801856 } else
1781
- if (event.getSource() == computeAOItem)
1857
+ if (source == computeAOItem)
17821858 {
1783
- CameraPane.drawMode = CameraPane.OCCLUSION;
1784
- CameraPane.theRenderer.repaint();
1859
+ Globals.drawMode = CameraPane.OCCLUSION;
1860
+ Globals.theRenderer.repaint();
17851861 } else
1786
- if (event.getSource() == recompileItem)
1862
+ if (source == recompileItem)
17871863 {
17881864 Recompile();
17891865 refreshContents();
17901866 } else
1791
- if (event.getSource() == editScriptItem)
1867
+ if (source == editScriptItem)
17921868 {
17931869 OpenDialog();
17941870 refreshContents();
17951871 } else
1796
- if (event.getSource() == invariantsItem)
1872
+ if (source == invariantsItem)
17971873 {
17981874 System.out.println("Invariants:");
17991875 GrafreeD.grafreeD.universe.invariants();
18001876 } else
1801
- if (event.getSource() == memoryItem)
1877
+ if (source == memoryItem)
18021878 {
18031879 //System.out.println("Invariants:");
18041880 PrintMemory();
18051881 } else
1806
- if (event.getSource() == pathItem)
1882
+ if (source == pathItem)
18071883 {
18081884 PrintPath();
18091885 } else
1810
- if (event.getSource() == analyzeItem)
1886
+ if (source == analyzeItem)
18111887 {
18121888 AnalyzeObject();
18131889 } else
1814
- if (event.getSource() == dumpItem)
1890
+ if (source == dumpItem)
18151891 {
18161892 DumpObject();
18171893 } else
1818
- if (event.getSource() == screenfitButton)
1894
+ if (source == oneStepButton)
1895
+ {
1896
+ Globals.ONESTEP = true;
1897
+ cameraView.repaint();
1898
+ } else
1899
+ if (source == screenfitButton)
18191900 {
18201901 //Reload(lastConverter, lastFilename, true);
18211902 ScreenFit();
18221903 } else
1823
- if (event.getSource() == screenfitpointButton)
1904
+ if (source == screenfitpointButton)
18241905 {
18251906 //Reload(lastConverter, lastFilename, true);
18261907 ScreenFitPoint();
18271908 } else
1828
- if (event.getSource() == snapobjectButton)
1909
+ if (source == snapobjectButton)
18291910 {
18301911 //Reload(lastConverter, lastFilename, true);
18311912 SnapObject();
....@@ -1836,13 +1917,13 @@
18361917 // Recompile();
18371918 // refreshContents();
18381919 // } else
1839
- if (event.getSource() == gcButton)
1920
+ if (source == gcButton)
18401921 {
18411922 System.out.println("Memory (F/T/M) : " + Runtime.getRuntime().freeMemory() + "/" + Runtime.getRuntime().totalMemory() + "/" + Runtime.getRuntime().maxMemory());
18421923 System.gc();
18431924 System.out.println("GC Memory (F/T/M) : " + Runtime.getRuntime().freeMemory() + "/" + Runtime.getRuntime().totalMemory() + "/" + Runtime.getRuntime().maxMemory());
18441925 } else
1845
- if (event.getSource() == editLeafItem)
1926
+ if (source == editLeafItem)
18461927 {
18471928 Object3D obj;
18481929 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -1856,62 +1937,66 @@
18561937 }
18571938 refreshContents(true);
18581939 } else
1859
- if (event.getSource() == openWindowItem)
1940
+ if (source == openWindowItem)
18601941 {
18611942 EditSelection(true);
18621943 } else
1863
- if (event.getSource() == cutItem || event.getSource() == clearButton)
1944
+ if (source == cutItem || source == clearButton)
18641945 {
18651946 loadClipboard(true);
18661947 } else
1867
- if (event.getSource() == duplicateItem)
1948
+ if (source == duplicateItem)
18681949 {
18691950 Object3D keep = GrafreeD.clipboard;
18701951 loadClipboard(false);
18711952 paste(false);
18721953 GrafreeD.clipboard = keep;
18731954 } else
1874
- if (event.getSource() == cloneItem)
1955
+ if (source == cloneItem)
18751956 {
18761957 CloneSelection(false);
18771958 } else
1878
- if (event.getSource() == cloneSupportItem)
1959
+ if (source == cloneSupportItem)
18791960 {
18801961 CloneSelection(true);
18811962 } else
1882
- if (event.getSource() == copyItem)
1963
+ if (source == copyItem)
18831964 {
18841965 loadClipboard(false);
18851966 } else
1886
- if (event.getSource() == pasteItem)
1967
+ if (source == pasteItem)
18871968 {
18881969 paste(false);
18891970 } else
1890
- if (event.getSource() == pasteLinkItem)
1971
+ if (source == pasteIntoItem)
18911972 {
1892
- pasteInto(false);
1973
+ pasteInto(true, false);
18931974 } else
1894
- if (event.getSource() == pasteCloneItem)
1975
+ if (source == pasteLinkItem)
18951976 {
1896
- pasteInto(true);
1977
+ pasteInto(false, false);
18971978 } else
1898
- if (event.getSource() == pasteExpandItem)
1979
+ if (source == pasteCloneItem)
1980
+ {
1981
+ pasteInto(true, true);
1982
+ } else
1983
+ if (source == pasteExpandItem)
18991984 {
19001985 paste(true);
19011986 } else
1902
- if (event.getSource() == synchronizeItem)
1987
+ if (source == synchronizeItem)
19031988 {
19041989 Overwrite(Object3D.TRANSFORM);
19051990 } else
1906
- if (event.getSource() == overwriteNameItem)
1991
+ if (source == overwriteNameItem)
19071992 {
19081993 Overwrite(Object3D.NAME);
19091994 } else
1910
- if (event.getSource() == overwriteUVItem)
1995
+ if (source == overwriteUVItem)
19111996 {
19121997 Overwrite(Object3D.UV);
19131998 } else
1914
- if (event.getSource() == overwriteMatItem)
1999
+ if (source == overwriteMatItem)
19152000 {
19162001 /* july 2015
19172002 if ((dropAttributes & Object3D.TEXTURE) == 0)
....@@ -1931,7 +2016,7 @@
19312016
19322017 Overwrite(dropAttributes);
19332018 }
1934
- if (event.getSource() == overwriteGeoItem)
2019
+ if (source == overwriteGeoItem)
19352020 {
19362021 Overwrite(Object3D.GEOMETRY);
19372022 // if (/*group.selection.size() == 1 &&*/ GrafreeD.clipboard.size() == 1)
....@@ -1948,7 +2033,7 @@
19482033 // refreshContents();
19492034 // }
19502035 } else
1951
- if (event.getSource() == generateMeshItem)
2036
+ if (source == generateMeshItem)
19522037 {
19532038 //if (group.selection.size() == 1)
19542039 // for (int i=0; i<group.selection.size(); i++)
....@@ -1959,7 +2044,7 @@
19592044 ResetModel();
19602045 refreshContents();
19612046 } else
1962
- if (event.getSource() == extractGeometriesItem)
2047
+ if (source == extractGeometriesItem)
19632048 {
19642049 boolean one = false;
19652050
....@@ -1986,7 +2071,7 @@
19862071 ResetModel();
19872072 refreshContents();
19882073 } else
1989
- if (event.getSource() == cloneGeometriesItem)
2074
+ if (source == cloneGeometriesItem)
19902075 {
19912076 boolean one = false;
19922077
....@@ -2012,7 +2097,7 @@
20122097 ResetModel();
20132098 refreshContents();
20142099 } else
2015
- if (event.getSource() == shareGeometriesItem)
2100
+ if (source == shareGeometriesItem)
20162101 {
20172102 boolean one = false;
20182103
....@@ -2042,7 +2127,7 @@
20422127 refreshContents();
20432128 }
20442129 } else
2045
- if (event.getSource() == mergeGeometriesItem)
2130
+ if (source == mergeGeometriesItem)
20462131 {
20472132 boolean one = false;
20482133
....@@ -2072,7 +2157,7 @@
20722157 ResetModel();
20732158 refreshContents();
20742159 } else
2075
- if (event.getSource() == linkverticesItem)
2160
+ if (source == linkverticesItem)
20762161 {
20772162 // if (group.selection.size() == 1 && GrafreeD.clipboard.size() == 1)
20782163 // {
....@@ -2092,41 +2177,41 @@
20922177 if (content instanceof cGroup && ((cGroup)content).transientlink )
20932178 content = ((cGroup)content).get(0);
20942179
2095
- CameraPane.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.WAIT_CURSOR));
2180
+ Globals.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.WAIT_CURSOR));
20962181 for (int i=0; i<group.selection.size(); i++)
20972182 {
2098
- boolean random = CameraPane.RANDOM;
2099
- CameraPane.RANDOM = false; // parse all random nodes
2183
+ boolean random = CameraPane.SWITCH;
2184
+ CameraPane.SWITCH = false; // parse all random nodes
21002185 group.selection.get(i).linkVerticesThis(content);
21012186 // group.selection.get(i).setMasterThis(content); // should be identity
2102
- CameraPane.RANDOM = random;
2187
+ CameraPane.SWITCH = random;
21032188 }
2104
- CameraPane.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.DEFAULT_CURSOR));
2189
+ Globals.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.DEFAULT_CURSOR));
21052190 refreshContents();
21062191 }
21072192 } else
2108
- if (event.getSource() == resetsupportItem)
2193
+ if (source == resetsupportItem)
21092194 {
21102195 for (int i=0; i<group.selection.size(); i++)
21112196 {
2112
- boolean random = CameraPane.RANDOM;
2113
- CameraPane.RANDOM = false; // parse all random nodes
2197
+ boolean random = CameraPane.SWITCH;
2198
+ CameraPane.SWITCH = false; // parse all random nodes
21142199 group.selection.get(i).linkVerticesThis(null);
2115
- CameraPane.RANDOM = random;
2200
+ CameraPane.SWITCH = random;
21162201 }
21172202
21182203 refreshContents();
21192204 } else
2120
- if (event.getSource() == relinkverticesItem)
2205
+ if (source == relinkverticesItem)
21212206 {
2122
- boolean random = CameraPane.RANDOM;
2123
- CameraPane.RANDOM = false; // parse all random nodes
2207
+ boolean random = CameraPane.SWITCH;
2208
+ CameraPane.SWITCH = false; // parse all random nodes
21242209 group.selection.RelinkToSupport();
2125
- CameraPane.RANDOM = random;
2210
+ CameraPane.SWITCH = random;
21262211
21272212 refreshContents();
21282213 } else
2129
- if (event.getSource() == resetreferencesItem)
2214
+ if (source == resetreferencesItem)
21302215 {
21312216 for (int i=0; i<group.selection.size(); i++)
21322217 {
....@@ -2135,7 +2220,7 @@
21352220
21362221 refreshContents();
21372222 } else
2138
- if (event.getSource() == setMasterItem)
2223
+ if (source == setMasterItem)
21392224 {
21402225 if (group.selection.size() == 1 && GrafreeD.clipboard.size() == 1)
21412226 {
....@@ -2148,7 +2233,7 @@
21482233 refreshContents();
21492234 }
21502235 } else
2151
- if (event.getSource() == poseMeshItem)
2236
+ if (source == poseMeshItem)
21522237 {
21532238 if (group.selection.size() == 1)
21542239 {
....@@ -2167,19 +2252,19 @@
21672252 }
21682253
21692254 } else
2170
- if (event.getSource() == revertMeshItem)
2255
+ if (source == revertMeshItem)
21712256 {
21722257 RevertMeshes();
21732258 } else
2174
- if (event.getSource() == resetMeshItem)
2259
+ if (source == resetMeshItem)
21752260 {
21762261 ResetAll();
21772262 } else
2178
- if (event.getSource() == stepAllItem)
2263
+ if (source == stepAllItem)
21792264 {
21802265 StepAll();
21812266 } else
2182
- if (event.getSource() == clearItem) // || event.getSource() == clearButton)
2267
+ if (source == clearItem) // || event.getSource() == clearButton)
21832268 {
21842269 //int indices[] = jList.getSelectedIndices();
21852270 //for (int i = indices.length - 1; i >= 0; i--)
....@@ -2187,46 +2272,46 @@
21872272
21882273 ClearSelection(false);
21892274 } else
2190
- if (event.getSource() == clearAllItem)
2275
+ if (source == clearAllItem)
21912276 {
21922277 ClearSelection(true);
21932278 } else
2194
- if (event.getSource() == grabItem)
2279
+ if (source == grabItem)
21952280 {
21962281 group(new cGroup(), true);
21972282 } else
2198
- if (event.getSource() == hideItem)
2283
+ if (source == hideItem)
21992284 {
22002285 group(new HiddenObject());
22012286 } else
2202
- if (event.getSource() == frontItem)
2287
+ if (source == frontItem)
22032288 {
22042289 front();
22052290 } else
2206
- if (event.getSource() == backItem)
2291
+ if (source == backItem)
22072292 {
22082293 back();
22092294 } else
2210
- if (event.getSource() == cameraItem)
2295
+ if (source == cameraItem)
22112296 {
22122297 makeSomething(new Camera());
22132298 } else
2214
- if (event.getSource() == compositeItem)
2299
+ if (source == compositeItem)
22152300 {
22162301 group(new Composite());
22172302 } else
2218
- if (event.getSource() == randomItem)
2303
+ if (source == randomItem)
22192304 {
22202305 RandomNode random = new RandomNode();
22212306 group(random);
22222307 if (random.size() > 0)
2223
- random.name = random.get(0).name + "Rnd";
2308
+ random.name = random.get(0).name + "Switch";
22242309 } else
2225
- if (event.getSource() == physicsItem)
2310
+ if (source == physicsItem)
22262311 {
22272312 group(new PhysicsNode());
22282313 } else
2229
- if (event.getSource() == frameselectorItem)
2314
+ if (source == frameselectorItem)
22302315 {
22312316 for (int i=0; i<group.selection.size(); i++)
22322317 {
....@@ -2238,7 +2323,7 @@
22382323 ResetModel();
22392324 refreshContents();
22402325 } else
2241
- if (event.getSource() == switchGeoItem)
2326
+ if (source == switchGeoItem)
22422327 {
22432328 for (int i=0; i<group.selection.size(); i++)
22442329 {
....@@ -2250,7 +2335,7 @@
22502335 ResetModel();
22512336 refreshContents();
22522337 } else
2253
- if (event.getSource() == switchTransfoItem)
2338
+ if (source == switchTransfoItem)
22542339 {
22552340 for (int i=0; i<group.selection.size(); i++)
22562341 {
....@@ -2262,7 +2347,7 @@
22622347 ResetModel();
22632348 refreshContents();
22642349 } else
2265
- if (event.getSource() == morphItem)
2350
+ if (source == morphItem)
22662351 {
22672352 for (int i=0; i<group.selection.size(); i++)
22682353 {
....@@ -2274,7 +2359,7 @@
22742359 ResetModel();
22752360 refreshContents();
22762361 } else
2277
- if (event.getSource() == scriptNodeItem)
2362
+ if (source == scriptNodeItem)
22782363 {
22792364 boolean atleastone = false;
22802365
....@@ -2313,31 +2398,31 @@
23132398 }
23142399 }
23152400 } else
2316
- if (event.getSource() == linkerItem)
2401
+ if (source == linkerItem)
23172402 {
23182403 group(new cLinker());
23192404 } else
2320
- if (event.getSource() == textureItem)
2405
+ if (source == textureItem)
23212406 {
23222407 group(new TextureNode());
23232408 } else
2324
- if (event.getSource() == billboardItem)
2409
+ if (source == billboardItem)
23252410 {
23262411 group(new BillboardNode());
23272412 } else
2328
- if (event.getSource() == shadowXItem)
2413
+ if (source == shadowXItem)
23292414 {
23302415 CastShadow(0);
23312416 } else
2332
- if (event.getSource() == shadowYItem)
2417
+ if (source == shadowYItem)
23332418 {
23342419 CastShadow(1);
23352420 } else
2336
- if (event.getSource() == shadowZItem)
2421
+ if (source == shadowZItem)
23372422 {
23382423 CastShadow(2);
23392424 } else
2340
- if (event.getSource() == ungroupItem)
2425
+ if (source == ungroupItem)
23412426 {
23422427 //ungroup();
23432428 for (int i=0; i<group.selection.size(); i++)
....@@ -2349,179 +2434,179 @@
23492434
23502435 refreshContents();
23512436 } else
2352
- if (event.getSource() == genUVItem)
2437
+ if (source == genUVItem)
23532438 {
23542439 GenUV();
23552440 } else
2356
- if (event.getSource() == genNormalsCADItem)
2441
+ if (source == genNormalsCADItem)
23572442 {
23582443 GenNormals(true);
23592444 } else
2360
- if (event.getSource() == genNormalsMESHItem)
2445
+ if (source == genNormalsMESHItem)
23612446 {
23622447 GenNormals(true); // TODO
23632448 } else
2364
- if (event.getSource() == genNormalsORGANItem)
2449
+ if (source == genNormalsORGANItem)
23652450 {
23662451 GenNormals(false);
23672452 } else
2368
- if (event.getSource() == genNormalsMINEItem)
2453
+ if (source == genNormalsMINEItem)
23692454 {
23702455 GenNormalsMINE();
23712456 } else
2372
- if (event.getSource() == stripifyItem)
2457
+ if (source == stripifyItem)
23732458 {
23742459 Stripify();
23752460 } else
2376
- if (event.getSource() == unstripifyItem)
2461
+ if (source == unstripifyItem)
23772462 {
23782463 Unstripify();
23792464 } else
2380
- if (event.getSource() == trimItem)
2465
+ if (source == trimItem)
23812466 {
23822467 Trim();
23832468 } else
2384
- if (event.getSource() == untrimItem)
2469
+ if (source == untrimItem)
23852470 {
23862471 Untrim();
23872472 } else
2388
- if (event.getSource() == clearColorsItem)
2473
+ if (source == clearColorsItem)
23892474 {
23902475 ClearColors();
23912476 } else
2392
- if (event.getSource() == clearMaterialsItem)
2477
+ if (source == clearMaterialsItem)
23932478 {
23942479 ClearMaterials();
23952480 } else
2396
- if (event.getSource() == liveleavesItem)
2481
+ if (source == liveleavesItem)
23972482 {
23982483 LiveLeaves(true);
23992484 } else
2400
- if (event.getSource() == unliveleavesItem)
2485
+ if (source == unliveleavesItem)
24012486 {
24022487 LiveLeaves(false);
24032488 } else
2404
- if (event.getSource() == supportleavesItem)
2489
+ if (source == supportleavesItem)
24052490 {
24062491 SupportLeaves(true);
24072492 } else
2408
- if (event.getSource() == unsupportleavesItem)
2493
+ if (source == unsupportleavesItem)
24092494 {
24102495 SupportLeaves(false);
24112496 } else
2412
- if (event.getSource() == hideleavesItem)
2497
+ if (source == hideleavesItem)
24132498 {
24142499 HideLeaves(true);
24152500 } else
2416
- if (event.getSource() == showleavesItem)
2501
+ if (source == showleavesItem)
24172502 {
24182503 HideLeaves(false);
24192504 } else
2420
- if (event.getSource() == markleavesItem)
2505
+ if (source == markleavesItem)
24212506 {
24222507 MarkLeaves(true);
24232508 } else
2424
- if (event.getSource() == unmarkleavesItem)
2509
+ if (source == unmarkleavesItem)
24252510 {
24262511 MarkLeaves(false);
24272512 } else
2428
- if (event.getSource() == flipVItem)
2513
+ if (source == flipVItem)
24292514 {
24302515 FlipV(true);
24312516 } else
2432
- if (event.getSource() == unflipVItem)
2517
+ if (source == unflipVItem)
24332518 {
24342519 FlipV(false);
24352520 } else
2436
- if (event.getSource() == lowTexturesItem)
2521
+ if (source == lowTexturesItem)
24372522 {
24382523 SetTexRes(0);
24392524 } else
2440
- if (event.getSource() == normalTexturesItem)
2525
+ if (source == normalTexturesItem)
24412526 {
24422527 SetTexRes(1);
24432528 } else
2444
- if (event.getSource() == highTexturesItem)
2529
+ if (source == highTexturesItem)
24452530 {
24462531 SetTexRes(2);
24472532 } else
2448
- if (event.getSource() == veryhighTexturesItem)
2533
+ if (source == veryhighTexturesItem)
24492534 {
24502535 SetTexRes(3);
24512536 } else
2452
- if (event.getSource() == maxTexturesItem)
2537
+ if (source == maxTexturesItem)
24532538 {
24542539 SetTexRes(4);
24552540 } else
2456
- if (event.getSource() == panoTexturesItem)
2541
+ if (source == panoTexturesItem)
24572542 {
24582543 SetTexRes(5);
24592544 } else
2460
- if (event.getSource() == reverseNormalsItem)
2545
+ if (source == reverseNormalsItem)
24612546 {
24622547 ReverseNormals();
24632548 } else
2464
- if (event.getSource() == parseverticesItem)
2549
+ if (source == parseverticesItem)
24652550 {
24662551 ParseVertices();
24672552 } else
2468
- if (event.getSource() == textureFieldItem)
2553
+ if (source == textureFieldItem)
24692554 {
24702555 TextureVertices();
24712556 } else
2472
- if (event.getSource() == alignItem)
2557
+ if (source == alignItem)
24732558 {
24742559 Align();
24752560 } else
2476
- if (event.getSource() == mirrorItem)
2561
+ if (source == mirrorItem)
24772562 {
24782563 MirrorPoses();
24792564 } else
2480
- if (event.getSource() == reduceMorphItem)
2565
+ if (source == reduceMorphItem)
24812566 {
24822567 MeshReduction(false);
24832568 } else
2484
- if (event.getSource() == reduce34MorphItem)
2569
+ if (source == reduce34MorphItem)
24852570 {
24862571 MeshReduction(true);
24872572 } else
2488
- if (event.getSource() == reverseTrianglesItem)
2573
+ if (source == reverseTrianglesItem)
24892574 {
24902575 ReverseTriangles();
24912576 } else
2492
- if (event.getSource() == reduceMeshItem)
2577
+ if (source == reduceMeshItem)
24932578 {
24942579 ReduceMesh(false);
24952580 } else
2496
- if (event.getSource() == reduce34MeshItem)
2581
+ if (source == reduce34MeshItem)
24972582 {
24982583 ReduceMesh(true);
24992584 } else
2500
- if (event.getSource() == increaseMeshItem)
2585
+ if (source == increaseMeshItem)
25012586 {
25022587 IncreaseMesh();
25032588 } else
2504
- if (event.getSource() == clipMeshItem)
2589
+ if (source == clipMeshItem)
25052590 {
25062591 ClipMesh();
25072592 } else
2508
- if (event.getSource() == smoothMeshItem)
2593
+ if (source == smoothMeshItem)
25092594 {
25102595 SmoothMesh();
25112596 } else
2512
- if (event.getSource() == transformgeometryItem)
2597
+ if (source == transformgeometryItem)
25132598 {
25142599 TransformGeometry();
25152600 } else
2516
- if (event.getSource() == resetTransformItem)
2601
+ if (source == resetTransformItem)
25172602 {
25182603 ResetTransform();
25192604 } else
2520
- if (event.getSource() == resetCentroidItem)
2605
+ if (source == resetCentroidItem)
25212606 {
25222607 ResetCentroid();
25232608 } else
2524
- if (event.getSource() == resetParentItem)
2609
+ if (source == resetParentItem)
25252610 {
25262611 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
25272612 {
....@@ -2531,7 +2616,7 @@
25312616
25322617 refreshContents();
25332618 } else
2534
- if (event.getSource() == repairParentItem)
2619
+ if (source == repairParentItem)
25352620 {
25362621 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
25372622 {
....@@ -2545,7 +2630,21 @@
25452630
25462631 refreshContents();
25472632 } else
2548
- if (event.getSource() == sortbysizeItem)
2633
+ if (source == repairShadowItem)
2634
+ {
2635
+ for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
2636
+ {
2637
+ Object3D obj = (Object3D)e.nextElement();
2638
+ obj.RepairShadow();
2639
+// for (int i=0; i<obj.size(); i++)
2640
+// {
2641
+// obj.get(i).parent = obj;
2642
+// }
2643
+ }
2644
+
2645
+ refreshContents();
2646
+ } else
2647
+ if (source == sortbysizeItem)
25492648 {
25502649 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
25512650 {
....@@ -2557,7 +2656,7 @@
25572656 ResetModel();
25582657 refreshContents();
25592658 } else
2560
- if (event.getSource() == sortbynameItem)
2659
+ if (source == sortbynameItem)
25612660 {
25622661 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
25632662 {
....@@ -2569,7 +2668,7 @@
25692668 ResetModel();
25702669 refreshContents();
25712670 } else
2572
- if (event.getSource() == attachPigmentItem)
2671
+ if (source == attachPigmentItem)
25732672 {
25742673 String texture = GetFile("Attach pigment");
25752674 Object3D obj;
....@@ -2581,7 +2680,7 @@
25812680
25822681 refreshContents();
25832682 } else
2584
- if (event.getSource() == detachPigmentItem)
2683
+ if (source == detachPigmentItem)
25852684 {
25862685 Object3D obj;
25872686 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -2592,7 +2691,7 @@
25922691
25932692 refreshContents();
25942693 } else
2595
- if (event.getSource() == attachBumpItem)
2694
+ if (source == attachBumpItem)
25962695 {
25972696 String texture = GetFile("Attach bump");
25982697 Object3D obj;
....@@ -2604,7 +2703,7 @@
26042703
26052704 refreshContents();
26062705 } else
2607
- if (event.getSource() == detachBumpItem)
2706
+ if (source == detachBumpItem)
26082707 {
26092708 Object3D obj;
26102709 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -2615,7 +2714,7 @@
26152714
26162715 refreshContents();
26172716 } else
2618
- if (event.getSource() == pigmentBumpItem)
2717
+ if (source == pigmentBumpItem)
26192718 {
26202719 Object3D obj;
26212720 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -2626,158 +2725,195 @@
26262725
26272726 refreshContents();
26282727 } else
2629
- if (event.getSource() == flashSelectionButton)
2728
+ if (source == flashSelectionButton)
26302729 {
26312730 CameraPane.flash = true;
26322731 refreshContents();
26332732 } else
2634
- if (event.getSource() == oneButton)
2733
+ if (source == oneButton)
26352734 {
26362735 } else
2637
- if (event.getSource() == twoButton)
2736
+ if (source == twoButton)
26382737 {
26392738 radio.layout = twoButton;
26402739 // bug
26412740 //gridPanel.setDividerLocation(1.0);
26422741 //bigPanel.setDividerLocation(0.0);
2643
- bigThree.remove(scenePanel);
2644
- bigThree.remove(centralPanel);
2645
- bigThree.remove(XYZPanel);
2646
- aWindowConstraints.gridx = 0;
2647
- aWindowConstraints.gridy = 0;
2648
- aWindowConstraints.gridwidth = 1;
2649
- // aConstraints.gridheight = 3;
2650
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2651
- aWindowConstraints.weightx = 0;
2652
- aWindowConstraints.weighty = 1;
2653
- //bigThree.add(jtp, aWindowConstraints);
2654
- aWindowConstraints.weightx = 1;
2655
- aWindowConstraints.gridwidth = 3;
2656
- // aConstraints.gridheight = 3;
2657
- aWindowConstraints.gridx = 1;
2658
- aWindowConstraints.fill = GridBagConstraints.BOTH;
2659
- bigThree.add(centralPanel, aWindowConstraints);
2660
- aWindowConstraints.weightx = 0;
2661
- aWindowConstraints.gridx = 4;
2662
- aWindowConstraints.gridwidth = 1;
2663
- // aConstraints.gridheight = 3;
2664
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2665
- //bigThree.add(XYZPanel, aWindowConstraints);
2666
- bigThree.revalidate();
2742
+// bigThree.remove(scenePanel);
2743
+// bigThree.remove(centralPanel);
2744
+// bigThree.remove(XYZPanel);
2745
+// aWindowConstraints.gridx = 0;
2746
+// aWindowConstraints.gridy = 0;
2747
+// aWindowConstraints.gridwidth = 1;
2748
+// // aConstraints.gridheight = 3;
2749
+// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2750
+// aWindowConstraints.weightx = 0;
2751
+// aWindowConstraints.weighty = 1;
2752
+// //bigThree.add(jtp, aWindowConstraints);
2753
+// aWindowConstraints.weightx = 1;
2754
+// aWindowConstraints.gridwidth = 3;
2755
+// // aConstraints.gridheight = 3;
2756
+// aWindowConstraints.gridx = 1;
2757
+// aWindowConstraints.fill = GridBagConstraints.BOTH;
2758
+// bigThree.add(centralPanel, aWindowConstraints);
2759
+// aWindowConstraints.weightx = 0;
2760
+// aWindowConstraints.gridx = 4;
2761
+// aWindowConstraints.gridwidth = 1;
2762
+// // aConstraints.gridheight = 3;
2763
+// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2764
+// //bigThree.add(XYZPanel, aWindowConstraints);
2765
+// scenePanel.setVisible(false);
2766
+// centralPanel.setVisible(true);
2767
+// XYZPanel.setVisible(false);
2768
+ bigThree.ClearUI();
2769
+ bigThree.add(centralPanel);
2770
+ bigThree.FlushUI();
26672771 } else
2668
- if (event.getSource() == threeButton)
2772
+ if (source == threeButton)
26692773 {
26702774 radio.layout = threeButton;
2671
- bigThree.remove(scenePanel);
2672
- bigThree.remove(centralPanel);
2673
- bigThree.remove(XYZPanel);
2674
- aWindowConstraints.gridx = 0;
2675
- aWindowConstraints.gridy = 0;
2676
- aWindowConstraints.gridwidth = 1;
2677
- // aConstraints.gridheight = 3;
2678
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2679
- aWindowConstraints.weightx = 0;
2680
- aWindowConstraints.weighty = 1;
2681
- //bigThree.add(jtp, aWindowConstraints);
2682
- aWindowConstraints.weightx = 1;
2683
- aWindowConstraints.gridwidth = 3;
2684
- // aConstraints.gridheight = 3;
2685
- aWindowConstraints.gridx = 1;
2686
- aWindowConstraints.fill = GridBagConstraints.BOTH;
2687
- bigThree.add(centralPanel, aWindowConstraints);
2688
- aWindowConstraints.weightx = 0;
2689
- aWindowConstraints.gridx = 4;
2690
- aWindowConstraints.gridwidth = 1;
2691
- // aConstraints.gridheight = 3;
2692
- aConstraints.fill = GridBagConstraints.VERTICAL;
2693
- bigThree.add(XYZPanel, aWindowConstraints);
2694
- bigThree.revalidate();
2775
+
2776
+// bigThree.remove(scenePanel);
2777
+// bigThree.remove(centralPanel);
2778
+// bigThree.remove(XYZPanel);
2779
+// aWindowConstraints.gridx = 0;
2780
+// aWindowConstraints.gridy = 0;
2781
+// aWindowConstraints.gridwidth = 1;
2782
+// // aConstraints.gridheight = 3;
2783
+// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2784
+// aWindowConstraints.weightx = 0;
2785
+// aWindowConstraints.weighty = 1;
2786
+// //bigThree.add(jtp, aWindowConstraints);
2787
+// aWindowConstraints.weightx = 1;
2788
+// aWindowConstraints.gridwidth = 3;
2789
+// // aConstraints.gridheight = 3;
2790
+// aWindowConstraints.gridx = 1;
2791
+// aWindowConstraints.fill = GridBagConstraints.BOTH;
2792
+// bigThree.add(centralPanel, aWindowConstraints);
2793
+// aWindowConstraints.weightx = 0;
2794
+// aWindowConstraints.gridx = 4;
2795
+// aWindowConstraints.gridwidth = 1;
2796
+// // aConstraints.gridheight = 3;
2797
+// aConstraints.fill = GridBagConstraints.VERTICAL;
2798
+// bigThree.add(XYZPanel, aWindowConstraints);
2799
+// bigThree.validate();
2800
+// scenePanel.setVisible(false);
2801
+// centralPanel.setVisible(true);
2802
+// XYZPanel.setVisible(true);
2803
+ bigThree.ClearUI();
2804
+ bigThree.add(centralPanel);
2805
+ bigThree.add(XYZPanel);
2806
+ bigThree.FlushUI();
26952807 } else
2696
- if (event.getSource() == fourButton)
2808
+ if (source == fourButton)
26972809 {
26982810 radio.layout = fourButton;
2699
- bigThree.remove(scenePanel);
2700
- bigThree.remove(centralPanel);
2701
- bigThree.remove(XYZPanel);
2702
- aWindowConstraints.gridx = 0;
2703
- aWindowConstraints.gridy = 0;
2704
- aWindowConstraints.gridwidth = 1;
2705
- // aWindowConstraints.gridheight = 3;
2706
- aWindowConstraints.fill = GridBagConstraints.BOTH;
2707
- aWindowConstraints.weightx = 1;
2708
- aWindowConstraints.weighty = 1;
2709
- bigThree.add(scenePanel, aWindowConstraints);
2710
- aWindowConstraints.weightx = 1;
2711
- aWindowConstraints.gridwidth = 3;
2712
- // aConstraints.gridheight = 3;
2713
- aWindowConstraints.gridx = 1;
2714
- aWindowConstraints.fill = GridBagConstraints.BOTH;
2715
- //bigThree.add(cameraPanel, aWindowConstraints);
2716
- aWindowConstraints.weightx = 0;
2717
- aWindowConstraints.gridx = 4;
2718
- aWindowConstraints.gridwidth = 1;
2719
- // aWindowConstraints.gridheight = 3;
2720
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2721
- //bigThree.add(XYZPanel, aWindowConstraints);
2722
- bigThree.revalidate();
2811
+
2812
+// bigThree.remove(scenePanel);
2813
+// bigThree.remove(centralPanel);
2814
+// bigThree.remove(XYZPanel);
2815
+// aWindowConstraints.gridx = 0;
2816
+// aWindowConstraints.gridy = 0;
2817
+// aWindowConstraints.gridwidth = 1;
2818
+// // aWindowConstraints.gridheight = 3;
2819
+// aWindowConstraints.fill = GridBagConstraints.BOTH;
2820
+// aWindowConstraints.weightx = 1;
2821
+// aWindowConstraints.weighty = 1;
2822
+// bigThree.add(scenePanel, aWindowConstraints);
2823
+// aWindowConstraints.weightx = 1;
2824
+// aWindowConstraints.gridwidth = 3;
2825
+// // aConstraints.gridheight = 3;
2826
+// aWindowConstraints.gridx = 1;
2827
+// aWindowConstraints.fill = GridBagConstraints.BOTH;
2828
+// //bigThree.add(cameraPanel, aWindowConstraints);
2829
+// aWindowConstraints.weightx = 0;
2830
+// aWindowConstraints.gridx = 4;
2831
+// aWindowConstraints.gridwidth = 1;
2832
+// // aWindowConstraints.gridheight = 3;
2833
+// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2834
+// //bigThree.add(XYZPanel, aWindowConstraints);
2835
+// bigThree.validate();
2836
+// scenePanel.setVisible(true);
2837
+// centralPanel.setVisible(false);
2838
+// XYZPanel.setVisible(false);
2839
+ bigThree.ClearUI();
2840
+ bigThree.add(scenePanel);
2841
+ bigThree.FlushUI();
27232842 } else
2724
- if (event.getSource() == sixButton)
2843
+ if (source == sixButton)
27252844 {
27262845 radio.layout = sixButton;
2727
- bigThree.remove(scenePanel);
2728
- bigThree.remove(centralPanel);
2729
- bigThree.remove(XYZPanel);
2730
- aWindowConstraints.gridx = 0;
2731
- aWindowConstraints.gridy = 0;
2732
- aWindowConstraints.gridwidth = 1;
2733
- // aConstraints.gridheight = 3;
2734
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2735
- aWindowConstraints.weightx = 0;
2736
- aWindowConstraints.weighty = 1;
2737
- bigThree.add(scenePanel, aWindowConstraints);
2738
- aWindowConstraints.weightx = 1;
2739
- aWindowConstraints.gridwidth = 3;
2740
- // aWindowConstraints.gridheight = 3;
2741
- aWindowConstraints.gridx = 1;
2742
- aWindowConstraints.fill = GridBagConstraints.BOTH;
2743
- bigThree.add(centralPanel, aWindowConstraints);
2744
- aWindowConstraints.weightx = 0;
2745
- aWindowConstraints.gridx = 4;
2746
- aWindowConstraints.gridwidth = 1;
2747
- // aWindowConstraints.gridheight = 3;
2748
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2749
- //bigThree.add(XYZPanel, aConstraints);
2750
- bigThree.revalidate();
2846
+
2847
+// bigThree.remove(scenePanel);
2848
+// bigThree.remove(centralPanel);
2849
+// bigThree.remove(XYZPanel);
2850
+// aWindowConstraints.gridx = 0;
2851
+// aWindowConstraints.gridy = 0;
2852
+// aWindowConstraints.gridwidth = 1;
2853
+// // aConstraints.gridheight = 3;
2854
+// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2855
+// aWindowConstraints.weightx = 0;
2856
+// aWindowConstraints.weighty = 1;
2857
+// bigThree.add(scenePanel, aWindowConstraints);
2858
+// aWindowConstraints.weightx = 1;
2859
+// aWindowConstraints.gridwidth = 3;
2860
+// // aWindowConstraints.gridheight = 3;
2861
+// aWindowConstraints.gridx = 1;
2862
+// aWindowConstraints.fill = GridBagConstraints.BOTH;
2863
+// bigThree.add(centralPanel, aWindowConstraints);
2864
+// aWindowConstraints.weightx = 0;
2865
+// aWindowConstraints.gridx = 4;
2866
+// aWindowConstraints.gridwidth = 1;
2867
+// // aWindowConstraints.gridheight = 3;
2868
+// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2869
+// //bigThree.add(XYZPanel, aConstraints);
2870
+// bigThree.validate();
2871
+// scenePanel.setVisible(true);
2872
+// centralPanel.setVisible(true);
2873
+// XYZPanel.setVisible(false);
2874
+ bigThree.ClearUI();
2875
+ bigThree.add(scenePanel);
2876
+ bigThree.add(centralPanel);
2877
+ bigThree.FlushUI();
27512878 } else
2752
- if (event.getSource() == sevenButton)
2879
+ if (source == sevenButton)
27532880 {
27542881 radio.layout = sevenButton;
2755
- bigThree.remove(scenePanel);
2756
- bigThree.remove(centralPanel);
2757
- bigThree.remove(XYZPanel);
2758
- aWindowConstraints.gridx = 0;
2759
- aWindowConstraints.gridy = 0;
2760
- aWindowConstraints.gridwidth = 1;
2761
- // aWindowConstraints.gridheight = 3;
2762
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2763
- aWindowConstraints.weightx = 0;
2764
- aWindowConstraints.weighty = 1;
2765
- bigThree.add(scenePanel, aWindowConstraints);
2766
- aWindowConstraints.weightx = 1;
2767
- aWindowConstraints.gridwidth = 3;
2768
- // aWindowConstraints.gridheight = 3;
2769
- aWindowConstraints.gridx = 1;
2770
- aWindowConstraints.fill = GridBagConstraints.BOTH;
2771
- bigThree.add(centralPanel, aWindowConstraints);
2772
- aWindowConstraints.weightx = 0;
2773
- aWindowConstraints.gridx = 4;
2774
- aWindowConstraints.gridwidth = 1;
2775
- // aConstraints.gridheight = 3;
2776
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2777
- bigThree.add(XYZPanel, aWindowConstraints);
2778
- bigThree.revalidate();
2882
+
2883
+// bigThree.remove(scenePanel);
2884
+// bigThree.remove(centralPanel);
2885
+// bigThree.remove(XYZPanel);
2886
+// aWindowConstraints.gridx = 0;
2887
+// aWindowConstraints.gridy = 0;
2888
+// aWindowConstraints.gridwidth = 1;
2889
+// // aWindowConstraints.gridheight = 3;
2890
+// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2891
+// aWindowConstraints.weightx = 0;
2892
+// aWindowConstraints.weighty = 1;
2893
+// bigThree.add(scenePanel, aWindowConstraints);
2894
+// aWindowConstraints.weightx = 1;
2895
+// aWindowConstraints.gridwidth = 3;
2896
+// // aWindowConstraints.gridheight = 3;
2897
+// aWindowConstraints.gridx = 1;
2898
+// aWindowConstraints.fill = GridBagConstraints.BOTH;
2899
+// bigThree.add(centralPanel, aWindowConstraints);
2900
+// aWindowConstraints.weightx = 0;
2901
+// aWindowConstraints.gridx = 4;
2902
+// aWindowConstraints.gridwidth = 1;
2903
+// // aConstraints.gridheight = 3;
2904
+// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2905
+// bigThree.add(XYZPanel, aWindowConstraints);
2906
+// bigThree.validate();
2907
+// scenePanel.setVisible(true);
2908
+// centralPanel.setVisible(true);
2909
+// XYZPanel.setVisible(true);
2910
+ bigThree.ClearUI();
2911
+ bigThree.add(scenePanel);
2912
+ bigThree.add(centralPanel);
2913
+ bigThree.add(XYZPanel);
2914
+ bigThree.FlushUI();
27792915 } else
2780
- if (event.getSource() == rootButton)
2916
+ if (source == rootButton)
27812917 {
27822918 Object3D obj;
27832919 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -2789,7 +2925,7 @@
27892925
27902926 refreshContents(true);
27912927 } else
2792
- if (event.getSource() == closeButton)
2928
+ if (source == closeButton)
27932929 {
27942930 //System.out.println("CLOSE: " + buttonGroup.getSelection());
27952931 cRadio ab;
....@@ -2810,11 +2946,11 @@
28102946 }
28112947 refreshContents(true);
28122948 } else
2813
- if (event.getSource() == editItem || event.getSource() == editButton)
2949
+ if (source == editItem || source == editButton)
28142950 {
28152951 EditSelection(false);
28162952 } else
2817
- if (event.getSource() == uneditButton)
2953
+ if (source == uneditButton)
28182954 {
28192955 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
28202956 {
....@@ -2826,12 +2962,12 @@
28262962
28272963 child.editWindow = null; // ???????????
28282964 }
2829
- objEditor.ctrlPanel.revalidate();
2965
+ objEditor.ctrlPanel.FlushUI();
28302966 //objEditor.jTree.clearSelection();
28312967 //objEditor.ResetSliders();
28322968 refreshContents(true);
28332969 } else
2834
- if (event.getSource() == clearPanelButton)
2970
+ if (source == clearPanelButton)
28352971 {
28362972 assert(copy == group);
28372973 //copy.ClearUI();
....@@ -2842,7 +2978,7 @@
28422978 listUI.clear();
28432979 refreshContents(true);
28442980 } else
2845
- if (event.getSource() == allParamsButton)
2981
+ if (source == allParamsButton)
28462982 {
28472983 assert(copy == group);
28482984
....@@ -2863,19 +2999,19 @@
28632999
28643000 refreshContents(true);
28653001 } else
2866
- if (event.getSource() == unselectButton)
3002
+ if (source == unselectButton)
28673003 {
28683004 objEditor.jTree.clearSelection();
28693005 // ?? oct 2012 GrafreeD.clipboard.clear();
28703006 objEditor.ResetSliders();
28713007 refreshContents(true);
28723008 } else
2873
- if(event.getSource() instanceof cRadio)
3009
+ if(source instanceof cRadio)
28743010 {
28753011 group.parent = keepparent;
28763012 group.attributes = 0;
28773013 //group.editWindow = null;
2878
- /*cRadio*/ radio = (cRadio)event.getSource();
3014
+ /*cRadio*/ radio = (cRadio)source;
28793015 Object3D obj = radio.GetObject();
28803016 System.out.println("Edit " + obj);
28813017 if (true) // obj instanceof Composite) // obj.parent == null) // obj instanceof Composite)
....@@ -2895,7 +3031,7 @@
28953031 }
28963032
28973033 copy = group;
2898
- //CameraPane.theRenderer.object = group;
3034
+ //Globals.theRenderer.object = group;
28993035 if(!useclient)
29003036 {
29013037 cameraView.renderCamera = radio.camera;
....@@ -2904,7 +3040,8 @@
29043040 cameraView.cameras[cameraView.cameracount] = radio.camera;
29053041 cameraView.targetLookAt.set(radio.camera.lookAt);
29063042 cameraView.object = group;
2907
- cameraView.lighttouched = true;
3043
+ //cameraView.lighttouched = true;
3044
+ Globals.lighttouched = true;
29083045 topView.object = group;
29093046 frontView.object = group;
29103047 sideView.object = group;
....@@ -2940,7 +3077,7 @@
29403077 if (useclient)
29413078 {
29423079 cameraView.object = client;
2943
- cameraView.lighttouched = true;
3080
+ Globals.lighttouched = true;
29443081 //topView.object = client;
29453082 //frontView.object = client;
29463083 //sideView.object = client;
....@@ -2948,7 +3085,7 @@
29483085 else
29493086 {
29503087 cameraView.object = group;
2951
- cameraView.lighttouched = true;
3088
+ Globals.lighttouched = true;
29523089 //topView.object = group;
29533090 //frontView.object = group;
29543091 //sideView.object = group;
....@@ -3456,7 +3593,7 @@
34563593 String pigment = Object3D.GetPigment(tex);
34573594 //String bump = Object3D.GetBump(tex);
34583595
3459
- com.sun.opengl.util.texture.TextureData texturedata = CameraPane.theRenderer.GetTextureData(pigment, false, node.texres);
3596
+ com.sun.opengl.util.texture.TextureData texturedata = Globals.theRenderer.GetTextureData(pigment, false, node.texres);
34603597
34613598 double s = v.s;
34623599
....@@ -3544,11 +3681,11 @@
35443681
35453682 SwitchNode sn = new SwitchNode(poses, Object3D.GEOMETRY);
35463683
3547
- boolean random = CameraPane.RANDOM;
3548
- CameraPane.RANDOM = false; // parse all random nodes
3684
+ boolean random = CameraPane.SWITCH;
3685
+ CameraPane.SWITCH = false; // parse all random nodes
35493686 lowres.linkVerticesThis(null);
35503687 lowres.linkVerticesThis(sn);
3551
- CameraPane.RANDOM = random;
3688
+ CameraPane.SWITCH = random;
35523689
35533690 System.err.flush();
35543691
....@@ -3757,7 +3894,7 @@
37573894 group.selection.RelinkToSupport(); // july 2014
37583895 System.out.println("DONE.");
37593896 refreshContents();
3760
- CameraPane.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.DEFAULT_CURSOR));
3897
+ Globals.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.DEFAULT_CURSOR));
37613898 }
37623899
37633900 void ReduceMesh(boolean reduction34)
....@@ -4033,25 +4170,25 @@
40334170 System.err.println("info : " + child.GetPath());
40344171 }
40354172 }
4036
- else
4037
- {
4038
- objEditor.SetMaterial(group); // .GetMaterial());
4039
- objEditor.AddInfo(group, this, true); // .GetMaterial());
4040
- System.err.println("info : " + group.GetPath());
4041
- }
4173
+// else
4174
+// {
4175
+// objEditor.SetMaterial(group); // .GetMaterial());
4176
+// objEditor.AddInfo(group, this, true); // .GetMaterial());
4177
+// System.err.println("info : " + group.GetPath());
4178
+// }
40424179
40434180 objEditor.SetText(); // jan 2014
40444181
4045
- if (flashIt && !CameraPane.isLIVE() && tps != null && tps.length > 0 && !(((Object3D) tps[0].getLastPathComponent()) instanceof Camera))
4182
+ if (flashIt && !Globals.isLIVE() && tps != null && tps.length > 0 && !(((Object3D) tps[0].getLastPathComponent()) instanceof Camera))
40464183 CameraPane.flash = true;
40474184
40484185 if (tps != null && tps.length > 0 && ((Object3D) tps[0].getLastPathComponent()) instanceof Camera)
40494186 // a camera
40504187 {
40514188 CameraPane.camerachangeframe = 0; // don't refuse it
4052
- CameraPane.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent());
4053
- // CameraPane.theRenderer.renderCamera = CameraPane.theRenderer.manipCamera;
4054
- // CameraPane.theRenderer.eyeCamera = CameraPane.theRenderer.manipCamera;
4189
+ Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent());
4190
+ // Globals.theRenderer.renderCamera = Globals.theRenderer.manipCamera;
4191
+ // Globals.theRenderer.eyeCamera = Globals.theRenderer.manipCamera;
40554192 }
40564193
40574194 refreshContents();
....@@ -4306,7 +4443,7 @@
43064443 refreshContents();
43074444 }
43084445
4309
- void pasteInto(boolean copyit)
4446
+ void pasteInto(boolean copyit, boolean clone)
43104447 {
43114448 // if (GrafreeD.clipboard == null)
43124449 // return;
....@@ -4335,7 +4472,14 @@
43354472 if (copyit)
43364473 {
43374474 // paste(false);
4338
- CloneClipboard(false); // sept 2014
4475
+ if (clone)
4476
+ {
4477
+ CloneClipboard(false); // sept 2014
4478
+ }
4479
+ else
4480
+ {
4481
+ paste(false);
4482
+ }
43394483 }
43404484 else
43414485 {
....@@ -4879,10 +5023,12 @@
48795023 cButton flashSelectionButton;
48805024 cButton editButton;
48815025 cButton uneditButton;
5026
+ JCheckBox allParamsButton;
48825027 cButton clearpanelButton;
4883
- cButton allParamsButton;
48845028 cButton unselectButton;
48855029
5030
+ cButton oneStepButton;
5031
+
48865032 cButton screenfitButton;
48875033 cButton screenfitpointButton;
48885034 cButton snapobjectButton;
....@@ -4937,6 +5083,7 @@
49375083 private MenuItem mergeGeometriesItem;
49385084 private MenuItem copyItem;
49395085 private MenuItem pasteItem;
5086
+ private MenuItem pasteIntoItem;
49405087 private MenuItem pasteLinkItem;
49415088 private MenuItem pasteCloneItem;
49425089 private MenuItem pasteExpandItem;
....@@ -5009,6 +5156,7 @@
50095156
50105157 private MenuItem resetParentItem;
50115158 private MenuItem repairParentItem;
5159
+ private MenuItem repairShadowItem;
50125160 private MenuItem sortbysizeItem;
50135161 private MenuItem sortbynameItem;
50145162
....@@ -5033,7 +5181,7 @@
50335181 private MenuItem blobItem;
50345182 private MenuItem latheItem;
50355183 private MenuItem bezierItem;
5036
- private MenuItem checkerItem;
5184
+ private MenuItem overlayItem;
50375185 private MenuItem meshItem;
50385186 // private MenuItem meshGroupItem;
50395187 private MenuItem springItem;