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,150 +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);
523
- oe.aConstraints.gridx += 1;
524
- oe.aConstraints.weighty = 0;
525
- oe.aConstraints.gridwidth = 1;
526520
527
- //
528
- oe.toolbarPanel.add(twoButton = new cButton(" |+| ")); //, oe.aConstraints);
521
+ oe.toolbarPanel.add(new JSeparator(SwingConstants.VERTICAL));
522
+
523
+ oe.toolbarPanel.add(twoButton = new cButton("|+|", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
524
+ twoButton.setToolTipText("Show center view only");
529525 twoButton.addActionListener(this);
530
- oe.toolbarPanel.add(fourButton = new cButton("+|| ")); //, oe.aConstraints);
526
+ oe.toolbarPanel.add(fourButton = new cButton("+||", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
531527 fourButton.addActionListener(this);
532
- 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");
533531 sixButton.addActionListener(this);
534
- 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");
535534 threeButton.addActionListener(this);
536
- 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");
537537 sevenButton.addActionListener(this);
538538 //
539539
540
- 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");
541542 rootButton.addActionListener(this);
542
- oe.aConstraints.gridx += 1;
543
- 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");
544546 closeButton.addActionListener(this);
545547 //oe.treePanel.add(clearButton = new cButton("X"), oe.aConstraints);
546548 //clearButton.addActionListener(this);
547
- oe.aConstraints.gridx += 1;
548549
549
- oe.aConstraints.gridx = 1; //
550
- 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");
551554 editButton.addActionListener(this);
552
- oe.aConstraints.gridx += 1;
553
- oe.aConstraints.weighty = 0;
554
- oe.aConstraints.gridwidth = 1;
555555
556
- oe.treePanel.add(uneditButton = new cButton("-"), oe.aConstraints);
556
+ commandsPanel.add(uneditButton = new cButton("-", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
557
+ uneditButton.setToolTipText("Unedit selection");
557558 uneditButton.addActionListener(this);
558559
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);
560
+ commandsPanel.add(allParamsButton = new JCheckBox("All", allparams)); //, oe.aConstraints);
561
+ allParamsButton.setToolTipText("Edit all params");
571562 allParamsButton.addActionListener(this);
572563
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);
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");
578570 unselectButton.addActionListener(this);
579571
572
+ commandsPanel.preferredHeight = 1;
573
+
574
+ oe.treePanel.add(commandsPanel);
575
+ oe.treePanel.Return();
576
+
580577 // oe.aConstraints.gridx += 1;
581578 // oe.aConstraints.weighty = 0;
582579 // oe.aConstraints.gridwidth = 1;
....@@ -588,40 +585,37 @@
588585 // oe.treePanel.add(gcButton = new cButton("GC"), oe.aConstraints);
589586 // gcButton.addActionListener(this);
590587
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;
588
+ cGridBag jSPPanel = new cGridBag();
589
+
590
+ JScrollPane jSP;
602591 //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);
592
+ jSPPanel.add(jSP = new JScrollPane(oe.jTree = new cTree(null))); //, oe.aConstraints);
604593 ResetModel();
605
- oe.aConstraints.weighty = 0.5;
606
- oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;
607
- oe.aConstraints.gridy += 1;
608
- oe.aConstraints.gridwidth = 1;
594
+
595
+ oe.treePanel.add(jSPPanel);
596
+ oe.treePanel.Return();
609597
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);
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");
614602 colorCB.addItemListener(this);
615
- oe.aConstraints.gridx += 2;
616
- 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");
617606 materialCB.addItemListener(this);
618
- oe.aConstraints.gridx += 2;
619
- 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");
620610 textureCB.addItemListener(this);
621611
622
- oe.aConstraints.gridx = 0;
623
- oe.aConstraints.gridy += 1;
612
+ copyOptionsPanel.preferredHeight = 1;
613
+ oe.treePanel.add(copyOptionsPanel);
614
+ oe.treePanel.Return();
624615
616
+// mainPanel.setDividerLocation(0.5); //1.0);
617
+// mainPanel.setResizeWeight(0.5);
618
+
625619 //jList.addListSelectionListener(this);
626620 oe.jTree.addTreeSelectionListener(this);
627621 //jTree.setRootVisible(false);
....@@ -643,17 +637,89 @@
643637 radio.layout = sevenButton;
644638 oe.toolbarPanel.add(radioPanel); //, oe.aConstraints);
645639 }
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
+ }
646712
647713 void EditObject(Object3D obj)
648714 {
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();
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();
657723 }
658724 void SetupViews(ObjEditor oe)
659725 {
....@@ -673,6 +739,7 @@
673739 JCheckBox fastCB;
674740 JCheckBox slowCB;
675741 JCheckBox boxCB;
742
+ JCheckBox zoomBoxCB;
676743 JCheckBox trackCB;
677744 JCheckBox smoothfocusCB;
678745 // JCheckBox speakerMocapCB;
....@@ -715,8 +782,7 @@
715782 dropAttributes |= Object3D.TEXTURE;
716783 else
717784 dropAttributes &= ~Object3D.TEXTURE;
718
- }
719
- else if(e.getSource() == liveCB)
785
+ } else if(e.getSource() == liveCB)
720786 {
721787 cameraView.ToggleLive();
722788 }
....@@ -753,6 +819,10 @@
753819 Recompile();
754820 cameraView.repaint();
755821 // refreshContents();
822
+ }
823
+ else if(e.getSource() == zoomBoxCB)
824
+ {
825
+ cameraView.ToggleZoomBoxMode();
756826 }
757827 else if(e.getSource() == smoothfocusCB)
758828 {
....@@ -921,11 +991,11 @@
921991 {
922992 loadClipboard(true);
923993 objEditor.jTree.setSelectionPath(destinationPath);
924
- pasteInto(false);
994
+ pasteInto(false, false);
925995 } else {
926996 loadClipboard(false);
927997 objEditor.jTree.setSelectionPath(destinationPath);
928
- pasteInto(false); // true); // ???
998
+ pasteInto(false, false); // true); // ???
929999 }
9301000 }
9311001 public void dropActionChanged(DropTargetDragEvent dtde)
....@@ -1047,27 +1117,33 @@
10471117 kleinItem.addActionListener(this);
10481118 particleItem = menu.add(new MenuItem("Particle system"));
10491119 particleItem.addActionListener(this);
1120
+ if (Globals.ADVANCED)
1121
+ {
10501122 ragdollItem = menu.add(new MenuItem("Rag Walk"));
10511123 ragdollItem.addActionListener(this);
10521124 ragdoll2Item = menu.add(new MenuItem("Rag Fall"));
10531125 ragdoll2Item.addActionListener(this);
1126
+ }
10541127 menu.add("-");
1055
- meshItem = menu.add(new MenuItem("Mesh"));
1128
+ meshItem = menu.add(new MenuItem("Dynamic Mesh"));
10561129 meshItem.addActionListener(this);
10571130 // meshGroupItem = menu.add(new MenuItem("Mesh Group"));
10581131 // meshGroupItem.addActionListener(this);
1132
+ if (Globals.ADVANCED)
1133
+ {
10591134 springItem = menu.add(new MenuItem("Spring"));
10601135 springItem.addActionListener(this);
10611136 flagItem = menu.add(new MenuItem("Flag"));
10621137 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);
10671138 blobItem = menu.add(new MenuItem("Blob"));
10681139 blobItem.addActionListener(this);
10691140 latheItem = menu.add(new MenuItem("Lathe"));
10701141 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);
10711147 lightItem = menu.add(new MenuItem("Light"));
10721148 lightItem.addActionListener(this);
10731149 menu.add("-");
....@@ -1077,34 +1153,39 @@
10771153 loopItem.addActionListener(this);
10781154 doubleItem = menu.add(new MenuItem("Fork"));
10791155 doubleItem.addActionListener(this);
1156
+ if (Globals.ADVANCED)
1157
+ {
10801158 tripleItem = menu.add(new MenuItem("Trident"));
10811159 tripleItem.addActionListener(this);
1160
+ }
10821161 }
10831162
10841163 void buildToolsMenu(Menu menu)
10851164 {
10861165 menu.add(animationItem = new CheckboxMenuItem("Animation..."));
10871166 animationItem.addItemListener(this);
1088
- animationItem.setState(CameraPane.ANIMATION);
1167
+ animationItem.setState(Globals.ANIMATION);
10891168
10901169 menu.add("-");
10911170 parseverticesItem = menu.add(new MenuItem("Multiplicity"));
10921171 parseverticesItem.addActionListener(this);
10931172 textureFieldItem = menu.add(new MenuItem("Texture Field"));
10941173 textureFieldItem.addActionListener(this);
1095
- alignItem = menu.add(new MenuItem("Align"));
1174
+ alignItem = menu.add(new MenuItem("Align Objects"));
10961175 alignItem.addActionListener(this);
1097
- mirrorItem = menu.add(new MenuItem("Mirror Poses"));
1098
- mirrorItem.addActionListener(this);
10991176 reduceMorphItem = menu.add(new MenuItem("Reduce Morphs"));
11001177 reduceMorphItem.addActionListener(this);
11011178 reduce34MorphItem = menu.add(new MenuItem("Reduce Morphs (34)"));
11021179 reduce34MorphItem.addActionListener(this);
1103
-
1180
+ menu.add("-");
11041181 menu.add(computeAOItem = new MenuItem("Compute AO"));
11051182 computeAOItem.addActionListener(this);
1106
- menu.add("-");
11071183
1184
+ if (Globals.ADVANCED)
1185
+ {
1186
+ mirrorItem = menu.add(new MenuItem("Mirror Poses"));
1187
+ mirrorItem.addActionListener(this);
1188
+ menu.add("-");
11081189 menu.add(memoryItem = new MenuItem("Memory Usage"));
11091190 memoryItem.addActionListener(this);
11101191 menu.add(analyzeItem = new MenuItem("Analyze"));
....@@ -1118,6 +1199,8 @@
11181199 resetParentItem.addActionListener(this);
11191200 repairParentItem = menu.add(new MenuItem("Repair Parent"));
11201201 repairParentItem.addActionListener(this);
1202
+ repairShadowItem = menu.add(new MenuItem("Repair Shadow"));
1203
+ repairShadowItem.addActionListener(this);
11211204 menu.add(invariantsItem = new MenuItem("Invariants"));
11221205 invariantsItem.addActionListener(this);
11231206 menu.add(recompileItem = new MenuItem("Recompile"));
....@@ -1125,6 +1208,7 @@
11251208 menu.add("-");
11261209 menu.add(editScriptItem = new MenuItem("Edit Script..."));
11271210 editScriptItem.addActionListener(this);
1211
+ }
11281212 }
11291213
11301214 void ScreenFit()
....@@ -1478,6 +1562,7 @@
14781562 //
14791563 public void actionPerformed(ActionEvent event) // , Object arg)
14801564 {
1565
+ Object source = event.getSource();
14811566 /*
14821567 if (event.getSource() == nameField)
14831568 {
....@@ -1489,11 +1574,11 @@
14891574 }
14901575 else
14911576 */
1492
- if (event.getSource() == lookAtItem || event.getSource() == lookFromItem)
1577
+ if (source == lookAtItem || source == lookFromItem)
14931578 {
14941579 ScreenFit();
14951580 } else
1496
- if (event.getSource() == switchItem)
1581
+ if (source == switchItem)
14971582 {
14981583 cVector v1 = new cVector();
14991584 cVector v2 = new cVector();
....@@ -1502,11 +1587,11 @@
15021587 objEditor.cameraView.renderCamera.setAim(v2, v1);
15031588 objEditor.cameraView.repaint();
15041589 } else
1505
- if (event.getSource() == rectoidItem)
1590
+ if (source == rectoidItem)
15061591 {
15071592 makeSomething(new Box());
15081593 } else
1509
- if (event.getSource() == particleItem)
1594
+ if (source == particleItem)
15101595 {
15111596 ParticleNode particleGeom = new ParticleNode("Particles", 1000); //, particleType);
15121597 ParticleController particleController = new ParticleController(particleGeom);
....@@ -1527,9 +1612,9 @@
15271612 applyExample(particleGeom, "SMOKE");
15281613 makeSomething(particleGeom);
15291614 } else
1530
- if (event.getSource() == ragdollItem || event.getSource() == ragdoll2Item)
1615
+ if (source == ragdollItem || source == ragdoll2Item)
15311616 {
1532
- GenericJoint ragdoll = new GenericJoint(event.getSource() == ragdollItem);
1617
+ GenericJoint ragdoll = new GenericJoint(source == ragdollItem);
15331618
15341619 ragdoll.toParent = LA.newMatrix();
15351620 ragdoll.fromParent = LA.newMatrix();
....@@ -1547,7 +1632,7 @@
15471632 } else
15481633 /*
15491634 */
1550
- if (event.getSource() == heightFieldItem)
1635
+ if (source == heightFieldItem)
15511636 {
15521637 Object3D obj = new Object3D();
15531638
....@@ -1585,31 +1670,31 @@
15851670
15861671 makeSomething(obj);
15871672 } else
1588
- if (event.getSource() == gridItem)
1673
+ if (source == gridItem)
15891674 {
15901675 makeSomething(new Grid());
15911676 } else
1592
- if (event.getSource() == ellipsoidItem)
1677
+ if (source == ellipsoidItem)
15931678 {
15941679 makeSomething(new Sphere());
15951680 } else
1596
- if (event.getSource() == coneItem)
1681
+ if (source == coneItem)
15971682 {
15981683 makeSomething(new Cone());
15991684 } else
1600
- if (event.getSource() == torusItem)
1685
+ if (source == torusItem)
16011686 {
16021687 makeSomething(new Torus());
16031688 } else
1604
- if (event.getSource() == superItem)
1689
+ if (source == superItem)
16051690 {
16061691 makeSomething(new Superellipsoid());
16071692 } else
1608
- if (event.getSource() == kleinItem)
1693
+ if (source == kleinItem)
16091694 {
16101695 makeSomething(new Klein());
16111696 } else
1612
- if (event.getSource() == blobItem)
1697
+ if (source == blobItem)
16131698 {
16141699 Blob blob = new Blob();
16151700 BlobComponent comp = new BlobComponent();
....@@ -1617,15 +1702,15 @@
16171702 //blob.retile();
16181703 makeSomething(blob);
16191704 } else
1620
- if (event.getSource() == latheItem)
1705
+ if (source == latheItem)
16211706 {
16221707 makeSomething(new Lathe());
16231708 } else
1624
- if (event.getSource() == bezierItem)
1709
+ if (source == bezierItem)
16251710 {
16261711 makeSomething(new BezierSurface());
16271712 } else
1628
- if (event.getSource() == checkerItem)
1713
+ if (source == overlayItem)
16291714 {
16301715 /*
16311716 Object3D obj = new BezierSurface(5,8);
....@@ -1640,7 +1725,7 @@
16401725 */
16411726 makeSomething(new Checker());
16421727 } else
1643
- if (event.getSource() == meshItem)
1728
+ if (source == meshItem)
16441729 {
16451730 Object3D itemtomake = new Object3D();
16461731 Object3D child;
....@@ -1661,35 +1746,35 @@
16611746 makeSomething(child);
16621747 }
16631748 } else
1664
- if (event.getSource() == springItem)
1749
+ if (source == springItem)
16651750 {
16661751 cSpring s = new cSpring();
16671752 s.setup();
16681753 makeSomething(s);
16691754 } else
1670
- if (event.getSource() == flagItem)
1755
+ if (source == flagItem)
16711756 {
16721757 cSpring s = new cFlag();
16731758 s.setup();
16741759 makeSomething(s);
16751760 } else
1676
- if (event.getSource() == lightItem)
1761
+ if (source == lightItem)
16771762 {
16781763 makeSomething(new Light());
16791764 } else
1680
- if (event.getSource() == csgItem)
1765
+ if (source == csgItem)
16811766 {
16821767 group(new CSG());
16831768 } else
1684
- if (event.getSource() == templateItem)
1769
+ if (source == templateItem)
16851770 {
16861771 group(new cTemplate());
16871772 } else
1688
- if (event.getSource() == attributeItem)
1773
+ if (source == attributeItem)
16891774 {
16901775 makeSomething(new Attribute());
16911776 } else
1692
- if (event.getSource() == pointflowItem)
1777
+ if (source == pointflowItem)
16931778 {
16941779 makeSomething(new PointFlow());
16951780 } else
....@@ -1701,7 +1786,7 @@
17011786 } else
17021787 */
17031788
1704
- if (event.getSource() == superLoopItem)
1789
+ if (source == superLoopItem)
17051790 {
17061791 Composite g = new cGroup();
17071792 for (int i=0; i<15; i++)
....@@ -1723,7 +1808,7 @@
17231808
17241809 group(g);
17251810 } else
1726
- if (event.getSource() == loopItem)
1811
+ if (source == loopItem)
17271812 {
17281813 Composite csg = new GroupLeaf();
17291814 csg.count = 5;
....@@ -1732,7 +1817,7 @@
17321817 csg.addChild(child);
17331818 child.addChild(csg);
17341819 } else
1735
- if (event.getSource() == doubleItem)
1820
+ if (source == doubleItem)
17361821 {
17371822 Composite csg = new GroupLeaf();
17381823 csg.count = 5;
....@@ -1744,7 +1829,7 @@
17441829 csg.addChild(child);
17451830 child.addChild(csg);
17461831 } else
1747
- if (event.getSource() == tripleItem)
1832
+ if (source == tripleItem)
17481833 {
17491834 Composite csg = new GroupLeaf();
17501835 csg.count = 4;
....@@ -1760,70 +1845,75 @@
17601845 child.addChild(csg);
17611846 } else
17621847
1763
- if (event.getSource() == importGFDItem)
1848
+ if (source == importGFDItem)
17641849 {
17651850 ImportGFD();
17661851 } else
1767
- if (event.getSource() == importVRMLX3DItem)
1852
+ if (source == importVRMLX3DItem)
17681853 {
17691854 ImportVRMLX3D();
17701855 } else
1771
- if (event.getSource() == import3DSItem)
1856
+ if (source == import3DSItem)
17721857 {
17731858 objEditor.ImportJME(new com.jmex.model.converters.MaxToJme(), "3ds", "Import 3DS");
17741859 } else
1775
- if (event.getSource() == importOBJItem)
1860
+ if (source == importOBJItem)
17761861 {
17771862 objEditor.ImportJME(new com.jmex.model.converters.ObjToJme(), "obj", "Import OBJ");
17781863 } else
1779
- if (event.getSource() == computeAOItem)
1864
+ if (source == computeAOItem)
17801865 {
1781
- CameraPane.drawMode = CameraPane.OCCLUSION;
1782
- CameraPane.theRenderer.repaint();
1866
+ Globals.drawMode = CameraPane.OCCLUSION;
1867
+ Globals.theRenderer.repaint();
17831868 } else
1784
- if (event.getSource() == recompileItem)
1869
+ if (source == recompileItem)
17851870 {
17861871 Recompile();
17871872 refreshContents();
17881873 } else
1789
- if (event.getSource() == editScriptItem)
1874
+ if (source == editScriptItem)
17901875 {
17911876 OpenDialog();
17921877 refreshContents();
17931878 } else
1794
- if (event.getSource() == invariantsItem)
1879
+ if (source == invariantsItem)
17951880 {
17961881 System.out.println("Invariants:");
17971882 GrafreeD.grafreeD.universe.invariants();
17981883 } else
1799
- if (event.getSource() == memoryItem)
1884
+ if (source == memoryItem)
18001885 {
18011886 //System.out.println("Invariants:");
18021887 PrintMemory();
18031888 } else
1804
- if (event.getSource() == pathItem)
1889
+ if (source == pathItem)
18051890 {
18061891 PrintPath();
18071892 } else
1808
- if (event.getSource() == analyzeItem)
1893
+ if (source == analyzeItem)
18091894 {
18101895 AnalyzeObject();
18111896 } else
1812
- if (event.getSource() == dumpItem)
1897
+ if (source == dumpItem)
18131898 {
18141899 DumpObject();
18151900 } else
1816
- if (event.getSource() == screenfitButton)
1901
+ if (source == oneStepButton)
1902
+ {
1903
+ Globals.ONESTEP = true;
1904
+ cameraView.repaint();
1905
+ } else
1906
+ if (source == screenfitButton)
18171907 {
18181908 //Reload(lastConverter, lastFilename, true);
18191909 ScreenFit();
18201910 } else
1821
- if (event.getSource() == screenfitpointButton)
1911
+ if (source == screenfitpointButton)
18221912 {
18231913 //Reload(lastConverter, lastFilename, true);
18241914 ScreenFitPoint();
18251915 } else
1826
- if (event.getSource() == snapobjectButton)
1916
+ if (source == snapobjectButton)
18271917 {
18281918 //Reload(lastConverter, lastFilename, true);
18291919 SnapObject();
....@@ -1834,13 +1924,13 @@
18341924 // Recompile();
18351925 // refreshContents();
18361926 // } else
1837
- if (event.getSource() == gcButton)
1927
+ if (source == gcButton)
18381928 {
18391929 System.out.println("Memory (F/T/M) : " + Runtime.getRuntime().freeMemory() + "/" + Runtime.getRuntime().totalMemory() + "/" + Runtime.getRuntime().maxMemory());
18401930 System.gc();
18411931 System.out.println("GC Memory (F/T/M) : " + Runtime.getRuntime().freeMemory() + "/" + Runtime.getRuntime().totalMemory() + "/" + Runtime.getRuntime().maxMemory());
18421932 } else
1843
- if (event.getSource() == editLeafItem)
1933
+ if (source == editLeafItem)
18441934 {
18451935 Object3D obj;
18461936 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -1854,62 +1944,66 @@
18541944 }
18551945 refreshContents(true);
18561946 } else
1857
- if (event.getSource() == openWindowItem)
1947
+ if (source == openWindowItem)
18581948 {
18591949 EditSelection(true);
18601950 } else
1861
- if (event.getSource() == cutItem || event.getSource() == clearButton)
1951
+ if (source == cutItem || source == clearButton)
18621952 {
18631953 loadClipboard(true);
18641954 } else
1865
- if (event.getSource() == duplicateItem)
1955
+ if (source == duplicateItem)
18661956 {
18671957 Object3D keep = GrafreeD.clipboard;
18681958 loadClipboard(false);
18691959 paste(false);
18701960 GrafreeD.clipboard = keep;
18711961 } else
1872
- if (event.getSource() == cloneItem)
1962
+ if (source == cloneItem)
18731963 {
18741964 CloneSelection(false);
18751965 } else
1876
- if (event.getSource() == cloneSupportItem)
1966
+ if (source == cloneSupportItem)
18771967 {
18781968 CloneSelection(true);
18791969 } else
1880
- if (event.getSource() == copyItem)
1970
+ if (source == copyItem)
18811971 {
18821972 loadClipboard(false);
18831973 } else
1884
- if (event.getSource() == pasteItem)
1974
+ if (source == pasteItem)
18851975 {
18861976 paste(false);
18871977 } else
1888
- if (event.getSource() == pasteLinkItem)
1978
+ if (source == pasteIntoItem)
18891979 {
1890
- pasteInto(false);
1980
+ pasteInto(true, false);
18911981 } else
1892
- if (event.getSource() == pasteCloneItem)
1982
+ if (source == pasteLinkItem)
18931983 {
1894
- pasteInto(true);
1984
+ pasteInto(false, false);
18951985 } else
1896
- if (event.getSource() == pasteExpandItem)
1986
+ if (source == pasteCloneItem)
1987
+ {
1988
+ pasteInto(true, true);
1989
+ } else
1990
+ if (source == pasteExpandItem)
18971991 {
18981992 paste(true);
18991993 } else
1900
- if (event.getSource() == synchronizeItem)
1994
+ if (source == synchronizeItem)
19011995 {
19021996 Overwrite(Object3D.TRANSFORM);
19031997 } else
1904
- if (event.getSource() == overwriteNameItem)
1998
+ if (source == overwriteNameItem)
19051999 {
19062000 Overwrite(Object3D.NAME);
19072001 } else
1908
- if (event.getSource() == overwriteUVItem)
2002
+ if (source == overwriteUVItem)
19092003 {
19102004 Overwrite(Object3D.UV);
19112005 } else
1912
- if (event.getSource() == overwriteMatItem)
2006
+ if (source == overwriteMatItem)
19132007 {
19142008 /* july 2015
19152009 if ((dropAttributes & Object3D.TEXTURE) == 0)
....@@ -1929,7 +2023,7 @@
19292023
19302024 Overwrite(dropAttributes);
19312025 }
1932
- if (event.getSource() == overwriteGeoItem)
2026
+ if (source == overwriteGeoItem)
19332027 {
19342028 Overwrite(Object3D.GEOMETRY);
19352029 // if (/*group.selection.size() == 1 &&*/ GrafreeD.clipboard.size() == 1)
....@@ -1946,7 +2040,7 @@
19462040 // refreshContents();
19472041 // }
19482042 } else
1949
- if (event.getSource() == generateMeshItem)
2043
+ if (source == generateMeshItem)
19502044 {
19512045 //if (group.selection.size() == 1)
19522046 // for (int i=0; i<group.selection.size(); i++)
....@@ -1957,7 +2051,7 @@
19572051 ResetModel();
19582052 refreshContents();
19592053 } else
1960
- if (event.getSource() == extractGeometriesItem)
2054
+ if (source == extractGeometriesItem)
19612055 {
19622056 boolean one = false;
19632057
....@@ -1984,7 +2078,7 @@
19842078 ResetModel();
19852079 refreshContents();
19862080 } else
1987
- if (event.getSource() == cloneGeometriesItem)
2081
+ if (source == cloneGeometriesItem)
19882082 {
19892083 boolean one = false;
19902084
....@@ -2010,7 +2104,7 @@
20102104 ResetModel();
20112105 refreshContents();
20122106 } else
2013
- if (event.getSource() == shareGeometriesItem)
2107
+ if (source == shareGeometriesItem)
20142108 {
20152109 boolean one = false;
20162110
....@@ -2040,7 +2134,7 @@
20402134 refreshContents();
20412135 }
20422136 } else
2043
- if (event.getSource() == mergeGeometriesItem)
2137
+ if (source == mergeGeometriesItem)
20442138 {
20452139 boolean one = false;
20462140
....@@ -2070,7 +2164,7 @@
20702164 ResetModel();
20712165 refreshContents();
20722166 } else
2073
- if (event.getSource() == linkverticesItem)
2167
+ if (source == linkverticesItem)
20742168 {
20752169 // if (group.selection.size() == 1 && GrafreeD.clipboard.size() == 1)
20762170 // {
....@@ -2090,41 +2184,41 @@
20902184 if (content instanceof cGroup && ((cGroup)content).transientlink )
20912185 content = ((cGroup)content).get(0);
20922186
2093
- 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));
20942188 for (int i=0; i<group.selection.size(); i++)
20952189 {
2096
- boolean random = CameraPane.RANDOM;
2097
- CameraPane.RANDOM = false; // parse all random nodes
2190
+ boolean random = CameraPane.SWITCH;
2191
+ CameraPane.SWITCH = false; // parse all random nodes
20982192 group.selection.get(i).linkVerticesThis(content);
20992193 // group.selection.get(i).setMasterThis(content); // should be identity
2100
- CameraPane.RANDOM = random;
2194
+ CameraPane.SWITCH = random;
21012195 }
2102
- 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));
21032197 refreshContents();
21042198 }
21052199 } else
2106
- if (event.getSource() == resetsupportItem)
2200
+ if (source == resetsupportItem)
21072201 {
21082202 for (int i=0; i<group.selection.size(); i++)
21092203 {
2110
- boolean random = CameraPane.RANDOM;
2111
- CameraPane.RANDOM = false; // parse all random nodes
2204
+ boolean random = CameraPane.SWITCH;
2205
+ CameraPane.SWITCH = false; // parse all random nodes
21122206 group.selection.get(i).linkVerticesThis(null);
2113
- CameraPane.RANDOM = random;
2207
+ CameraPane.SWITCH = random;
21142208 }
21152209
21162210 refreshContents();
21172211 } else
2118
- if (event.getSource() == relinkverticesItem)
2212
+ if (source == relinkverticesItem)
21192213 {
2120
- boolean random = CameraPane.RANDOM;
2121
- CameraPane.RANDOM = false; // parse all random nodes
2214
+ boolean random = CameraPane.SWITCH;
2215
+ CameraPane.SWITCH = false; // parse all random nodes
21222216 group.selection.RelinkToSupport();
2123
- CameraPane.RANDOM = random;
2217
+ CameraPane.SWITCH = random;
21242218
21252219 refreshContents();
21262220 } else
2127
- if (event.getSource() == resetreferencesItem)
2221
+ if (source == resetreferencesItem)
21282222 {
21292223 for (int i=0; i<group.selection.size(); i++)
21302224 {
....@@ -2133,7 +2227,7 @@
21332227
21342228 refreshContents();
21352229 } else
2136
- if (event.getSource() == setMasterItem)
2230
+ if (source == setMasterItem)
21372231 {
21382232 if (group.selection.size() == 1 && GrafreeD.clipboard.size() == 1)
21392233 {
....@@ -2146,7 +2240,7 @@
21462240 refreshContents();
21472241 }
21482242 } else
2149
- if (event.getSource() == poseMeshItem)
2243
+ if (source == poseMeshItem)
21502244 {
21512245 if (group.selection.size() == 1)
21522246 {
....@@ -2165,19 +2259,19 @@
21652259 }
21662260
21672261 } else
2168
- if (event.getSource() == revertMeshItem)
2262
+ if (source == revertMeshItem)
21692263 {
21702264 RevertMeshes();
21712265 } else
2172
- if (event.getSource() == resetMeshItem)
2266
+ if (source == resetMeshItem)
21732267 {
21742268 ResetAll();
21752269 } else
2176
- if (event.getSource() == stepAllItem)
2270
+ if (source == stepAllItem)
21772271 {
21782272 StepAll();
21792273 } else
2180
- if (event.getSource() == clearItem) // || event.getSource() == clearButton)
2274
+ if (source == clearItem) // || event.getSource() == clearButton)
21812275 {
21822276 //int indices[] = jList.getSelectedIndices();
21832277 //for (int i = indices.length - 1; i >= 0; i--)
....@@ -2185,46 +2279,46 @@
21852279
21862280 ClearSelection(false);
21872281 } else
2188
- if (event.getSource() == clearAllItem)
2282
+ if (source == clearAllItem)
21892283 {
21902284 ClearSelection(true);
21912285 } else
2192
- if (event.getSource() == grabItem)
2286
+ if (source == grabItem)
21932287 {
21942288 group(new cGroup(), true);
21952289 } else
2196
- if (event.getSource() == hideItem)
2290
+ if (source == hideItem)
21972291 {
21982292 group(new HiddenObject());
21992293 } else
2200
- if (event.getSource() == frontItem)
2294
+ if (source == frontItem)
22012295 {
22022296 front();
22032297 } else
2204
- if (event.getSource() == backItem)
2298
+ if (source == backItem)
22052299 {
22062300 back();
22072301 } else
2208
- if (event.getSource() == cameraItem)
2302
+ if (source == cameraItem)
22092303 {
22102304 makeSomething(new Camera());
22112305 } else
2212
- if (event.getSource() == compositeItem)
2306
+ if (source == compositeItem)
22132307 {
22142308 group(new Composite());
22152309 } else
2216
- if (event.getSource() == randomItem)
2310
+ if (source == randomItem)
22172311 {
22182312 RandomNode random = new RandomNode();
22192313 group(random);
22202314 if (random.size() > 0)
2221
- random.name = random.get(0).name + "Rnd";
2315
+ random.name = random.get(0).name + "Switch";
22222316 } else
2223
- if (event.getSource() == physicsItem)
2317
+ if (source == physicsItem)
22242318 {
22252319 group(new PhysicsNode());
22262320 } else
2227
- if (event.getSource() == frameselectorItem)
2321
+ if (source == frameselectorItem)
22282322 {
22292323 for (int i=0; i<group.selection.size(); i++)
22302324 {
....@@ -2236,7 +2330,7 @@
22362330 ResetModel();
22372331 refreshContents();
22382332 } else
2239
- if (event.getSource() == switchGeoItem)
2333
+ if (source == switchGeoItem)
22402334 {
22412335 for (int i=0; i<group.selection.size(); i++)
22422336 {
....@@ -2248,7 +2342,7 @@
22482342 ResetModel();
22492343 refreshContents();
22502344 } else
2251
- if (event.getSource() == switchTransfoItem)
2345
+ if (source == switchTransfoItem)
22522346 {
22532347 for (int i=0; i<group.selection.size(); i++)
22542348 {
....@@ -2260,7 +2354,7 @@
22602354 ResetModel();
22612355 refreshContents();
22622356 } else
2263
- if (event.getSource() == morphItem)
2357
+ if (source == morphItem)
22642358 {
22652359 for (int i=0; i<group.selection.size(); i++)
22662360 {
....@@ -2272,7 +2366,7 @@
22722366 ResetModel();
22732367 refreshContents();
22742368 } else
2275
- if (event.getSource() == scriptNodeItem)
2369
+ if (source == scriptNodeItem)
22762370 {
22772371 boolean atleastone = false;
22782372
....@@ -2311,31 +2405,31 @@
23112405 }
23122406 }
23132407 } else
2314
- if (event.getSource() == linkerItem)
2408
+ if (source == linkerItem)
23152409 {
23162410 group(new cLinker());
23172411 } else
2318
- if (event.getSource() == textureItem)
2412
+ if (source == textureItem)
23192413 {
23202414 group(new TextureNode());
23212415 } else
2322
- if (event.getSource() == billboardItem)
2416
+ if (source == billboardItem)
23232417 {
23242418 group(new BillboardNode());
23252419 } else
2326
- if (event.getSource() == shadowXItem)
2420
+ if (source == shadowXItem)
23272421 {
23282422 CastShadow(0);
23292423 } else
2330
- if (event.getSource() == shadowYItem)
2424
+ if (source == shadowYItem)
23312425 {
23322426 CastShadow(1);
23332427 } else
2334
- if (event.getSource() == shadowZItem)
2428
+ if (source == shadowZItem)
23352429 {
23362430 CastShadow(2);
23372431 } else
2338
- if (event.getSource() == ungroupItem)
2432
+ if (source == ungroupItem)
23392433 {
23402434 //ungroup();
23412435 for (int i=0; i<group.selection.size(); i++)
....@@ -2347,179 +2441,179 @@
23472441
23482442 refreshContents();
23492443 } else
2350
- if (event.getSource() == genUVItem)
2444
+ if (source == genUVItem)
23512445 {
23522446 GenUV();
23532447 } else
2354
- if (event.getSource() == genNormalsCADItem)
2448
+ if (source == genNormalsCADItem)
23552449 {
23562450 GenNormals(true);
23572451 } else
2358
- if (event.getSource() == genNormalsMESHItem)
2452
+ if (source == genNormalsMESHItem)
23592453 {
23602454 GenNormals(true); // TODO
23612455 } else
2362
- if (event.getSource() == genNormalsORGANItem)
2456
+ if (source == genNormalsORGANItem)
23632457 {
23642458 GenNormals(false);
23652459 } else
2366
- if (event.getSource() == genNormalsMINEItem)
2460
+ if (source == genNormalsMINEItem)
23672461 {
23682462 GenNormalsMINE();
23692463 } else
2370
- if (event.getSource() == stripifyItem)
2464
+ if (source == stripifyItem)
23712465 {
23722466 Stripify();
23732467 } else
2374
- if (event.getSource() == unstripifyItem)
2468
+ if (source == unstripifyItem)
23752469 {
23762470 Unstripify();
23772471 } else
2378
- if (event.getSource() == trimItem)
2472
+ if (source == trimItem)
23792473 {
23802474 Trim();
23812475 } else
2382
- if (event.getSource() == untrimItem)
2476
+ if (source == untrimItem)
23832477 {
23842478 Untrim();
23852479 } else
2386
- if (event.getSource() == clearColorsItem)
2480
+ if (source == clearColorsItem)
23872481 {
23882482 ClearColors();
23892483 } else
2390
- if (event.getSource() == clearMaterialsItem)
2484
+ if (source == clearMaterialsItem)
23912485 {
23922486 ClearMaterials();
23932487 } else
2394
- if (event.getSource() == liveleavesItem)
2488
+ if (source == liveleavesItem)
23952489 {
23962490 LiveLeaves(true);
23972491 } else
2398
- if (event.getSource() == unliveleavesItem)
2492
+ if (source == unliveleavesItem)
23992493 {
24002494 LiveLeaves(false);
24012495 } else
2402
- if (event.getSource() == supportleavesItem)
2496
+ if (source == supportleavesItem)
24032497 {
24042498 SupportLeaves(true);
24052499 } else
2406
- if (event.getSource() == unsupportleavesItem)
2500
+ if (source == unsupportleavesItem)
24072501 {
24082502 SupportLeaves(false);
24092503 } else
2410
- if (event.getSource() == hideleavesItem)
2504
+ if (source == hideleavesItem)
24112505 {
24122506 HideLeaves(true);
24132507 } else
2414
- if (event.getSource() == showleavesItem)
2508
+ if (source == showleavesItem)
24152509 {
24162510 HideLeaves(false);
24172511 } else
2418
- if (event.getSource() == markleavesItem)
2512
+ if (source == markleavesItem)
24192513 {
24202514 MarkLeaves(true);
24212515 } else
2422
- if (event.getSource() == unmarkleavesItem)
2516
+ if (source == unmarkleavesItem)
24232517 {
24242518 MarkLeaves(false);
24252519 } else
2426
- if (event.getSource() == flipVItem)
2520
+ if (source == flipVItem)
24272521 {
24282522 FlipV(true);
24292523 } else
2430
- if (event.getSource() == unflipVItem)
2524
+ if (source == unflipVItem)
24312525 {
24322526 FlipV(false);
24332527 } else
2434
- if (event.getSource() == lowTexturesItem)
2528
+ if (source == lowTexturesItem)
24352529 {
24362530 SetTexRes(0);
24372531 } else
2438
- if (event.getSource() == normalTexturesItem)
2532
+ if (source == normalTexturesItem)
24392533 {
24402534 SetTexRes(1);
24412535 } else
2442
- if (event.getSource() == highTexturesItem)
2536
+ if (source == highTexturesItem)
24432537 {
24442538 SetTexRes(2);
24452539 } else
2446
- if (event.getSource() == veryhighTexturesItem)
2540
+ if (source == veryhighTexturesItem)
24472541 {
24482542 SetTexRes(3);
24492543 } else
2450
- if (event.getSource() == maxTexturesItem)
2544
+ if (source == maxTexturesItem)
24512545 {
24522546 SetTexRes(4);
24532547 } else
2454
- if (event.getSource() == panoTexturesItem)
2548
+ if (source == panoTexturesItem)
24552549 {
24562550 SetTexRes(5);
24572551 } else
2458
- if (event.getSource() == reverseNormalsItem)
2552
+ if (source == reverseNormalsItem)
24592553 {
24602554 ReverseNormals();
24612555 } else
2462
- if (event.getSource() == parseverticesItem)
2556
+ if (source == parseverticesItem)
24632557 {
24642558 ParseVertices();
24652559 } else
2466
- if (event.getSource() == textureFieldItem)
2560
+ if (source == textureFieldItem)
24672561 {
24682562 TextureVertices();
24692563 } else
2470
- if (event.getSource() == alignItem)
2564
+ if (source == alignItem)
24712565 {
24722566 Align();
24732567 } else
2474
- if (event.getSource() == mirrorItem)
2568
+ if (source == mirrorItem)
24752569 {
24762570 MirrorPoses();
24772571 } else
2478
- if (event.getSource() == reduceMorphItem)
2572
+ if (source == reduceMorphItem)
24792573 {
24802574 MeshReduction(false);
24812575 } else
2482
- if (event.getSource() == reduce34MorphItem)
2576
+ if (source == reduce34MorphItem)
24832577 {
24842578 MeshReduction(true);
24852579 } else
2486
- if (event.getSource() == reverseTrianglesItem)
2580
+ if (source == reverseTrianglesItem)
24872581 {
24882582 ReverseTriangles();
24892583 } else
2490
- if (event.getSource() == reduceMeshItem)
2584
+ if (source == reduceMeshItem)
24912585 {
24922586 ReduceMesh(false);
24932587 } else
2494
- if (event.getSource() == reduce34MeshItem)
2588
+ if (source == reduce34MeshItem)
24952589 {
24962590 ReduceMesh(true);
24972591 } else
2498
- if (event.getSource() == increaseMeshItem)
2592
+ if (source == increaseMeshItem)
24992593 {
25002594 IncreaseMesh();
25012595 } else
2502
- if (event.getSource() == clipMeshItem)
2596
+ if (source == clipMeshItem)
25032597 {
25042598 ClipMesh();
25052599 } else
2506
- if (event.getSource() == smoothMeshItem)
2600
+ if (source == smoothMeshItem)
25072601 {
25082602 SmoothMesh();
25092603 } else
2510
- if (event.getSource() == transformgeometryItem)
2604
+ if (source == transformgeometryItem)
25112605 {
25122606 TransformGeometry();
25132607 } else
2514
- if (event.getSource() == resetTransformItem)
2608
+ if (source == resetTransformItem)
25152609 {
25162610 ResetTransform();
25172611 } else
2518
- if (event.getSource() == resetCentroidItem)
2612
+ if (source == resetCentroidItem)
25192613 {
25202614 ResetCentroid();
25212615 } else
2522
- if (event.getSource() == resetParentItem)
2616
+ if (source == resetParentItem)
25232617 {
25242618 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
25252619 {
....@@ -2529,7 +2623,7 @@
25292623
25302624 refreshContents();
25312625 } else
2532
- if (event.getSource() == repairParentItem)
2626
+ if (source == repairParentItem)
25332627 {
25342628 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
25352629 {
....@@ -2543,7 +2637,21 @@
25432637
25442638 refreshContents();
25452639 } else
2546
- 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)
25472655 {
25482656 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
25492657 {
....@@ -2555,7 +2663,7 @@
25552663 ResetModel();
25562664 refreshContents();
25572665 } else
2558
- if (event.getSource() == sortbynameItem)
2666
+ if (source == sortbynameItem)
25592667 {
25602668 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
25612669 {
....@@ -2567,7 +2675,7 @@
25672675 ResetModel();
25682676 refreshContents();
25692677 } else
2570
- if (event.getSource() == attachPigmentItem)
2678
+ if (source == attachPigmentItem)
25712679 {
25722680 String texture = GetFile("Attach pigment");
25732681 Object3D obj;
....@@ -2579,7 +2687,7 @@
25792687
25802688 refreshContents();
25812689 } else
2582
- if (event.getSource() == detachPigmentItem)
2690
+ if (source == detachPigmentItem)
25832691 {
25842692 Object3D obj;
25852693 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -2590,7 +2698,7 @@
25902698
25912699 refreshContents();
25922700 } else
2593
- if (event.getSource() == attachBumpItem)
2701
+ if (source == attachBumpItem)
25942702 {
25952703 String texture = GetFile("Attach bump");
25962704 Object3D obj;
....@@ -2602,7 +2710,7 @@
26022710
26032711 refreshContents();
26042712 } else
2605
- if (event.getSource() == detachBumpItem)
2713
+ if (source == detachBumpItem)
26062714 {
26072715 Object3D obj;
26082716 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -2613,7 +2721,7 @@
26132721
26142722 refreshContents();
26152723 } else
2616
- if (event.getSource() == pigmentBumpItem)
2724
+ if (source == pigmentBumpItem)
26172725 {
26182726 Object3D obj;
26192727 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -2624,158 +2732,195 @@
26242732
26252733 refreshContents();
26262734 } else
2627
- if (event.getSource() == flashSelectionButton)
2735
+ if (source == flashSelectionButton)
26282736 {
26292737 CameraPane.flash = true;
26302738 refreshContents();
26312739 } else
2632
- if (event.getSource() == oneButton)
2740
+ if (source == oneButton)
26332741 {
26342742 } else
2635
- if (event.getSource() == twoButton)
2743
+ if (source == twoButton)
26362744 {
26372745 radio.layout = twoButton;
26382746 // bug
26392747 //gridPanel.setDividerLocation(1.0);
26402748 //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();
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();
26652778 } else
2666
- if (event.getSource() == threeButton)
2779
+ if (source == threeButton)
26672780 {
26682781 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();
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();
26932814 } else
2694
- if (event.getSource() == fourButton)
2815
+ if (source == fourButton)
26952816 {
26962817 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();
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();
27212849 } else
2722
- if (event.getSource() == sixButton)
2850
+ if (source == sixButton)
27232851 {
27242852 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();
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();
27492885 } else
2750
- if (event.getSource() == sevenButton)
2886
+ if (source == sevenButton)
27512887 {
27522888 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();
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();
27772922 } else
2778
- if (event.getSource() == rootButton)
2923
+ if (source == rootButton)
27792924 {
27802925 Object3D obj;
27812926 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -2787,7 +2932,7 @@
27872932
27882933 refreshContents(true);
27892934 } else
2790
- if (event.getSource() == closeButton)
2935
+ if (source == closeButton)
27912936 {
27922937 //System.out.println("CLOSE: " + buttonGroup.getSelection());
27932938 cRadio ab;
....@@ -2808,11 +2953,11 @@
28082953 }
28092954 refreshContents(true);
28102955 } else
2811
- if (event.getSource() == editItem || event.getSource() == editButton)
2956
+ if (source == editItem || source == editButton)
28122957 {
28132958 EditSelection(false);
28142959 } else
2815
- if (event.getSource() == uneditButton)
2960
+ if (source == uneditButton)
28162961 {
28172962 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
28182963 {
....@@ -2824,12 +2969,12 @@
28242969
28252970 child.editWindow = null; // ???????????
28262971 }
2827
- objEditor.ctrlPanel.revalidate();
2972
+ objEditor.ctrlPanel.FlushUI();
28282973 //objEditor.jTree.clearSelection();
28292974 //objEditor.ResetSliders();
28302975 refreshContents(true);
28312976 } else
2832
- if (event.getSource() == clearPanelButton)
2977
+ if (source == clearPanelButton)
28332978 {
28342979 assert(copy == group);
28352980 //copy.ClearUI();
....@@ -2840,7 +2985,7 @@
28402985 listUI.clear();
28412986 refreshContents(true);
28422987 } else
2843
- if (event.getSource() == allParamsButton)
2988
+ if (source == allParamsButton)
28442989 {
28452990 assert(copy == group);
28462991
....@@ -2861,19 +3006,19 @@
28613006
28623007 refreshContents(true);
28633008 } else
2864
- if (event.getSource() == unselectButton)
3009
+ if (source == unselectButton)
28653010 {
28663011 objEditor.jTree.clearSelection();
28673012 // ?? oct 2012 GrafreeD.clipboard.clear();
28683013 objEditor.ResetSliders();
28693014 refreshContents(true);
28703015 } else
2871
- if(event.getSource() instanceof cRadio)
3016
+ if(source instanceof cRadio)
28723017 {
28733018 group.parent = keepparent;
28743019 group.attributes = 0;
28753020 //group.editWindow = null;
2876
- /*cRadio*/ radio = (cRadio)event.getSource();
3021
+ /*cRadio*/ radio = (cRadio)source;
28773022 Object3D obj = radio.GetObject();
28783023 System.out.println("Edit " + obj);
28793024 if (true) // obj instanceof Composite) // obj.parent == null) // obj instanceof Composite)
....@@ -2893,7 +3038,7 @@
28933038 }
28943039
28953040 copy = group;
2896
- //CameraPane.theRenderer.object = group;
3041
+ //Globals.theRenderer.object = group;
28973042 if(!useclient)
28983043 {
28993044 cameraView.renderCamera = radio.camera;
....@@ -2902,7 +3047,8 @@
29023047 cameraView.cameras[cameraView.cameracount] = radio.camera;
29033048 cameraView.targetLookAt.set(radio.camera.lookAt);
29043049 cameraView.object = group;
2905
- cameraView.lighttouched = true;
3050
+ //cameraView.lighttouched = true;
3051
+ Globals.lighttouched = true;
29063052 topView.object = group;
29073053 frontView.object = group;
29083054 sideView.object = group;
....@@ -2938,7 +3084,7 @@
29383084 if (useclient)
29393085 {
29403086 cameraView.object = client;
2941
- cameraView.lighttouched = true;
3087
+ Globals.lighttouched = true;
29423088 //topView.object = client;
29433089 //frontView.object = client;
29443090 //sideView.object = client;
....@@ -2946,7 +3092,7 @@
29463092 else
29473093 {
29483094 cameraView.object = group;
2949
- cameraView.lighttouched = true;
3095
+ Globals.lighttouched = true;
29503096 //topView.object = group;
29513097 //frontView.object = group;
29523098 //sideView.object = group;
....@@ -3454,7 +3600,7 @@
34543600 String pigment = Object3D.GetPigment(tex);
34553601 //String bump = Object3D.GetBump(tex);
34563602
3457
- 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);
34583604
34593605 double s = v.s;
34603606
....@@ -3542,11 +3688,11 @@
35423688
35433689 SwitchNode sn = new SwitchNode(poses, Object3D.GEOMETRY);
35443690
3545
- boolean random = CameraPane.RANDOM;
3546
- CameraPane.RANDOM = false; // parse all random nodes
3691
+ boolean random = CameraPane.SWITCH;
3692
+ CameraPane.SWITCH = false; // parse all random nodes
35473693 lowres.linkVerticesThis(null);
35483694 lowres.linkVerticesThis(sn);
3549
- CameraPane.RANDOM = random;
3695
+ CameraPane.SWITCH = random;
35503696
35513697 System.err.flush();
35523698
....@@ -3755,7 +3901,7 @@
37553901 group.selection.RelinkToSupport(); // july 2014
37563902 System.out.println("DONE.");
37573903 refreshContents();
3758
- 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));
37593905 }
37603906
37613907 void ReduceMesh(boolean reduction34)
....@@ -4031,25 +4177,25 @@
40314177 System.err.println("info : " + child.GetPath());
40324178 }
40334179 }
4034
- else
4035
- {
4036
- objEditor.SetMaterial(group); // .GetMaterial());
4037
- objEditor.AddInfo(group, this, true); // .GetMaterial());
4038
- System.err.println("info : " + group.GetPath());
4039
- }
4180
+// else
4181
+// {
4182
+// objEditor.SetMaterial(group); // .GetMaterial());
4183
+// objEditor.AddInfo(group, this, true); // .GetMaterial());
4184
+// System.err.println("info : " + group.GetPath());
4185
+// }
40404186
40414187 objEditor.SetText(); // jan 2014
40424188
4043
- 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))
40444190 CameraPane.flash = true;
40454191
40464192 if (tps != null && tps.length > 0 && ((Object3D) tps[0].getLastPathComponent()) instanceof Camera)
40474193 // a camera
40484194 {
40494195 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;
4196
+ Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent());
4197
+ // Globals.theRenderer.renderCamera = Globals.theRenderer.manipCamera;
4198
+ // Globals.theRenderer.eyeCamera = Globals.theRenderer.manipCamera;
40534199 }
40544200
40554201 refreshContents();
....@@ -4304,7 +4450,7 @@
43044450 refreshContents();
43054451 }
43064452
4307
- void pasteInto(boolean copyit)
4453
+ void pasteInto(boolean copyit, boolean clone)
43084454 {
43094455 // if (GrafreeD.clipboard == null)
43104456 // return;
....@@ -4333,7 +4479,14 @@
43334479 if (copyit)
43344480 {
43354481 // paste(false);
4336
- CloneClipboard(false); // sept 2014
4482
+ if (clone)
4483
+ {
4484
+ CloneClipboard(false); // sept 2014
4485
+ }
4486
+ else
4487
+ {
4488
+ paste(false);
4489
+ }
43374490 }
43384491 else
43394492 {
....@@ -4877,10 +5030,12 @@
48775030 cButton flashSelectionButton;
48785031 cButton editButton;
48795032 cButton uneditButton;
5033
+ JCheckBox allParamsButton;
48805034 cButton clearpanelButton;
4881
- cButton allParamsButton;
48825035 cButton unselectButton;
48835036
5037
+ cButton oneStepButton;
5038
+
48845039 cButton screenfitButton;
48855040 cButton screenfitpointButton;
48865041 cButton snapobjectButton;
....@@ -4935,6 +5090,7 @@
49355090 private MenuItem mergeGeometriesItem;
49365091 private MenuItem copyItem;
49375092 private MenuItem pasteItem;
5093
+ private MenuItem pasteIntoItem;
49385094 private MenuItem pasteLinkItem;
49395095 private MenuItem pasteCloneItem;
49405096 private MenuItem pasteExpandItem;
....@@ -5007,6 +5163,7 @@
50075163
50085164 private MenuItem resetParentItem;
50095165 private MenuItem repairParentItem;
5166
+ private MenuItem repairShadowItem;
50105167 private MenuItem sortbysizeItem;
50115168 private MenuItem sortbynameItem;
50125169
....@@ -5031,7 +5188,7 @@
50315188 private MenuItem blobItem;
50325189 private MenuItem latheItem;
50335190 private MenuItem bezierItem;
5034
- private MenuItem checkerItem;
5191
+ private MenuItem overlayItem;
50355192 private MenuItem meshItem;
50365193 // private MenuItem meshGroupItem;
50375194 private MenuItem springItem;