Normand Briere
2019-06-17 26b49d8e26625491f4a407a05e9bc9d72037f938
GroupEditor.java
....@@ -74,7 +74,7 @@
7474 this.copy = this.group = copy;
7575 //selectees = this.group.selectees;
7676
77
- SetupMenu2(objEditor);
77
+ SetupMenu2(this); //objEditor);
7878 SetupUI2(objEditor);
7979 objEditor.SetupUI(true);
8080 SetupViews(objEditor);
....@@ -98,14 +98,14 @@
9898
9999 void CloneClipboard(boolean supports)
100100 {
101
- assert(GrafreeD.clipboard.parent == null);
102
- Object3D /*Composite*/ keepparent = GrafreeD.clipboard.get(0).parent;
103
- GrafreeD.clipboard.get(0).parent = null; // Avoid copy?
104
- if (LA.isIdentity(GrafreeD.clipboard.toParent))
105
- makeSomething(CloneObject(GrafreeD.clipboard.get(0), false));
101
+ assert(Grafreed.clipboard.parent == null);
102
+ Object3D /*Composite*/ keepparent = Grafreed.clipboard.get(0).parent;
103
+ Grafreed.clipboard.get(0).parent = null; // Avoid copy?
104
+ if (LA.isIdentity(Grafreed.clipboard.toParent))
105
+ makeSomething(CloneObject(Grafreed.clipboard.get(0), false));
106106 else
107
- makeSomething(CloneObject(GrafreeD.clipboard, false));
108
- GrafreeD.clipboard.get(0).parent = keepparent;
107
+ makeSomething(CloneObject(Grafreed.clipboard, false));
108
+ Grafreed.clipboard.get(0).parent = keepparent;
109109 }
110110
111111 static Object3D CloneObject(Object3D obj, boolean supports)
....@@ -119,7 +119,7 @@
119119 // obj.support = null;
120120 if (!supports)
121121 obj.SaveSupports();
122
- Object3D clone = (Object3D)GrafreeD.clone(obj);
122
+ Object3D clone = (Object3D)Grafreed.clone(obj);
123123 obj.parent = parent;
124124 // obj.support = support;
125125 // clone.support = support; // aout 2013
....@@ -148,27 +148,18 @@
148148
149149 //JTextField nameField;
150150
151
- void SetupMenu2(ObjEditor oe)
151
+ void SetupMenu2(GroupEditor oe)
152152 {
153
- if (Globals.ADVANCED)
154
- {
155
- oe.cameraMenu.add(lookAtItem = new MenuItem("Set Interest"));
156
- //cameraMenu.add(lookFromItem = new MenuItem("Look From Selection"));
157
- //cameraMenu.add(switchItem = new MenuItem("Reverse View"));
158
- editLeafItem = oe.cameraMenu.add(new MenuItem("Edit Leaf"));
159
- oe.cameraMenu.add("-");
160
- openWindowItem = oe.cameraMenu.add(new MenuItem("Edit copy..."));
161
- openWindowItem.addActionListener(this);
162
- editLeafItem.addActionListener(this);
163
- lookAtItem.addActionListener(this);
164
- //lookFromItem.addActinoListener(this);
165
- //switchItem.addActionListener(this);
166
- }
167
-
168153 Menu menu;
169154 oe.menuBar.add(menu = new Menu("Edit"));
170155 //editItem = menu.add(new MenuItem("Edit"));
171156 //editItem.addActionListener(this);
157
+
158
+// undoItem = menu.add(new MenuItem("Undo"));
159
+// undoItem.addActionListener(this);
160
+// redoItem = menu.add(new MenuItem("Redo"));
161
+// redoItem.addActionListener(this);
162
+// menu.add("-");
172163 duplicateItem = menu.add(new MenuItem("Duplicate"));
173164 duplicateItem.addActionListener(this);
174165 cloneItem = menu.add(new MenuItem("Clone"));
....@@ -206,14 +197,97 @@
206197 clearAllItem = menu.add(new MenuItem("Clear All"));
207198 clearAllItem.addActionListener(this);
208199 }
200
+
201
+ menuBar.add(cameraMenu = new Menu("View"));
202
+ //cameraMenu.add(zBufferItem = new CheckboxMenuItem("Z Buffer"));
203
+ //zBufferItem.addActionListener(this);
204
+ //cameraMenu.add(normalLensItem = new MenuItem("Normal Lens"));
205
+ //normalLensItem.addActionListener(this);
206
+ cameraMenu.add(revertCameraItem = new MenuItem("Restore Viewpoint"));
207
+ revertCameraItem.addActionListener(this);
208
+
209
+ cameraMenu.add(toggleFullScreenItem = new CheckboxMenuItem("Full Screen"));
210
+ toggleFullScreenItem.addItemListener(this);
211
+ toggleFullScreenItem.setState(CameraPane.FULLSCREEN);
212
+ cameraMenu.add("-");
213
+
214
+ cameraMenu.add(toggleTextureItem = new CheckboxMenuItem("Texture"));
215
+ toggleTextureItem.addItemListener(this);
216
+ toggleTextureItem.setState(CameraPane.textureon);
217
+
218
+ cameraMenu.add(toggleSwitchItem = new CheckboxMenuItem("Switch"));
219
+ toggleSwitchItem.addItemListener(this);
220
+ toggleSwitchItem.setState(CameraPane.SWITCH);
221
+
222
+ cameraMenu.add(toggleHandleItem = new CheckboxMenuItem("Handles"));
223
+ toggleHandleItem.addItemListener(this);
224
+ toggleHandleItem.setState(CameraPane.HANDLES);
225
+
226
+ cameraMenu.add(togglePaintItem = new CheckboxMenuItem("Paint mode"));
227
+ togglePaintItem.addItemListener(this);
228
+ togglePaintItem.setState(CameraPane.PAINTMODE);
229
+
230
+ if (Globals.ADVANCED)
231
+ {
232
+ cameraMenu.add("-");
233
+ cameraMenu.add(toggleLiveItem = new CheckboxMenuItem("Live"));
234
+ toggleLiveItem.addItemListener(this);
235
+ toggleLiveItem.setState(Globals.isLIVE());
209236
237
+ cameraMenu.add(stepItem = new MenuItem("Step"));
238
+ stepItem.addActionListener(this);
239
+ // cameraMenu.add(toggleDLItem = new CheckboxMenuItem("Display List"));
240
+ // toggleDLItem.addItemListener(this);
241
+ // toggleDLItem.setState(false);
242
+
243
+ cameraMenu.add(toggleRenderItem = new CheckboxMenuItem("Render"));
244
+ toggleRenderItem.addItemListener(this);
245
+ toggleRenderItem.setState(!CameraPane.frozen);
246
+
247
+ cameraMenu.add(toggleDebugItem = new CheckboxMenuItem("Debug"));
248
+ toggleDebugItem.addItemListener(this);
249
+ toggleDebugItem.setState(CameraPane.DEBUG);
250
+
251
+ cameraMenu.add(toggleFrustumItem = new CheckboxMenuItem("Frustum"));
252
+ toggleFrustumItem.addItemListener(this);
253
+ toggleFrustumItem.setState(CameraPane.FRUSTUM);
254
+
255
+ cameraMenu.add(toggleFootContactItem = new CheckboxMenuItem("Foot contact"));
256
+ toggleFootContactItem.addItemListener(this);
257
+ toggleFootContactItem.setState(CameraPane.FOOTCONTACT);
258
+
259
+ cameraMenu.add(toggleTimelineItem = new CheckboxMenuItem("Timeline"));
260
+ toggleTimelineItem.addItemListener(this);
261
+ }
262
+
263
+// cameraMenu.add(toggleRootItem = new CheckboxMenuItem("Alternate Root"));
264
+// toggleRootItem.addItemListener(this);
265
+// toggleRootItem.setState(false);
266
+// cameraMenu.add(animationItem = new CheckboxMenuItem("Animation"));
267
+// animationItem.addItemListener(this);
268
+// animationItem.setState(CameraPane.ANIMATION);
269
+ cameraMenu.add("-");
270
+ cameraMenu.add(editCameraItem = new MenuItem("Save Viewpoint"));
271
+ editCameraItem.addActionListener(this);
272
+
273
+ if (Globals.ADVANCED)
274
+ {
275
+ oe.cameraMenu.add(lookAtItem = new MenuItem("Set Interest"));
276
+ //cameraMenu.add(lookFromItem = new MenuItem("Look From Selection"));
277
+ //cameraMenu.add(switchItem = new MenuItem("Reverse View"));
278
+ editLeafItem = oe.cameraMenu.add(new MenuItem("Edit Leaf"));
279
+ oe.cameraMenu.add("-");
280
+ openWindowItem = oe.cameraMenu.add(new MenuItem("Edit copy..."));
281
+ openWindowItem.addActionListener(this);
282
+ editLeafItem.addActionListener(this);
283
+ lookAtItem.addActionListener(this);
284
+ //lookFromItem.addActinoListener(this);
285
+ //switchItem.addActionListener(this);
286
+ }
287
+
210288 oe.menuBar.add(menu = new Menu("Setting"));
211289 if (Globals.ADVANCED)
212290 {
213
- resetMeshItem = menu.add(new MenuItem("Reset All"));
214
- resetMeshItem.addActionListener(this);
215
- stepAllItem = menu.add(new MenuItem("Step All"));
216
- stepAllItem.addActionListener(this);
217291 revertMeshItem = menu.add(new MenuItem("Revert Meshes"));
218292 revertMeshItem.addActionListener(this);
219293 resetreferencesItem = menu.add(new MenuItem("Reset Mesh References"));
....@@ -318,8 +392,12 @@
318392 resetTransformItem.addActionListener(this);
319393 resetCentroidItem = menu.add(new MenuItem("Reset Centroid"));
320394 resetCentroidItem.addActionListener(this);
321
- transformgeometryItem = menu.add(new MenuItem("Transform Geometry"));
322
- transformgeometryItem.addActionListener(this);
395
+ resetCentroidXZItem = menu.add(new MenuItem("Reset Centroid XY"));
396
+ resetCentroidXZItem.addActionListener(this);
397
+ transformGeometryItem = menu.add(new MenuItem("Transform Geometry"));
398
+ transformGeometryItem.addActionListener(this);
399
+ transformChildrenItem = menu.add(new MenuItem("Transform Children"));
400
+ transformChildrenItem.addActionListener(this);
323401
324402 oe.menuBar.add(menu = new Menu("Geometry"));
325403 genUVItem = menu.add(new MenuItem("Generate UV"));
....@@ -368,6 +446,10 @@
368446 oe.menuBar.add(menu = new Menu("Attributes"));
369447 clearMaterialsItem = menu.add(new MenuItem("Clear Materials"));
370448 clearMaterialsItem.addActionListener(this);
449
+ resetAllItem = menu.add(new MenuItem("Reset All"));
450
+ resetAllItem.addActionListener(this);
451
+ stepAllItem = menu.add(new MenuItem("Step All"));
452
+ stepAllItem.addActionListener(this);
371453 menu.add("-");
372454 liveleavesItem = menu.add(new MenuItem("Live Leaves"));
373455 liveleavesItem.addActionListener(this);
....@@ -422,35 +504,23 @@
422504 sortbysizeItem.addActionListener(this);
423505 sortbynameItem = menu.add(new MenuItem("Sort by name"));
424506 sortbynameItem.addActionListener(this);
507
+ menu.add("-");
508
+ shareGeometriesItem = menu.add(new MenuItem("Share Geometries"));
509
+ shareGeometriesItem.addActionListener(this);
510
+ mergeGeometriesItem = menu.add(new MenuItem("Merge Geometries"));
511
+ mergeGeometriesItem.addActionListener(this);
425512 if (Globals.ADVANCED)
426513 {
427
- menu.add("-");
514
+ // Pretty much the same as duplicate and clone.
428515 extractGeometriesItem = menu.add(new MenuItem("Link Geometry"));
429516 extractGeometriesItem.addActionListener(this);
430517 cloneGeometriesItem = menu.add(new MenuItem("Clone Geometry"));
431518 cloneGeometriesItem.addActionListener(this);
432
- shareGeometriesItem = menu.add(new MenuItem("Share Geometry"));
433
- shareGeometriesItem.addActionListener(this);
434
- mergeGeometriesItem = menu.add(new MenuItem("Merge Geometry"));
435
- mergeGeometriesItem.addActionListener(this);
436519 }
437520
438521 oe.menuBar.add(menu = new Menu("Insert"));
439522 buildCreateMenu(menu);
440523
441
- oe.menuBar.add(menu = new Menu("Include"));
442
- importOBJItem = menu.add(new MenuItem("OBJ file..."));
443
- importOBJItem.addActionListener(this);
444
- menu.add("-");
445
- import3DSItem = menu.add(new MenuItem("3DS file..."));
446
- import3DSItem.addActionListener(this);
447
- menu.add("-");
448
- importVRMLX3DItem = menu.add(new MenuItem("VRML/X3D file..."));
449
- importVRMLX3DItem.addActionListener(this);
450
- menu.add("-");
451
- importGFDItem = menu.add(new MenuItem("GrafreeD file..."));
452
- importGFDItem.addActionListener(this);
453
-
454524 oe.menuBar.add(menu = new Menu("Tools"));
455525 buildToolsMenu(menu);
456526 }
....@@ -487,11 +557,23 @@
487557 */
488558 //this.AddOptions(oe.toolbarPanel, oe.aConstraints);
489559
560
+ oe.toolbarPanel.add(undoButton = new cButton("Undo", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
561
+ undoButton.setToolTipText("Undo changes");
562
+ undoButton.addActionListener(this);
563
+
564
+ oe.toolbarPanel.add(redoButton = new cButton("Redo", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
565
+ redoButton.setToolTipText("Redo changes");
566
+ redoButton.addActionListener(this);
567
+
568
+ oe.toolbarPanel.add(saveButton = new cButton("Save", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
569
+ saveButton.setToolTipText("Save changes");
570
+ saveButton.addActionListener(this);
571
+
490572 oe.toolbarPanel.add(liveCB = new cCheckBox("Live", Globals.isLIVE())); //, oe.aConstraints);
491
- liveCB.setToolTipText("Enabled animation");
573
+ liveCB.setToolTipText("Enable animation");
492574 liveCB.addItemListener(this);
493575
494
- oe.toolbarPanel.add(oneStepButton = new cButton("Step", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
576
+ oe.toolbarPanel.add(oneStepButton = new cButton("Step", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
495577 oneStepButton.setToolTipText("Animate one step forward");
496578 oneStepButton.addActionListener(this);
497579
....@@ -503,7 +585,7 @@
503585 trackCB.setToolTipText("Enable tracking");
504586 trackCB.addItemListener(this);
505587
506
- oe.toolbarPanel.add(screenfitButton = new cButton("@", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
588
+ oe.toolbarPanel.add(screenfitButton = new cButton("@", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
507589 screenfitButton.setToolTipText("Screen fit");
508590 screenfitButton.addActionListener(this);
509591
....@@ -512,39 +594,39 @@
512594
513595 if (Globals.ADVANCED)
514596 {
515
- oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
597
+ oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
516598 snapobjectButton.addActionListener(this);
517599 snapobjectButton.setToolTipText("Snap Object");
518600 }
519601
520
- oe.toolbarPanel.add(flashSelectionButton = new cButton("?", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
602
+ oe.toolbarPanel.add(flashSelectionButton = new cButton("?", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
521603 flashSelectionButton.setToolTipText("Show selection");
522604 flashSelectionButton.addActionListener(this);
523605
524606 oe.toolbarPanel.add(new JSeparator(SwingConstants.VERTICAL));
525607
526
- oe.toolbarPanel.add(twoButton = new cButton("|+|", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
608
+ oe.toolbarPanel.add(twoButton = new cButton("|+|", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
527609 twoButton.setToolTipText("Show center view only");
528610 twoButton.addActionListener(this);
529
- oe.toolbarPanel.add(fourButton = new cButton("+||", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
611
+ oe.toolbarPanel.add(fourButton = new cButton("+||", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
530612 fourButton.addActionListener(this);
531613 fourButton.setToolTipText("Show left panel only");
532
- oe.toolbarPanel.add(sixButton = new cButton("+|+|", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
614
+ oe.toolbarPanel.add(sixButton = new cButton("+|+|", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
533615 sixButton.setToolTipText("2-column layout left");
534616 sixButton.addActionListener(this);
535
- oe.toolbarPanel.add(threeButton = new cButton("|+|+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
617
+ oe.toolbarPanel.add(threeButton = new cButton("|+|+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
536618 threeButton.setToolTipText("2-column layout right");
537619 threeButton.addActionListener(this);
538
- oe.toolbarPanel.add(sevenButton = new cButton("+|+|+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
620
+ oe.toolbarPanel.add(sevenButton = new cButton("+|+|+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
539621 sevenButton.setToolTipText("3-column layout");
540622 sevenButton.addActionListener(this);
541623 //
542624
543
- oe.toolbarPanel.add(rootButton = new cButton("o o o", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
625
+ oe.toolbarPanel.add(rootButton = new cButton("o o o", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
544626 rootButton.setToolTipText("Edit selection in new tab");
545627 rootButton.addActionListener(this);
546628
547
- oe.toolbarPanel.add(closeButton = new cButton("X", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
629
+ oe.toolbarPanel.add(closeButton = new cButton("X", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
548630 closeButton.setToolTipText("Close tab");
549631 closeButton.addActionListener(this);
550632 //oe.treePanel.add(clearButton = new cButton("X"), oe.aConstraints);
....@@ -552,11 +634,11 @@
552634
553635 cGridBag commandsPanel = new cGridBag();
554636
555
- commandsPanel.add(editButton = new cButton("+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
637
+ commandsPanel.add(editButton = new cButton("+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
556638 editButton.setToolTipText("Edit selection");
557639 editButton.addActionListener(this);
558640
559
- commandsPanel.add(uneditButton = new cButton("-", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
641
+ commandsPanel.add(uneditButton = new cButton("-", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
560642 uneditButton.setToolTipText("Unedit selection");
561643 uneditButton.addActionListener(this);
562644
....@@ -564,11 +646,11 @@
564646 allParamsButton.setToolTipText("Edit all params");
565647 allParamsButton.addActionListener(this);
566648
567
- commandsPanel.add(clearPanelButton = new cButton("C", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
649
+ commandsPanel.add(clearPanelButton = new cButton("C", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
568650 clearPanelButton.setToolTipText("Clear edit panel");
569651 clearPanelButton.addActionListener(this);
570652
571
- commandsPanel.add(unselectButton = new cButton("U", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
653
+ commandsPanel.add(unselectButton = new cButton("U", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
572654 unselectButton.setToolTipText("Unselect");
573655 unselectButton.addActionListener(this);
574656
....@@ -651,7 +733,7 @@
651733 zoomBoxCB.setToolTipText("Display bounding boxes when moving the wheel");
652734 zoomBoxCB.addItemListener(this);
653735
654
- if (Globals.ADVANCED)
736
+ if (true) // Globals.ADVANCED)
655737 {
656738 panel.add(supportCB = new cCheckBox("Support", CameraPane.SUPPORT)); //, constraints);
657739 supportCB.setToolTipText("Enable rigging");
....@@ -724,6 +806,7 @@
724806 buttonGroup.add(radioButton);
725807 radioButton.doClick();
726808 }
809
+
727810 void SetupViews(ObjEditor oe)
728811 {
729812 oe.SetupViews();
....@@ -788,6 +871,7 @@
788871 } else if(e.getSource() == liveCB)
789872 {
790873 cameraView.ToggleLive();
874
+ refreshContents(false);
791875 }
792876 else if(e.getSource() == supportCB)
793877 {
....@@ -1195,7 +1279,7 @@
11951279 memoryItem.addActionListener(this);
11961280 menu.add(analyzeItem = new MenuItem("Analyze"));
11971281 analyzeItem.addActionListener(this);
1198
- menu.add(dumpItem = new MenuItem("Dump"));
1282
+ menu.add(dumpItem = new MenuItem("Print"));
11991283 dumpItem.addActionListener(this);
12001284 // menu.add(pathItem = new MenuItem("From-to path"));
12011285 // pathItem.addActionListener(this);
....@@ -1542,9 +1626,9 @@
15421626
15431627 void Overwrite(int mask)
15441628 {
1545
- if (/*group.selection.size() == 1 &&*/ GrafreeD.clipboard.size() == 1)
1629
+ if (/*group.selection.size() == 1 &&*/ Grafreed.clipboard.size() == 1)
15461630 {
1547
- Object3D content = GrafreeD.clipboard.get(0);
1631
+ Object3D content = Grafreed.clipboard.get(0);
15481632
15491633 if (content instanceof cGroup && ((cGroup)content).transientlink )
15501634 content = ((cGroup)content).get(0);
....@@ -1849,31 +1933,6 @@
18491933 csg.addChild(child);
18501934 child.addChild(csg);
18511935 } else
1852
-
1853
- if (source == importGFDItem)
1854
- {
1855
- ImportGFD();
1856
- } else
1857
- if (source == importVRMLX3DItem)
1858
- {
1859
- ImportVRMLX3D();
1860
- } else
1861
- if (source == import3DSItem)
1862
- {
1863
- objEditor.ImportJME(new com.jmex.model.converters.MaxToJme(), "3ds", "Import 3DS");
1864
- } else
1865
- if (source == importOBJItem)
1866
- {
1867
- //objEditor.ImportJME(new com.jmex.model.converters.ObjToJme(), "obj", "Import OBJ");
1868
- FileDialog browser = new FileDialog(frame, "Import OBJ", FileDialog.LOAD);
1869
- browser.setVisible(true);
1870
- String filename = browser.getFile();
1871
- if (filename != null && filename.length() > 0)
1872
- {
1873
- String fullname = browser.getDirectory() + filename;
1874
- makeSomething(ReadOBJ(fullname), true);
1875
- }
1876
- } else
18771936 if (source == computeAOItem)
18781937 {
18791938 Globals.drawMode = CameraPane.OCCLUSION;
....@@ -1892,7 +1951,7 @@
18921951 if (source == invariantsItem)
18931952 {
18941953 System.out.println("Invariants:");
1895
- GrafreeD.grafreeD.universe.invariants();
1954
+ Grafreed.grafreeD.universe.invariants();
18961955 } else
18971956 if (source == memoryItem)
18981957 {
....@@ -1910,6 +1969,18 @@
19101969 if (source == dumpItem)
19111970 {
19121971 DumpObject();
1972
+ } else
1973
+ if (source == undoButton)
1974
+ {
1975
+ Undo();
1976
+ } else
1977
+ if (source == redoButton)
1978
+ {
1979
+ Redo();
1980
+ } else
1981
+ if (source == saveButton)
1982
+ {
1983
+ Save();
19131984 } else
19141985 if (source == oneStepButton)
19151986 {
....@@ -1965,12 +2036,20 @@
19652036 {
19662037 loadClipboard(true);
19672038 } else
2039
+ if (source == undoItem)
2040
+ {
2041
+ Undo();
2042
+ } else
2043
+ if (source == redoItem)
2044
+ {
2045
+ Redo();
2046
+ } else
19682047 if (source == duplicateItem)
19692048 {
1970
- Object3D keep = GrafreeD.clipboard;
2049
+ Object3D keep = Grafreed.clipboard;
19712050 loadClipboard(false);
19722051 paste(false);
1973
- GrafreeD.clipboard = keep;
2052
+ Grafreed.clipboard = keep;
19742053 } else
19752054 if (source == cloneItem)
19762055 {
....@@ -2190,9 +2269,9 @@
21902269 // group.selection.get(0).setMasterThis(content); // should be identity
21912270 // refreshContents();
21922271 // }
2193
- if (/*group.selection.size() == 1 &&*/ GrafreeD.clipboard.size() == 1)
2272
+ if (/*group.selection.size() == 1 &&*/ Grafreed.clipboard.size() == 1)
21942273 {
2195
- Object3D content = GrafreeD.clipboard.get(0);
2274
+ Object3D content = Grafreed.clipboard.get(0);
21962275
21972276 if (content instanceof cGroup && ((cGroup)content).transientlink )
21982277 content = ((cGroup)content).get(0);
....@@ -2242,9 +2321,9 @@
22422321 } else
22432322 if (source == setMasterItem)
22442323 {
2245
- if (group.selection.size() == 1 && GrafreeD.clipboard.size() == 1)
2324
+ if (group.selection.size() == 1 && Grafreed.clipboard.size() == 1)
22462325 {
2247
- Object3D content = GrafreeD.clipboard.get(0);
2326
+ Object3D content = Grafreed.clipboard.get(0);
22482327
22492328 if (content instanceof cGroup && ((cGroup)content).transientlink )
22502329 content = ((cGroup)content).get(0);
....@@ -2257,9 +2336,9 @@
22572336 {
22582337 if (group.selection.size() == 1)
22592338 {
2260
- if (GrafreeD.clipboard.size() == 1)
2339
+ if (Grafreed.clipboard.size() == 1)
22612340 {
2262
- Object3D content = GrafreeD.clipboard.get(0);
2341
+ Object3D content = Grafreed.clipboard.get(0);
22632342
22642343 if (content instanceof cGroup && ((cGroup)content).transientlink )
22652344 content = ((cGroup)content).get(0);
....@@ -2276,7 +2355,7 @@
22762355 {
22772356 RevertMeshes();
22782357 } else
2279
- if (source == resetMeshItem)
2358
+ if (source == resetAllItem)
22802359 {
22812360 ResetAll();
22822361 } else
....@@ -2464,7 +2543,7 @@
24642543 } else
24652544 if (source == genNormalsMESHItem)
24662545 {
2467
- GenNormals(true); // TODO
2546
+ GenNormalsMESH();
24682547 } else
24692548 if (source == genNormalsORGANItem)
24702549 {
....@@ -2614,9 +2693,13 @@
26142693 {
26152694 SmoothMesh();
26162695 } else
2617
- if (source == transformgeometryItem)
2696
+ if (source == transformGeometryItem)
26182697 {
26192698 TransformGeometry();
2699
+ } else
2700
+ if (source == transformChildrenItem)
2701
+ {
2702
+ TransformChildren();
26202703 } else
26212704 if (source == resetTransformItem)
26222705 {
....@@ -2624,7 +2707,11 @@
26242707 } else
26252708 if (source == resetCentroidItem)
26262709 {
2627
- ResetCentroid();
2710
+ ResetCentroid(true);
2711
+ } else
2712
+ if (source == resetCentroidXZItem)
2713
+ {
2714
+ ResetCentroid(false);
26282715 } else
26292716 if (source == resetParentItem)
26302717 {
....@@ -2980,7 +3067,7 @@
29803067 child.CloseUI();
29813068 listUI.remove(child);
29823069
2983
- child.editWindow = null; // ???????????
3070
+ //child.editWindow = null; // ???????????
29843071 }
29853072 objEditor.ctrlPanel.FlushUI();
29863073 //objEditor.jTree.clearSelection();
....@@ -3066,7 +3153,10 @@
30663153 frontView.object = group;
30673154 sideView.object = group;
30683155 }
3156
+
3157
+// fix "+" issue
30693158 group.editWindow = this;
3159
+
30703160 /*
30713161 currentLayout = radio.layout;
30723162 if (currentLayout == null)
....@@ -3079,7 +3169,20 @@
30793169 //group.attributes = -1;
30803170 ResetModel();
30813171 refreshContents(true);
3082
- }
3172
+ } else if (event.getSource() == editCameraItem)
3173
+ {
3174
+ cameraView.ProtectCamera();
3175
+ cameraView.repaint();
3176
+ return;
3177
+ } else if (event.getSource() == revertCameraItem)
3178
+ {
3179
+ cameraView.RevertCamera();
3180
+ cameraView.repaint();
3181
+ return;
3182
+ // } else if (event.getSource() == textureButton)
3183
+ // {
3184
+ // return; // true;
3185
+ }
30833186 else
30843187 {
30853188 //return super.action(event, arg);
....@@ -3140,6 +3243,28 @@
31403243 refreshContents();
31413244 }
31423245
3246
+ void TransformChildren()
3247
+ {
3248
+ Object3D obj;
3249
+ for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
3250
+ {
3251
+ obj = (Object3D)e.nextElement();
3252
+ obj.KeepTextureMatrices();
3253
+ obj.TransformChildren();
3254
+ obj.RestoreTextureMatrices();
3255
+
3256
+// if (obj.parent == null)
3257
+// {
3258
+// System.out.println("NULL PARENT!");
3259
+// new Exception().printStackTrace();
3260
+// }
3261
+// else
3262
+// TouchTransform(obj);
3263
+// //obj.parent.Touch();
3264
+ }
3265
+
3266
+ refreshContents();
3267
+ }
31433268
31443269 void ResetTransform()
31453270 {
....@@ -3252,7 +3377,7 @@
32523377 refreshContents();
32533378 }
32543379
3255
- void ResetCentroid()
3380
+ void ResetCentroid(boolean full)
32563381 {
32573382 Object3D obj;
32583383 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -3267,12 +3392,16 @@
32673392 LA.matIdentity(Object3D.mat);
32683393 obj.getBounds(minima, maxima, false);
32693394 Object3D.mat[3][0] = -(minima.x + maxima.x)/2;
3270
- Object3D.mat[3][1] = -(minima.y + maxima.y)/2;
3395
+ if (full)
3396
+ Object3D.mat[3][1] = -(minima.y + maxima.y)/2;
32713397 Object3D.mat[3][2] = -(minima.z + maxima.z)/2;
32723398 obj.TransformMesh(Object3D.mat);
3399
+
32733400 Object3D.mat[3][0] = (minima.x + maxima.x)/2;
3274
- Object3D.mat[3][1] = (minima.y + maxima.y)/2;
3401
+ if (full)
3402
+ Object3D.mat[3][1] = (minima.y + maxima.y)/2;
32753403 Object3D.mat[3][2] = (minima.z + maxima.z)/2;
3404
+
32763405 LA.matConcat(Object3D.mat, obj.toParent, obj.toParent);
32773406 //Object3D.mat[3][0] = -Object3D.mat[3][0];
32783407 //Object3D.mat[3][1] = -Object3D.mat[3][1];
....@@ -3301,7 +3430,8 @@
33013430
33023431 int size = obj.MemorySize();
33033432
3304
- System.err.println((size/1024) + " KB is the size of " + obj);
3433
+ //System.err.println((size/1024) + " KB is the size of " + obj);
3434
+ System.err.println("the size of " + obj + " is " + size + " (" + (size/1024) + "KB)");
33053435 }
33063436 }
33073437 catch (Exception e)
....@@ -3338,9 +3468,9 @@
33383468 obj = (Object3D)e.nextElement();
33393469
33403470 System.out.println("Object is: " + obj);
3341
- GrafreeD.AnalyzeObject(obj);
3471
+ Grafreed.AnalyzeObject(obj);
33423472 System.out.println("Boundary rep: " + obj.bRep);
3343
- GrafreeD.AnalyzeObject(obj.bRep);
3473
+ Grafreed.AnalyzeObject(obj.bRep);
33443474
33453475 // System.err.println((size/1024) + " KB is the size of " + obj);
33463476 }
....@@ -3382,6 +3512,13 @@
33823512 void GenNormals(boolean crease)
33833513 {
33843514 group.GenNormalsS(crease);
3515
+
3516
+ refreshContents();
3517
+ }
3518
+
3519
+ void GenNormalsMESH()
3520
+ {
3521
+ group.GenNormalsMeshS();
33853522
33863523 refreshContents();
33873524 }
....@@ -3554,8 +3691,8 @@
35543691
35553692 void ParseVertices()
35563693 {
3557
- boolean epsequal = GrafreeD.epsequal;
3558
- GrafreeD.epsequal = true;
3694
+ boolean epsequal = Grafreed.epsequal;
3695
+ Grafreed.epsequal = true;
35593696
35603697 for (int i=0; i<group.selection.size(); i++)
35613698 {
....@@ -3580,7 +3717,7 @@
35803717 LA.matTranslate(g.toParent, temp.x, temp.y, temp.z);
35813718 LA.matTranslate(g.fromParent, -temp.x, -temp.y, -temp.z);
35823719
3583
- g.add(GrafreeD.clipboard);
3720
+ g.add(Grafreed.clipboard);
35843721
35853722 buffer.add(g);
35863723 }
....@@ -3595,7 +3732,7 @@
35953732 makeSomething(buffer, i==group.selection.size()-1);
35963733 }
35973734
3598
- GrafreeD.epsequal = epsequal;
3735
+ Grafreed.epsequal = epsequal;
35993736
36003737 refreshContents();
36013738 }
....@@ -3613,7 +3750,16 @@
36133750 String pigment = Object3D.GetPigment(tex);
36143751 //String bump = Object3D.GetBump(tex);
36153752
3616
- com.sun.opengl.util.texture.TextureData texturedata = Globals.theRenderer.GetTextureData(pigment, false, node.texres);
3753
+ com.sun.opengl.util.texture.TextureData texturedata = null;
3754
+
3755
+ try
3756
+ {
3757
+ texturedata = Globals.theRenderer.GetTextureData(pigment, false, node.texres);
3758
+ }
3759
+ catch (Exception e)
3760
+ {
3761
+ System.err.println("FAIL: " + node);
3762
+ }
36173763
36183764 double s = v.s;
36193765
....@@ -3745,7 +3891,7 @@
37453891 return;
37463892
37473893 Object3D poses = group.selection.get(0);
3748
- Object3D ref = GrafreeD.clipboard.get(0);
3894
+ Object3D ref = Grafreed.clipboard.get(0);
37493895
37503896 Object3D newgroup = new Object3D("Po:" + poses.name);
37513897
....@@ -3939,9 +4085,9 @@
39394085
39404086 void ClipMesh()
39414087 {
3942
- if (/*group.selection.size() == 1 &&*/ GrafreeD.clipboard.size() == 1)
4088
+ if (/*group.selection.size() == 1 &&*/ Grafreed.clipboard.size() == 1)
39434089 {
3944
- Object3D content = GrafreeD.clipboard.get(0);
4090
+ Object3D content = Grafreed.clipboard.get(0);
39454091
39464092 if (content instanceof cGroup && ((cGroup)content).transientlink )
39474093 content = ((cGroup)content).get(0);
....@@ -3950,7 +4096,7 @@
39504096 // {
39514097 // group.selection.get(i).ClipMesh(GrafreeD.clipboard);
39524098 // }
3953
- group.selection.ClipMesh(GrafreeD.clipboard);
4099
+ group.selection.ClipMesh(Grafreed.clipboard);
39544100 }
39554101 // group.selection.ClipMesh(GrafreeD.clipboard);
39564102 System.out.println("DONE.");
....@@ -4085,7 +4231,7 @@
40854231 objectPanel.setSelectedIndex(objectPanel.indexOfTab("Edit"));
40864232
40874233 Object3D elem = (Object3D)group.selection.elementAt(i);
4088
- if(elem != group)
4234
+ if(elem != group || !newWindow)
40894235 {
40904236 // if (!(elem instanceof Composite))
40914237 // newWindow = false;
....@@ -4175,7 +4321,6 @@
41754321 //case 702: // Event.LIST_DESELECT
41764322 group.deselectAll();
41774323 TreePath tps[] = objEditor.jTree.getSelectionPaths();
4178
- objEditor.ClearInfo(); // .GetMaterial());
41794324 if (tps != null)
41804325 {
41814326 for (int i=0; i < tps.length; i++)
....@@ -4184,10 +4329,8 @@
41844329
41854330 //if (child.parent != null)
41864331 //child.parent.addSelectee(child);
4332
+ objEditor.SetMaterial(child);
41874333 group.addSelectee(child);
4188
- objEditor.SetMaterial(child); // .GetMaterial());
4189
- objEditor.AddInfo(child, this, true); // .GetMaterial());
4190
- System.err.println("info : " + child.GetPath());
41914334 }
41924335 }
41934336 // else
....@@ -4197,16 +4340,17 @@
41974340 // System.err.println("info : " + group.GetPath());
41984341 // }
41994342
4200
- objEditor.SetText(); // jan 2014
4201
-
4202
- if (flashIt && !Globals.isLIVE() && tps != null && tps.length > 0 && !(((Object3D) tps[0].getLastPathComponent()) instanceof Camera))
4343
+ if (flashIt && !Globals.isLIVE() && tps != null && tps.length > 0 && !(tps[0].getLastPathComponent() instanceof Camera))
42034344 CameraPane.flash = true;
42044345
4205
- if (tps != null && tps.length > 0 && ((Object3D) tps[0].getLastPathComponent()) instanceof Camera)
4346
+ if (tps != null && tps.length > 0 && tps[0].getLastPathComponent() instanceof Camera)
42064347 // a camera
42074348 {
4208
- CameraPane.camerachangeframe = 0; // don't refuse it
4209
- Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent());
4349
+ if (tps[0].getLastPathComponent() != Globals.theRenderer.LightCamera())
4350
+ {
4351
+ CameraPane.camerachangeframe = 0; // don't refuse it
4352
+ Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent());
4353
+ }
42104354 // Globals.theRenderer.renderCamera = Globals.theRenderer.manipCamera;
42114355 // Globals.theRenderer.eyeCamera = Globals.theRenderer.manipCamera;
42124356 }
....@@ -4219,6 +4363,26 @@
42194363
42204364 freezemodel = false;
42214365 }
4366
+
4367
+ void refreshContents(boolean cp)
4368
+ {
4369
+ if (!Globals.MOUSEDRAGGED)
4370
+ {
4371
+ objEditor.ClearInfo(); // .GetMaterial());
4372
+
4373
+ for (int i=0; i < group.selection.Size(); i++)
4374
+ {
4375
+ Object3D child = (Object3D) group.selection.get(i);
4376
+
4377
+ objEditor.AddInfo(child, this, true);
4378
+ System.err.println("info : " + child.GetPath());
4379
+ }
4380
+
4381
+ objEditor.SetText(); // jan 2014
4382
+ }
4383
+
4384
+ super.refreshContents(cp);
4385
+ }
42224386
42234387 void linkSomething(Object3D thing)
42244388 {
....@@ -4290,16 +4454,18 @@
42904454 {
42914455 if (group.selection.isEmpty())
42924456 return;
4293
- GrafreeD.clipboardIsTempGroup = false;
4457
+
4458
+ Grafreed.clipboardIsTempGroup = false;
42944459 Composite tGroup = null;
42954460 if (group.selection.size() > 0) // 1)
42964461 {
42974462 tGroup = new cGroup();
4298
- GrafreeD.clipboardIsTempGroup = true;
4463
+ Grafreed.clipboardIsTempGroup = true;
42994464 }
43004465
43014466 if (cut)
43024467 {
4468
+ Save();
43034469 //int indices[] = jList.getSelectedIndices();
43044470 //for (int i = indices.length - 1; i >= 0; i--)
43054471 //jList.remove(indices[i]);
....@@ -4335,16 +4501,16 @@
43354501 //System.out.println("cut " + child);
43364502 //System.out.println("parent = " + child.parent);
43374503 // tmp.addChild(child);
4338
- if (GrafreeD.clipboardIsTempGroup)
4504
+ if (Grafreed.clipboardIsTempGroup)
43394505 tGroup.add/*Child*/(tmp);
43404506 else
4341
- GrafreeD.clipboard = tmp;
4507
+ Grafreed.clipboard = tmp;
43424508 }
43434509 else
4344
- if (GrafreeD.clipboardIsTempGroup)
4510
+ if (Grafreed.clipboardIsTempGroup)
43454511 tGroup.add/*Child*/(child);
43464512 else
4347
- GrafreeD.clipboard = child;
4513
+ Grafreed.clipboard = child;
43484514 }
43494515
43504516 //ResetModel();
....@@ -4376,21 +4542,23 @@
43764542 //System.out.println("cut " + elem);
43774543 //System.out.println("parent = " + elem.parent);
43784544 // tmp.addChild(elem);
4379
- if (GrafreeD.clipboardIsTempGroup)
4545
+ if (Grafreed.clipboardIsTempGroup)
43804546 tGroup.add/*Child*/(tmp);
43814547 else
4382
- GrafreeD.clipboard = tmp;
4548
+ Grafreed.clipboard = tmp;
43834549 }
43844550 else
4385
- if (GrafreeD.clipboardIsTempGroup)
4551
+ if (Grafreed.clipboardIsTempGroup)
43864552 tGroup.add/*Child*/(child);
43874553 else
4388
- GrafreeD.clipboard = child;
4554
+ Grafreed.clipboard = child;
43894555 }
43904556
43914557 }
4392
- if (GrafreeD.clipboardIsTempGroup)
4393
- GrafreeD.clipboard = tGroup;
4558
+
4559
+ if (Grafreed.clipboardIsTempGroup)
4560
+ Grafreed.clipboard = tGroup;
4561
+
43944562 if (cut)
43954563 {
43964564 ResetModel();
....@@ -4404,7 +4572,7 @@
44044572 // return;
44054573 boolean first = true;
44064574
4407
- if (GrafreeD.clipboardIsTempGroup)
4575
+ if (Grafreed.clipboardIsTempGroup)
44084576 {
44094577 Composite temp;
44104578
....@@ -4415,7 +4583,7 @@
44154583 temp = (Composite)Applet3D.clipboard.deepCopy();
44164584 */
44174585 Object3D elem;
4418
- for (Enumeration e = /*temp.children*/GrafreeD.clipboard.elements(); e.hasMoreElements();) // objList.add(copy.name))
4586
+ for (Enumeration e = /*temp.children*/Grafreed.clipboard.elements(); e.hasMoreElements();) // objList.add(copy.name))
44194587 {
44204588 Object3D child = (Object3D)e.nextElement();
44214589
....@@ -4449,14 +4617,14 @@
44494617 //Object3D cb = Applet3D.clipboard;
44504618 //temp.addChild(cb);
44514619 //makeSomething((expand?temp.copyExpand():temp.deepCopy()).get(0));
4452
- assert(GrafreeD.clipboard.parent == null);
4453
- Object3D /*Composite*/ keepparent = GrafreeD.clipboard.get(0).parent;
4454
- GrafreeD.clipboard.get(0).parent = null; // Avoid copy?
4455
- if (LA.isIdentity(GrafreeD.clipboard.toParent))
4456
- makeSomething(expand?GrafreeD.clipboard.get(0).copyExpand():GrafreeD.clipboard.get(0).deepCopy());
4620
+ assert(Grafreed.clipboard.parent == null);
4621
+ Object3D /*Composite*/ keepparent = Grafreed.clipboard.get(0).parent;
4622
+ Grafreed.clipboard.get(0).parent = null; // Avoid copy?
4623
+ if (LA.isIdentity(Grafreed.clipboard.toParent))
4624
+ makeSomething(expand?Grafreed.clipboard.get(0).copyExpand():Grafreed.clipboard.get(0).deepCopy());
44574625 else
4458
- makeSomething(expand?GrafreeD.clipboard.copyExpand():GrafreeD.clipboard.deepCopy());
4459
- GrafreeD.clipboard.get(0).parent = keepparent;
4626
+ makeSomething(expand?Grafreed.clipboard.copyExpand():Grafreed.clipboard.deepCopy());
4627
+ Grafreed.clipboard.get(0).parent = keepparent;
44604628 }
44614629
44624630 ResetModel();
....@@ -4505,9 +4673,9 @@
45054673 {
45064674 boolean first = true;
45074675
4508
- if (GrafreeD.clipboardIsTempGroup)
4676
+ if (Grafreed.clipboardIsTempGroup)
45094677 {
4510
- Composite temp = (Composite)GrafreeD.clipboard;
4678
+ Composite temp = (Composite)Grafreed.clipboard;
45114679 Object3D copy;
45124680 for (Enumeration e = temp.children.elements(); e.hasMoreElements();)
45134681 {
....@@ -4517,7 +4685,7 @@
45174685 }
45184686 } else
45194687 {
4520
- linkSomething(GrafreeD.clipboard); //.get(0));
4688
+ linkSomething(Grafreed.clipboard); //.get(0));
45214689 }
45224690 }
45234691 }
....@@ -4922,21 +5090,6 @@
49225090 }
49235091 */
49245092
4925
- void ImportGFD()
4926
- {
4927
- FileDialog browser = new FileDialog(objEditor.frame, "Import GrafreeD", FileDialog.LOAD);
4928
- browser.show();
4929
- String filename = browser.getFile();
4930
- if (filename != null && filename.length() > 0)
4931
- {
4932
- String fullname = browser.getDirectory() + filename;
4933
-
4934
- //Object3D readobj =
4935
- objEditor.ReadGFD(fullname, objEditor);
4936
- //makeSomething(readobj);
4937
- }
4938
- }
4939
-
49405093 /*
49415094 public void Callback(Object obj)
49425095 {
....@@ -4960,26 +5113,9 @@
49605113 }
49615114 */
49625115
4963
- void ImportVRMLX3D()
4964
- {
4965
- if (GrafreeD.standAlone)
4966
- {
4967
- /**/
4968
- FileDialog browser = new FileDialog(objEditor.frame, "Import VRML/X3D", FileDialog.LOAD);
4969
- browser.show();
4970
- String filename = browser.getFile();
4971
- if (filename != null && filename.length() > 0)
4972
- {
4973
- String fullname = browser.getDirectory() + filename;
4974
- LoadVRMLX3D(fullname);
4975
- }
4976
- /**/
4977
- }
4978
- }
4979
-
49805116 String GetFile(String dialogName)
49815117 {
4982
- if (GrafreeD.standAlone)
5118
+ if (Grafreed.standAlone)
49835119 {
49845120 FileDialog browser = new FileDialog(objEditor.frame, dialogName, FileDialog.LOAD);
49855121 browser.show();
....@@ -5047,6 +5183,9 @@
50475183 cButton clearpanelButton;
50485184 cButton unselectButton;
50495185
5186
+ cButton saveButton;
5187
+ cButton undoButton;
5188
+ cButton redoButton;
50505189 cButton oneStepButton;
50515190
50525191 cButton screenfitButton;
....@@ -5079,6 +5218,8 @@
50795218 private MenuItem lookFromItem;
50805219 private MenuItem switchItem;
50815220 private MenuItem cutItem;
5221
+ private MenuItem undoItem;
5222
+ private MenuItem redoItem;
50825223 private MenuItem duplicateItem;
50835224 private MenuItem cloneItem;
50845225 private MenuItem cloneSupportItem;
....@@ -5092,7 +5233,7 @@
50925233 private MenuItem linkverticesItem;
50935234 private MenuItem relinkverticesItem;
50945235 private MenuItem setMasterItem;
5095
- private MenuItem resetMeshItem;
5236
+ private MenuItem resetAllItem;
50965237 private MenuItem stepAllItem;
50975238 private MenuItem revertMeshItem;
50985239 private MenuItem poseMeshItem;
....@@ -5153,8 +5294,10 @@
51535294 private MenuItem panoTexturesItem;
51545295
51555296 private MenuItem resetCentroidItem;
5156
- private MenuItem transformgeometryItem;
5297
+ private MenuItem resetCentroidXZItem;
51575298 private MenuItem resetTransformItem;
5299
+ private MenuItem transformGeometryItem;
5300
+ private MenuItem transformChildrenItem;
51585301 private MenuItem hideItem;
51595302 private MenuItem grabItem;
51605303 private MenuItem backItem;
....@@ -5223,11 +5366,6 @@
52235366 private MenuItem doubleItem;
52245367 private MenuItem tripleItem;
52255368
5226
- private MenuItem importGFDItem;
5227
- private MenuItem importVRMLX3DItem;
5228
- private MenuItem import3DSItem;
5229
- private MenuItem importOBJItem;
5230
-
52315369 private MenuItem computeAOItem;
52325370 private MenuItem recompileItem;
52335371 private MenuItem editScriptItem;
....@@ -5237,4 +5375,8 @@
52375375 private MenuItem analyzeItem;
52385376 private MenuItem dumpItem;
52395377 //boolean freezemodel = false;
5378
+
5379
+ Menu cameraMenu;
5380
+ MenuItem editCameraItem;
5381
+ MenuItem revertCameraItem;
52405382 }