Normand Briere
2019-06-16 372b7fd481a476cd659713a4a01bf28bf6760cbe
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,32 +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
- importGFDItem = menu.add(new MenuItem("GrafreeD Object..."));
443
- importGFDItem.addActionListener(this);
444
- importVRMLX3DItem = menu.add(new MenuItem("VRML/X3D Object..."));
445
- importVRMLX3DItem.addActionListener(this);
446
- importOBJItem = menu.add(new MenuItem("OBJ Object..."));
447
- importOBJItem.addActionListener(this);
448
- import3DSItem = menu.add(new MenuItem("3DS Object..."));
449
- import3DSItem.addActionListener(this);
450
-
451524 oe.menuBar.add(menu = new Menu("Tools"));
452525 buildToolsMenu(menu);
453526 }
....@@ -484,11 +557,23 @@
484557 */
485558 //this.AddOptions(oe.toolbarPanel, oe.aConstraints);
486559
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
+
487572 oe.toolbarPanel.add(liveCB = new cCheckBox("Live", Globals.isLIVE())); //, oe.aConstraints);
488
- liveCB.setToolTipText("Enabled animation");
573
+ liveCB.setToolTipText("Enable animation");
489574 liveCB.addItemListener(this);
490575
491
- oe.toolbarPanel.add(oneStepButton = new cButton("Step", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
576
+ oe.toolbarPanel.add(oneStepButton = new cButton("Step", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
492577 oneStepButton.setToolTipText("Animate one step forward");
493578 oneStepButton.addActionListener(this);
494579
....@@ -500,7 +585,7 @@
500585 trackCB.setToolTipText("Enable tracking");
501586 trackCB.addItemListener(this);
502587
503
- oe.toolbarPanel.add(screenfitButton = new cButton("@", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
588
+ oe.toolbarPanel.add(screenfitButton = new cButton("@", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
504589 screenfitButton.setToolTipText("Screen fit");
505590 screenfitButton.addActionListener(this);
506591
....@@ -509,39 +594,39 @@
509594
510595 if (Globals.ADVANCED)
511596 {
512
- oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
597
+ oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
513598 snapobjectButton.addActionListener(this);
514599 snapobjectButton.setToolTipText("Snap Object");
515600 }
516601
517
- oe.toolbarPanel.add(flashSelectionButton = new cButton("?", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
602
+ oe.toolbarPanel.add(flashSelectionButton = new cButton("?", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
518603 flashSelectionButton.setToolTipText("Show selection");
519604 flashSelectionButton.addActionListener(this);
520605
521606 oe.toolbarPanel.add(new JSeparator(SwingConstants.VERTICAL));
522607
523
- oe.toolbarPanel.add(twoButton = new cButton("|+|", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
608
+ oe.toolbarPanel.add(twoButton = new cButton("|+|", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
524609 twoButton.setToolTipText("Show center view only");
525610 twoButton.addActionListener(this);
526
- oe.toolbarPanel.add(fourButton = new cButton("+||", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
611
+ oe.toolbarPanel.add(fourButton = new cButton("+||", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
527612 fourButton.addActionListener(this);
528613 fourButton.setToolTipText("Show left panel only");
529
- oe.toolbarPanel.add(sixButton = new cButton("+|+|", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
614
+ oe.toolbarPanel.add(sixButton = new cButton("+|+|", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
530615 sixButton.setToolTipText("2-column layout left");
531616 sixButton.addActionListener(this);
532
- oe.toolbarPanel.add(threeButton = new cButton("|+|+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
617
+ oe.toolbarPanel.add(threeButton = new cButton("|+|+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
533618 threeButton.setToolTipText("2-column layout right");
534619 threeButton.addActionListener(this);
535
- oe.toolbarPanel.add(sevenButton = new cButton("+|+|+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
620
+ oe.toolbarPanel.add(sevenButton = new cButton("+|+|+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
536621 sevenButton.setToolTipText("3-column layout");
537622 sevenButton.addActionListener(this);
538623 //
539624
540
- 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);
541626 rootButton.setToolTipText("Edit selection in new tab");
542627 rootButton.addActionListener(this);
543628
544
- oe.toolbarPanel.add(closeButton = new cButton("X", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
629
+ oe.toolbarPanel.add(closeButton = new cButton("X", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
545630 closeButton.setToolTipText("Close tab");
546631 closeButton.addActionListener(this);
547632 //oe.treePanel.add(clearButton = new cButton("X"), oe.aConstraints);
....@@ -549,11 +634,11 @@
549634
550635 cGridBag commandsPanel = new cGridBag();
551636
552
- commandsPanel.add(editButton = new cButton("+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
637
+ commandsPanel.add(editButton = new cButton("+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
553638 editButton.setToolTipText("Edit selection");
554639 editButton.addActionListener(this);
555640
556
- commandsPanel.add(uneditButton = new cButton("-", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
641
+ commandsPanel.add(uneditButton = new cButton("-", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
557642 uneditButton.setToolTipText("Unedit selection");
558643 uneditButton.addActionListener(this);
559644
....@@ -561,11 +646,11 @@
561646 allParamsButton.setToolTipText("Edit all params");
562647 allParamsButton.addActionListener(this);
563648
564
- commandsPanel.add(clearPanelButton = new cButton("C", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
649
+ commandsPanel.add(clearPanelButton = new cButton("C", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
565650 clearPanelButton.setToolTipText("Clear edit panel");
566651 clearPanelButton.addActionListener(this);
567652
568
- commandsPanel.add(unselectButton = new cButton("U", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
653
+ commandsPanel.add(unselectButton = new cButton("U", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
569654 unselectButton.setToolTipText("Unselect");
570655 unselectButton.addActionListener(this);
571656
....@@ -648,7 +733,7 @@
648733 zoomBoxCB.setToolTipText("Display bounding boxes when moving the wheel");
649734 zoomBoxCB.addItemListener(this);
650735
651
- if (Globals.ADVANCED)
736
+ if (true) // Globals.ADVANCED)
652737 {
653738 panel.add(supportCB = new cCheckBox("Support", CameraPane.SUPPORT)); //, constraints);
654739 supportCB.setToolTipText("Enable rigging");
....@@ -721,6 +806,7 @@
721806 buttonGroup.add(radioButton);
722807 radioButton.doClick();
723808 }
809
+
724810 void SetupViews(ObjEditor oe)
725811 {
726812 oe.SetupViews();
....@@ -785,6 +871,7 @@
785871 } else if(e.getSource() == liveCB)
786872 {
787873 cameraView.ToggleLive();
874
+ refreshContents(false);
788875 }
789876 else if(e.getSource() == supportCB)
790877 {
....@@ -937,7 +1024,9 @@
9371024 // objEditor.DropFile((java.io.File[]) object, true);
9381025 // return;
9391026 // }
940
- if (string.charAt(0) == '/')
1027
+
1028
+ // File path for Mac and Windows
1029
+ if (string.charAt(0) == '/' || string.charAt(1) == ':')
9411030 {
9421031 // file(s)
9431032 String[] names = string.split("\n");
....@@ -964,7 +1053,7 @@
9641053
9651054 flashIt = false;
9661055 CameraPane pane = (CameraPane) target;
967
- pane.clickStart(objEditor.location.x, objEditor.location.y, 0);
1056
+ pane.clickStart(objEditor.location.x, objEditor.location.y, 0, 0);
9681057 pane.clickEnd(objEditor.location.x, objEditor.location.y, 0, true);
9691058
9701059 if (group.selection.size() == 1)
....@@ -1190,7 +1279,7 @@
11901279 memoryItem.addActionListener(this);
11911280 menu.add(analyzeItem = new MenuItem("Analyze"));
11921281 analyzeItem.addActionListener(this);
1193
- menu.add(dumpItem = new MenuItem("Dump"));
1282
+ menu.add(dumpItem = new MenuItem("Print"));
11941283 dumpItem.addActionListener(this);
11951284 // menu.add(pathItem = new MenuItem("From-to path"));
11961285 // pathItem.addActionListener(this);
....@@ -1537,9 +1626,9 @@
15371626
15381627 void Overwrite(int mask)
15391628 {
1540
- if (/*group.selection.size() == 1 &&*/ GrafreeD.clipboard.size() == 1)
1629
+ if (/*group.selection.size() == 1 &&*/ Grafreed.clipboard.size() == 1)
15411630 {
1542
- Object3D content = GrafreeD.clipboard.get(0);
1631
+ Object3D content = Grafreed.clipboard.get(0);
15431632
15441633 if (content instanceof cGroup && ((cGroup)content).transientlink )
15451634 content = ((cGroup)content).get(0);
....@@ -1844,23 +1933,6 @@
18441933 csg.addChild(child);
18451934 child.addChild(csg);
18461935 } else
1847
-
1848
- if (source == importGFDItem)
1849
- {
1850
- ImportGFD();
1851
- } else
1852
- if (source == importVRMLX3DItem)
1853
- {
1854
- ImportVRMLX3D();
1855
- } else
1856
- if (source == import3DSItem)
1857
- {
1858
- objEditor.ImportJME(new com.jmex.model.converters.MaxToJme(), "3ds", "Import 3DS");
1859
- } else
1860
- if (source == importOBJItem)
1861
- {
1862
- objEditor.ImportJME(new com.jmex.model.converters.ObjToJme(), "obj", "Import OBJ");
1863
- } else
18641936 if (source == computeAOItem)
18651937 {
18661938 Globals.drawMode = CameraPane.OCCLUSION;
....@@ -1879,7 +1951,7 @@
18791951 if (source == invariantsItem)
18801952 {
18811953 System.out.println("Invariants:");
1882
- GrafreeD.grafreeD.universe.invariants();
1954
+ Grafreed.grafreeD.universe.invariants();
18831955 } else
18841956 if (source == memoryItem)
18851957 {
....@@ -1897,6 +1969,18 @@
18971969 if (source == dumpItem)
18981970 {
18991971 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();
19001984 } else
19011985 if (source == oneStepButton)
19021986 {
....@@ -1952,12 +2036,20 @@
19522036 {
19532037 loadClipboard(true);
19542038 } else
2039
+ if (source == undoItem)
2040
+ {
2041
+ Undo();
2042
+ } else
2043
+ if (source == redoItem)
2044
+ {
2045
+ Redo();
2046
+ } else
19552047 if (source == duplicateItem)
19562048 {
1957
- Object3D keep = GrafreeD.clipboard;
2049
+ Object3D keep = Grafreed.clipboard;
19582050 loadClipboard(false);
19592051 paste(false);
1960
- GrafreeD.clipboard = keep;
2052
+ Grafreed.clipboard = keep;
19612053 } else
19622054 if (source == cloneItem)
19632055 {
....@@ -2177,9 +2269,9 @@
21772269 // group.selection.get(0).setMasterThis(content); // should be identity
21782270 // refreshContents();
21792271 // }
2180
- if (/*group.selection.size() == 1 &&*/ GrafreeD.clipboard.size() == 1)
2272
+ if (/*group.selection.size() == 1 &&*/ Grafreed.clipboard.size() == 1)
21812273 {
2182
- Object3D content = GrafreeD.clipboard.get(0);
2274
+ Object3D content = Grafreed.clipboard.get(0);
21832275
21842276 if (content instanceof cGroup && ((cGroup)content).transientlink )
21852277 content = ((cGroup)content).get(0);
....@@ -2229,9 +2321,9 @@
22292321 } else
22302322 if (source == setMasterItem)
22312323 {
2232
- if (group.selection.size() == 1 && GrafreeD.clipboard.size() == 1)
2324
+ if (group.selection.size() == 1 && Grafreed.clipboard.size() == 1)
22332325 {
2234
- Object3D content = GrafreeD.clipboard.get(0);
2326
+ Object3D content = Grafreed.clipboard.get(0);
22352327
22362328 if (content instanceof cGroup && ((cGroup)content).transientlink )
22372329 content = ((cGroup)content).get(0);
....@@ -2244,9 +2336,9 @@
22442336 {
22452337 if (group.selection.size() == 1)
22462338 {
2247
- if (GrafreeD.clipboard.size() == 1)
2339
+ if (Grafreed.clipboard.size() == 1)
22482340 {
2249
- Object3D content = GrafreeD.clipboard.get(0);
2341
+ Object3D content = Grafreed.clipboard.get(0);
22502342
22512343 if (content instanceof cGroup && ((cGroup)content).transientlink )
22522344 content = ((cGroup)content).get(0);
....@@ -2263,7 +2355,7 @@
22632355 {
22642356 RevertMeshes();
22652357 } else
2266
- if (source == resetMeshItem)
2358
+ if (source == resetAllItem)
22672359 {
22682360 ResetAll();
22692361 } else
....@@ -2451,7 +2543,7 @@
24512543 } else
24522544 if (source == genNormalsMESHItem)
24532545 {
2454
- GenNormals(true); // TODO
2546
+ GenNormalsMESH();
24552547 } else
24562548 if (source == genNormalsORGANItem)
24572549 {
....@@ -2601,9 +2693,13 @@
26012693 {
26022694 SmoothMesh();
26032695 } else
2604
- if (source == transformgeometryItem)
2696
+ if (source == transformGeometryItem)
26052697 {
26062698 TransformGeometry();
2699
+ } else
2700
+ if (source == transformChildrenItem)
2701
+ {
2702
+ TransformChildren();
26072703 } else
26082704 if (source == resetTransformItem)
26092705 {
....@@ -2611,7 +2707,11 @@
26112707 } else
26122708 if (source == resetCentroidItem)
26132709 {
2614
- ResetCentroid();
2710
+ ResetCentroid(true);
2711
+ } else
2712
+ if (source == resetCentroidXZItem)
2713
+ {
2714
+ ResetCentroid(false);
26152715 } else
26162716 if (source == resetParentItem)
26172717 {
....@@ -2967,7 +3067,7 @@
29673067 child.CloseUI();
29683068 listUI.remove(child);
29693069
2970
- child.editWindow = null; // ???????????
3070
+ //child.editWindow = null; // ???????????
29713071 }
29723072 objEditor.ctrlPanel.FlushUI();
29733073 //objEditor.jTree.clearSelection();
....@@ -3053,7 +3153,10 @@
30533153 frontView.object = group;
30543154 sideView.object = group;
30553155 }
3156
+
3157
+// fix "+" issue
30563158 group.editWindow = this;
3159
+
30573160 /*
30583161 currentLayout = radio.layout;
30593162 if (currentLayout == null)
....@@ -3066,7 +3169,20 @@
30663169 //group.attributes = -1;
30673170 ResetModel();
30683171 refreshContents(true);
3069
- }
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
+ }
30703186 else
30713187 {
30723188 //return super.action(event, arg);
....@@ -3127,6 +3243,28 @@
31273243 refreshContents();
31283244 }
31293245
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
+ }
31303268
31313269 void ResetTransform()
31323270 {
....@@ -3239,7 +3377,7 @@
32393377 refreshContents();
32403378 }
32413379
3242
- void ResetCentroid()
3380
+ void ResetCentroid(boolean full)
32433381 {
32443382 Object3D obj;
32453383 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -3254,12 +3392,16 @@
32543392 LA.matIdentity(Object3D.mat);
32553393 obj.getBounds(minima, maxima, false);
32563394 Object3D.mat[3][0] = -(minima.x + maxima.x)/2;
3257
- Object3D.mat[3][1] = -(minima.y + maxima.y)/2;
3395
+ if (full)
3396
+ Object3D.mat[3][1] = -(minima.y + maxima.y)/2;
32583397 Object3D.mat[3][2] = -(minima.z + maxima.z)/2;
32593398 obj.TransformMesh(Object3D.mat);
3399
+
32603400 Object3D.mat[3][0] = (minima.x + maxima.x)/2;
3261
- Object3D.mat[3][1] = (minima.y + maxima.y)/2;
3401
+ if (full)
3402
+ Object3D.mat[3][1] = (minima.y + maxima.y)/2;
32623403 Object3D.mat[3][2] = (minima.z + maxima.z)/2;
3404
+
32633405 LA.matConcat(Object3D.mat, obj.toParent, obj.toParent);
32643406 //Object3D.mat[3][0] = -Object3D.mat[3][0];
32653407 //Object3D.mat[3][1] = -Object3D.mat[3][1];
....@@ -3288,7 +3430,8 @@
32883430
32893431 int size = obj.MemorySize();
32903432
3291
- 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)");
32923435 }
32933436 }
32943437 catch (Exception e)
....@@ -3325,9 +3468,9 @@
33253468 obj = (Object3D)e.nextElement();
33263469
33273470 System.out.println("Object is: " + obj);
3328
- GrafreeD.AnalyzeObject(obj);
3471
+ Grafreed.AnalyzeObject(obj);
33293472 System.out.println("Boundary rep: " + obj.bRep);
3330
- GrafreeD.AnalyzeObject(obj.bRep);
3473
+ Grafreed.AnalyzeObject(obj.bRep);
33313474
33323475 // System.err.println((size/1024) + " KB is the size of " + obj);
33333476 }
....@@ -3369,6 +3512,13 @@
33693512 void GenNormals(boolean crease)
33703513 {
33713514 group.GenNormalsS(crease);
3515
+
3516
+ refreshContents();
3517
+ }
3518
+
3519
+ void GenNormalsMESH()
3520
+ {
3521
+ group.GenNormalsMeshS();
33723522
33733523 refreshContents();
33743524 }
....@@ -3541,8 +3691,8 @@
35413691
35423692 void ParseVertices()
35433693 {
3544
- boolean epsequal = GrafreeD.epsequal;
3545
- GrafreeD.epsequal = true;
3694
+ boolean epsequal = Grafreed.epsequal;
3695
+ Grafreed.epsequal = true;
35463696
35473697 for (int i=0; i<group.selection.size(); i++)
35483698 {
....@@ -3567,7 +3717,7 @@
35673717 LA.matTranslate(g.toParent, temp.x, temp.y, temp.z);
35683718 LA.matTranslate(g.fromParent, -temp.x, -temp.y, -temp.z);
35693719
3570
- g.add(GrafreeD.clipboard);
3720
+ g.add(Grafreed.clipboard);
35713721
35723722 buffer.add(g);
35733723 }
....@@ -3582,7 +3732,7 @@
35823732 makeSomething(buffer, i==group.selection.size()-1);
35833733 }
35843734
3585
- GrafreeD.epsequal = epsequal;
3735
+ Grafreed.epsequal = epsequal;
35863736
35873737 refreshContents();
35883738 }
....@@ -3600,7 +3750,16 @@
36003750 String pigment = Object3D.GetPigment(tex);
36013751 //String bump = Object3D.GetBump(tex);
36023752
3603
- 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
+ }
36043763
36053764 double s = v.s;
36063765
....@@ -3732,7 +3891,7 @@
37323891 return;
37333892
37343893 Object3D poses = group.selection.get(0);
3735
- Object3D ref = GrafreeD.clipboard.get(0);
3894
+ Object3D ref = Grafreed.clipboard.get(0);
37363895
37373896 Object3D newgroup = new Object3D("Po:" + poses.name);
37383897
....@@ -3926,9 +4085,9 @@
39264085
39274086 void ClipMesh()
39284087 {
3929
- if (/*group.selection.size() == 1 &&*/ GrafreeD.clipboard.size() == 1)
4088
+ if (/*group.selection.size() == 1 &&*/ Grafreed.clipboard.size() == 1)
39304089 {
3931
- Object3D content = GrafreeD.clipboard.get(0);
4090
+ Object3D content = Grafreed.clipboard.get(0);
39324091
39334092 if (content instanceof cGroup && ((cGroup)content).transientlink )
39344093 content = ((cGroup)content).get(0);
....@@ -3937,7 +4096,7 @@
39374096 // {
39384097 // group.selection.get(i).ClipMesh(GrafreeD.clipboard);
39394098 // }
3940
- group.selection.ClipMesh(GrafreeD.clipboard);
4099
+ group.selection.ClipMesh(Grafreed.clipboard);
39414100 }
39424101 // group.selection.ClipMesh(GrafreeD.clipboard);
39434102 System.out.println("DONE.");
....@@ -4072,7 +4231,7 @@
40724231 objectPanel.setSelectedIndex(objectPanel.indexOfTab("Edit"));
40734232
40744233 Object3D elem = (Object3D)group.selection.elementAt(i);
4075
- if(elem != group)
4234
+ if(elem != group || !newWindow)
40764235 {
40774236 // if (!(elem instanceof Composite))
40784237 // newWindow = false;
....@@ -4162,7 +4321,6 @@
41624321 //case 702: // Event.LIST_DESELECT
41634322 group.deselectAll();
41644323 TreePath tps[] = objEditor.jTree.getSelectionPaths();
4165
- objEditor.ClearInfo(); // .GetMaterial());
41664324 if (tps != null)
41674325 {
41684326 for (int i=0; i < tps.length; i++)
....@@ -4172,9 +4330,6 @@
41724330 //if (child.parent != null)
41734331 //child.parent.addSelectee(child);
41744332 group.addSelectee(child);
4175
- objEditor.SetMaterial(child); // .GetMaterial());
4176
- objEditor.AddInfo(child, this, true); // .GetMaterial());
4177
- System.err.println("info : " + child.GetPath());
41784333 }
41794334 }
41804335 // else
....@@ -4184,16 +4339,17 @@
41844339 // System.err.println("info : " + group.GetPath());
41854340 // }
41864341
4187
- objEditor.SetText(); // jan 2014
4188
-
4189
- if (flashIt && !Globals.isLIVE() && tps != null && tps.length > 0 && !(((Object3D) tps[0].getLastPathComponent()) instanceof Camera))
4342
+ if (flashIt && !Globals.isLIVE() && tps != null && tps.length > 0 && !(tps[0].getLastPathComponent() instanceof Camera))
41904343 CameraPane.flash = true;
41914344
4192
- if (tps != null && tps.length > 0 && ((Object3D) tps[0].getLastPathComponent()) instanceof Camera)
4345
+ if (tps != null && tps.length > 0 && tps[0].getLastPathComponent() instanceof Camera)
41934346 // a camera
41944347 {
4195
- CameraPane.camerachangeframe = 0; // don't refuse it
4196
- Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent());
4348
+ if (tps[0].getLastPathComponent() != Globals.theRenderer.LightCamera())
4349
+ {
4350
+ CameraPane.camerachangeframe = 0; // don't refuse it
4351
+ Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent());
4352
+ }
41974353 // Globals.theRenderer.renderCamera = Globals.theRenderer.manipCamera;
41984354 // Globals.theRenderer.eyeCamera = Globals.theRenderer.manipCamera;
41994355 }
....@@ -4206,6 +4362,29 @@
42064362
42074363 freezemodel = false;
42084364 }
4365
+
4366
+ void refreshContents(boolean cp)
4367
+ {
4368
+ if (!Globals.MOUSEDRAGGED)
4369
+ {
4370
+ objEditor.ClearInfo(); // .GetMaterial());
4371
+
4372
+ for (int i=0; i < group.selection.size(); i++)
4373
+ {
4374
+ Object3D child = (Object3D) group.selection.reserve(i);
4375
+
4376
+ objEditor.SetMaterial(child);
4377
+ objEditor.AddInfo(child, this, true);
4378
+ System.err.println("info : " + child.GetPath());
4379
+
4380
+ group.selection.release(i);
4381
+ }
4382
+
4383
+ objEditor.SetText(); // jan 2014
4384
+ }
4385
+
4386
+ super.refreshContents(cp);
4387
+ }
42094388
42104389 void linkSomething(Object3D thing)
42114390 {
....@@ -4277,16 +4456,18 @@
42774456 {
42784457 if (group.selection.isEmpty())
42794458 return;
4280
- GrafreeD.clipboardIsTempGroup = false;
4459
+
4460
+ Grafreed.clipboardIsTempGroup = false;
42814461 Composite tGroup = null;
42824462 if (group.selection.size() > 0) // 1)
42834463 {
42844464 tGroup = new cGroup();
4285
- GrafreeD.clipboardIsTempGroup = true;
4465
+ Grafreed.clipboardIsTempGroup = true;
42864466 }
42874467
42884468 if (cut)
42894469 {
4470
+ Save();
42904471 //int indices[] = jList.getSelectedIndices();
42914472 //for (int i = indices.length - 1; i >= 0; i--)
42924473 //jList.remove(indices[i]);
....@@ -4322,16 +4503,16 @@
43224503 //System.out.println("cut " + child);
43234504 //System.out.println("parent = " + child.parent);
43244505 // tmp.addChild(child);
4325
- if (GrafreeD.clipboardIsTempGroup)
4506
+ if (Grafreed.clipboardIsTempGroup)
43264507 tGroup.add/*Child*/(tmp);
43274508 else
4328
- GrafreeD.clipboard = tmp;
4509
+ Grafreed.clipboard = tmp;
43294510 }
43304511 else
4331
- if (GrafreeD.clipboardIsTempGroup)
4512
+ if (Grafreed.clipboardIsTempGroup)
43324513 tGroup.add/*Child*/(child);
43334514 else
4334
- GrafreeD.clipboard = child;
4515
+ Grafreed.clipboard = child;
43354516 }
43364517
43374518 //ResetModel();
....@@ -4363,21 +4544,23 @@
43634544 //System.out.println("cut " + elem);
43644545 //System.out.println("parent = " + elem.parent);
43654546 // tmp.addChild(elem);
4366
- if (GrafreeD.clipboardIsTempGroup)
4547
+ if (Grafreed.clipboardIsTempGroup)
43674548 tGroup.add/*Child*/(tmp);
43684549 else
4369
- GrafreeD.clipboard = tmp;
4550
+ Grafreed.clipboard = tmp;
43704551 }
43714552 else
4372
- if (GrafreeD.clipboardIsTempGroup)
4553
+ if (Grafreed.clipboardIsTempGroup)
43734554 tGroup.add/*Child*/(child);
43744555 else
4375
- GrafreeD.clipboard = child;
4556
+ Grafreed.clipboard = child;
43764557 }
43774558
43784559 }
4379
- if (GrafreeD.clipboardIsTempGroup)
4380
- GrafreeD.clipboard = tGroup;
4560
+
4561
+ if (Grafreed.clipboardIsTempGroup)
4562
+ Grafreed.clipboard = tGroup;
4563
+
43814564 if (cut)
43824565 {
43834566 ResetModel();
....@@ -4391,7 +4574,7 @@
43914574 // return;
43924575 boolean first = true;
43934576
4394
- if (GrafreeD.clipboardIsTempGroup)
4577
+ if (Grafreed.clipboardIsTempGroup)
43954578 {
43964579 Composite temp;
43974580
....@@ -4402,7 +4585,7 @@
44024585 temp = (Composite)Applet3D.clipboard.deepCopy();
44034586 */
44044587 Object3D elem;
4405
- for (Enumeration e = /*temp.children*/GrafreeD.clipboard.elements(); e.hasMoreElements();) // objList.add(copy.name))
4588
+ for (Enumeration e = /*temp.children*/Grafreed.clipboard.elements(); e.hasMoreElements();) // objList.add(copy.name))
44064589 {
44074590 Object3D child = (Object3D)e.nextElement();
44084591
....@@ -4436,14 +4619,14 @@
44364619 //Object3D cb = Applet3D.clipboard;
44374620 //temp.addChild(cb);
44384621 //makeSomething((expand?temp.copyExpand():temp.deepCopy()).get(0));
4439
- assert(GrafreeD.clipboard.parent == null);
4440
- Object3D /*Composite*/ keepparent = GrafreeD.clipboard.get(0).parent;
4441
- GrafreeD.clipboard.get(0).parent = null; // Avoid copy?
4442
- if (LA.isIdentity(GrafreeD.clipboard.toParent))
4443
- makeSomething(expand?GrafreeD.clipboard.get(0).copyExpand():GrafreeD.clipboard.get(0).deepCopy());
4622
+ assert(Grafreed.clipboard.parent == null);
4623
+ Object3D /*Composite*/ keepparent = Grafreed.clipboard.get(0).parent;
4624
+ Grafreed.clipboard.get(0).parent = null; // Avoid copy?
4625
+ if (LA.isIdentity(Grafreed.clipboard.toParent))
4626
+ makeSomething(expand?Grafreed.clipboard.get(0).copyExpand():Grafreed.clipboard.get(0).deepCopy());
44444627 else
4445
- makeSomething(expand?GrafreeD.clipboard.copyExpand():GrafreeD.clipboard.deepCopy());
4446
- GrafreeD.clipboard.get(0).parent = keepparent;
4628
+ makeSomething(expand?Grafreed.clipboard.copyExpand():Grafreed.clipboard.deepCopy());
4629
+ Grafreed.clipboard.get(0).parent = keepparent;
44474630 }
44484631
44494632 ResetModel();
....@@ -4492,9 +4675,9 @@
44924675 {
44934676 boolean first = true;
44944677
4495
- if (GrafreeD.clipboardIsTempGroup)
4678
+ if (Grafreed.clipboardIsTempGroup)
44964679 {
4497
- Composite temp = (Composite)GrafreeD.clipboard;
4680
+ Composite temp = (Composite)Grafreed.clipboard;
44984681 Object3D copy;
44994682 for (Enumeration e = temp.children.elements(); e.hasMoreElements();)
45004683 {
....@@ -4504,7 +4687,7 @@
45044687 }
45054688 } else
45064689 {
4507
- linkSomething(GrafreeD.clipboard); //.get(0));
4690
+ linkSomething(Grafreed.clipboard); //.get(0));
45084691 }
45094692 }
45104693 }
....@@ -4909,21 +5092,6 @@
49095092 }
49105093 */
49115094
4912
- void ImportGFD()
4913
- {
4914
- FileDialog browser = new FileDialog(objEditor.frame, "Import GrafreeD", FileDialog.LOAD);
4915
- browser.show();
4916
- String filename = browser.getFile();
4917
- if (filename != null && filename.length() > 0)
4918
- {
4919
- String fullname = browser.getDirectory() + filename;
4920
-
4921
- //Object3D readobj =
4922
- objEditor.ReadGFD(fullname, objEditor);
4923
- //makeSomething(readobj);
4924
- }
4925
- }
4926
-
49275095 /*
49285096 public void Callback(Object obj)
49295097 {
....@@ -4947,26 +5115,9 @@
49475115 }
49485116 */
49495117
4950
- void ImportVRMLX3D()
4951
- {
4952
- if (GrafreeD.standAlone)
4953
- {
4954
- /**/
4955
- FileDialog browser = new FileDialog(objEditor.frame, "Import VRML/X3D", FileDialog.LOAD);
4956
- browser.show();
4957
- String filename = browser.getFile();
4958
- if (filename != null && filename.length() > 0)
4959
- {
4960
- String fullname = browser.getDirectory() + filename;
4961
- LoadVRMLX3D(fullname);
4962
- }
4963
- /**/
4964
- }
4965
- }
4966
-
49675118 String GetFile(String dialogName)
49685119 {
4969
- if (GrafreeD.standAlone)
5120
+ if (Grafreed.standAlone)
49705121 {
49715122 FileDialog browser = new FileDialog(objEditor.frame, dialogName, FileDialog.LOAD);
49725123 browser.show();
....@@ -5034,6 +5185,9 @@
50345185 cButton clearpanelButton;
50355186 cButton unselectButton;
50365187
5188
+ cButton saveButton;
5189
+ cButton undoButton;
5190
+ cButton redoButton;
50375191 cButton oneStepButton;
50385192
50395193 cButton screenfitButton;
....@@ -5066,6 +5220,8 @@
50665220 private MenuItem lookFromItem;
50675221 private MenuItem switchItem;
50685222 private MenuItem cutItem;
5223
+ private MenuItem undoItem;
5224
+ private MenuItem redoItem;
50695225 private MenuItem duplicateItem;
50705226 private MenuItem cloneItem;
50715227 private MenuItem cloneSupportItem;
....@@ -5079,7 +5235,7 @@
50795235 private MenuItem linkverticesItem;
50805236 private MenuItem relinkverticesItem;
50815237 private MenuItem setMasterItem;
5082
- private MenuItem resetMeshItem;
5238
+ private MenuItem resetAllItem;
50835239 private MenuItem stepAllItem;
50845240 private MenuItem revertMeshItem;
50855241 private MenuItem poseMeshItem;
....@@ -5140,8 +5296,10 @@
51405296 private MenuItem panoTexturesItem;
51415297
51425298 private MenuItem resetCentroidItem;
5143
- private MenuItem transformgeometryItem;
5299
+ private MenuItem resetCentroidXZItem;
51445300 private MenuItem resetTransformItem;
5301
+ private MenuItem transformGeometryItem;
5302
+ private MenuItem transformChildrenItem;
51455303 private MenuItem hideItem;
51465304 private MenuItem grabItem;
51475305 private MenuItem backItem;
....@@ -5210,11 +5368,6 @@
52105368 private MenuItem doubleItem;
52115369 private MenuItem tripleItem;
52125370
5213
- private MenuItem importGFDItem;
5214
- private MenuItem importVRMLX3DItem;
5215
- private MenuItem import3DSItem;
5216
- private MenuItem importOBJItem;
5217
-
52185371 private MenuItem computeAOItem;
52195372 private MenuItem recompileItem;
52205373 private MenuItem editScriptItem;
....@@ -5224,4 +5377,8 @@
52245377 private MenuItem analyzeItem;
52255378 private MenuItem dumpItem;
52265379 //boolean freezemodel = false;
5380
+
5381
+ Menu cameraMenu;
5382
+ MenuItem editCameraItem;
5383
+ MenuItem revertCameraItem;
52275384 }