Normand Briere
2019-05-02 a7277e6c6381e55761f7fa87276260fac1c94d5e
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,17 +163,21 @@
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("-");
170174 cloneItem = menu.add(new MenuItem("Clone"));
171175 cloneItem.addActionListener(this);
176
+ if (Globals.ADVANCED)
177
+ {
172178 cloneSupportItem = menu.add(new MenuItem("Clone (+supports)"));
173179 cloneSupportItem.addActionListener(this);
180
+ }
174181 menu.add("-");
175182 cutItem = menu.add(new MenuItem("Cut"));
176183 cutItem.addActionListener(this);
....@@ -178,18 +185,31 @@
178185 copyItem.addActionListener(this);
179186 pasteItem = menu.add(new MenuItem("Paste"));
180187 pasteItem.addActionListener(this);
188
+ menu.add("-");
189
+
190
+ menu.add("-");
191
+ pasteIntoItem = menu.add(new MenuItem("Paste into"));
192
+ pasteIntoItem.addActionListener(this);
181193 pasteLinkItem = menu.add(new MenuItem("Paste link"));
182194 pasteLinkItem.addActionListener(this);
183195 pasteCloneItem = menu.add(new MenuItem("Paste clone"));
184196 pasteCloneItem.addActionListener(this);
185197 // pasteExpandItem = menu.add(new MenuItem("Paste expand"));
186198 // pasteExpandItem.addActionListener(this);
199
+ menu.add("-");
187200 clearItem = menu.add(new MenuItem("Clear"));
188201 clearItem.addActionListener(this);
202
+
203
+ if (Globals.ADVANCED)
204
+ {
205
+ // Deletes the cameras...
189206 clearAllItem = menu.add(new MenuItem("Clear All"));
190207 clearAllItem.addActionListener(this);
208
+ }
191209
192210 oe.menuBar.add(menu = new Menu("Setting"));
211
+ if (Globals.ADVANCED)
212
+ {
193213 resetMeshItem = menu.add(new MenuItem("Reset All"));
194214 resetMeshItem.addActionListener(this);
195215 stepAllItem = menu.add(new MenuItem("Step All"));
....@@ -199,6 +219,7 @@
199219 resetreferencesItem = menu.add(new MenuItem("Reset Mesh References"));
200220 resetreferencesItem.addActionListener(this);
201221 menu.add("-");
222
+ }
202223 overwriteGeoItem = menu.add(new MenuItem("Overwrite Geometry"));
203224 overwriteGeoItem.addActionListener(this);
204225 overwriteMatItem = menu.add(new MenuItem("Overwrite Material"));
....@@ -210,19 +231,26 @@
210231 overwriteUVItem = menu.add(new MenuItem("Overwrite UV"));
211232 overwriteUVItem.addActionListener(this);
212233 menu.add("-");
234
+ if (Globals.ADVANCED)
235
+ {
213236 generateMeshItem = menu.add(new MenuItem("Generate Meshes"));
214237 generateMeshItem.addActionListener(this);
215238 poseMeshItem = menu.add(new MenuItem("Set Pose Meshes"));
216239 poseMeshItem.addActionListener(this);
217240 menu.add("-");
241
+ }
218242 resetsupportItem = menu.add(new MenuItem("Reset support"));
219243 resetsupportItem.addActionListener(this);
220244 linkverticesItem = menu.add(new MenuItem("Link to Support"));
221245 linkverticesItem.addActionListener(this);
222246 relinkverticesItem = menu.add(new MenuItem("Re-link to Support"));
223247 relinkverticesItem.addActionListener(this);
248
+
249
+ if (Globals.ADVANCED)
250
+ {
224251 setMasterItem = menu.add(new MenuItem("Set Master Mesh"));
225252 setMasterItem.addActionListener(this);
253
+ }
226254
227255 oe.menuBar.add(menu = new Menu("Group"));
228256 grabItem = menu.add(new MenuItem("Grab"));
....@@ -233,27 +261,32 @@
233261 frontItem.addActionListener(this);
234262 compositeItem = menu.add(new MenuItem("Composite"));
235263 compositeItem.addActionListener(this);
236
- hideItem = menu.add(new MenuItem("Hide"));
264
+ hideItem = menu.add(new MenuItem("Hidden Group"));
237265 hideItem.addActionListener(this);
238266 ungroupItem = menu.add(new MenuItem("Ungroup"));
239267 ungroupItem.addActionListener(this);
240268 menu.add("-");
241
- randomItem = menu.add(new MenuItem("Random"));
269
+ randomItem = menu.add(new MenuItem("Switch node"));
242270 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);
247271 switchGeoItem = menu.add(new MenuItem("Switch Geometry"));
248272 switchGeoItem.addActionListener(this);
249273 switchTransfoItem = menu.add(new MenuItem("Switch Transform"));
250274 switchTransfoItem.addActionListener(this);
251
- morphItem = menu.add(new MenuItem("Morph"));
275
+ morphItem = menu.add(new MenuItem("Morph Group"));
252276 morphItem.addActionListener(this);
277
+
278
+ if (Globals.ADVANCED)
279
+ {
280
+ menu.add("-");
281
+ physicsItem = menu.add(new MenuItem("Physics"));
282
+ physicsItem.addActionListener(this);
283
+ frameselectorItem = menu.add(new MenuItem("Frame Selector"));
284
+ frameselectorItem.addActionListener(this);
253285 scriptNodeItem = menu.add(new MenuItem("Script Node"));
254286 scriptNodeItem.addActionListener(this);
255287 cameraItem = menu.add(new MenuItem("Camera"));
256288 cameraItem.addActionListener(this);
289
+ }
257290
258291 oe.menuBar.add(menu = new Menu("Object"));
259292 textureItem = menu.add(new MenuItem("Texture"));
....@@ -268,14 +301,18 @@
268301 shadowYItem.addActionListener(this);
269302 shadowZItem = menu.add(new MenuItem("Shadow Z"));
270303 shadowZItem.addActionListener(this);
304
+ if (Globals.ADVANCED)
305
+ {
306
+ menu.add("-");
271307 linkerItem = menu.add(new MenuItem("Linker"));
272308 linkerItem.addActionListener(this);
273
- templateItem = menu.add(new MenuItem("Template"));
274
- templateItem.addActionListener(this);
275309 attributeItem = menu.add(new MenuItem("Attribute"));
276310 attributeItem.addActionListener(this);
311
+ templateItem = menu.add(new MenuItem("Template"));
312
+ templateItem.addActionListener(this);
277313 pointflowItem = menu.add(new MenuItem("Point Flow"));
278314 pointflowItem.addActionListener(this);
315
+ }
279316 menu.add("-");
280317 resetTransformItem = menu.add(new MenuItem("Reset Transform"));
281318 resetTransformItem.addActionListener(this);
....@@ -293,8 +330,11 @@
293330 genNormalsCADItem.addActionListener(this);
294331 genNormalsMESHItem = menu.add(new MenuItem("Mesh Normals"));
295332 genNormalsMESHItem.addActionListener(this);
333
+ if (Globals.ADVANCED)
334
+ {
296335 genNormalsMINEItem = menu.add(new MenuItem("My Normals"));
297336 genNormalsMINEItem.addActionListener(this);
337
+ }
298338 stripifyItem = menu.add(new MenuItem("Stripify"));
299339 stripifyItem.addActionListener(this);
300340 unstripifyItem = menu.add(new MenuItem("Unstripify"));
....@@ -316,10 +356,14 @@
316356 reduce34MeshItem.addActionListener(this);
317357 increaseMeshItem = menu.add(new MenuItem("Increase mesh"));
318358 increaseMeshItem.addActionListener(this);
319
- smoothMeshItem = menu.add(new MenuItem("Smooth mesh"));
320
- smoothMeshItem.addActionListener(this);
321359 clipMeshItem = menu.add(new MenuItem("Clip mesh"));
322360 clipMeshItem.addActionListener(this);
361
+
362
+ if (Globals.ADVANCED)
363
+ {
364
+ smoothMeshItem = menu.add(new MenuItem("Smooth mesh"));
365
+ smoothMeshItem.addActionListener(this);
366
+ }
323367
324368 oe.menuBar.add(menu = new Menu("Attributes"));
325369 clearMaterialsItem = menu.add(new MenuItem("Clear Materials"));
....@@ -329,10 +373,13 @@
329373 liveleavesItem.addActionListener(this);
330374 unliveleavesItem = menu.add(new MenuItem("Unlive Leaves"));
331375 unliveleavesItem.addActionListener(this);
376
+ if (Globals.ADVANCED)
377
+ {
332378 supportleavesItem = menu.add(new MenuItem("Support Leaves"));
333379 supportleavesItem.addActionListener(this);
334380 unsupportleavesItem = menu.add(new MenuItem("Unsupport Leaves"));
335381 unsupportleavesItem.addActionListener(this);
382
+ }
336383 hideleavesItem = menu.add(new MenuItem("Hide Leaves"));
337384 hideleavesItem.addActionListener(this);
338385 showleavesItem = menu.add(new MenuItem("Show Leaves"));
....@@ -375,6 +422,8 @@
375422 sortbysizeItem.addActionListener(this);
376423 sortbynameItem = menu.add(new MenuItem("Sort by name"));
377424 sortbynameItem.addActionListener(this);
425
+ if (Globals.ADVANCED)
426
+ {
378427 menu.add("-");
379428 extractGeometriesItem = menu.add(new MenuItem("Link Geometry"));
380429 extractGeometriesItem.addActionListener(this);
....@@ -384,11 +433,11 @@
384433 shareGeometriesItem.addActionListener(this);
385434 mergeGeometriesItem = menu.add(new MenuItem("Merge Geometry"));
386435 mergeGeometriesItem.addActionListener(this);
436
+ }
387437
388438 oe.menuBar.add(menu = new Menu("Insert"));
389439 buildCreateMenu(menu);
390440
391
-
392441 oe.menuBar.add(menu = new Menu("Include"));
393442 importGFDItem = menu.add(new MenuItem("GrafreeD Object..."));
394443 importGFDItem.addActionListener(this);
....@@ -433,153 +482,98 @@
433482 oe.radioPanel.add(dummyButton);
434483 oe.buttonGroup.add(dummyButton);
435484 */
436
- aConstraints.gridy += 1;
437
- oe.aConstraints.gridwidth = 1;
438
- oe.aConstraints.gridx = 0;
485
+ //this.AddOptions(oe.toolbarPanel, oe.aConstraints);
439486
440
- oe.toolbarPanel.add(liveCB = new cCheckBox("Live", CameraPane.isLIVE()), oe.aConstraints);
487
+ oe.toolbarPanel.add(liveCB = new cCheckBox("Live", Globals.isLIVE())); //, oe.aConstraints);
488
+ liveCB.setToolTipText("Enabled animation");
441489 liveCB.addItemListener(this);
442490
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);
491
+ oe.toolbarPanel.add(oneStepButton = new cButton("Step", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
492
+ oneStepButton.setToolTipText("Animate one step forward");
493
+ oneStepButton.addActionListener(this);
494
+
495
+ oe.toolbarPanel.add(fastCB = new cCheckBox("Fast", CameraPane.FAST)); //, constraints);
496
+ fastCB.setToolTipText("Fast mode");
461497 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);
498
+
499
+ oe.toolbarPanel.add(trackCB = new cCheckBox("Track", CameraPane.TRACK)); //, oe.aConstraints);
500
+ trackCB.setToolTipText("Enable tracking");
503501 trackCB.addItemListener(this);
504502
505
- oe.aConstraints.gridx += 1;
506
- oe.toolbarPanel.add(screenfitButton = new cButton("@ ")); //, oe.aConstraints);
503
+ oe.toolbarPanel.add(screenfitButton = new cButton("@", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
504
+ screenfitButton.setToolTipText("Screen fit");
507505 screenfitButton.addActionListener(this);
508
- oe.aConstraints.gridx += 1;
506
+
509507 // oe.toolbarPanel.add(screenfitpointButton = new cButton(" @+ ")); //, oe.aConstraints);
510508 // 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;
515509
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);
510
+ if (Globals.ADVANCED)
511
+ {
512
+ oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
513
+ snapobjectButton.addActionListener(this);
514
+ snapobjectButton.setToolTipText("Snap Object");
515
+ }
516
+
517
+ oe.toolbarPanel.add(flashSelectionButton = new cButton("?", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
518
+ flashSelectionButton.setToolTipText("Show selection");
522519 flashSelectionButton.addActionListener(this);
523520
524
- oe.toolbarPanel.add(new cButton(" ", false));
521
+ oe.toolbarPanel.add(new JSeparator(SwingConstants.VERTICAL));
525522
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);
523
+ oe.toolbarPanel.add(twoButton = new cButton("|+|", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
524
+ twoButton.setToolTipText("Show center view only");
532525 twoButton.addActionListener(this);
533
- oe.toolbarPanel.add(fourButton = new cButton("+|| ")); //, oe.aConstraints);
526
+ oe.toolbarPanel.add(fourButton = new cButton("+||", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
534527 fourButton.addActionListener(this);
535
- oe.toolbarPanel.add(sixButton = new cButton("+|+| ")); //, oe.aConstraints);
528
+ fourButton.setToolTipText("Show left panel only");
529
+ oe.toolbarPanel.add(sixButton = new cButton("+|+|", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
530
+ sixButton.setToolTipText("2-column layout left");
536531 sixButton.addActionListener(this);
537
- oe.toolbarPanel.add(threeButton = new cButton(" |+|+")); //, oe.aConstraints);
532
+ oe.toolbarPanel.add(threeButton = new cButton("|+|+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
533
+ threeButton.setToolTipText("2-column layout right");
538534 threeButton.addActionListener(this);
539
- oe.toolbarPanel.add(sevenButton = new cButton("+|+|+")); //, oe.aConstraints);
535
+ oe.toolbarPanel.add(sevenButton = new cButton("+|+|+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
536
+ sevenButton.setToolTipText("3-column layout");
540537 sevenButton.addActionListener(this);
541538 //
542539
543
- oe.toolbarPanel.add(rootButton = new cButton(" o o o E ")); //, oe.aConstraints);
540
+ oe.toolbarPanel.add(rootButton = new cButton("o o o", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
541
+ rootButton.setToolTipText("Edit selection in new tab");
544542 rootButton.addActionListener(this);
545
- oe.aConstraints.gridx += 1;
546
- oe.toolbarPanel.add(closeButton = new cButton(" X ")); //, oe.aConstraints);
543
+
544
+ oe.toolbarPanel.add(closeButton = new cButton("X", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
545
+ closeButton.setToolTipText("Close tab");
547546 closeButton.addActionListener(this);
548547 //oe.treePanel.add(clearButton = new cButton("X"), oe.aConstraints);
549548 //clearButton.addActionListener(this);
550
- oe.aConstraints.gridx += 1;
551549
552
- oe.aConstraints.gridx = 1; //
553
- oe.treePanel.add(editButton = new cButton("+"), oe.aConstraints);
550
+ cGridBag commandsPanel = new cGridBag();
551
+
552
+ commandsPanel.add(editButton = new cButton("+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
553
+ editButton.setToolTipText("Edit selection");
554554 editButton.addActionListener(this);
555
- oe.aConstraints.gridx += 1;
556
- oe.aConstraints.weighty = 0;
557
- oe.aConstraints.gridwidth = 1;
558555
559
- oe.treePanel.add(uneditButton = new cButton("-"), oe.aConstraints);
556
+ commandsPanel.add(uneditButton = new cButton("-", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
557
+ uneditButton.setToolTipText("Unedit selection");
560558 uneditButton.addActionListener(this);
561559
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);
560
+ commandsPanel.add(allParamsButton = new JCheckBox("All", allparams)); //, oe.aConstraints);
561
+ allParamsButton.setToolTipText("Edit all params");
574562 allParamsButton.addActionListener(this);
575563
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);
564
+ commandsPanel.add(clearPanelButton = new cButton("C", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
565
+ clearPanelButton.setToolTipText("Clear edit panel");
566
+ clearPanelButton.addActionListener(this);
567
+
568
+ commandsPanel.add(unselectButton = new cButton("U", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
569
+ unselectButton.setToolTipText("Unselect");
581570 unselectButton.addActionListener(this);
582571
572
+ commandsPanel.preferredHeight = 1;
573
+
574
+ oe.treePanel.add(commandsPanel);
575
+ oe.treePanel.Return();
576
+
583577 // oe.aConstraints.gridx += 1;
584578 // oe.aConstraints.weighty = 0;
585579 // oe.aConstraints.gridwidth = 1;
....@@ -591,40 +585,37 @@
591585 // oe.treePanel.add(gcButton = new cButton("GC"), oe.aConstraints);
592586 // gcButton.addActionListener(this);
593587
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;
588
+ cGridBag jSPPanel = new cGridBag();
589
+
590
+ JScrollPane jSP;
605591 //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);
592
+ jSPPanel.add(jSP = new JScrollPane(oe.jTree = new cTree(null))); //, oe.aConstraints);
607593 ResetModel();
608
- oe.aConstraints.weighty = 0.5;
609
- oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;
610
- oe.aConstraints.gridy += 1;
611
- oe.aConstraints.gridwidth = 1;
594
+
595
+ oe.treePanel.add(jSPPanel);
596
+ oe.treePanel.Return();
612597
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);
598
+ cGridBag copyOptionsPanel = new cGridBag();
599
+
600
+ copyOptionsPanel.add(colorCB = new cCheckBox("Color", (dropAttributes&Object3D.COLOR)!=0)); //, oe.aConstraints);
601
+ colorCB.setToolTipText("Copy color when dropped");
617602 colorCB.addItemListener(this);
618
- oe.aConstraints.gridx += 2;
619
- oe.treePanel.add(materialCB = new cCheckBox("Material", (dropAttributes&Object3D.MATERIAL)!=0), oe.aConstraints);
603
+
604
+ copyOptionsPanel.add(materialCB = new cCheckBox("Material", (dropAttributes&Object3D.MATERIAL)!=0)); //, oe.aConstraints);
605
+ materialCB.setToolTipText("Copy material when dropped");
620606 materialCB.addItemListener(this);
621
- oe.aConstraints.gridx += 2;
622
- oe.treePanel.add(textureCB = new cCheckBox("Texture", (dropAttributes&Object3D.TEXTURE)!=0), oe.aConstraints);
607
+
608
+ copyOptionsPanel.add(textureCB = new cCheckBox("Texture", (dropAttributes&Object3D.TEXTURE)!=0)); //, oe.aConstraints);
609
+ textureCB.setToolTipText("Copy texture when dropped");
623610 textureCB.addItemListener(this);
624611
625
- oe.aConstraints.gridx = 0;
626
- oe.aConstraints.gridy += 1;
612
+ copyOptionsPanel.preferredHeight = 1;
613
+ oe.treePanel.add(copyOptionsPanel);
614
+ oe.treePanel.Return();
627615
616
+// mainPanel.setDividerLocation(0.5); //1.0);
617
+// mainPanel.setResizeWeight(0.5);
618
+
628619 //jList.addListSelectionListener(this);
629620 oe.jTree.addTreeSelectionListener(this);
630621 //jTree.setRootVisible(false);
....@@ -646,17 +637,89 @@
646637 radio.layout = sevenButton;
647638 oe.toolbarPanel.add(radioPanel); //, oe.aConstraints);
648639 }
640
+
641
+ void AddOptions(cGridBag panel) //, GridBagConstraints constraints)
642
+ {
643
+ panel.add(boxCB = new cCheckBox("Box", CameraPane.BOXMODE)); //, constraints);
644
+ boxCB.setToolTipText("Display bounding boxes");
645
+ boxCB.addItemListener(this);
646
+
647
+ panel.add(zoomBoxCB = new cCheckBox("Zoom", CameraPane.ZOOMBOXMODE)); //, constraints);
648
+ zoomBoxCB.setToolTipText("Display bounding boxes when moving the wheel");
649
+ zoomBoxCB.addItemListener(this);
650
+
651
+ if (Globals.ADVANCED)
652
+ {
653
+ panel.add(supportCB = new cCheckBox("Support", CameraPane.SUPPORT)); //, constraints);
654
+ supportCB.setToolTipText("Enable rigging");
655
+ supportCB.addItemListener(this);
656
+
657
+ // panel.add(localCB = new cCheckBox("Local", CameraPane.LOCALTRANSFORM), constraints);
658
+ // localCB.addItemListener(this);
659
+
660
+ panel.add(crowdCB = new cCheckBox("Crowd", Globals.CROWD)); //, constraints);
661
+ crowdCB.setToolTipText("Used for crowds");
662
+ crowdCB.addItemListener(this);
663
+
664
+ panel.add(smoothCB = new cCheckBox("Inertia", CameraPane.INERTIA)); //, constraints);
665
+ smoothCB.setToolTipText("Snapping delay");
666
+ smoothCB.addItemListener(this);
667
+
668
+ panel.add(slowCB = new cCheckBox("Slow", CameraPane.SLOWPOSE)); //, constraints);
669
+ slowCB.setToolTipText("Smooth interpolation");
670
+ slowCB.addItemListener(this);
671
+
672
+// constraints.gridy += 1;
673
+// panel.add(speakerMocapCB = new cCheckBox("Mocap", CameraPane.SPEAKERMOCAP), constraints);
674
+// speakerMocapCB.addItemListener(this);
675
+
676
+ if (false)
677
+ {
678
+ // handled in scripts
679
+ //constraints.gridy += 1;
680
+ panel.add(speakerCameraCB = new cCheckBox("Cam", CameraPane.SPEAKERCAMERA)); //, constraints);
681
+ speakerCameraCB.addItemListener(this);
682
+
683
+ //constraints.gridy += 1;
684
+ panel.add(speakerFocusCB = new cCheckBox("Focus", CameraPane.SPEAKERFOCUS)); //, constraints);
685
+ speakerFocusCB.addItemListener(this);
686
+
687
+ //constraints.gridy += 1;
688
+ panel.add(smoothfocusCB = new cCheckBox("Smooth", CameraPane.SMOOTHFOCUS)); //, constraints);
689
+ smoothfocusCB.addItemListener(this);
690
+ }
691
+
692
+//constraints.gridx += 1;
693
+//panel.add(debugCB = new cCheckBox("Debug", CameraPane.DEBUG), constraints);
694
+// debugCB.addItemListener(this);
695
+
696
+ panel.add(oeilCB = new cCheckBox("Eye", CameraPane.OEIL)); //, constraints);
697
+ oeilCB.addItemListener(this);
698
+
699
+ panel.add(lookAtCB = new cCheckBox("Target", CameraPane.LOOKAT)); //, constraints);
700
+ lookAtCB.setToolTipText("Look-at target");
701
+ lookAtCB.addItemListener(this);
702
+
703
+ }
704
+
705
+ cGridBag fill = new cGridBag();
706
+
707
+ fill.preferredHeight = 200;
708
+
709
+ panel.add(fill);
710
+
711
+ }
649712
650713 void EditObject(Object3D obj)
651714 {
652
- cRadio dummyButton = new cRadio(obj.name);
653
- dummyButton.SetObject(obj);
654
- dummyButton.layout = sevenButton;
655
- dummyButton.SetCamera(cameraView.renderCamera, false);
656
- dummyButton.addActionListener(this);
657
- radioPanel.add(dummyButton);
658
- buttonGroup.add(dummyButton);
659
- dummyButton.doClick();
715
+ cRadio radioButton = new cRadio(obj.name);
716
+ radioButton.SetObject(obj);
717
+ radioButton.layout = sevenButton;
718
+ radioButton.SetCamera(cameraView.renderCamera, false);
719
+ radioButton.addActionListener(this);
720
+ radioPanel.add(radioButton);
721
+ buttonGroup.add(radioButton);
722
+ radioButton.doClick();
660723 }
661724 void SetupViews(ObjEditor oe)
662725 {
....@@ -676,6 +739,7 @@
676739 JCheckBox fastCB;
677740 JCheckBox slowCB;
678741 JCheckBox boxCB;
742
+ JCheckBox zoomBoxCB;
679743 JCheckBox trackCB;
680744 JCheckBox smoothfocusCB;
681745 // JCheckBox speakerMocapCB;
....@@ -755,6 +819,10 @@
755819 Recompile();
756820 cameraView.repaint();
757821 // refreshContents();
822
+ }
823
+ else if(e.getSource() == zoomBoxCB)
824
+ {
825
+ cameraView.ToggleZoomBoxMode();
758826 }
759827 else if(e.getSource() == smoothfocusCB)
760828 {
....@@ -923,11 +991,11 @@
923991 {
924992 loadClipboard(true);
925993 objEditor.jTree.setSelectionPath(destinationPath);
926
- pasteInto(false);
994
+ pasteInto(false, false);
927995 } else {
928996 loadClipboard(false);
929997 objEditor.jTree.setSelectionPath(destinationPath);
930
- pasteInto(false); // true); // ???
998
+ pasteInto(false, false); // true); // ???
931999 }
9321000 }
9331001 public void dropActionChanged(DropTargetDragEvent dtde)
....@@ -1049,27 +1117,33 @@
10491117 kleinItem.addActionListener(this);
10501118 particleItem = menu.add(new MenuItem("Particle system"));
10511119 particleItem.addActionListener(this);
1120
+ if (Globals.ADVANCED)
1121
+ {
10521122 ragdollItem = menu.add(new MenuItem("Rag Walk"));
10531123 ragdollItem.addActionListener(this);
10541124 ragdoll2Item = menu.add(new MenuItem("Rag Fall"));
10551125 ragdoll2Item.addActionListener(this);
1126
+ }
10561127 menu.add("-");
1057
- meshItem = menu.add(new MenuItem("Mesh"));
1128
+ meshItem = menu.add(new MenuItem("Dynamic Mesh"));
10581129 meshItem.addActionListener(this);
10591130 // meshGroupItem = menu.add(new MenuItem("Mesh Group"));
10601131 // meshGroupItem.addActionListener(this);
1132
+ if (Globals.ADVANCED)
1133
+ {
10611134 springItem = menu.add(new MenuItem("Spring"));
10621135 springItem.addActionListener(this);
10631136 flagItem = menu.add(new MenuItem("Flag"));
10641137 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);
10691138 blobItem = menu.add(new MenuItem("Blob"));
10701139 blobItem.addActionListener(this);
10711140 latheItem = menu.add(new MenuItem("Lathe"));
10721141 latheItem.addActionListener(this);
1142
+ }
1143
+ bezierItem = menu.add(new MenuItem("Bezier Patch"));
1144
+ bezierItem.addActionListener(this);
1145
+ overlayItem = menu.add(new MenuItem("Overlay"));
1146
+ overlayItem.addActionListener(this);
10731147 lightItem = menu.add(new MenuItem("Light"));
10741148 lightItem.addActionListener(this);
10751149 menu.add("-");
....@@ -1079,34 +1153,39 @@
10791153 loopItem.addActionListener(this);
10801154 doubleItem = menu.add(new MenuItem("Fork"));
10811155 doubleItem.addActionListener(this);
1156
+ if (Globals.ADVANCED)
1157
+ {
10821158 tripleItem = menu.add(new MenuItem("Trident"));
10831159 tripleItem.addActionListener(this);
1160
+ }
10841161 }
10851162
10861163 void buildToolsMenu(Menu menu)
10871164 {
10881165 menu.add(animationItem = new CheckboxMenuItem("Animation..."));
10891166 animationItem.addItemListener(this);
1090
- animationItem.setState(CameraPane.ANIMATION);
1167
+ animationItem.setState(Globals.ANIMATION);
10911168
10921169 menu.add("-");
10931170 parseverticesItem = menu.add(new MenuItem("Multiplicity"));
10941171 parseverticesItem.addActionListener(this);
10951172 textureFieldItem = menu.add(new MenuItem("Texture Field"));
10961173 textureFieldItem.addActionListener(this);
1097
- alignItem = menu.add(new MenuItem("Align"));
1174
+ alignItem = menu.add(new MenuItem("Align Objects"));
10981175 alignItem.addActionListener(this);
1099
- mirrorItem = menu.add(new MenuItem("Mirror Poses"));
1100
- mirrorItem.addActionListener(this);
11011176 reduceMorphItem = menu.add(new MenuItem("Reduce Morphs"));
11021177 reduceMorphItem.addActionListener(this);
11031178 reduce34MorphItem = menu.add(new MenuItem("Reduce Morphs (34)"));
11041179 reduce34MorphItem.addActionListener(this);
1105
-
1180
+ menu.add("-");
11061181 menu.add(computeAOItem = new MenuItem("Compute AO"));
11071182 computeAOItem.addActionListener(this);
1108
- menu.add("-");
11091183
1184
+ if (Globals.ADVANCED)
1185
+ {
1186
+ mirrorItem = menu.add(new MenuItem("Mirror Poses"));
1187
+ mirrorItem.addActionListener(this);
1188
+ menu.add("-");
11101189 menu.add(memoryItem = new MenuItem("Memory Usage"));
11111190 memoryItem.addActionListener(this);
11121191 menu.add(analyzeItem = new MenuItem("Analyze"));
....@@ -1120,6 +1199,8 @@
11201199 resetParentItem.addActionListener(this);
11211200 repairParentItem = menu.add(new MenuItem("Repair Parent"));
11221201 repairParentItem.addActionListener(this);
1202
+ repairShadowItem = menu.add(new MenuItem("Repair Shadow"));
1203
+ repairShadowItem.addActionListener(this);
11231204 menu.add(invariantsItem = new MenuItem("Invariants"));
11241205 invariantsItem.addActionListener(this);
11251206 menu.add(recompileItem = new MenuItem("Recompile"));
....@@ -1127,6 +1208,7 @@
11271208 menu.add("-");
11281209 menu.add(editScriptItem = new MenuItem("Edit Script..."));
11291210 editScriptItem.addActionListener(this);
1211
+ }
11301212 }
11311213
11321214 void ScreenFit()
....@@ -1480,6 +1562,7 @@
14801562 //
14811563 public void actionPerformed(ActionEvent event) // , Object arg)
14821564 {
1565
+ Object source = event.getSource();
14831566 /*
14841567 if (event.getSource() == nameField)
14851568 {
....@@ -1491,11 +1574,11 @@
14911574 }
14921575 else
14931576 */
1494
- if (event.getSource() == lookAtItem || event.getSource() == lookFromItem)
1577
+ if (source == lookAtItem || source == lookFromItem)
14951578 {
14961579 ScreenFit();
14971580 } else
1498
- if (event.getSource() == switchItem)
1581
+ if (source == switchItem)
14991582 {
15001583 cVector v1 = new cVector();
15011584 cVector v2 = new cVector();
....@@ -1504,11 +1587,11 @@
15041587 objEditor.cameraView.renderCamera.setAim(v2, v1);
15051588 objEditor.cameraView.repaint();
15061589 } else
1507
- if (event.getSource() == rectoidItem)
1590
+ if (source == rectoidItem)
15081591 {
15091592 makeSomething(new Box());
15101593 } else
1511
- if (event.getSource() == particleItem)
1594
+ if (source == particleItem)
15121595 {
15131596 ParticleNode particleGeom = new ParticleNode("Particles", 1000); //, particleType);
15141597 ParticleController particleController = new ParticleController(particleGeom);
....@@ -1529,9 +1612,9 @@
15291612 applyExample(particleGeom, "SMOKE");
15301613 makeSomething(particleGeom);
15311614 } else
1532
- if (event.getSource() == ragdollItem || event.getSource() == ragdoll2Item)
1615
+ if (source == ragdollItem || source == ragdoll2Item)
15331616 {
1534
- GenericJoint ragdoll = new GenericJoint(event.getSource() == ragdollItem);
1617
+ GenericJoint ragdoll = new GenericJoint(source == ragdollItem);
15351618
15361619 ragdoll.toParent = LA.newMatrix();
15371620 ragdoll.fromParent = LA.newMatrix();
....@@ -1549,7 +1632,7 @@
15491632 } else
15501633 /*
15511634 */
1552
- if (event.getSource() == heightFieldItem)
1635
+ if (source == heightFieldItem)
15531636 {
15541637 Object3D obj = new Object3D();
15551638
....@@ -1587,31 +1670,31 @@
15871670
15881671 makeSomething(obj);
15891672 } else
1590
- if (event.getSource() == gridItem)
1673
+ if (source == gridItem)
15911674 {
15921675 makeSomething(new Grid());
15931676 } else
1594
- if (event.getSource() == ellipsoidItem)
1677
+ if (source == ellipsoidItem)
15951678 {
15961679 makeSomething(new Sphere());
15971680 } else
1598
- if (event.getSource() == coneItem)
1681
+ if (source == coneItem)
15991682 {
16001683 makeSomething(new Cone());
16011684 } else
1602
- if (event.getSource() == torusItem)
1685
+ if (source == torusItem)
16031686 {
16041687 makeSomething(new Torus());
16051688 } else
1606
- if (event.getSource() == superItem)
1689
+ if (source == superItem)
16071690 {
16081691 makeSomething(new Superellipsoid());
16091692 } else
1610
- if (event.getSource() == kleinItem)
1693
+ if (source == kleinItem)
16111694 {
16121695 makeSomething(new Klein());
16131696 } else
1614
- if (event.getSource() == blobItem)
1697
+ if (source == blobItem)
16151698 {
16161699 Blob blob = new Blob();
16171700 BlobComponent comp = new BlobComponent();
....@@ -1619,15 +1702,15 @@
16191702 //blob.retile();
16201703 makeSomething(blob);
16211704 } else
1622
- if (event.getSource() == latheItem)
1705
+ if (source == latheItem)
16231706 {
16241707 makeSomething(new Lathe());
16251708 } else
1626
- if (event.getSource() == bezierItem)
1709
+ if (source == bezierItem)
16271710 {
16281711 makeSomething(new BezierSurface());
16291712 } else
1630
- if (event.getSource() == checkerItem)
1713
+ if (source == overlayItem)
16311714 {
16321715 /*
16331716 Object3D obj = new BezierSurface(5,8);
....@@ -1642,7 +1725,7 @@
16421725 */
16431726 makeSomething(new Checker());
16441727 } else
1645
- if (event.getSource() == meshItem)
1728
+ if (source == meshItem)
16461729 {
16471730 Object3D itemtomake = new Object3D();
16481731 Object3D child;
....@@ -1663,35 +1746,35 @@
16631746 makeSomething(child);
16641747 }
16651748 } else
1666
- if (event.getSource() == springItem)
1749
+ if (source == springItem)
16671750 {
16681751 cSpring s = new cSpring();
16691752 s.setup();
16701753 makeSomething(s);
16711754 } else
1672
- if (event.getSource() == flagItem)
1755
+ if (source == flagItem)
16731756 {
16741757 cSpring s = new cFlag();
16751758 s.setup();
16761759 makeSomething(s);
16771760 } else
1678
- if (event.getSource() == lightItem)
1761
+ if (source == lightItem)
16791762 {
16801763 makeSomething(new Light());
16811764 } else
1682
- if (event.getSource() == csgItem)
1765
+ if (source == csgItem)
16831766 {
16841767 group(new CSG());
16851768 } else
1686
- if (event.getSource() == templateItem)
1769
+ if (source == templateItem)
16871770 {
16881771 group(new cTemplate());
16891772 } else
1690
- if (event.getSource() == attributeItem)
1773
+ if (source == attributeItem)
16911774 {
16921775 makeSomething(new Attribute());
16931776 } else
1694
- if (event.getSource() == pointflowItem)
1777
+ if (source == pointflowItem)
16951778 {
16961779 makeSomething(new PointFlow());
16971780 } else
....@@ -1703,7 +1786,7 @@
17031786 } else
17041787 */
17051788
1706
- if (event.getSource() == superLoopItem)
1789
+ if (source == superLoopItem)
17071790 {
17081791 Composite g = new cGroup();
17091792 for (int i=0; i<15; i++)
....@@ -1725,7 +1808,7 @@
17251808
17261809 group(g);
17271810 } else
1728
- if (event.getSource() == loopItem)
1811
+ if (source == loopItem)
17291812 {
17301813 Composite csg = new GroupLeaf();
17311814 csg.count = 5;
....@@ -1734,7 +1817,7 @@
17341817 csg.addChild(child);
17351818 child.addChild(csg);
17361819 } else
1737
- if (event.getSource() == doubleItem)
1820
+ if (source == doubleItem)
17381821 {
17391822 Composite csg = new GroupLeaf();
17401823 csg.count = 5;
....@@ -1746,7 +1829,7 @@
17461829 csg.addChild(child);
17471830 child.addChild(csg);
17481831 } else
1749
- if (event.getSource() == tripleItem)
1832
+ if (source == tripleItem)
17501833 {
17511834 Composite csg = new GroupLeaf();
17521835 csg.count = 4;
....@@ -1762,70 +1845,75 @@
17621845 child.addChild(csg);
17631846 } else
17641847
1765
- if (event.getSource() == importGFDItem)
1848
+ if (source == importGFDItem)
17661849 {
17671850 ImportGFD();
17681851 } else
1769
- if (event.getSource() == importVRMLX3DItem)
1852
+ if (source == importVRMLX3DItem)
17701853 {
17711854 ImportVRMLX3D();
17721855 } else
1773
- if (event.getSource() == import3DSItem)
1856
+ if (source == import3DSItem)
17741857 {
17751858 objEditor.ImportJME(new com.jmex.model.converters.MaxToJme(), "3ds", "Import 3DS");
17761859 } else
1777
- if (event.getSource() == importOBJItem)
1860
+ if (source == importOBJItem)
17781861 {
17791862 objEditor.ImportJME(new com.jmex.model.converters.ObjToJme(), "obj", "Import OBJ");
17801863 } else
1781
- if (event.getSource() == computeAOItem)
1864
+ if (source == computeAOItem)
17821865 {
1783
- CameraPane.drawMode = CameraPane.OCCLUSION;
1784
- CameraPane.theRenderer.repaint();
1866
+ Globals.drawMode = CameraPane.OCCLUSION;
1867
+ Globals.theRenderer.repaint();
17851868 } else
1786
- if (event.getSource() == recompileItem)
1869
+ if (source == recompileItem)
17871870 {
17881871 Recompile();
17891872 refreshContents();
17901873 } else
1791
- if (event.getSource() == editScriptItem)
1874
+ if (source == editScriptItem)
17921875 {
17931876 OpenDialog();
17941877 refreshContents();
17951878 } else
1796
- if (event.getSource() == invariantsItem)
1879
+ if (source == invariantsItem)
17971880 {
17981881 System.out.println("Invariants:");
17991882 GrafreeD.grafreeD.universe.invariants();
18001883 } else
1801
- if (event.getSource() == memoryItem)
1884
+ if (source == memoryItem)
18021885 {
18031886 //System.out.println("Invariants:");
18041887 PrintMemory();
18051888 } else
1806
- if (event.getSource() == pathItem)
1889
+ if (source == pathItem)
18071890 {
18081891 PrintPath();
18091892 } else
1810
- if (event.getSource() == analyzeItem)
1893
+ if (source == analyzeItem)
18111894 {
18121895 AnalyzeObject();
18131896 } else
1814
- if (event.getSource() == dumpItem)
1897
+ if (source == dumpItem)
18151898 {
18161899 DumpObject();
18171900 } else
1818
- if (event.getSource() == screenfitButton)
1901
+ if (source == oneStepButton)
1902
+ {
1903
+ Globals.ONESTEP = true;
1904
+ cameraView.repaint();
1905
+ } else
1906
+ if (source == screenfitButton)
18191907 {
18201908 //Reload(lastConverter, lastFilename, true);
18211909 ScreenFit();
18221910 } else
1823
- if (event.getSource() == screenfitpointButton)
1911
+ if (source == screenfitpointButton)
18241912 {
18251913 //Reload(lastConverter, lastFilename, true);
18261914 ScreenFitPoint();
18271915 } else
1828
- if (event.getSource() == snapobjectButton)
1916
+ if (source == snapobjectButton)
18291917 {
18301918 //Reload(lastConverter, lastFilename, true);
18311919 SnapObject();
....@@ -1836,13 +1924,13 @@
18361924 // Recompile();
18371925 // refreshContents();
18381926 // } else
1839
- if (event.getSource() == gcButton)
1927
+ if (source == gcButton)
18401928 {
18411929 System.out.println("Memory (F/T/M) : " + Runtime.getRuntime().freeMemory() + "/" + Runtime.getRuntime().totalMemory() + "/" + Runtime.getRuntime().maxMemory());
18421930 System.gc();
18431931 System.out.println("GC Memory (F/T/M) : " + Runtime.getRuntime().freeMemory() + "/" + Runtime.getRuntime().totalMemory() + "/" + Runtime.getRuntime().maxMemory());
18441932 } else
1845
- if (event.getSource() == editLeafItem)
1933
+ if (source == editLeafItem)
18461934 {
18471935 Object3D obj;
18481936 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -1856,62 +1944,66 @@
18561944 }
18571945 refreshContents(true);
18581946 } else
1859
- if (event.getSource() == openWindowItem)
1947
+ if (source == openWindowItem)
18601948 {
18611949 EditSelection(true);
18621950 } else
1863
- if (event.getSource() == cutItem || event.getSource() == clearButton)
1951
+ if (source == cutItem || source == clearButton)
18641952 {
18651953 loadClipboard(true);
18661954 } else
1867
- if (event.getSource() == duplicateItem)
1955
+ if (source == duplicateItem)
18681956 {
18691957 Object3D keep = GrafreeD.clipboard;
18701958 loadClipboard(false);
18711959 paste(false);
18721960 GrafreeD.clipboard = keep;
18731961 } else
1874
- if (event.getSource() == cloneItem)
1962
+ if (source == cloneItem)
18751963 {
18761964 CloneSelection(false);
18771965 } else
1878
- if (event.getSource() == cloneSupportItem)
1966
+ if (source == cloneSupportItem)
18791967 {
18801968 CloneSelection(true);
18811969 } else
1882
- if (event.getSource() == copyItem)
1970
+ if (source == copyItem)
18831971 {
18841972 loadClipboard(false);
18851973 } else
1886
- if (event.getSource() == pasteItem)
1974
+ if (source == pasteItem)
18871975 {
18881976 paste(false);
18891977 } else
1890
- if (event.getSource() == pasteLinkItem)
1978
+ if (source == pasteIntoItem)
18911979 {
1892
- pasteInto(false);
1980
+ pasteInto(true, false);
18931981 } else
1894
- if (event.getSource() == pasteCloneItem)
1982
+ if (source == pasteLinkItem)
18951983 {
1896
- pasteInto(true);
1984
+ pasteInto(false, false);
18971985 } else
1898
- if (event.getSource() == pasteExpandItem)
1986
+ if (source == pasteCloneItem)
1987
+ {
1988
+ pasteInto(true, true);
1989
+ } else
1990
+ if (source == pasteExpandItem)
18991991 {
19001992 paste(true);
19011993 } else
1902
- if (event.getSource() == synchronizeItem)
1994
+ if (source == synchronizeItem)
19031995 {
19041996 Overwrite(Object3D.TRANSFORM);
19051997 } else
1906
- if (event.getSource() == overwriteNameItem)
1998
+ if (source == overwriteNameItem)
19071999 {
19082000 Overwrite(Object3D.NAME);
19092001 } else
1910
- if (event.getSource() == overwriteUVItem)
2002
+ if (source == overwriteUVItem)
19112003 {
19122004 Overwrite(Object3D.UV);
19132005 } else
1914
- if (event.getSource() == overwriteMatItem)
2006
+ if (source == overwriteMatItem)
19152007 {
19162008 /* july 2015
19172009 if ((dropAttributes & Object3D.TEXTURE) == 0)
....@@ -1931,7 +2023,7 @@
19312023
19322024 Overwrite(dropAttributes);
19332025 }
1934
- if (event.getSource() == overwriteGeoItem)
2026
+ if (source == overwriteGeoItem)
19352027 {
19362028 Overwrite(Object3D.GEOMETRY);
19372029 // if (/*group.selection.size() == 1 &&*/ GrafreeD.clipboard.size() == 1)
....@@ -1948,7 +2040,7 @@
19482040 // refreshContents();
19492041 // }
19502042 } else
1951
- if (event.getSource() == generateMeshItem)
2043
+ if (source == generateMeshItem)
19522044 {
19532045 //if (group.selection.size() == 1)
19542046 // for (int i=0; i<group.selection.size(); i++)
....@@ -1959,7 +2051,7 @@
19592051 ResetModel();
19602052 refreshContents();
19612053 } else
1962
- if (event.getSource() == extractGeometriesItem)
2054
+ if (source == extractGeometriesItem)
19632055 {
19642056 boolean one = false;
19652057
....@@ -1986,7 +2078,7 @@
19862078 ResetModel();
19872079 refreshContents();
19882080 } else
1989
- if (event.getSource() == cloneGeometriesItem)
2081
+ if (source == cloneGeometriesItem)
19902082 {
19912083 boolean one = false;
19922084
....@@ -2012,7 +2104,7 @@
20122104 ResetModel();
20132105 refreshContents();
20142106 } else
2015
- if (event.getSource() == shareGeometriesItem)
2107
+ if (source == shareGeometriesItem)
20162108 {
20172109 boolean one = false;
20182110
....@@ -2042,7 +2134,7 @@
20422134 refreshContents();
20432135 }
20442136 } else
2045
- if (event.getSource() == mergeGeometriesItem)
2137
+ if (source == mergeGeometriesItem)
20462138 {
20472139 boolean one = false;
20482140
....@@ -2072,7 +2164,7 @@
20722164 ResetModel();
20732165 refreshContents();
20742166 } else
2075
- if (event.getSource() == linkverticesItem)
2167
+ if (source == linkverticesItem)
20762168 {
20772169 // if (group.selection.size() == 1 && GrafreeD.clipboard.size() == 1)
20782170 // {
....@@ -2092,41 +2184,41 @@
20922184 if (content instanceof cGroup && ((cGroup)content).transientlink )
20932185 content = ((cGroup)content).get(0);
20942186
2095
- CameraPane.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.WAIT_CURSOR));
2187
+ Globals.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.WAIT_CURSOR));
20962188 for (int i=0; i<group.selection.size(); i++)
20972189 {
2098
- boolean random = CameraPane.RANDOM;
2099
- CameraPane.RANDOM = false; // parse all random nodes
2190
+ boolean random = CameraPane.SWITCH;
2191
+ CameraPane.SWITCH = false; // parse all random nodes
21002192 group.selection.get(i).linkVerticesThis(content);
21012193 // group.selection.get(i).setMasterThis(content); // should be identity
2102
- CameraPane.RANDOM = random;
2194
+ CameraPane.SWITCH = random;
21032195 }
2104
- CameraPane.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.DEFAULT_CURSOR));
2196
+ Globals.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.DEFAULT_CURSOR));
21052197 refreshContents();
21062198 }
21072199 } else
2108
- if (event.getSource() == resetsupportItem)
2200
+ if (source == resetsupportItem)
21092201 {
21102202 for (int i=0; i<group.selection.size(); i++)
21112203 {
2112
- boolean random = CameraPane.RANDOM;
2113
- CameraPane.RANDOM = false; // parse all random nodes
2204
+ boolean random = CameraPane.SWITCH;
2205
+ CameraPane.SWITCH = false; // parse all random nodes
21142206 group.selection.get(i).linkVerticesThis(null);
2115
- CameraPane.RANDOM = random;
2207
+ CameraPane.SWITCH = random;
21162208 }
21172209
21182210 refreshContents();
21192211 } else
2120
- if (event.getSource() == relinkverticesItem)
2212
+ if (source == relinkverticesItem)
21212213 {
2122
- boolean random = CameraPane.RANDOM;
2123
- CameraPane.RANDOM = false; // parse all random nodes
2214
+ boolean random = CameraPane.SWITCH;
2215
+ CameraPane.SWITCH = false; // parse all random nodes
21242216 group.selection.RelinkToSupport();
2125
- CameraPane.RANDOM = random;
2217
+ CameraPane.SWITCH = random;
21262218
21272219 refreshContents();
21282220 } else
2129
- if (event.getSource() == resetreferencesItem)
2221
+ if (source == resetreferencesItem)
21302222 {
21312223 for (int i=0; i<group.selection.size(); i++)
21322224 {
....@@ -2135,7 +2227,7 @@
21352227
21362228 refreshContents();
21372229 } else
2138
- if (event.getSource() == setMasterItem)
2230
+ if (source == setMasterItem)
21392231 {
21402232 if (group.selection.size() == 1 && GrafreeD.clipboard.size() == 1)
21412233 {
....@@ -2148,7 +2240,7 @@
21482240 refreshContents();
21492241 }
21502242 } else
2151
- if (event.getSource() == poseMeshItem)
2243
+ if (source == poseMeshItem)
21522244 {
21532245 if (group.selection.size() == 1)
21542246 {
....@@ -2167,19 +2259,19 @@
21672259 }
21682260
21692261 } else
2170
- if (event.getSource() == revertMeshItem)
2262
+ if (source == revertMeshItem)
21712263 {
21722264 RevertMeshes();
21732265 } else
2174
- if (event.getSource() == resetMeshItem)
2266
+ if (source == resetMeshItem)
21752267 {
21762268 ResetAll();
21772269 } else
2178
- if (event.getSource() == stepAllItem)
2270
+ if (source == stepAllItem)
21792271 {
21802272 StepAll();
21812273 } else
2182
- if (event.getSource() == clearItem) // || event.getSource() == clearButton)
2274
+ if (source == clearItem) // || event.getSource() == clearButton)
21832275 {
21842276 //int indices[] = jList.getSelectedIndices();
21852277 //for (int i = indices.length - 1; i >= 0; i--)
....@@ -2187,46 +2279,46 @@
21872279
21882280 ClearSelection(false);
21892281 } else
2190
- if (event.getSource() == clearAllItem)
2282
+ if (source == clearAllItem)
21912283 {
21922284 ClearSelection(true);
21932285 } else
2194
- if (event.getSource() == grabItem)
2286
+ if (source == grabItem)
21952287 {
21962288 group(new cGroup(), true);
21972289 } else
2198
- if (event.getSource() == hideItem)
2290
+ if (source == hideItem)
21992291 {
22002292 group(new HiddenObject());
22012293 } else
2202
- if (event.getSource() == frontItem)
2294
+ if (source == frontItem)
22032295 {
22042296 front();
22052297 } else
2206
- if (event.getSource() == backItem)
2298
+ if (source == backItem)
22072299 {
22082300 back();
22092301 } else
2210
- if (event.getSource() == cameraItem)
2302
+ if (source == cameraItem)
22112303 {
22122304 makeSomething(new Camera());
22132305 } else
2214
- if (event.getSource() == compositeItem)
2306
+ if (source == compositeItem)
22152307 {
22162308 group(new Composite());
22172309 } else
2218
- if (event.getSource() == randomItem)
2310
+ if (source == randomItem)
22192311 {
22202312 RandomNode random = new RandomNode();
22212313 group(random);
22222314 if (random.size() > 0)
2223
- random.name = random.get(0).name + "Rnd";
2315
+ random.name = random.get(0).name + "Switch";
22242316 } else
2225
- if (event.getSource() == physicsItem)
2317
+ if (source == physicsItem)
22262318 {
22272319 group(new PhysicsNode());
22282320 } else
2229
- if (event.getSource() == frameselectorItem)
2321
+ if (source == frameselectorItem)
22302322 {
22312323 for (int i=0; i<group.selection.size(); i++)
22322324 {
....@@ -2238,7 +2330,7 @@
22382330 ResetModel();
22392331 refreshContents();
22402332 } else
2241
- if (event.getSource() == switchGeoItem)
2333
+ if (source == switchGeoItem)
22422334 {
22432335 for (int i=0; i<group.selection.size(); i++)
22442336 {
....@@ -2250,7 +2342,7 @@
22502342 ResetModel();
22512343 refreshContents();
22522344 } else
2253
- if (event.getSource() == switchTransfoItem)
2345
+ if (source == switchTransfoItem)
22542346 {
22552347 for (int i=0; i<group.selection.size(); i++)
22562348 {
....@@ -2262,7 +2354,7 @@
22622354 ResetModel();
22632355 refreshContents();
22642356 } else
2265
- if (event.getSource() == morphItem)
2357
+ if (source == morphItem)
22662358 {
22672359 for (int i=0; i<group.selection.size(); i++)
22682360 {
....@@ -2274,7 +2366,7 @@
22742366 ResetModel();
22752367 refreshContents();
22762368 } else
2277
- if (event.getSource() == scriptNodeItem)
2369
+ if (source == scriptNodeItem)
22782370 {
22792371 boolean atleastone = false;
22802372
....@@ -2313,31 +2405,31 @@
23132405 }
23142406 }
23152407 } else
2316
- if (event.getSource() == linkerItem)
2408
+ if (source == linkerItem)
23172409 {
23182410 group(new cLinker());
23192411 } else
2320
- if (event.getSource() == textureItem)
2412
+ if (source == textureItem)
23212413 {
23222414 group(new TextureNode());
23232415 } else
2324
- if (event.getSource() == billboardItem)
2416
+ if (source == billboardItem)
23252417 {
23262418 group(new BillboardNode());
23272419 } else
2328
- if (event.getSource() == shadowXItem)
2420
+ if (source == shadowXItem)
23292421 {
23302422 CastShadow(0);
23312423 } else
2332
- if (event.getSource() == shadowYItem)
2424
+ if (source == shadowYItem)
23332425 {
23342426 CastShadow(1);
23352427 } else
2336
- if (event.getSource() == shadowZItem)
2428
+ if (source == shadowZItem)
23372429 {
23382430 CastShadow(2);
23392431 } else
2340
- if (event.getSource() == ungroupItem)
2432
+ if (source == ungroupItem)
23412433 {
23422434 //ungroup();
23432435 for (int i=0; i<group.selection.size(); i++)
....@@ -2349,179 +2441,179 @@
23492441
23502442 refreshContents();
23512443 } else
2352
- if (event.getSource() == genUVItem)
2444
+ if (source == genUVItem)
23532445 {
23542446 GenUV();
23552447 } else
2356
- if (event.getSource() == genNormalsCADItem)
2448
+ if (source == genNormalsCADItem)
23572449 {
23582450 GenNormals(true);
23592451 } else
2360
- if (event.getSource() == genNormalsMESHItem)
2452
+ if (source == genNormalsMESHItem)
23612453 {
23622454 GenNormals(true); // TODO
23632455 } else
2364
- if (event.getSource() == genNormalsORGANItem)
2456
+ if (source == genNormalsORGANItem)
23652457 {
23662458 GenNormals(false);
23672459 } else
2368
- if (event.getSource() == genNormalsMINEItem)
2460
+ if (source == genNormalsMINEItem)
23692461 {
23702462 GenNormalsMINE();
23712463 } else
2372
- if (event.getSource() == stripifyItem)
2464
+ if (source == stripifyItem)
23732465 {
23742466 Stripify();
23752467 } else
2376
- if (event.getSource() == unstripifyItem)
2468
+ if (source == unstripifyItem)
23772469 {
23782470 Unstripify();
23792471 } else
2380
- if (event.getSource() == trimItem)
2472
+ if (source == trimItem)
23812473 {
23822474 Trim();
23832475 } else
2384
- if (event.getSource() == untrimItem)
2476
+ if (source == untrimItem)
23852477 {
23862478 Untrim();
23872479 } else
2388
- if (event.getSource() == clearColorsItem)
2480
+ if (source == clearColorsItem)
23892481 {
23902482 ClearColors();
23912483 } else
2392
- if (event.getSource() == clearMaterialsItem)
2484
+ if (source == clearMaterialsItem)
23932485 {
23942486 ClearMaterials();
23952487 } else
2396
- if (event.getSource() == liveleavesItem)
2488
+ if (source == liveleavesItem)
23972489 {
23982490 LiveLeaves(true);
23992491 } else
2400
- if (event.getSource() == unliveleavesItem)
2492
+ if (source == unliveleavesItem)
24012493 {
24022494 LiveLeaves(false);
24032495 } else
2404
- if (event.getSource() == supportleavesItem)
2496
+ if (source == supportleavesItem)
24052497 {
24062498 SupportLeaves(true);
24072499 } else
2408
- if (event.getSource() == unsupportleavesItem)
2500
+ if (source == unsupportleavesItem)
24092501 {
24102502 SupportLeaves(false);
24112503 } else
2412
- if (event.getSource() == hideleavesItem)
2504
+ if (source == hideleavesItem)
24132505 {
24142506 HideLeaves(true);
24152507 } else
2416
- if (event.getSource() == showleavesItem)
2508
+ if (source == showleavesItem)
24172509 {
24182510 HideLeaves(false);
24192511 } else
2420
- if (event.getSource() == markleavesItem)
2512
+ if (source == markleavesItem)
24212513 {
24222514 MarkLeaves(true);
24232515 } else
2424
- if (event.getSource() == unmarkleavesItem)
2516
+ if (source == unmarkleavesItem)
24252517 {
24262518 MarkLeaves(false);
24272519 } else
2428
- if (event.getSource() == flipVItem)
2520
+ if (source == flipVItem)
24292521 {
24302522 FlipV(true);
24312523 } else
2432
- if (event.getSource() == unflipVItem)
2524
+ if (source == unflipVItem)
24332525 {
24342526 FlipV(false);
24352527 } else
2436
- if (event.getSource() == lowTexturesItem)
2528
+ if (source == lowTexturesItem)
24372529 {
24382530 SetTexRes(0);
24392531 } else
2440
- if (event.getSource() == normalTexturesItem)
2532
+ if (source == normalTexturesItem)
24412533 {
24422534 SetTexRes(1);
24432535 } else
2444
- if (event.getSource() == highTexturesItem)
2536
+ if (source == highTexturesItem)
24452537 {
24462538 SetTexRes(2);
24472539 } else
2448
- if (event.getSource() == veryhighTexturesItem)
2540
+ if (source == veryhighTexturesItem)
24492541 {
24502542 SetTexRes(3);
24512543 } else
2452
- if (event.getSource() == maxTexturesItem)
2544
+ if (source == maxTexturesItem)
24532545 {
24542546 SetTexRes(4);
24552547 } else
2456
- if (event.getSource() == panoTexturesItem)
2548
+ if (source == panoTexturesItem)
24572549 {
24582550 SetTexRes(5);
24592551 } else
2460
- if (event.getSource() == reverseNormalsItem)
2552
+ if (source == reverseNormalsItem)
24612553 {
24622554 ReverseNormals();
24632555 } else
2464
- if (event.getSource() == parseverticesItem)
2556
+ if (source == parseverticesItem)
24652557 {
24662558 ParseVertices();
24672559 } else
2468
- if (event.getSource() == textureFieldItem)
2560
+ if (source == textureFieldItem)
24692561 {
24702562 TextureVertices();
24712563 } else
2472
- if (event.getSource() == alignItem)
2564
+ if (source == alignItem)
24732565 {
24742566 Align();
24752567 } else
2476
- if (event.getSource() == mirrorItem)
2568
+ if (source == mirrorItem)
24772569 {
24782570 MirrorPoses();
24792571 } else
2480
- if (event.getSource() == reduceMorphItem)
2572
+ if (source == reduceMorphItem)
24812573 {
24822574 MeshReduction(false);
24832575 } else
2484
- if (event.getSource() == reduce34MorphItem)
2576
+ if (source == reduce34MorphItem)
24852577 {
24862578 MeshReduction(true);
24872579 } else
2488
- if (event.getSource() == reverseTrianglesItem)
2580
+ if (source == reverseTrianglesItem)
24892581 {
24902582 ReverseTriangles();
24912583 } else
2492
- if (event.getSource() == reduceMeshItem)
2584
+ if (source == reduceMeshItem)
24932585 {
24942586 ReduceMesh(false);
24952587 } else
2496
- if (event.getSource() == reduce34MeshItem)
2588
+ if (source == reduce34MeshItem)
24972589 {
24982590 ReduceMesh(true);
24992591 } else
2500
- if (event.getSource() == increaseMeshItem)
2592
+ if (source == increaseMeshItem)
25012593 {
25022594 IncreaseMesh();
25032595 } else
2504
- if (event.getSource() == clipMeshItem)
2596
+ if (source == clipMeshItem)
25052597 {
25062598 ClipMesh();
25072599 } else
2508
- if (event.getSource() == smoothMeshItem)
2600
+ if (source == smoothMeshItem)
25092601 {
25102602 SmoothMesh();
25112603 } else
2512
- if (event.getSource() == transformgeometryItem)
2604
+ if (source == transformgeometryItem)
25132605 {
25142606 TransformGeometry();
25152607 } else
2516
- if (event.getSource() == resetTransformItem)
2608
+ if (source == resetTransformItem)
25172609 {
25182610 ResetTransform();
25192611 } else
2520
- if (event.getSource() == resetCentroidItem)
2612
+ if (source == resetCentroidItem)
25212613 {
25222614 ResetCentroid();
25232615 } else
2524
- if (event.getSource() == resetParentItem)
2616
+ if (source == resetParentItem)
25252617 {
25262618 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
25272619 {
....@@ -2531,7 +2623,7 @@
25312623
25322624 refreshContents();
25332625 } else
2534
- if (event.getSource() == repairParentItem)
2626
+ if (source == repairParentItem)
25352627 {
25362628 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
25372629 {
....@@ -2545,7 +2637,21 @@
25452637
25462638 refreshContents();
25472639 } else
2548
- if (event.getSource() == sortbysizeItem)
2640
+ if (source == repairShadowItem)
2641
+ {
2642
+ for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
2643
+ {
2644
+ Object3D obj = (Object3D)e.nextElement();
2645
+ obj.RepairShadow();
2646
+// for (int i=0; i<obj.size(); i++)
2647
+// {
2648
+// obj.get(i).parent = obj;
2649
+// }
2650
+ }
2651
+
2652
+ refreshContents();
2653
+ } else
2654
+ if (source == sortbysizeItem)
25492655 {
25502656 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
25512657 {
....@@ -2557,7 +2663,7 @@
25572663 ResetModel();
25582664 refreshContents();
25592665 } else
2560
- if (event.getSource() == sortbynameItem)
2666
+ if (source == sortbynameItem)
25612667 {
25622668 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
25632669 {
....@@ -2569,7 +2675,7 @@
25692675 ResetModel();
25702676 refreshContents();
25712677 } else
2572
- if (event.getSource() == attachPigmentItem)
2678
+ if (source == attachPigmentItem)
25732679 {
25742680 String texture = GetFile("Attach pigment");
25752681 Object3D obj;
....@@ -2581,7 +2687,7 @@
25812687
25822688 refreshContents();
25832689 } else
2584
- if (event.getSource() == detachPigmentItem)
2690
+ if (source == detachPigmentItem)
25852691 {
25862692 Object3D obj;
25872693 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -2592,7 +2698,7 @@
25922698
25932699 refreshContents();
25942700 } else
2595
- if (event.getSource() == attachBumpItem)
2701
+ if (source == attachBumpItem)
25962702 {
25972703 String texture = GetFile("Attach bump");
25982704 Object3D obj;
....@@ -2604,7 +2710,7 @@
26042710
26052711 refreshContents();
26062712 } else
2607
- if (event.getSource() == detachBumpItem)
2713
+ if (source == detachBumpItem)
26082714 {
26092715 Object3D obj;
26102716 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -2615,7 +2721,7 @@
26152721
26162722 refreshContents();
26172723 } else
2618
- if (event.getSource() == pigmentBumpItem)
2724
+ if (source == pigmentBumpItem)
26192725 {
26202726 Object3D obj;
26212727 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -2626,158 +2732,195 @@
26262732
26272733 refreshContents();
26282734 } else
2629
- if (event.getSource() == flashSelectionButton)
2735
+ if (source == flashSelectionButton)
26302736 {
26312737 CameraPane.flash = true;
26322738 refreshContents();
26332739 } else
2634
- if (event.getSource() == oneButton)
2740
+ if (source == oneButton)
26352741 {
26362742 } else
2637
- if (event.getSource() == twoButton)
2743
+ if (source == twoButton)
26382744 {
26392745 radio.layout = twoButton;
26402746 // bug
26412747 //gridPanel.setDividerLocation(1.0);
26422748 //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();
2749
+// bigThree.remove(scenePanel);
2750
+// bigThree.remove(centralPanel);
2751
+// bigThree.remove(XYZPanel);
2752
+// aWindowConstraints.gridx = 0;
2753
+// aWindowConstraints.gridy = 0;
2754
+// aWindowConstraints.gridwidth = 1;
2755
+// // aConstraints.gridheight = 3;
2756
+// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2757
+// aWindowConstraints.weightx = 0;
2758
+// aWindowConstraints.weighty = 1;
2759
+// //bigThree.add(jtp, aWindowConstraints);
2760
+// aWindowConstraints.weightx = 1;
2761
+// aWindowConstraints.gridwidth = 3;
2762
+// // aConstraints.gridheight = 3;
2763
+// aWindowConstraints.gridx = 1;
2764
+// aWindowConstraints.fill = GridBagConstraints.BOTH;
2765
+// bigThree.add(centralPanel, aWindowConstraints);
2766
+// aWindowConstraints.weightx = 0;
2767
+// aWindowConstraints.gridx = 4;
2768
+// aWindowConstraints.gridwidth = 1;
2769
+// // aConstraints.gridheight = 3;
2770
+// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2771
+// //bigThree.add(XYZPanel, aWindowConstraints);
2772
+// scenePanel.setVisible(false);
2773
+// centralPanel.setVisible(true);
2774
+// XYZPanel.setVisible(false);
2775
+ bigThree.ClearUI();
2776
+ bigThree.add(centralPanel);
2777
+ bigThree.FlushUI();
26672778 } else
2668
- if (event.getSource() == threeButton)
2779
+ if (source == threeButton)
26692780 {
26702781 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();
2782
+
2783
+// bigThree.remove(scenePanel);
2784
+// bigThree.remove(centralPanel);
2785
+// bigThree.remove(XYZPanel);
2786
+// aWindowConstraints.gridx = 0;
2787
+// aWindowConstraints.gridy = 0;
2788
+// aWindowConstraints.gridwidth = 1;
2789
+// // aConstraints.gridheight = 3;
2790
+// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2791
+// aWindowConstraints.weightx = 0;
2792
+// aWindowConstraints.weighty = 1;
2793
+// //bigThree.add(jtp, aWindowConstraints);
2794
+// aWindowConstraints.weightx = 1;
2795
+// aWindowConstraints.gridwidth = 3;
2796
+// // aConstraints.gridheight = 3;
2797
+// aWindowConstraints.gridx = 1;
2798
+// aWindowConstraints.fill = GridBagConstraints.BOTH;
2799
+// bigThree.add(centralPanel, aWindowConstraints);
2800
+// aWindowConstraints.weightx = 0;
2801
+// aWindowConstraints.gridx = 4;
2802
+// aWindowConstraints.gridwidth = 1;
2803
+// // aConstraints.gridheight = 3;
2804
+// aConstraints.fill = GridBagConstraints.VERTICAL;
2805
+// bigThree.add(XYZPanel, aWindowConstraints);
2806
+// bigThree.validate();
2807
+// scenePanel.setVisible(false);
2808
+// centralPanel.setVisible(true);
2809
+// XYZPanel.setVisible(true);
2810
+ bigThree.ClearUI();
2811
+ bigThree.add(centralPanel);
2812
+ bigThree.add(XYZPanel);
2813
+ bigThree.FlushUI();
26952814 } else
2696
- if (event.getSource() == fourButton)
2815
+ if (source == fourButton)
26972816 {
26982817 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();
2818
+
2819
+// bigThree.remove(scenePanel);
2820
+// bigThree.remove(centralPanel);
2821
+// bigThree.remove(XYZPanel);
2822
+// aWindowConstraints.gridx = 0;
2823
+// aWindowConstraints.gridy = 0;
2824
+// aWindowConstraints.gridwidth = 1;
2825
+// // aWindowConstraints.gridheight = 3;
2826
+// aWindowConstraints.fill = GridBagConstraints.BOTH;
2827
+// aWindowConstraints.weightx = 1;
2828
+// aWindowConstraints.weighty = 1;
2829
+// bigThree.add(scenePanel, aWindowConstraints);
2830
+// aWindowConstraints.weightx = 1;
2831
+// aWindowConstraints.gridwidth = 3;
2832
+// // aConstraints.gridheight = 3;
2833
+// aWindowConstraints.gridx = 1;
2834
+// aWindowConstraints.fill = GridBagConstraints.BOTH;
2835
+// //bigThree.add(cameraPanel, aWindowConstraints);
2836
+// aWindowConstraints.weightx = 0;
2837
+// aWindowConstraints.gridx = 4;
2838
+// aWindowConstraints.gridwidth = 1;
2839
+// // aWindowConstraints.gridheight = 3;
2840
+// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2841
+// //bigThree.add(XYZPanel, aWindowConstraints);
2842
+// bigThree.validate();
2843
+// scenePanel.setVisible(true);
2844
+// centralPanel.setVisible(false);
2845
+// XYZPanel.setVisible(false);
2846
+ bigThree.ClearUI();
2847
+ bigThree.add(scenePanel);
2848
+ bigThree.FlushUI();
27232849 } else
2724
- if (event.getSource() == sixButton)
2850
+ if (source == sixButton)
27252851 {
27262852 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();
2853
+
2854
+// bigThree.remove(scenePanel);
2855
+// bigThree.remove(centralPanel);
2856
+// bigThree.remove(XYZPanel);
2857
+// aWindowConstraints.gridx = 0;
2858
+// aWindowConstraints.gridy = 0;
2859
+// aWindowConstraints.gridwidth = 1;
2860
+// // aConstraints.gridheight = 3;
2861
+// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2862
+// aWindowConstraints.weightx = 0;
2863
+// aWindowConstraints.weighty = 1;
2864
+// bigThree.add(scenePanel, aWindowConstraints);
2865
+// aWindowConstraints.weightx = 1;
2866
+// aWindowConstraints.gridwidth = 3;
2867
+// // aWindowConstraints.gridheight = 3;
2868
+// aWindowConstraints.gridx = 1;
2869
+// aWindowConstraints.fill = GridBagConstraints.BOTH;
2870
+// bigThree.add(centralPanel, aWindowConstraints);
2871
+// aWindowConstraints.weightx = 0;
2872
+// aWindowConstraints.gridx = 4;
2873
+// aWindowConstraints.gridwidth = 1;
2874
+// // aWindowConstraints.gridheight = 3;
2875
+// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2876
+// //bigThree.add(XYZPanel, aConstraints);
2877
+// bigThree.validate();
2878
+// scenePanel.setVisible(true);
2879
+// centralPanel.setVisible(true);
2880
+// XYZPanel.setVisible(false);
2881
+ bigThree.ClearUI();
2882
+ bigThree.add(scenePanel);
2883
+ bigThree.add(centralPanel);
2884
+ bigThree.FlushUI();
27512885 } else
2752
- if (event.getSource() == sevenButton)
2886
+ if (source == sevenButton)
27532887 {
27542888 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();
2889
+
2890
+// bigThree.remove(scenePanel);
2891
+// bigThree.remove(centralPanel);
2892
+// bigThree.remove(XYZPanel);
2893
+// aWindowConstraints.gridx = 0;
2894
+// aWindowConstraints.gridy = 0;
2895
+// aWindowConstraints.gridwidth = 1;
2896
+// // aWindowConstraints.gridheight = 3;
2897
+// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2898
+// aWindowConstraints.weightx = 0;
2899
+// aWindowConstraints.weighty = 1;
2900
+// bigThree.add(scenePanel, aWindowConstraints);
2901
+// aWindowConstraints.weightx = 1;
2902
+// aWindowConstraints.gridwidth = 3;
2903
+// // aWindowConstraints.gridheight = 3;
2904
+// aWindowConstraints.gridx = 1;
2905
+// aWindowConstraints.fill = GridBagConstraints.BOTH;
2906
+// bigThree.add(centralPanel, aWindowConstraints);
2907
+// aWindowConstraints.weightx = 0;
2908
+// aWindowConstraints.gridx = 4;
2909
+// aWindowConstraints.gridwidth = 1;
2910
+// // aConstraints.gridheight = 3;
2911
+// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2912
+// bigThree.add(XYZPanel, aWindowConstraints);
2913
+// bigThree.validate();
2914
+// scenePanel.setVisible(true);
2915
+// centralPanel.setVisible(true);
2916
+// XYZPanel.setVisible(true);
2917
+ bigThree.ClearUI();
2918
+ bigThree.add(scenePanel);
2919
+ bigThree.add(centralPanel);
2920
+ bigThree.add(XYZPanel);
2921
+ bigThree.FlushUI();
27792922 } else
2780
- if (event.getSource() == rootButton)
2923
+ if (source == rootButton)
27812924 {
27822925 Object3D obj;
27832926 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -2789,7 +2932,7 @@
27892932
27902933 refreshContents(true);
27912934 } else
2792
- if (event.getSource() == closeButton)
2935
+ if (source == closeButton)
27932936 {
27942937 //System.out.println("CLOSE: " + buttonGroup.getSelection());
27952938 cRadio ab;
....@@ -2810,11 +2953,11 @@
28102953 }
28112954 refreshContents(true);
28122955 } else
2813
- if (event.getSource() == editItem || event.getSource() == editButton)
2956
+ if (source == editItem || source == editButton)
28142957 {
28152958 EditSelection(false);
28162959 } else
2817
- if (event.getSource() == uneditButton)
2960
+ if (source == uneditButton)
28182961 {
28192962 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
28202963 {
....@@ -2826,12 +2969,12 @@
28262969
28272970 child.editWindow = null; // ???????????
28282971 }
2829
- objEditor.ctrlPanel.revalidate();
2972
+ objEditor.ctrlPanel.FlushUI();
28302973 //objEditor.jTree.clearSelection();
28312974 //objEditor.ResetSliders();
28322975 refreshContents(true);
28332976 } else
2834
- if (event.getSource() == clearPanelButton)
2977
+ if (source == clearPanelButton)
28352978 {
28362979 assert(copy == group);
28372980 //copy.ClearUI();
....@@ -2842,7 +2985,7 @@
28422985 listUI.clear();
28432986 refreshContents(true);
28442987 } else
2845
- if (event.getSource() == allParamsButton)
2988
+ if (source == allParamsButton)
28462989 {
28472990 assert(copy == group);
28482991
....@@ -2863,19 +3006,19 @@
28633006
28643007 refreshContents(true);
28653008 } else
2866
- if (event.getSource() == unselectButton)
3009
+ if (source == unselectButton)
28673010 {
28683011 objEditor.jTree.clearSelection();
28693012 // ?? oct 2012 GrafreeD.clipboard.clear();
28703013 objEditor.ResetSliders();
28713014 refreshContents(true);
28723015 } else
2873
- if(event.getSource() instanceof cRadio)
3016
+ if(source instanceof cRadio)
28743017 {
28753018 group.parent = keepparent;
28763019 group.attributes = 0;
28773020 //group.editWindow = null;
2878
- /*cRadio*/ radio = (cRadio)event.getSource();
3021
+ /*cRadio*/ radio = (cRadio)source;
28793022 Object3D obj = radio.GetObject();
28803023 System.out.println("Edit " + obj);
28813024 if (true) // obj instanceof Composite) // obj.parent == null) // obj instanceof Composite)
....@@ -2895,7 +3038,7 @@
28953038 }
28963039
28973040 copy = group;
2898
- //CameraPane.theRenderer.object = group;
3041
+ //Globals.theRenderer.object = group;
28993042 if(!useclient)
29003043 {
29013044 cameraView.renderCamera = radio.camera;
....@@ -2904,7 +3047,8 @@
29043047 cameraView.cameras[cameraView.cameracount] = radio.camera;
29053048 cameraView.targetLookAt.set(radio.camera.lookAt);
29063049 cameraView.object = group;
2907
- cameraView.lighttouched = true;
3050
+ //cameraView.lighttouched = true;
3051
+ Globals.lighttouched = true;
29083052 topView.object = group;
29093053 frontView.object = group;
29103054 sideView.object = group;
....@@ -2940,7 +3084,7 @@
29403084 if (useclient)
29413085 {
29423086 cameraView.object = client;
2943
- cameraView.lighttouched = true;
3087
+ Globals.lighttouched = true;
29443088 //topView.object = client;
29453089 //frontView.object = client;
29463090 //sideView.object = client;
....@@ -2948,7 +3092,7 @@
29483092 else
29493093 {
29503094 cameraView.object = group;
2951
- cameraView.lighttouched = true;
3095
+ Globals.lighttouched = true;
29523096 //topView.object = group;
29533097 //frontView.object = group;
29543098 //sideView.object = group;
....@@ -3456,7 +3600,7 @@
34563600 String pigment = Object3D.GetPigment(tex);
34573601 //String bump = Object3D.GetBump(tex);
34583602
3459
- com.sun.opengl.util.texture.TextureData texturedata = CameraPane.theRenderer.GetTextureData(pigment, false, node.texres);
3603
+ com.sun.opengl.util.texture.TextureData texturedata = Globals.theRenderer.GetTextureData(pigment, false, node.texres);
34603604
34613605 double s = v.s;
34623606
....@@ -3544,11 +3688,11 @@
35443688
35453689 SwitchNode sn = new SwitchNode(poses, Object3D.GEOMETRY);
35463690
3547
- boolean random = CameraPane.RANDOM;
3548
- CameraPane.RANDOM = false; // parse all random nodes
3691
+ boolean random = CameraPane.SWITCH;
3692
+ CameraPane.SWITCH = false; // parse all random nodes
35493693 lowres.linkVerticesThis(null);
35503694 lowres.linkVerticesThis(sn);
3551
- CameraPane.RANDOM = random;
3695
+ CameraPane.SWITCH = random;
35523696
35533697 System.err.flush();
35543698
....@@ -3757,7 +3901,7 @@
37573901 group.selection.RelinkToSupport(); // july 2014
37583902 System.out.println("DONE.");
37593903 refreshContents();
3760
- CameraPane.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.DEFAULT_CURSOR));
3904
+ Globals.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.DEFAULT_CURSOR));
37613905 }
37623906
37633907 void ReduceMesh(boolean reduction34)
....@@ -4033,25 +4177,25 @@
40334177 System.err.println("info : " + child.GetPath());
40344178 }
40354179 }
4036
- else
4037
- {
4038
- objEditor.SetMaterial(group); // .GetMaterial());
4039
- objEditor.AddInfo(group, this, true); // .GetMaterial());
4040
- System.err.println("info : " + group.GetPath());
4041
- }
4180
+// else
4181
+// {
4182
+// objEditor.SetMaterial(group); // .GetMaterial());
4183
+// objEditor.AddInfo(group, this, true); // .GetMaterial());
4184
+// System.err.println("info : " + group.GetPath());
4185
+// }
40424186
40434187 objEditor.SetText(); // jan 2014
40444188
4045
- if (flashIt && !CameraPane.isLIVE() && tps != null && tps.length > 0 && !(((Object3D) tps[0].getLastPathComponent()) instanceof Camera))
4189
+ if (flashIt && !Globals.isLIVE() && tps != null && tps.length > 0 && !(((Object3D) tps[0].getLastPathComponent()) instanceof Camera))
40464190 CameraPane.flash = true;
40474191
40484192 if (tps != null && tps.length > 0 && ((Object3D) tps[0].getLastPathComponent()) instanceof Camera)
40494193 // a camera
40504194 {
40514195 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;
4196
+ Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent());
4197
+ // Globals.theRenderer.renderCamera = Globals.theRenderer.manipCamera;
4198
+ // Globals.theRenderer.eyeCamera = Globals.theRenderer.manipCamera;
40554199 }
40564200
40574201 refreshContents();
....@@ -4306,7 +4450,7 @@
43064450 refreshContents();
43074451 }
43084452
4309
- void pasteInto(boolean copyit)
4453
+ void pasteInto(boolean copyit, boolean clone)
43104454 {
43114455 // if (GrafreeD.clipboard == null)
43124456 // return;
....@@ -4335,7 +4479,14 @@
43354479 if (copyit)
43364480 {
43374481 // paste(false);
4338
- CloneClipboard(false); // sept 2014
4482
+ if (clone)
4483
+ {
4484
+ CloneClipboard(false); // sept 2014
4485
+ }
4486
+ else
4487
+ {
4488
+ paste(false);
4489
+ }
43394490 }
43404491 else
43414492 {
....@@ -4879,10 +5030,12 @@
48795030 cButton flashSelectionButton;
48805031 cButton editButton;
48815032 cButton uneditButton;
5033
+ JCheckBox allParamsButton;
48825034 cButton clearpanelButton;
4883
- cButton allParamsButton;
48845035 cButton unselectButton;
48855036
5037
+ cButton oneStepButton;
5038
+
48865039 cButton screenfitButton;
48875040 cButton screenfitpointButton;
48885041 cButton snapobjectButton;
....@@ -4937,6 +5090,7 @@
49375090 private MenuItem mergeGeometriesItem;
49385091 private MenuItem copyItem;
49395092 private MenuItem pasteItem;
5093
+ private MenuItem pasteIntoItem;
49405094 private MenuItem pasteLinkItem;
49415095 private MenuItem pasteCloneItem;
49425096 private MenuItem pasteExpandItem;
....@@ -5009,6 +5163,7 @@
50095163
50105164 private MenuItem resetParentItem;
50115165 private MenuItem repairParentItem;
5166
+ private MenuItem repairShadowItem;
50125167 private MenuItem sortbysizeItem;
50135168 private MenuItem sortbynameItem;
50145169
....@@ -5033,7 +5188,7 @@
50335188 private MenuItem blobItem;
50345189 private MenuItem latheItem;
50355190 private MenuItem bezierItem;
5036
- private MenuItem checkerItem;
5191
+ private MenuItem overlayItem;
50375192 private MenuItem meshItem;
50385193 // private MenuItem meshGroupItem;
50395194 private MenuItem springItem;