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,150 +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);
523
- oe.aConstraints.gridx += 1;
524
- oe.aConstraints.weighty = 0;
525
- oe.aConstraints.gridwidth = 1;
526513
527
- //
528
- oe.toolbarPanel.add(twoButton = new cButton(" |+| ")); //, oe.aConstraints);
514
+ oe.toolbarPanel.add(new JSeparator(SwingConstants.VERTICAL));
515
+
516
+ oe.toolbarPanel.add(twoButton = new cButton("|+|", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
517
+ twoButton.setToolTipText("Show center view only");
529518 twoButton.addActionListener(this);
530
- oe.toolbarPanel.add(fourButton = new cButton("+|| ")); //, oe.aConstraints);
519
+ oe.toolbarPanel.add(fourButton = new cButton("+||", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
531520 fourButton.addActionListener(this);
532
- 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");
533524 sixButton.addActionListener(this);
534
- 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");
535527 threeButton.addActionListener(this);
536
- 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");
537530 sevenButton.addActionListener(this);
538531 //
539532
540
- 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");
541535 rootButton.addActionListener(this);
542
- oe.aConstraints.gridx += 1;
543
- 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");
544539 closeButton.addActionListener(this);
545540 //oe.treePanel.add(clearButton = new cButton("X"), oe.aConstraints);
546541 //clearButton.addActionListener(this);
547
- oe.aConstraints.gridx += 1;
548542
549
- oe.aConstraints.gridx = 1; //
550
- 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");
551547 editButton.addActionListener(this);
552
- oe.aConstraints.gridx += 1;
553
- oe.aConstraints.weighty = 0;
554
- oe.aConstraints.gridwidth = 1;
555548
556
- oe.treePanel.add(uneditButton = new cButton("-"), oe.aConstraints);
549
+ commandsPanel.add(uneditButton = new cButton("-", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
550
+ uneditButton.setToolTipText("Unedit selection");
557551 uneditButton.addActionListener(this);
558552
559
- oe.aConstraints.gridx += 1;
560
- oe.aConstraints.weighty = 0;
561
- oe.aConstraints.gridwidth = 1;
562
-
563
- oe.treePanel.add(clearPanelButton = new cButton("C"), oe.aConstraints);
564
- clearPanelButton.addActionListener(this);
565
-
566
- oe.aConstraints.gridx += 1;
567
- oe.aConstraints.weighty = 0;
568
- oe.aConstraints.gridwidth = 1;
569
-
570
- 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");
571555 allParamsButton.addActionListener(this);
572556
573
- oe.aConstraints.gridx += 1;
574
- oe.aConstraints.weighty = 0;
575
- oe.aConstraints.gridwidth = 1;
576
-
577
- 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");
578563 unselectButton.addActionListener(this);
579564
565
+ commandsPanel.preferredHeight = 1;
566
+
567
+ oe.treePanel.add(commandsPanel);
568
+ oe.treePanel.Return();
569
+
580570 // oe.aConstraints.gridx += 1;
581571 // oe.aConstraints.weighty = 0;
582572 // oe.aConstraints.gridwidth = 1;
....@@ -588,40 +578,37 @@
588578 // oe.treePanel.add(gcButton = new cButton("GC"), oe.aConstraints);
589579 // gcButton.addActionListener(this);
590580
591
- oe.aConstraints.gridx = 0;
592
- oe.aConstraints.gridy += 1;
593
-
594
- //ctrlPanel.add(objList = new List(5, true));
595
- oe.aConstraints.gridwidth = 100;
596
- // oe.aConstraints.gridheight = 100;
597
- oe.aConstraints.fill = GridBagConstraints.BOTH; // HORIZONTAL;
598
- oe.aConstraints.gridheight = 1;
599
- oe.aConstraints.weighty = 0.5;
600
- oe.aConstraints.gridx = 0;
601
- JScrollPane jSP;
581
+ cGridBag jSPPanel = new cGridBag();
582
+
583
+ JScrollPane jSP;
602584 //ctrlPanel.add(new JScrollPane(jTree = new cTree(new cTreeModel(this))), aConstraints);
603
- 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);
604586 ResetModel();
605
- oe.aConstraints.weighty = 0.5;
606
- oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;
607
- oe.aConstraints.gridy += 1;
608
- oe.aConstraints.gridwidth = 1;
587
+
588
+ oe.treePanel.add(jSPPanel);
589
+ oe.treePanel.Return();
609590
610
- oe.aConstraints.weighty = 0;
611
- oe.aConstraints.gridwidth = 2;
612
-
613
- 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");
614595 colorCB.addItemListener(this);
615
- oe.aConstraints.gridx += 2;
616
- 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");
617599 materialCB.addItemListener(this);
618
- oe.aConstraints.gridx += 2;
619
- 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");
620603 textureCB.addItemListener(this);
621604
622
- oe.aConstraints.gridx = 0;
623
- oe.aConstraints.gridy += 1;
605
+ copyOptionsPanel.preferredHeight = 1;
606
+ oe.treePanel.add(copyOptionsPanel);
607
+ oe.treePanel.Return();
624608
609
+// mainPanel.setDividerLocation(0.5); //1.0);
610
+// mainPanel.setResizeWeight(0.5);
611
+
625612 //jList.addListSelectionListener(this);
626613 oe.jTree.addTreeSelectionListener(this);
627614 //jTree.setRootVisible(false);
....@@ -643,17 +630,89 @@
643630 radio.layout = sevenButton;
644631 oe.toolbarPanel.add(radioPanel); //, oe.aConstraints);
645632 }
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
+ }
646705
647706 void EditObject(Object3D obj)
648707 {
649
- cRadio dummyButton = new cRadio(obj.name);
650
- dummyButton.SetObject(obj);
651
- dummyButton.layout = sevenButton;
652
- dummyButton.SetCamera(cameraView.renderCamera, false);
653
- dummyButton.addActionListener(this);
654
- radioPanel.add(dummyButton);
655
- buttonGroup.add(dummyButton);
656
- dummyButton.doClick();
708
+ cRadio radioButton = new cRadio(obj.name);
709
+ radioButton.SetObject(obj);
710
+ radioButton.layout = sevenButton;
711
+ radioButton.SetCamera(cameraView.renderCamera, false);
712
+ radioButton.addActionListener(this);
713
+ radioPanel.add(radioButton);
714
+ buttonGroup.add(radioButton);
715
+ radioButton.doClick();
657716 }
658717 void SetupViews(ObjEditor oe)
659718 {
....@@ -673,6 +732,7 @@
673732 JCheckBox fastCB;
674733 JCheckBox slowCB;
675734 JCheckBox boxCB;
735
+ JCheckBox zoomBoxCB;
676736 JCheckBox trackCB;
677737 JCheckBox smoothfocusCB;
678738 // JCheckBox speakerMocapCB;
....@@ -715,8 +775,7 @@
715775 dropAttributes |= Object3D.TEXTURE;
716776 else
717777 dropAttributes &= ~Object3D.TEXTURE;
718
- }
719
- else if(e.getSource() == liveCB)
778
+ } else if(e.getSource() == liveCB)
720779 {
721780 cameraView.ToggleLive();
722781 }
....@@ -753,6 +812,10 @@
753812 Recompile();
754813 cameraView.repaint();
755814 // refreshContents();
815
+ }
816
+ else if(e.getSource() == zoomBoxCB)
817
+ {
818
+ cameraView.ToggleZoomBoxMode();
756819 }
757820 else if(e.getSource() == smoothfocusCB)
758821 {
....@@ -921,11 +984,11 @@
921984 {
922985 loadClipboard(true);
923986 objEditor.jTree.setSelectionPath(destinationPath);
924
- pasteInto(false);
987
+ pasteInto(false, false);
925988 } else {
926989 loadClipboard(false);
927990 objEditor.jTree.setSelectionPath(destinationPath);
928
- pasteInto(false); // true); // ???
991
+ pasteInto(false, false); // true); // ???
929992 }
930993 }
931994 public void dropActionChanged(DropTargetDragEvent dtde)
....@@ -1047,27 +1110,33 @@
10471110 kleinItem.addActionListener(this);
10481111 particleItem = menu.add(new MenuItem("Particle system"));
10491112 particleItem.addActionListener(this);
1113
+ if (Globals.ADVANCED)
1114
+ {
10501115 ragdollItem = menu.add(new MenuItem("Rag Walk"));
10511116 ragdollItem.addActionListener(this);
10521117 ragdoll2Item = menu.add(new MenuItem("Rag Fall"));
10531118 ragdoll2Item.addActionListener(this);
1119
+ }
10541120 menu.add("-");
1055
- meshItem = menu.add(new MenuItem("Mesh"));
1121
+ meshItem = menu.add(new MenuItem("Dynamic Mesh"));
10561122 meshItem.addActionListener(this);
10571123 // meshGroupItem = menu.add(new MenuItem("Mesh Group"));
10581124 // meshGroupItem.addActionListener(this);
1125
+ if (Globals.ADVANCED)
1126
+ {
10591127 springItem = menu.add(new MenuItem("Spring"));
10601128 springItem.addActionListener(this);
10611129 flagItem = menu.add(new MenuItem("Flag"));
10621130 flagItem.addActionListener(this);
1063
- bezierItem = menu.add(new MenuItem("Patch"));
1064
- bezierItem.addActionListener(this);
1065
- checkerItem = menu.add(new MenuItem("Checker"));
1066
- checkerItem.addActionListener(this);
10671131 blobItem = menu.add(new MenuItem("Blob"));
10681132 blobItem.addActionListener(this);
10691133 latheItem = menu.add(new MenuItem("Lathe"));
10701134 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);
10711140 lightItem = menu.add(new MenuItem("Light"));
10721141 lightItem.addActionListener(this);
10731142 menu.add("-");
....@@ -1077,25 +1146,26 @@
10771146 loopItem.addActionListener(this);
10781147 doubleItem = menu.add(new MenuItem("Fork"));
10791148 doubleItem.addActionListener(this);
1149
+ if (Globals.ADVANCED)
1150
+ {
10801151 tripleItem = menu.add(new MenuItem("Trident"));
10811152 tripleItem.addActionListener(this);
1153
+ }
10821154 }
10831155
10841156 void buildToolsMenu(Menu menu)
10851157 {
10861158 menu.add(animationItem = new CheckboxMenuItem("Animation..."));
10871159 animationItem.addItemListener(this);
1088
- animationItem.setState(CameraPane.ANIMATION);
1160
+ animationItem.setState(Globals.ANIMATION);
10891161
10901162 menu.add("-");
10911163 parseverticesItem = menu.add(new MenuItem("Multiplicity"));
10921164 parseverticesItem.addActionListener(this);
10931165 textureFieldItem = menu.add(new MenuItem("Texture Field"));
10941166 textureFieldItem.addActionListener(this);
1095
- alignItem = menu.add(new MenuItem("Align"));
1167
+ alignItem = menu.add(new MenuItem("Align Object"));
10961168 alignItem.addActionListener(this);
1097
- mirrorItem = menu.add(new MenuItem("Mirror Poses"));
1098
- mirrorItem.addActionListener(this);
10991169 reduceMorphItem = menu.add(new MenuItem("Reduce Morphs"));
11001170 reduceMorphItem.addActionListener(this);
11011171 reduce34MorphItem = menu.add(new MenuItem("Reduce Morphs (34)"));
....@@ -1103,8 +1173,12 @@
11031173
11041174 menu.add(computeAOItem = new MenuItem("Compute AO"));
11051175 computeAOItem.addActionListener(this);
1106
- menu.add("-");
11071176
1177
+ if (Globals.ADVANCED)
1178
+ {
1179
+ mirrorItem = menu.add(new MenuItem("Mirror Poses"));
1180
+ mirrorItem.addActionListener(this);
1181
+ menu.add("-");
11081182 menu.add(memoryItem = new MenuItem("Memory Usage"));
11091183 memoryItem.addActionListener(this);
11101184 menu.add(analyzeItem = new MenuItem("Analyze"));
....@@ -1118,6 +1192,8 @@
11181192 resetParentItem.addActionListener(this);
11191193 repairParentItem = menu.add(new MenuItem("Repair Parent"));
11201194 repairParentItem.addActionListener(this);
1195
+ repairShadowItem = menu.add(new MenuItem("Repair Shadow"));
1196
+ repairShadowItem.addActionListener(this);
11211197 menu.add(invariantsItem = new MenuItem("Invariants"));
11221198 invariantsItem.addActionListener(this);
11231199 menu.add(recompileItem = new MenuItem("Recompile"));
....@@ -1125,6 +1201,7 @@
11251201 menu.add("-");
11261202 menu.add(editScriptItem = new MenuItem("Edit Script..."));
11271203 editScriptItem.addActionListener(this);
1204
+ }
11281205 }
11291206
11301207 void ScreenFit()
....@@ -1478,6 +1555,7 @@
14781555 //
14791556 public void actionPerformed(ActionEvent event) // , Object arg)
14801557 {
1558
+ Object source = event.getSource();
14811559 /*
14821560 if (event.getSource() == nameField)
14831561 {
....@@ -1489,11 +1567,11 @@
14891567 }
14901568 else
14911569 */
1492
- if (event.getSource() == lookAtItem || event.getSource() == lookFromItem)
1570
+ if (source == lookAtItem || source == lookFromItem)
14931571 {
14941572 ScreenFit();
14951573 } else
1496
- if (event.getSource() == switchItem)
1574
+ if (source == switchItem)
14971575 {
14981576 cVector v1 = new cVector();
14991577 cVector v2 = new cVector();
....@@ -1502,11 +1580,11 @@
15021580 objEditor.cameraView.renderCamera.setAim(v2, v1);
15031581 objEditor.cameraView.repaint();
15041582 } else
1505
- if (event.getSource() == rectoidItem)
1583
+ if (source == rectoidItem)
15061584 {
15071585 makeSomething(new Box());
15081586 } else
1509
- if (event.getSource() == particleItem)
1587
+ if (source == particleItem)
15101588 {
15111589 ParticleNode particleGeom = new ParticleNode("Particles", 1000); //, particleType);
15121590 ParticleController particleController = new ParticleController(particleGeom);
....@@ -1527,9 +1605,9 @@
15271605 applyExample(particleGeom, "SMOKE");
15281606 makeSomething(particleGeom);
15291607 } else
1530
- if (event.getSource() == ragdollItem || event.getSource() == ragdoll2Item)
1608
+ if (source == ragdollItem || source == ragdoll2Item)
15311609 {
1532
- GenericJoint ragdoll = new GenericJoint(event.getSource() == ragdollItem);
1610
+ GenericJoint ragdoll = new GenericJoint(source == ragdollItem);
15331611
15341612 ragdoll.toParent = LA.newMatrix();
15351613 ragdoll.fromParent = LA.newMatrix();
....@@ -1547,7 +1625,7 @@
15471625 } else
15481626 /*
15491627 */
1550
- if (event.getSource() == heightFieldItem)
1628
+ if (source == heightFieldItem)
15511629 {
15521630 Object3D obj = new Object3D();
15531631
....@@ -1585,31 +1663,31 @@
15851663
15861664 makeSomething(obj);
15871665 } else
1588
- if (event.getSource() == gridItem)
1666
+ if (source == gridItem)
15891667 {
15901668 makeSomething(new Grid());
15911669 } else
1592
- if (event.getSource() == ellipsoidItem)
1670
+ if (source == ellipsoidItem)
15931671 {
15941672 makeSomething(new Sphere());
15951673 } else
1596
- if (event.getSource() == coneItem)
1674
+ if (source == coneItem)
15971675 {
15981676 makeSomething(new Cone());
15991677 } else
1600
- if (event.getSource() == torusItem)
1678
+ if (source == torusItem)
16011679 {
16021680 makeSomething(new Torus());
16031681 } else
1604
- if (event.getSource() == superItem)
1682
+ if (source == superItem)
16051683 {
16061684 makeSomething(new Superellipsoid());
16071685 } else
1608
- if (event.getSource() == kleinItem)
1686
+ if (source == kleinItem)
16091687 {
16101688 makeSomething(new Klein());
16111689 } else
1612
- if (event.getSource() == blobItem)
1690
+ if (source == blobItem)
16131691 {
16141692 Blob blob = new Blob();
16151693 BlobComponent comp = new BlobComponent();
....@@ -1617,15 +1695,15 @@
16171695 //blob.retile();
16181696 makeSomething(blob);
16191697 } else
1620
- if (event.getSource() == latheItem)
1698
+ if (source == latheItem)
16211699 {
16221700 makeSomething(new Lathe());
16231701 } else
1624
- if (event.getSource() == bezierItem)
1702
+ if (source == bezierItem)
16251703 {
16261704 makeSomething(new BezierSurface());
16271705 } else
1628
- if (event.getSource() == checkerItem)
1706
+ if (source == overlayItem)
16291707 {
16301708 /*
16311709 Object3D obj = new BezierSurface(5,8);
....@@ -1640,7 +1718,7 @@
16401718 */
16411719 makeSomething(new Checker());
16421720 } else
1643
- if (event.getSource() == meshItem)
1721
+ if (source == meshItem)
16441722 {
16451723 Object3D itemtomake = new Object3D();
16461724 Object3D child;
....@@ -1661,35 +1739,35 @@
16611739 makeSomething(child);
16621740 }
16631741 } else
1664
- if (event.getSource() == springItem)
1742
+ if (source == springItem)
16651743 {
16661744 cSpring s = new cSpring();
16671745 s.setup();
16681746 makeSomething(s);
16691747 } else
1670
- if (event.getSource() == flagItem)
1748
+ if (source == flagItem)
16711749 {
16721750 cSpring s = new cFlag();
16731751 s.setup();
16741752 makeSomething(s);
16751753 } else
1676
- if (event.getSource() == lightItem)
1754
+ if (source == lightItem)
16771755 {
16781756 makeSomething(new Light());
16791757 } else
1680
- if (event.getSource() == csgItem)
1758
+ if (source == csgItem)
16811759 {
16821760 group(new CSG());
16831761 } else
1684
- if (event.getSource() == templateItem)
1762
+ if (source == templateItem)
16851763 {
16861764 group(new cTemplate());
16871765 } else
1688
- if (event.getSource() == attributeItem)
1766
+ if (source == attributeItem)
16891767 {
16901768 makeSomething(new Attribute());
16911769 } else
1692
- if (event.getSource() == pointflowItem)
1770
+ if (source == pointflowItem)
16931771 {
16941772 makeSomething(new PointFlow());
16951773 } else
....@@ -1701,7 +1779,7 @@
17011779 } else
17021780 */
17031781
1704
- if (event.getSource() == superLoopItem)
1782
+ if (source == superLoopItem)
17051783 {
17061784 Composite g = new cGroup();
17071785 for (int i=0; i<15; i++)
....@@ -1723,7 +1801,7 @@
17231801
17241802 group(g);
17251803 } else
1726
- if (event.getSource() == loopItem)
1804
+ if (source == loopItem)
17271805 {
17281806 Composite csg = new GroupLeaf();
17291807 csg.count = 5;
....@@ -1732,7 +1810,7 @@
17321810 csg.addChild(child);
17331811 child.addChild(csg);
17341812 } else
1735
- if (event.getSource() == doubleItem)
1813
+ if (source == doubleItem)
17361814 {
17371815 Composite csg = new GroupLeaf();
17381816 csg.count = 5;
....@@ -1744,7 +1822,7 @@
17441822 csg.addChild(child);
17451823 child.addChild(csg);
17461824 } else
1747
- if (event.getSource() == tripleItem)
1825
+ if (source == tripleItem)
17481826 {
17491827 Composite csg = new GroupLeaf();
17501828 csg.count = 4;
....@@ -1760,70 +1838,75 @@
17601838 child.addChild(csg);
17611839 } else
17621840
1763
- if (event.getSource() == importGFDItem)
1841
+ if (source == importGFDItem)
17641842 {
17651843 ImportGFD();
17661844 } else
1767
- if (event.getSource() == importVRMLX3DItem)
1845
+ if (source == importVRMLX3DItem)
17681846 {
17691847 ImportVRMLX3D();
17701848 } else
1771
- if (event.getSource() == import3DSItem)
1849
+ if (source == import3DSItem)
17721850 {
17731851 objEditor.ImportJME(new com.jmex.model.converters.MaxToJme(), "3ds", "Import 3DS");
17741852 } else
1775
- if (event.getSource() == importOBJItem)
1853
+ if (source == importOBJItem)
17761854 {
17771855 objEditor.ImportJME(new com.jmex.model.converters.ObjToJme(), "obj", "Import OBJ");
17781856 } else
1779
- if (event.getSource() == computeAOItem)
1857
+ if (source == computeAOItem)
17801858 {
1781
- CameraPane.drawMode = CameraPane.OCCLUSION;
1782
- CameraPane.theRenderer.repaint();
1859
+ Globals.drawMode = CameraPane.OCCLUSION;
1860
+ Globals.theRenderer.repaint();
17831861 } else
1784
- if (event.getSource() == recompileItem)
1862
+ if (source == recompileItem)
17851863 {
17861864 Recompile();
17871865 refreshContents();
17881866 } else
1789
- if (event.getSource() == editScriptItem)
1867
+ if (source == editScriptItem)
17901868 {
17911869 OpenDialog();
17921870 refreshContents();
17931871 } else
1794
- if (event.getSource() == invariantsItem)
1872
+ if (source == invariantsItem)
17951873 {
17961874 System.out.println("Invariants:");
17971875 GrafreeD.grafreeD.universe.invariants();
17981876 } else
1799
- if (event.getSource() == memoryItem)
1877
+ if (source == memoryItem)
18001878 {
18011879 //System.out.println("Invariants:");
18021880 PrintMemory();
18031881 } else
1804
- if (event.getSource() == pathItem)
1882
+ if (source == pathItem)
18051883 {
18061884 PrintPath();
18071885 } else
1808
- if (event.getSource() == analyzeItem)
1886
+ if (source == analyzeItem)
18091887 {
18101888 AnalyzeObject();
18111889 } else
1812
- if (event.getSource() == dumpItem)
1890
+ if (source == dumpItem)
18131891 {
18141892 DumpObject();
18151893 } else
1816
- if (event.getSource() == screenfitButton)
1894
+ if (source == oneStepButton)
1895
+ {
1896
+ Globals.ONESTEP = true;
1897
+ cameraView.repaint();
1898
+ } else
1899
+ if (source == screenfitButton)
18171900 {
18181901 //Reload(lastConverter, lastFilename, true);
18191902 ScreenFit();
18201903 } else
1821
- if (event.getSource() == screenfitpointButton)
1904
+ if (source == screenfitpointButton)
18221905 {
18231906 //Reload(lastConverter, lastFilename, true);
18241907 ScreenFitPoint();
18251908 } else
1826
- if (event.getSource() == snapobjectButton)
1909
+ if (source == snapobjectButton)
18271910 {
18281911 //Reload(lastConverter, lastFilename, true);
18291912 SnapObject();
....@@ -1834,13 +1917,13 @@
18341917 // Recompile();
18351918 // refreshContents();
18361919 // } else
1837
- if (event.getSource() == gcButton)
1920
+ if (source == gcButton)
18381921 {
18391922 System.out.println("Memory (F/T/M) : " + Runtime.getRuntime().freeMemory() + "/" + Runtime.getRuntime().totalMemory() + "/" + Runtime.getRuntime().maxMemory());
18401923 System.gc();
18411924 System.out.println("GC Memory (F/T/M) : " + Runtime.getRuntime().freeMemory() + "/" + Runtime.getRuntime().totalMemory() + "/" + Runtime.getRuntime().maxMemory());
18421925 } else
1843
- if (event.getSource() == editLeafItem)
1926
+ if (source == editLeafItem)
18441927 {
18451928 Object3D obj;
18461929 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -1854,62 +1937,66 @@
18541937 }
18551938 refreshContents(true);
18561939 } else
1857
- if (event.getSource() == openWindowItem)
1940
+ if (source == openWindowItem)
18581941 {
18591942 EditSelection(true);
18601943 } else
1861
- if (event.getSource() == cutItem || event.getSource() == clearButton)
1944
+ if (source == cutItem || source == clearButton)
18621945 {
18631946 loadClipboard(true);
18641947 } else
1865
- if (event.getSource() == duplicateItem)
1948
+ if (source == duplicateItem)
18661949 {
18671950 Object3D keep = GrafreeD.clipboard;
18681951 loadClipboard(false);
18691952 paste(false);
18701953 GrafreeD.clipboard = keep;
18711954 } else
1872
- if (event.getSource() == cloneItem)
1955
+ if (source == cloneItem)
18731956 {
18741957 CloneSelection(false);
18751958 } else
1876
- if (event.getSource() == cloneSupportItem)
1959
+ if (source == cloneSupportItem)
18771960 {
18781961 CloneSelection(true);
18791962 } else
1880
- if (event.getSource() == copyItem)
1963
+ if (source == copyItem)
18811964 {
18821965 loadClipboard(false);
18831966 } else
1884
- if (event.getSource() == pasteItem)
1967
+ if (source == pasteItem)
18851968 {
18861969 paste(false);
18871970 } else
1888
- if (event.getSource() == pasteLinkItem)
1971
+ if (source == pasteIntoItem)
18891972 {
1890
- pasteInto(false);
1973
+ pasteInto(true, false);
18911974 } else
1892
- if (event.getSource() == pasteCloneItem)
1975
+ if (source == pasteLinkItem)
18931976 {
1894
- pasteInto(true);
1977
+ pasteInto(false, false);
18951978 } else
1896
- if (event.getSource() == pasteExpandItem)
1979
+ if (source == pasteCloneItem)
1980
+ {
1981
+ pasteInto(true, true);
1982
+ } else
1983
+ if (source == pasteExpandItem)
18971984 {
18981985 paste(true);
18991986 } else
1900
- if (event.getSource() == synchronizeItem)
1987
+ if (source == synchronizeItem)
19011988 {
19021989 Overwrite(Object3D.TRANSFORM);
19031990 } else
1904
- if (event.getSource() == overwriteNameItem)
1991
+ if (source == overwriteNameItem)
19051992 {
19061993 Overwrite(Object3D.NAME);
19071994 } else
1908
- if (event.getSource() == overwriteUVItem)
1995
+ if (source == overwriteUVItem)
19091996 {
19101997 Overwrite(Object3D.UV);
19111998 } else
1912
- if (event.getSource() == overwriteMatItem)
1999
+ if (source == overwriteMatItem)
19132000 {
19142001 /* july 2015
19152002 if ((dropAttributes & Object3D.TEXTURE) == 0)
....@@ -1929,7 +2016,7 @@
19292016
19302017 Overwrite(dropAttributes);
19312018 }
1932
- if (event.getSource() == overwriteGeoItem)
2019
+ if (source == overwriteGeoItem)
19332020 {
19342021 Overwrite(Object3D.GEOMETRY);
19352022 // if (/*group.selection.size() == 1 &&*/ GrafreeD.clipboard.size() == 1)
....@@ -1946,7 +2033,7 @@
19462033 // refreshContents();
19472034 // }
19482035 } else
1949
- if (event.getSource() == generateMeshItem)
2036
+ if (source == generateMeshItem)
19502037 {
19512038 //if (group.selection.size() == 1)
19522039 // for (int i=0; i<group.selection.size(); i++)
....@@ -1957,7 +2044,7 @@
19572044 ResetModel();
19582045 refreshContents();
19592046 } else
1960
- if (event.getSource() == extractGeometriesItem)
2047
+ if (source == extractGeometriesItem)
19612048 {
19622049 boolean one = false;
19632050
....@@ -1984,7 +2071,7 @@
19842071 ResetModel();
19852072 refreshContents();
19862073 } else
1987
- if (event.getSource() == cloneGeometriesItem)
2074
+ if (source == cloneGeometriesItem)
19882075 {
19892076 boolean one = false;
19902077
....@@ -2010,7 +2097,7 @@
20102097 ResetModel();
20112098 refreshContents();
20122099 } else
2013
- if (event.getSource() == shareGeometriesItem)
2100
+ if (source == shareGeometriesItem)
20142101 {
20152102 boolean one = false;
20162103
....@@ -2040,7 +2127,7 @@
20402127 refreshContents();
20412128 }
20422129 } else
2043
- if (event.getSource() == mergeGeometriesItem)
2130
+ if (source == mergeGeometriesItem)
20442131 {
20452132 boolean one = false;
20462133
....@@ -2070,7 +2157,7 @@
20702157 ResetModel();
20712158 refreshContents();
20722159 } else
2073
- if (event.getSource() == linkverticesItem)
2160
+ if (source == linkverticesItem)
20742161 {
20752162 // if (group.selection.size() == 1 && GrafreeD.clipboard.size() == 1)
20762163 // {
....@@ -2090,41 +2177,41 @@
20902177 if (content instanceof cGroup && ((cGroup)content).transientlink )
20912178 content = ((cGroup)content).get(0);
20922179
2093
- 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));
20942181 for (int i=0; i<group.selection.size(); i++)
20952182 {
2096
- boolean random = CameraPane.RANDOM;
2097
- CameraPane.RANDOM = false; // parse all random nodes
2183
+ boolean random = CameraPane.SWITCH;
2184
+ CameraPane.SWITCH = false; // parse all random nodes
20982185 group.selection.get(i).linkVerticesThis(content);
20992186 // group.selection.get(i).setMasterThis(content); // should be identity
2100
- CameraPane.RANDOM = random;
2187
+ CameraPane.SWITCH = random;
21012188 }
2102
- 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));
21032190 refreshContents();
21042191 }
21052192 } else
2106
- if (event.getSource() == resetsupportItem)
2193
+ if (source == resetsupportItem)
21072194 {
21082195 for (int i=0; i<group.selection.size(); i++)
21092196 {
2110
- boolean random = CameraPane.RANDOM;
2111
- CameraPane.RANDOM = false; // parse all random nodes
2197
+ boolean random = CameraPane.SWITCH;
2198
+ CameraPane.SWITCH = false; // parse all random nodes
21122199 group.selection.get(i).linkVerticesThis(null);
2113
- CameraPane.RANDOM = random;
2200
+ CameraPane.SWITCH = random;
21142201 }
21152202
21162203 refreshContents();
21172204 } else
2118
- if (event.getSource() == relinkverticesItem)
2205
+ if (source == relinkverticesItem)
21192206 {
2120
- boolean random = CameraPane.RANDOM;
2121
- CameraPane.RANDOM = false; // parse all random nodes
2207
+ boolean random = CameraPane.SWITCH;
2208
+ CameraPane.SWITCH = false; // parse all random nodes
21222209 group.selection.RelinkToSupport();
2123
- CameraPane.RANDOM = random;
2210
+ CameraPane.SWITCH = random;
21242211
21252212 refreshContents();
21262213 } else
2127
- if (event.getSource() == resetreferencesItem)
2214
+ if (source == resetreferencesItem)
21282215 {
21292216 for (int i=0; i<group.selection.size(); i++)
21302217 {
....@@ -2133,7 +2220,7 @@
21332220
21342221 refreshContents();
21352222 } else
2136
- if (event.getSource() == setMasterItem)
2223
+ if (source == setMasterItem)
21372224 {
21382225 if (group.selection.size() == 1 && GrafreeD.clipboard.size() == 1)
21392226 {
....@@ -2146,7 +2233,7 @@
21462233 refreshContents();
21472234 }
21482235 } else
2149
- if (event.getSource() == poseMeshItem)
2236
+ if (source == poseMeshItem)
21502237 {
21512238 if (group.selection.size() == 1)
21522239 {
....@@ -2165,19 +2252,19 @@
21652252 }
21662253
21672254 } else
2168
- if (event.getSource() == revertMeshItem)
2255
+ if (source == revertMeshItem)
21692256 {
21702257 RevertMeshes();
21712258 } else
2172
- if (event.getSource() == resetMeshItem)
2259
+ if (source == resetMeshItem)
21732260 {
21742261 ResetAll();
21752262 } else
2176
- if (event.getSource() == stepAllItem)
2263
+ if (source == stepAllItem)
21772264 {
21782265 StepAll();
21792266 } else
2180
- if (event.getSource() == clearItem) // || event.getSource() == clearButton)
2267
+ if (source == clearItem) // || event.getSource() == clearButton)
21812268 {
21822269 //int indices[] = jList.getSelectedIndices();
21832270 //for (int i = indices.length - 1; i >= 0; i--)
....@@ -2185,46 +2272,46 @@
21852272
21862273 ClearSelection(false);
21872274 } else
2188
- if (event.getSource() == clearAllItem)
2275
+ if (source == clearAllItem)
21892276 {
21902277 ClearSelection(true);
21912278 } else
2192
- if (event.getSource() == grabItem)
2279
+ if (source == grabItem)
21932280 {
21942281 group(new cGroup(), true);
21952282 } else
2196
- if (event.getSource() == hideItem)
2283
+ if (source == hideItem)
21972284 {
21982285 group(new HiddenObject());
21992286 } else
2200
- if (event.getSource() == frontItem)
2287
+ if (source == frontItem)
22012288 {
22022289 front();
22032290 } else
2204
- if (event.getSource() == backItem)
2291
+ if (source == backItem)
22052292 {
22062293 back();
22072294 } else
2208
- if (event.getSource() == cameraItem)
2295
+ if (source == cameraItem)
22092296 {
22102297 makeSomething(new Camera());
22112298 } else
2212
- if (event.getSource() == compositeItem)
2299
+ if (source == compositeItem)
22132300 {
22142301 group(new Composite());
22152302 } else
2216
- if (event.getSource() == randomItem)
2303
+ if (source == randomItem)
22172304 {
22182305 RandomNode random = new RandomNode();
22192306 group(random);
22202307 if (random.size() > 0)
2221
- random.name = random.get(0).name + "Rnd";
2308
+ random.name = random.get(0).name + "Switch";
22222309 } else
2223
- if (event.getSource() == physicsItem)
2310
+ if (source == physicsItem)
22242311 {
22252312 group(new PhysicsNode());
22262313 } else
2227
- if (event.getSource() == frameselectorItem)
2314
+ if (source == frameselectorItem)
22282315 {
22292316 for (int i=0; i<group.selection.size(); i++)
22302317 {
....@@ -2236,7 +2323,7 @@
22362323 ResetModel();
22372324 refreshContents();
22382325 } else
2239
- if (event.getSource() == switchGeoItem)
2326
+ if (source == switchGeoItem)
22402327 {
22412328 for (int i=0; i<group.selection.size(); i++)
22422329 {
....@@ -2248,7 +2335,7 @@
22482335 ResetModel();
22492336 refreshContents();
22502337 } else
2251
- if (event.getSource() == switchTransfoItem)
2338
+ if (source == switchTransfoItem)
22522339 {
22532340 for (int i=0; i<group.selection.size(); i++)
22542341 {
....@@ -2260,7 +2347,7 @@
22602347 ResetModel();
22612348 refreshContents();
22622349 } else
2263
- if (event.getSource() == morphItem)
2350
+ if (source == morphItem)
22642351 {
22652352 for (int i=0; i<group.selection.size(); i++)
22662353 {
....@@ -2272,7 +2359,7 @@
22722359 ResetModel();
22732360 refreshContents();
22742361 } else
2275
- if (event.getSource() == scriptNodeItem)
2362
+ if (source == scriptNodeItem)
22762363 {
22772364 boolean atleastone = false;
22782365
....@@ -2311,31 +2398,31 @@
23112398 }
23122399 }
23132400 } else
2314
- if (event.getSource() == linkerItem)
2401
+ if (source == linkerItem)
23152402 {
23162403 group(new cLinker());
23172404 } else
2318
- if (event.getSource() == textureItem)
2405
+ if (source == textureItem)
23192406 {
23202407 group(new TextureNode());
23212408 } else
2322
- if (event.getSource() == billboardItem)
2409
+ if (source == billboardItem)
23232410 {
23242411 group(new BillboardNode());
23252412 } else
2326
- if (event.getSource() == shadowXItem)
2413
+ if (source == shadowXItem)
23272414 {
23282415 CastShadow(0);
23292416 } else
2330
- if (event.getSource() == shadowYItem)
2417
+ if (source == shadowYItem)
23312418 {
23322419 CastShadow(1);
23332420 } else
2334
- if (event.getSource() == shadowZItem)
2421
+ if (source == shadowZItem)
23352422 {
23362423 CastShadow(2);
23372424 } else
2338
- if (event.getSource() == ungroupItem)
2425
+ if (source == ungroupItem)
23392426 {
23402427 //ungroup();
23412428 for (int i=0; i<group.selection.size(); i++)
....@@ -2347,179 +2434,179 @@
23472434
23482435 refreshContents();
23492436 } else
2350
- if (event.getSource() == genUVItem)
2437
+ if (source == genUVItem)
23512438 {
23522439 GenUV();
23532440 } else
2354
- if (event.getSource() == genNormalsCADItem)
2441
+ if (source == genNormalsCADItem)
23552442 {
23562443 GenNormals(true);
23572444 } else
2358
- if (event.getSource() == genNormalsMESHItem)
2445
+ if (source == genNormalsMESHItem)
23592446 {
23602447 GenNormals(true); // TODO
23612448 } else
2362
- if (event.getSource() == genNormalsORGANItem)
2449
+ if (source == genNormalsORGANItem)
23632450 {
23642451 GenNormals(false);
23652452 } else
2366
- if (event.getSource() == genNormalsMINEItem)
2453
+ if (source == genNormalsMINEItem)
23672454 {
23682455 GenNormalsMINE();
23692456 } else
2370
- if (event.getSource() == stripifyItem)
2457
+ if (source == stripifyItem)
23712458 {
23722459 Stripify();
23732460 } else
2374
- if (event.getSource() == unstripifyItem)
2461
+ if (source == unstripifyItem)
23752462 {
23762463 Unstripify();
23772464 } else
2378
- if (event.getSource() == trimItem)
2465
+ if (source == trimItem)
23792466 {
23802467 Trim();
23812468 } else
2382
- if (event.getSource() == untrimItem)
2469
+ if (source == untrimItem)
23832470 {
23842471 Untrim();
23852472 } else
2386
- if (event.getSource() == clearColorsItem)
2473
+ if (source == clearColorsItem)
23872474 {
23882475 ClearColors();
23892476 } else
2390
- if (event.getSource() == clearMaterialsItem)
2477
+ if (source == clearMaterialsItem)
23912478 {
23922479 ClearMaterials();
23932480 } else
2394
- if (event.getSource() == liveleavesItem)
2481
+ if (source == liveleavesItem)
23952482 {
23962483 LiveLeaves(true);
23972484 } else
2398
- if (event.getSource() == unliveleavesItem)
2485
+ if (source == unliveleavesItem)
23992486 {
24002487 LiveLeaves(false);
24012488 } else
2402
- if (event.getSource() == supportleavesItem)
2489
+ if (source == supportleavesItem)
24032490 {
24042491 SupportLeaves(true);
24052492 } else
2406
- if (event.getSource() == unsupportleavesItem)
2493
+ if (source == unsupportleavesItem)
24072494 {
24082495 SupportLeaves(false);
24092496 } else
2410
- if (event.getSource() == hideleavesItem)
2497
+ if (source == hideleavesItem)
24112498 {
24122499 HideLeaves(true);
24132500 } else
2414
- if (event.getSource() == showleavesItem)
2501
+ if (source == showleavesItem)
24152502 {
24162503 HideLeaves(false);
24172504 } else
2418
- if (event.getSource() == markleavesItem)
2505
+ if (source == markleavesItem)
24192506 {
24202507 MarkLeaves(true);
24212508 } else
2422
- if (event.getSource() == unmarkleavesItem)
2509
+ if (source == unmarkleavesItem)
24232510 {
24242511 MarkLeaves(false);
24252512 } else
2426
- if (event.getSource() == flipVItem)
2513
+ if (source == flipVItem)
24272514 {
24282515 FlipV(true);
24292516 } else
2430
- if (event.getSource() == unflipVItem)
2517
+ if (source == unflipVItem)
24312518 {
24322519 FlipV(false);
24332520 } else
2434
- if (event.getSource() == lowTexturesItem)
2521
+ if (source == lowTexturesItem)
24352522 {
24362523 SetTexRes(0);
24372524 } else
2438
- if (event.getSource() == normalTexturesItem)
2525
+ if (source == normalTexturesItem)
24392526 {
24402527 SetTexRes(1);
24412528 } else
2442
- if (event.getSource() == highTexturesItem)
2529
+ if (source == highTexturesItem)
24432530 {
24442531 SetTexRes(2);
24452532 } else
2446
- if (event.getSource() == veryhighTexturesItem)
2533
+ if (source == veryhighTexturesItem)
24472534 {
24482535 SetTexRes(3);
24492536 } else
2450
- if (event.getSource() == maxTexturesItem)
2537
+ if (source == maxTexturesItem)
24512538 {
24522539 SetTexRes(4);
24532540 } else
2454
- if (event.getSource() == panoTexturesItem)
2541
+ if (source == panoTexturesItem)
24552542 {
24562543 SetTexRes(5);
24572544 } else
2458
- if (event.getSource() == reverseNormalsItem)
2545
+ if (source == reverseNormalsItem)
24592546 {
24602547 ReverseNormals();
24612548 } else
2462
- if (event.getSource() == parseverticesItem)
2549
+ if (source == parseverticesItem)
24632550 {
24642551 ParseVertices();
24652552 } else
2466
- if (event.getSource() == textureFieldItem)
2553
+ if (source == textureFieldItem)
24672554 {
24682555 TextureVertices();
24692556 } else
2470
- if (event.getSource() == alignItem)
2557
+ if (source == alignItem)
24712558 {
24722559 Align();
24732560 } else
2474
- if (event.getSource() == mirrorItem)
2561
+ if (source == mirrorItem)
24752562 {
24762563 MirrorPoses();
24772564 } else
2478
- if (event.getSource() == reduceMorphItem)
2565
+ if (source == reduceMorphItem)
24792566 {
24802567 MeshReduction(false);
24812568 } else
2482
- if (event.getSource() == reduce34MorphItem)
2569
+ if (source == reduce34MorphItem)
24832570 {
24842571 MeshReduction(true);
24852572 } else
2486
- if (event.getSource() == reverseTrianglesItem)
2573
+ if (source == reverseTrianglesItem)
24872574 {
24882575 ReverseTriangles();
24892576 } else
2490
- if (event.getSource() == reduceMeshItem)
2577
+ if (source == reduceMeshItem)
24912578 {
24922579 ReduceMesh(false);
24932580 } else
2494
- if (event.getSource() == reduce34MeshItem)
2581
+ if (source == reduce34MeshItem)
24952582 {
24962583 ReduceMesh(true);
24972584 } else
2498
- if (event.getSource() == increaseMeshItem)
2585
+ if (source == increaseMeshItem)
24992586 {
25002587 IncreaseMesh();
25012588 } else
2502
- if (event.getSource() == clipMeshItem)
2589
+ if (source == clipMeshItem)
25032590 {
25042591 ClipMesh();
25052592 } else
2506
- if (event.getSource() == smoothMeshItem)
2593
+ if (source == smoothMeshItem)
25072594 {
25082595 SmoothMesh();
25092596 } else
2510
- if (event.getSource() == transformgeometryItem)
2597
+ if (source == transformgeometryItem)
25112598 {
25122599 TransformGeometry();
25132600 } else
2514
- if (event.getSource() == resetTransformItem)
2601
+ if (source == resetTransformItem)
25152602 {
25162603 ResetTransform();
25172604 } else
2518
- if (event.getSource() == resetCentroidItem)
2605
+ if (source == resetCentroidItem)
25192606 {
25202607 ResetCentroid();
25212608 } else
2522
- if (event.getSource() == resetParentItem)
2609
+ if (source == resetParentItem)
25232610 {
25242611 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
25252612 {
....@@ -2529,7 +2616,7 @@
25292616
25302617 refreshContents();
25312618 } else
2532
- if (event.getSource() == repairParentItem)
2619
+ if (source == repairParentItem)
25332620 {
25342621 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
25352622 {
....@@ -2543,7 +2630,21 @@
25432630
25442631 refreshContents();
25452632 } else
2546
- 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)
25472648 {
25482649 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
25492650 {
....@@ -2555,7 +2656,7 @@
25552656 ResetModel();
25562657 refreshContents();
25572658 } else
2558
- if (event.getSource() == sortbynameItem)
2659
+ if (source == sortbynameItem)
25592660 {
25602661 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
25612662 {
....@@ -2567,7 +2668,7 @@
25672668 ResetModel();
25682669 refreshContents();
25692670 } else
2570
- if (event.getSource() == attachPigmentItem)
2671
+ if (source == attachPigmentItem)
25712672 {
25722673 String texture = GetFile("Attach pigment");
25732674 Object3D obj;
....@@ -2579,7 +2680,7 @@
25792680
25802681 refreshContents();
25812682 } else
2582
- if (event.getSource() == detachPigmentItem)
2683
+ if (source == detachPigmentItem)
25832684 {
25842685 Object3D obj;
25852686 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -2590,7 +2691,7 @@
25902691
25912692 refreshContents();
25922693 } else
2593
- if (event.getSource() == attachBumpItem)
2694
+ if (source == attachBumpItem)
25942695 {
25952696 String texture = GetFile("Attach bump");
25962697 Object3D obj;
....@@ -2602,7 +2703,7 @@
26022703
26032704 refreshContents();
26042705 } else
2605
- if (event.getSource() == detachBumpItem)
2706
+ if (source == detachBumpItem)
26062707 {
26072708 Object3D obj;
26082709 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -2613,7 +2714,7 @@
26132714
26142715 refreshContents();
26152716 } else
2616
- if (event.getSource() == pigmentBumpItem)
2717
+ if (source == pigmentBumpItem)
26172718 {
26182719 Object3D obj;
26192720 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -2624,158 +2725,195 @@
26242725
26252726 refreshContents();
26262727 } else
2627
- if (event.getSource() == flashSelectionButton)
2728
+ if (source == flashSelectionButton)
26282729 {
26292730 CameraPane.flash = true;
26302731 refreshContents();
26312732 } else
2632
- if (event.getSource() == oneButton)
2733
+ if (source == oneButton)
26332734 {
26342735 } else
2635
- if (event.getSource() == twoButton)
2736
+ if (source == twoButton)
26362737 {
26372738 radio.layout = twoButton;
26382739 // bug
26392740 //gridPanel.setDividerLocation(1.0);
26402741 //bigPanel.setDividerLocation(0.0);
2641
- bigThree.remove(scenePanel);
2642
- bigThree.remove(cameraPanel);
2643
- bigThree.remove(XYZPanel);
2644
- aWindowConstraints.gridx = 0;
2645
- aWindowConstraints.gridy = 0;
2646
- aWindowConstraints.gridwidth = 1;
2647
- // aConstraints.gridheight = 3;
2648
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2649
- aWindowConstraints.weightx = 0;
2650
- aWindowConstraints.weighty = 1;
2651
- //bigThree.add(jtp, aWindowConstraints);
2652
- aWindowConstraints.weightx = 1;
2653
- aWindowConstraints.gridwidth = 3;
2654
- // aConstraints.gridheight = 3;
2655
- aWindowConstraints.gridx = 1;
2656
- aWindowConstraints.fill = GridBagConstraints.BOTH;
2657
- bigThree.add(cameraPanel, aWindowConstraints);
2658
- aWindowConstraints.weightx = 0;
2659
- aWindowConstraints.gridx = 4;
2660
- aWindowConstraints.gridwidth = 1;
2661
- // aConstraints.gridheight = 3;
2662
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2663
- //bigThree.add(XYZPanel, aWindowConstraints);
2664
- 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();
26652771 } else
2666
- if (event.getSource() == threeButton)
2772
+ if (source == threeButton)
26672773 {
26682774 radio.layout = threeButton;
2669
- bigThree.remove(scenePanel);
2670
- bigThree.remove(cameraPanel);
2671
- bigThree.remove(XYZPanel);
2672
- aWindowConstraints.gridx = 0;
2673
- aWindowConstraints.gridy = 0;
2674
- aWindowConstraints.gridwidth = 1;
2675
- // aConstraints.gridheight = 3;
2676
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2677
- aWindowConstraints.weightx = 0;
2678
- aWindowConstraints.weighty = 1;
2679
- //bigThree.add(jtp, aWindowConstraints);
2680
- aWindowConstraints.weightx = 1;
2681
- aWindowConstraints.gridwidth = 3;
2682
- // aConstraints.gridheight = 3;
2683
- aWindowConstraints.gridx = 1;
2684
- aWindowConstraints.fill = GridBagConstraints.BOTH;
2685
- bigThree.add(cameraPanel, aWindowConstraints);
2686
- aWindowConstraints.weightx = 0;
2687
- aWindowConstraints.gridx = 4;
2688
- aWindowConstraints.gridwidth = 1;
2689
- // aConstraints.gridheight = 3;
2690
- aConstraints.fill = GridBagConstraints.VERTICAL;
2691
- bigThree.add(XYZPanel, aWindowConstraints);
2692
- 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();
26932807 } else
2694
- if (event.getSource() == fourButton)
2808
+ if (source == fourButton)
26952809 {
26962810 radio.layout = fourButton;
2697
- bigThree.remove(scenePanel);
2698
- bigThree.remove(cameraPanel);
2699
- bigThree.remove(XYZPanel);
2700
- aWindowConstraints.gridx = 0;
2701
- aWindowConstraints.gridy = 0;
2702
- aWindowConstraints.gridwidth = 1;
2703
- // aWindowConstraints.gridheight = 3;
2704
- aWindowConstraints.fill = GridBagConstraints.BOTH;
2705
- aWindowConstraints.weightx = 1;
2706
- aWindowConstraints.weighty = 1;
2707
- bigThree.add(scenePanel, aWindowConstraints);
2708
- aWindowConstraints.weightx = 1;
2709
- aWindowConstraints.gridwidth = 3;
2710
- // aConstraints.gridheight = 3;
2711
- aWindowConstraints.gridx = 1;
2712
- aWindowConstraints.fill = GridBagConstraints.BOTH;
2713
- //bigThree.add(cameraPanel, aWindowConstraints);
2714
- aWindowConstraints.weightx = 0;
2715
- aWindowConstraints.gridx = 4;
2716
- aWindowConstraints.gridwidth = 1;
2717
- // aWindowConstraints.gridheight = 3;
2718
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2719
- //bigThree.add(XYZPanel, aWindowConstraints);
2720
- 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();
27212842 } else
2722
- if (event.getSource() == sixButton)
2843
+ if (source == sixButton)
27232844 {
27242845 radio.layout = sixButton;
2725
- bigThree.remove(scenePanel);
2726
- bigThree.remove(cameraPanel);
2727
- bigThree.remove(XYZPanel);
2728
- aWindowConstraints.gridx = 0;
2729
- aWindowConstraints.gridy = 0;
2730
- aWindowConstraints.gridwidth = 1;
2731
- // aConstraints.gridheight = 3;
2732
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2733
- aWindowConstraints.weightx = 0;
2734
- aWindowConstraints.weighty = 1;
2735
- bigThree.add(scenePanel, aWindowConstraints);
2736
- aWindowConstraints.weightx = 1;
2737
- aWindowConstraints.gridwidth = 3;
2738
- // aWindowConstraints.gridheight = 3;
2739
- aWindowConstraints.gridx = 1;
2740
- aWindowConstraints.fill = GridBagConstraints.BOTH;
2741
- bigThree.add(cameraPanel, aWindowConstraints);
2742
- aWindowConstraints.weightx = 0;
2743
- aWindowConstraints.gridx = 4;
2744
- aWindowConstraints.gridwidth = 1;
2745
- // aWindowConstraints.gridheight = 3;
2746
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2747
- //bigThree.add(XYZPanel, aConstraints);
2748
- 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();
27492878 } else
2750
- if (event.getSource() == sevenButton)
2879
+ if (source == sevenButton)
27512880 {
27522881 radio.layout = sevenButton;
2753
- bigThree.remove(scenePanel);
2754
- bigThree.remove(cameraPanel);
2755
- bigThree.remove(XYZPanel);
2756
- aWindowConstraints.gridx = 0;
2757
- aWindowConstraints.gridy = 0;
2758
- aWindowConstraints.gridwidth = 1;
2759
- // aWindowConstraints.gridheight = 3;
2760
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2761
- aWindowConstraints.weightx = 0;
2762
- aWindowConstraints.weighty = 1;
2763
- bigThree.add(scenePanel, aWindowConstraints);
2764
- aWindowConstraints.weightx = 1;
2765
- aWindowConstraints.gridwidth = 3;
2766
- // aWindowConstraints.gridheight = 3;
2767
- aWindowConstraints.gridx = 1;
2768
- aWindowConstraints.fill = GridBagConstraints.BOTH;
2769
- bigThree.add(cameraPanel, aWindowConstraints);
2770
- aWindowConstraints.weightx = 0;
2771
- aWindowConstraints.gridx = 4;
2772
- aWindowConstraints.gridwidth = 1;
2773
- // aConstraints.gridheight = 3;
2774
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2775
- bigThree.add(XYZPanel, aWindowConstraints);
2776
- 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();
27772915 } else
2778
- if (event.getSource() == rootButton)
2916
+ if (source == rootButton)
27792917 {
27802918 Object3D obj;
27812919 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -2787,7 +2925,7 @@
27872925
27882926 refreshContents(true);
27892927 } else
2790
- if (event.getSource() == closeButton)
2928
+ if (source == closeButton)
27912929 {
27922930 //System.out.println("CLOSE: " + buttonGroup.getSelection());
27932931 cRadio ab;
....@@ -2808,11 +2946,11 @@
28082946 }
28092947 refreshContents(true);
28102948 } else
2811
- if (event.getSource() == editItem || event.getSource() == editButton)
2949
+ if (source == editItem || source == editButton)
28122950 {
28132951 EditSelection(false);
28142952 } else
2815
- if (event.getSource() == uneditButton)
2953
+ if (source == uneditButton)
28162954 {
28172955 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
28182956 {
....@@ -2824,12 +2962,12 @@
28242962
28252963 child.editWindow = null; // ???????????
28262964 }
2827
- objEditor.ctrlPanel.revalidate();
2965
+ objEditor.ctrlPanel.FlushUI();
28282966 //objEditor.jTree.clearSelection();
28292967 //objEditor.ResetSliders();
28302968 refreshContents(true);
28312969 } else
2832
- if (event.getSource() == clearPanelButton)
2970
+ if (source == clearPanelButton)
28332971 {
28342972 assert(copy == group);
28352973 //copy.ClearUI();
....@@ -2840,7 +2978,7 @@
28402978 listUI.clear();
28412979 refreshContents(true);
28422980 } else
2843
- if (event.getSource() == allParamsButton)
2981
+ if (source == allParamsButton)
28442982 {
28452983 assert(copy == group);
28462984
....@@ -2861,19 +2999,19 @@
28612999
28623000 refreshContents(true);
28633001 } else
2864
- if (event.getSource() == unselectButton)
3002
+ if (source == unselectButton)
28653003 {
28663004 objEditor.jTree.clearSelection();
28673005 // ?? oct 2012 GrafreeD.clipboard.clear();
28683006 objEditor.ResetSliders();
28693007 refreshContents(true);
28703008 } else
2871
- if(event.getSource() instanceof cRadio)
3009
+ if(source instanceof cRadio)
28723010 {
28733011 group.parent = keepparent;
28743012 group.attributes = 0;
28753013 //group.editWindow = null;
2876
- /*cRadio*/ radio = (cRadio)event.getSource();
3014
+ /*cRadio*/ radio = (cRadio)source;
28773015 Object3D obj = radio.GetObject();
28783016 System.out.println("Edit " + obj);
28793017 if (true) // obj instanceof Composite) // obj.parent == null) // obj instanceof Composite)
....@@ -2893,7 +3031,7 @@
28933031 }
28943032
28953033 copy = group;
2896
- //CameraPane.theRenderer.object = group;
3034
+ //Globals.theRenderer.object = group;
28973035 if(!useclient)
28983036 {
28993037 cameraView.renderCamera = radio.camera;
....@@ -2902,7 +3040,8 @@
29023040 cameraView.cameras[cameraView.cameracount] = radio.camera;
29033041 cameraView.targetLookAt.set(radio.camera.lookAt);
29043042 cameraView.object = group;
2905
- cameraView.lighttouched = true;
3043
+ //cameraView.lighttouched = true;
3044
+ Globals.lighttouched = true;
29063045 topView.object = group;
29073046 frontView.object = group;
29083047 sideView.object = group;
....@@ -2938,7 +3077,7 @@
29383077 if (useclient)
29393078 {
29403079 cameraView.object = client;
2941
- cameraView.lighttouched = true;
3080
+ Globals.lighttouched = true;
29423081 //topView.object = client;
29433082 //frontView.object = client;
29443083 //sideView.object = client;
....@@ -2946,7 +3085,7 @@
29463085 else
29473086 {
29483087 cameraView.object = group;
2949
- cameraView.lighttouched = true;
3088
+ Globals.lighttouched = true;
29503089 //topView.object = group;
29513090 //frontView.object = group;
29523091 //sideView.object = group;
....@@ -3454,7 +3593,7 @@
34543593 String pigment = Object3D.GetPigment(tex);
34553594 //String bump = Object3D.GetBump(tex);
34563595
3457
- 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);
34583597
34593598 double s = v.s;
34603599
....@@ -3542,11 +3681,11 @@
35423681
35433682 SwitchNode sn = new SwitchNode(poses, Object3D.GEOMETRY);
35443683
3545
- boolean random = CameraPane.RANDOM;
3546
- CameraPane.RANDOM = false; // parse all random nodes
3684
+ boolean random = CameraPane.SWITCH;
3685
+ CameraPane.SWITCH = false; // parse all random nodes
35473686 lowres.linkVerticesThis(null);
35483687 lowres.linkVerticesThis(sn);
3549
- CameraPane.RANDOM = random;
3688
+ CameraPane.SWITCH = random;
35503689
35513690 System.err.flush();
35523691
....@@ -3755,7 +3894,7 @@
37553894 group.selection.RelinkToSupport(); // july 2014
37563895 System.out.println("DONE.");
37573896 refreshContents();
3758
- 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));
37593898 }
37603899
37613900 void ReduceMesh(boolean reduction34)
....@@ -4031,25 +4170,25 @@
40314170 System.err.println("info : " + child.GetPath());
40324171 }
40334172 }
4034
- else
4035
- {
4036
- objEditor.SetMaterial(group); // .GetMaterial());
4037
- objEditor.AddInfo(group, this, true); // .GetMaterial());
4038
- System.err.println("info : " + group.GetPath());
4039
- }
4173
+// else
4174
+// {
4175
+// objEditor.SetMaterial(group); // .GetMaterial());
4176
+// objEditor.AddInfo(group, this, true); // .GetMaterial());
4177
+// System.err.println("info : " + group.GetPath());
4178
+// }
40404179
40414180 objEditor.SetText(); // jan 2014
40424181
4043
- 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))
40444183 CameraPane.flash = true;
40454184
40464185 if (tps != null && tps.length > 0 && ((Object3D) tps[0].getLastPathComponent()) instanceof Camera)
40474186 // a camera
40484187 {
40494188 CameraPane.camerachangeframe = 0; // don't refuse it
4050
- CameraPane.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent());
4051
- // CameraPane.theRenderer.renderCamera = CameraPane.theRenderer.manipCamera;
4052
- // 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;
40534192 }
40544193
40554194 refreshContents();
....@@ -4304,7 +4443,7 @@
43044443 refreshContents();
43054444 }
43064445
4307
- void pasteInto(boolean copyit)
4446
+ void pasteInto(boolean copyit, boolean clone)
43084447 {
43094448 // if (GrafreeD.clipboard == null)
43104449 // return;
....@@ -4333,7 +4472,14 @@
43334472 if (copyit)
43344473 {
43354474 // paste(false);
4336
- CloneClipboard(false); // sept 2014
4475
+ if (clone)
4476
+ {
4477
+ CloneClipboard(false); // sept 2014
4478
+ }
4479
+ else
4480
+ {
4481
+ paste(false);
4482
+ }
43374483 }
43384484 else
43394485 {
....@@ -4877,10 +5023,12 @@
48775023 cButton flashSelectionButton;
48785024 cButton editButton;
48795025 cButton uneditButton;
5026
+ JCheckBox allParamsButton;
48805027 cButton clearpanelButton;
4881
- cButton allParamsButton;
48825028 cButton unselectButton;
48835029
5030
+ cButton oneStepButton;
5031
+
48845032 cButton screenfitButton;
48855033 cButton screenfitpointButton;
48865034 cButton snapobjectButton;
....@@ -4935,6 +5083,7 @@
49355083 private MenuItem mergeGeometriesItem;
49365084 private MenuItem copyItem;
49375085 private MenuItem pasteItem;
5086
+ private MenuItem pasteIntoItem;
49385087 private MenuItem pasteLinkItem;
49395088 private MenuItem pasteCloneItem;
49405089 private MenuItem pasteExpandItem;
....@@ -5007,6 +5156,7 @@
50075156
50085157 private MenuItem resetParentItem;
50095158 private MenuItem repairParentItem;
5159
+ private MenuItem repairShadowItem;
50105160 private MenuItem sortbysizeItem;
50115161 private MenuItem sortbynameItem;
50125162
....@@ -5031,7 +5181,7 @@
50315181 private MenuItem blobItem;
50325182 private MenuItem latheItem;
50335183 private MenuItem bezierItem;
5034
- private MenuItem checkerItem;
5184
+ private MenuItem overlayItem;
50355185 private MenuItem meshItem;
50365186 // private MenuItem meshGroupItem;
50375187 private MenuItem springItem;