Normand Briere
2019-06-13 4629090fafbef256abd0686a85ee12042d658868
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,29 +148,28 @@
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);
165
+ cloneItem = menu.add(new MenuItem("Clone"));
166
+ cloneItem.addActionListener(this);
167
+ if (Globals.ADVANCED)
168
+ {
169
+ cloneSupportItem = menu.add(new MenuItem("Clone (+supports)"));
170
+ cloneSupportItem.addActionListener(this);
171
+ }
172
+ menu.add("-");
174173 cutItem = menu.add(new MenuItem("Cut"));
175174 cutItem.addActionListener(this);
176175 copyItem = menu.add(new MenuItem("Copy"));
....@@ -178,10 +177,7 @@
178177 pasteItem = menu.add(new MenuItem("Paste"));
179178 pasteItem.addActionListener(this);
180179 menu.add("-");
181
- cloneItem = menu.add(new MenuItem("Clone"));
182
- cloneItem.addActionListener(this);
183
- cloneSupportItem = menu.add(new MenuItem("Clone (+supports)"));
184
- cloneSupportItem.addActionListener(this);
180
+
185181 menu.add("-");
186182 pasteIntoItem = menu.add(new MenuItem("Paste into"));
187183 pasteIntoItem.addActionListener(this);
....@@ -201,14 +197,97 @@
201197 clearAllItem = menu.add(new MenuItem("Clear All"));
202198 clearAllItem.addActionListener(this);
203199 }
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());
204236
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
+
205288 oe.menuBar.add(menu = new Menu("Setting"));
206289 if (Globals.ADVANCED)
207290 {
208
- resetMeshItem = menu.add(new MenuItem("Reset All"));
209
- resetMeshItem.addActionListener(this);
210
- stepAllItem = menu.add(new MenuItem("Step All"));
211
- stepAllItem.addActionListener(this);
212291 revertMeshItem = menu.add(new MenuItem("Revert Meshes"));
213292 revertMeshItem.addActionListener(this);
214293 resetreferencesItem = menu.add(new MenuItem("Reset Mesh References"));
....@@ -272,6 +351,7 @@
272351
273352 if (Globals.ADVANCED)
274353 {
354
+ menu.add("-");
275355 physicsItem = menu.add(new MenuItem("Physics"));
276356 physicsItem.addActionListener(this);
277357 frameselectorItem = menu.add(new MenuItem("Frame Selector"));
....@@ -297,6 +377,7 @@
297377 shadowZItem.addActionListener(this);
298378 if (Globals.ADVANCED)
299379 {
380
+ menu.add("-");
300381 linkerItem = menu.add(new MenuItem("Linker"));
301382 linkerItem.addActionListener(this);
302383 attributeItem = menu.add(new MenuItem("Attribute"));
....@@ -305,14 +386,18 @@
305386 templateItem.addActionListener(this);
306387 pointflowItem = menu.add(new MenuItem("Point Flow"));
307388 pointflowItem.addActionListener(this);
308
- menu.add("-");
309389 }
390
+ menu.add("-");
310391 resetTransformItem = menu.add(new MenuItem("Reset Transform"));
311392 resetTransformItem.addActionListener(this);
312393 resetCentroidItem = menu.add(new MenuItem("Reset Centroid"));
313394 resetCentroidItem.addActionListener(this);
314
- transformgeometryItem = menu.add(new MenuItem("Transform Geometry"));
315
- 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);
316401
317402 oe.menuBar.add(menu = new Menu("Geometry"));
318403 genUVItem = menu.add(new MenuItem("Generate UV"));
....@@ -361,6 +446,10 @@
361446 oe.menuBar.add(menu = new Menu("Attributes"));
362447 clearMaterialsItem = menu.add(new MenuItem("Clear Materials"));
363448 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);
364453 menu.add("-");
365454 liveleavesItem = menu.add(new MenuItem("Live Leaves"));
366455 liveleavesItem.addActionListener(this);
....@@ -415,32 +504,23 @@
415504 sortbysizeItem.addActionListener(this);
416505 sortbynameItem = menu.add(new MenuItem("Sort by name"));
417506 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);
418512 if (Globals.ADVANCED)
419513 {
420
- menu.add("-");
514
+ // Pretty much the same as duplicate and clone.
421515 extractGeometriesItem = menu.add(new MenuItem("Link Geometry"));
422516 extractGeometriesItem.addActionListener(this);
423517 cloneGeometriesItem = menu.add(new MenuItem("Clone Geometry"));
424518 cloneGeometriesItem.addActionListener(this);
425
- shareGeometriesItem = menu.add(new MenuItem("Share Geometry"));
426
- shareGeometriesItem.addActionListener(this);
427
- mergeGeometriesItem = menu.add(new MenuItem("Merge Geometry"));
428
- mergeGeometriesItem.addActionListener(this);
429519 }
430520
431521 oe.menuBar.add(menu = new Menu("Insert"));
432522 buildCreateMenu(menu);
433523
434
- oe.menuBar.add(menu = new Menu("Include"));
435
- importGFDItem = menu.add(new MenuItem("GrafreeD Object..."));
436
- importGFDItem.addActionListener(this);
437
- importVRMLX3DItem = menu.add(new MenuItem("VRML/X3D Object..."));
438
- importVRMLX3DItem.addActionListener(this);
439
- importOBJItem = menu.add(new MenuItem("OBJ Object..."));
440
- importOBJItem.addActionListener(this);
441
- import3DSItem = menu.add(new MenuItem("3DS Object..."));
442
- import3DSItem.addActionListener(this);
443
-
444524 oe.menuBar.add(menu = new Menu("Tools"));
445525 buildToolsMenu(menu);
446526 }
....@@ -477,11 +557,23 @@
477557 */
478558 //this.AddOptions(oe.toolbarPanel, oe.aConstraints);
479559
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
+
480572 oe.toolbarPanel.add(liveCB = new cCheckBox("Live", Globals.isLIVE())); //, oe.aConstraints);
481
- liveCB.setToolTipText("Enabled animation");
573
+ liveCB.setToolTipText("Enable animation");
482574 liveCB.addItemListener(this);
483575
484
- oe.toolbarPanel.add(oneStepButton = new cButton("Step", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
576
+ oe.toolbarPanel.add(oneStepButton = new cButton("Step", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
485577 oneStepButton.setToolTipText("Animate one step forward");
486578 oneStepButton.addActionListener(this);
487579
....@@ -493,7 +585,7 @@
493585 trackCB.setToolTipText("Enable tracking");
494586 trackCB.addItemListener(this);
495587
496
- oe.toolbarPanel.add(screenfitButton = new cButton("@", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
588
+ oe.toolbarPanel.add(screenfitButton = new cButton("@", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
497589 screenfitButton.setToolTipText("Screen fit");
498590 screenfitButton.addActionListener(this);
499591
....@@ -502,39 +594,39 @@
502594
503595 if (Globals.ADVANCED)
504596 {
505
- oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
597
+ oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
506598 snapobjectButton.addActionListener(this);
507599 snapobjectButton.setToolTipText("Snap Object");
508600 }
509601
510
- oe.toolbarPanel.add(flashSelectionButton = new cButton("?", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
602
+ oe.toolbarPanel.add(flashSelectionButton = new cButton("?", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
511603 flashSelectionButton.setToolTipText("Show selection");
512604 flashSelectionButton.addActionListener(this);
513605
514606 oe.toolbarPanel.add(new JSeparator(SwingConstants.VERTICAL));
515607
516
- oe.toolbarPanel.add(twoButton = new cButton("|+|", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
608
+ oe.toolbarPanel.add(twoButton = new cButton("|+|", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
517609 twoButton.setToolTipText("Show center view only");
518610 twoButton.addActionListener(this);
519
- oe.toolbarPanel.add(fourButton = new cButton("+||", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
611
+ oe.toolbarPanel.add(fourButton = new cButton("+||", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
520612 fourButton.addActionListener(this);
521613 fourButton.setToolTipText("Show left panel only");
522
- oe.toolbarPanel.add(sixButton = new cButton("+|+|", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
614
+ oe.toolbarPanel.add(sixButton = new cButton("+|+|", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
523615 sixButton.setToolTipText("2-column layout left");
524616 sixButton.addActionListener(this);
525
- oe.toolbarPanel.add(threeButton = new cButton("|+|+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
617
+ oe.toolbarPanel.add(threeButton = new cButton("|+|+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
526618 threeButton.setToolTipText("2-column layout right");
527619 threeButton.addActionListener(this);
528
- oe.toolbarPanel.add(sevenButton = new cButton("+|+|+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
620
+ oe.toolbarPanel.add(sevenButton = new cButton("+|+|+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
529621 sevenButton.setToolTipText("3-column layout");
530622 sevenButton.addActionListener(this);
531623 //
532624
533
- 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);
534626 rootButton.setToolTipText("Edit selection in new tab");
535627 rootButton.addActionListener(this);
536628
537
- oe.toolbarPanel.add(closeButton = new cButton("X", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
629
+ oe.toolbarPanel.add(closeButton = new cButton("X", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
538630 closeButton.setToolTipText("Close tab");
539631 closeButton.addActionListener(this);
540632 //oe.treePanel.add(clearButton = new cButton("X"), oe.aConstraints);
....@@ -542,11 +634,11 @@
542634
543635 cGridBag commandsPanel = new cGridBag();
544636
545
- commandsPanel.add(editButton = new cButton("+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
637
+ commandsPanel.add(editButton = new cButton("+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
546638 editButton.setToolTipText("Edit selection");
547639 editButton.addActionListener(this);
548640
549
- commandsPanel.add(uneditButton = new cButton("-", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
641
+ commandsPanel.add(uneditButton = new cButton("-", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
550642 uneditButton.setToolTipText("Unedit selection");
551643 uneditButton.addActionListener(this);
552644
....@@ -554,11 +646,11 @@
554646 allParamsButton.setToolTipText("Edit all params");
555647 allParamsButton.addActionListener(this);
556648
557
- commandsPanel.add(clearPanelButton = new cButton("C", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
649
+ commandsPanel.add(clearPanelButton = new cButton("C", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
558650 clearPanelButton.setToolTipText("Clear edit panel");
559651 clearPanelButton.addActionListener(this);
560652
561
- commandsPanel.add(unselectButton = new cButton("U", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
653
+ commandsPanel.add(unselectButton = new cButton("U", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
562654 unselectButton.setToolTipText("Unselect");
563655 unselectButton.addActionListener(this);
564656
....@@ -641,7 +733,7 @@
641733 zoomBoxCB.setToolTipText("Display bounding boxes when moving the wheel");
642734 zoomBoxCB.addItemListener(this);
643735
644
- if (Globals.ADVANCED)
736
+ if (true) // Globals.ADVANCED)
645737 {
646738 panel.add(supportCB = new cCheckBox("Support", CameraPane.SUPPORT)); //, constraints);
647739 supportCB.setToolTipText("Enable rigging");
....@@ -714,6 +806,7 @@
714806 buttonGroup.add(radioButton);
715807 radioButton.doClick();
716808 }
809
+
717810 void SetupViews(ObjEditor oe)
718811 {
719812 oe.SetupViews();
....@@ -930,7 +1023,9 @@
9301023 // objEditor.DropFile((java.io.File[]) object, true);
9311024 // return;
9321025 // }
933
- if (string.charAt(0) == '/')
1026
+
1027
+ // File path for Mac and Windows
1028
+ if (string.charAt(0) == '/' || string.charAt(1) == ':')
9341029 {
9351030 // file(s)
9361031 String[] names = string.split("\n");
....@@ -957,7 +1052,7 @@
9571052
9581053 flashIt = false;
9591054 CameraPane pane = (CameraPane) target;
960
- pane.clickStart(objEditor.location.x, objEditor.location.y, 0);
1055
+ pane.clickStart(objEditor.location.x, objEditor.location.y, 0, 0);
9611056 pane.clickEnd(objEditor.location.x, objEditor.location.y, 0, true);
9621057
9631058 if (group.selection.size() == 1)
....@@ -1164,13 +1259,13 @@
11641259 parseverticesItem.addActionListener(this);
11651260 textureFieldItem = menu.add(new MenuItem("Texture Field"));
11661261 textureFieldItem.addActionListener(this);
1167
- alignItem = menu.add(new MenuItem("Align Object"));
1262
+ alignItem = menu.add(new MenuItem("Align Objects"));
11681263 alignItem.addActionListener(this);
11691264 reduceMorphItem = menu.add(new MenuItem("Reduce Morphs"));
11701265 reduceMorphItem.addActionListener(this);
11711266 reduce34MorphItem = menu.add(new MenuItem("Reduce Morphs (34)"));
11721267 reduce34MorphItem.addActionListener(this);
1173
-
1268
+ menu.add("-");
11741269 menu.add(computeAOItem = new MenuItem("Compute AO"));
11751270 computeAOItem.addActionListener(this);
11761271
....@@ -1530,9 +1625,9 @@
15301625
15311626 void Overwrite(int mask)
15321627 {
1533
- if (/*group.selection.size() == 1 &&*/ GrafreeD.clipboard.size() == 1)
1628
+ if (/*group.selection.size() == 1 &&*/ Grafreed.clipboard.size() == 1)
15341629 {
1535
- Object3D content = GrafreeD.clipboard.get(0);
1630
+ Object3D content = Grafreed.clipboard.get(0);
15361631
15371632 if (content instanceof cGroup && ((cGroup)content).transientlink )
15381633 content = ((cGroup)content).get(0);
....@@ -1837,23 +1932,6 @@
18371932 csg.addChild(child);
18381933 child.addChild(csg);
18391934 } else
1840
-
1841
- if (source == importGFDItem)
1842
- {
1843
- ImportGFD();
1844
- } else
1845
- if (source == importVRMLX3DItem)
1846
- {
1847
- ImportVRMLX3D();
1848
- } else
1849
- if (source == import3DSItem)
1850
- {
1851
- objEditor.ImportJME(new com.jmex.model.converters.MaxToJme(), "3ds", "Import 3DS");
1852
- } else
1853
- if (source == importOBJItem)
1854
- {
1855
- objEditor.ImportJME(new com.jmex.model.converters.ObjToJme(), "obj", "Import OBJ");
1856
- } else
18571935 if (source == computeAOItem)
18581936 {
18591937 Globals.drawMode = CameraPane.OCCLUSION;
....@@ -1872,7 +1950,7 @@
18721950 if (source == invariantsItem)
18731951 {
18741952 System.out.println("Invariants:");
1875
- GrafreeD.grafreeD.universe.invariants();
1953
+ Grafreed.grafreeD.universe.invariants();
18761954 } else
18771955 if (source == memoryItem)
18781956 {
....@@ -1890,6 +1968,18 @@
18901968 if (source == dumpItem)
18911969 {
18921970 DumpObject();
1971
+ } else
1972
+ if (source == undoButton)
1973
+ {
1974
+ Undo();
1975
+ } else
1976
+ if (source == redoButton)
1977
+ {
1978
+ Redo();
1979
+ } else
1980
+ if (source == saveButton)
1981
+ {
1982
+ Save();
18931983 } else
18941984 if (source == oneStepButton)
18951985 {
....@@ -1945,12 +2035,20 @@
19452035 {
19462036 loadClipboard(true);
19472037 } else
2038
+ if (source == undoItem)
2039
+ {
2040
+ Undo();
2041
+ } else
2042
+ if (source == redoItem)
2043
+ {
2044
+ Redo();
2045
+ } else
19482046 if (source == duplicateItem)
19492047 {
1950
- Object3D keep = GrafreeD.clipboard;
2048
+ Object3D keep = Grafreed.clipboard;
19512049 loadClipboard(false);
19522050 paste(false);
1953
- GrafreeD.clipboard = keep;
2051
+ Grafreed.clipboard = keep;
19542052 } else
19552053 if (source == cloneItem)
19562054 {
....@@ -2170,9 +2268,9 @@
21702268 // group.selection.get(0).setMasterThis(content); // should be identity
21712269 // refreshContents();
21722270 // }
2173
- if (/*group.selection.size() == 1 &&*/ GrafreeD.clipboard.size() == 1)
2271
+ if (/*group.selection.size() == 1 &&*/ Grafreed.clipboard.size() == 1)
21742272 {
2175
- Object3D content = GrafreeD.clipboard.get(0);
2273
+ Object3D content = Grafreed.clipboard.get(0);
21762274
21772275 if (content instanceof cGroup && ((cGroup)content).transientlink )
21782276 content = ((cGroup)content).get(0);
....@@ -2222,9 +2320,9 @@
22222320 } else
22232321 if (source == setMasterItem)
22242322 {
2225
- if (group.selection.size() == 1 && GrafreeD.clipboard.size() == 1)
2323
+ if (group.selection.size() == 1 && Grafreed.clipboard.size() == 1)
22262324 {
2227
- Object3D content = GrafreeD.clipboard.get(0);
2325
+ Object3D content = Grafreed.clipboard.get(0);
22282326
22292327 if (content instanceof cGroup && ((cGroup)content).transientlink )
22302328 content = ((cGroup)content).get(0);
....@@ -2237,9 +2335,9 @@
22372335 {
22382336 if (group.selection.size() == 1)
22392337 {
2240
- if (GrafreeD.clipboard.size() == 1)
2338
+ if (Grafreed.clipboard.size() == 1)
22412339 {
2242
- Object3D content = GrafreeD.clipboard.get(0);
2340
+ Object3D content = Grafreed.clipboard.get(0);
22432341
22442342 if (content instanceof cGroup && ((cGroup)content).transientlink )
22452343 content = ((cGroup)content).get(0);
....@@ -2256,7 +2354,7 @@
22562354 {
22572355 RevertMeshes();
22582356 } else
2259
- if (source == resetMeshItem)
2357
+ if (source == resetAllItem)
22602358 {
22612359 ResetAll();
22622360 } else
....@@ -2444,7 +2542,7 @@
24442542 } else
24452543 if (source == genNormalsMESHItem)
24462544 {
2447
- GenNormals(true); // TODO
2545
+ GenNormalsMESH();
24482546 } else
24492547 if (source == genNormalsORGANItem)
24502548 {
....@@ -2594,9 +2692,13 @@
25942692 {
25952693 SmoothMesh();
25962694 } else
2597
- if (source == transformgeometryItem)
2695
+ if (source == transformGeometryItem)
25982696 {
25992697 TransformGeometry();
2698
+ } else
2699
+ if (source == transformChildrenItem)
2700
+ {
2701
+ TransformChildren();
26002702 } else
26012703 if (source == resetTransformItem)
26022704 {
....@@ -2604,7 +2706,11 @@
26042706 } else
26052707 if (source == resetCentroidItem)
26062708 {
2607
- ResetCentroid();
2709
+ ResetCentroid(true);
2710
+ } else
2711
+ if (source == resetCentroidXZItem)
2712
+ {
2713
+ ResetCentroid(false);
26082714 } else
26092715 if (source == resetParentItem)
26102716 {
....@@ -2960,7 +3066,7 @@
29603066 child.CloseUI();
29613067 listUI.remove(child);
29623068
2963
- child.editWindow = null; // ???????????
3069
+ //child.editWindow = null; // ???????????
29643070 }
29653071 objEditor.ctrlPanel.FlushUI();
29663072 //objEditor.jTree.clearSelection();
....@@ -3046,7 +3152,10 @@
30463152 frontView.object = group;
30473153 sideView.object = group;
30483154 }
3155
+
3156
+// fix "+" issue
30493157 group.editWindow = this;
3158
+
30503159 /*
30513160 currentLayout = radio.layout;
30523161 if (currentLayout == null)
....@@ -3059,7 +3168,20 @@
30593168 //group.attributes = -1;
30603169 ResetModel();
30613170 refreshContents(true);
3062
- }
3171
+ } else if (event.getSource() == editCameraItem)
3172
+ {
3173
+ cameraView.ProtectCamera();
3174
+ cameraView.repaint();
3175
+ return;
3176
+ } else if (event.getSource() == revertCameraItem)
3177
+ {
3178
+ cameraView.RevertCamera();
3179
+ cameraView.repaint();
3180
+ return;
3181
+ // } else if (event.getSource() == textureButton)
3182
+ // {
3183
+ // return; // true;
3184
+ }
30633185 else
30643186 {
30653187 //return super.action(event, arg);
....@@ -3120,6 +3242,28 @@
31203242 refreshContents();
31213243 }
31223244
3245
+ void TransformChildren()
3246
+ {
3247
+ Object3D obj;
3248
+ for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
3249
+ {
3250
+ obj = (Object3D)e.nextElement();
3251
+ obj.KeepTextureMatrices();
3252
+ obj.TransformChildren();
3253
+ obj.RestoreTextureMatrices();
3254
+
3255
+// if (obj.parent == null)
3256
+// {
3257
+// System.out.println("NULL PARENT!");
3258
+// new Exception().printStackTrace();
3259
+// }
3260
+// else
3261
+// TouchTransform(obj);
3262
+// //obj.parent.Touch();
3263
+ }
3264
+
3265
+ refreshContents();
3266
+ }
31233267
31243268 void ResetTransform()
31253269 {
....@@ -3232,7 +3376,7 @@
32323376 refreshContents();
32333377 }
32343378
3235
- void ResetCentroid()
3379
+ void ResetCentroid(boolean full)
32363380 {
32373381 Object3D obj;
32383382 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -3247,12 +3391,16 @@
32473391 LA.matIdentity(Object3D.mat);
32483392 obj.getBounds(minima, maxima, false);
32493393 Object3D.mat[3][0] = -(minima.x + maxima.x)/2;
3250
- Object3D.mat[3][1] = -(minima.y + maxima.y)/2;
3394
+ if (full)
3395
+ Object3D.mat[3][1] = -(minima.y + maxima.y)/2;
32513396 Object3D.mat[3][2] = -(minima.z + maxima.z)/2;
32523397 obj.TransformMesh(Object3D.mat);
3398
+
32533399 Object3D.mat[3][0] = (minima.x + maxima.x)/2;
3254
- Object3D.mat[3][1] = (minima.y + maxima.y)/2;
3400
+ if (full)
3401
+ Object3D.mat[3][1] = (minima.y + maxima.y)/2;
32553402 Object3D.mat[3][2] = (minima.z + maxima.z)/2;
3403
+
32563404 LA.matConcat(Object3D.mat, obj.toParent, obj.toParent);
32573405 //Object3D.mat[3][0] = -Object3D.mat[3][0];
32583406 //Object3D.mat[3][1] = -Object3D.mat[3][1];
....@@ -3281,7 +3429,8 @@
32813429
32823430 int size = obj.MemorySize();
32833431
3284
- System.err.println((size/1024) + " KB is the size of " + obj);
3432
+ //System.err.println((size/1024) + " KB is the size of " + obj);
3433
+ System.err.println("the size of " + obj + " is " + size + " (" + (size/1024) + "KB)");
32853434 }
32863435 }
32873436 catch (Exception e)
....@@ -3318,9 +3467,9 @@
33183467 obj = (Object3D)e.nextElement();
33193468
33203469 System.out.println("Object is: " + obj);
3321
- GrafreeD.AnalyzeObject(obj);
3470
+ Grafreed.AnalyzeObject(obj);
33223471 System.out.println("Boundary rep: " + obj.bRep);
3323
- GrafreeD.AnalyzeObject(obj.bRep);
3472
+ Grafreed.AnalyzeObject(obj.bRep);
33243473
33253474 // System.err.println((size/1024) + " KB is the size of " + obj);
33263475 }
....@@ -3362,6 +3511,13 @@
33623511 void GenNormals(boolean crease)
33633512 {
33643513 group.GenNormalsS(crease);
3514
+
3515
+ refreshContents();
3516
+ }
3517
+
3518
+ void GenNormalsMESH()
3519
+ {
3520
+ group.GenNormalsMeshS();
33653521
33663522 refreshContents();
33673523 }
....@@ -3534,8 +3690,8 @@
35343690
35353691 void ParseVertices()
35363692 {
3537
- boolean epsequal = GrafreeD.epsequal;
3538
- GrafreeD.epsequal = true;
3693
+ boolean epsequal = Grafreed.epsequal;
3694
+ Grafreed.epsequal = true;
35393695
35403696 for (int i=0; i<group.selection.size(); i++)
35413697 {
....@@ -3560,7 +3716,7 @@
35603716 LA.matTranslate(g.toParent, temp.x, temp.y, temp.z);
35613717 LA.matTranslate(g.fromParent, -temp.x, -temp.y, -temp.z);
35623718
3563
- g.add(GrafreeD.clipboard);
3719
+ g.add(Grafreed.clipboard);
35643720
35653721 buffer.add(g);
35663722 }
....@@ -3575,7 +3731,7 @@
35753731 makeSomething(buffer, i==group.selection.size()-1);
35763732 }
35773733
3578
- GrafreeD.epsequal = epsequal;
3734
+ Grafreed.epsequal = epsequal;
35793735
35803736 refreshContents();
35813737 }
....@@ -3593,7 +3749,16 @@
35933749 String pigment = Object3D.GetPigment(tex);
35943750 //String bump = Object3D.GetBump(tex);
35953751
3596
- com.sun.opengl.util.texture.TextureData texturedata = Globals.theRenderer.GetTextureData(pigment, false, node.texres);
3752
+ com.sun.opengl.util.texture.TextureData texturedata = null;
3753
+
3754
+ try
3755
+ {
3756
+ texturedata = Globals.theRenderer.GetTextureData(pigment, false, node.texres);
3757
+ }
3758
+ catch (Exception e)
3759
+ {
3760
+ System.err.println("FAIL: " + node);
3761
+ }
35973762
35983763 double s = v.s;
35993764
....@@ -3725,7 +3890,7 @@
37253890 return;
37263891
37273892 Object3D poses = group.selection.get(0);
3728
- Object3D ref = GrafreeD.clipboard.get(0);
3893
+ Object3D ref = Grafreed.clipboard.get(0);
37293894
37303895 Object3D newgroup = new Object3D("Po:" + poses.name);
37313896
....@@ -3919,9 +4084,9 @@
39194084
39204085 void ClipMesh()
39214086 {
3922
- if (/*group.selection.size() == 1 &&*/ GrafreeD.clipboard.size() == 1)
4087
+ if (/*group.selection.size() == 1 &&*/ Grafreed.clipboard.size() == 1)
39234088 {
3924
- Object3D content = GrafreeD.clipboard.get(0);
4089
+ Object3D content = Grafreed.clipboard.get(0);
39254090
39264091 if (content instanceof cGroup && ((cGroup)content).transientlink )
39274092 content = ((cGroup)content).get(0);
....@@ -3930,7 +4095,7 @@
39304095 // {
39314096 // group.selection.get(i).ClipMesh(GrafreeD.clipboard);
39324097 // }
3933
- group.selection.ClipMesh(GrafreeD.clipboard);
4098
+ group.selection.ClipMesh(Grafreed.clipboard);
39344099 }
39354100 // group.selection.ClipMesh(GrafreeD.clipboard);
39364101 System.out.println("DONE.");
....@@ -4065,7 +4230,7 @@
40654230 objectPanel.setSelectedIndex(objectPanel.indexOfTab("Edit"));
40664231
40674232 Object3D elem = (Object3D)group.selection.elementAt(i);
4068
- if(elem != group)
4233
+ if(elem != group || !newWindow)
40694234 {
40704235 // if (!(elem instanceof Composite))
40714236 // newWindow = false;
....@@ -4179,14 +4344,17 @@
41794344
41804345 objEditor.SetText(); // jan 2014
41814346
4182
- if (flashIt && !Globals.isLIVE() && tps != null && tps.length > 0 && !(((Object3D) tps[0].getLastPathComponent()) instanceof Camera))
4347
+ if (flashIt && !Globals.isLIVE() && tps != null && tps.length > 0 && !(tps[0].getLastPathComponent() instanceof Camera))
41834348 CameraPane.flash = true;
41844349
4185
- if (tps != null && tps.length > 0 && ((Object3D) tps[0].getLastPathComponent()) instanceof Camera)
4350
+ if (tps != null && tps.length > 0 && tps[0].getLastPathComponent() instanceof Camera)
41864351 // a camera
41874352 {
4188
- CameraPane.camerachangeframe = 0; // don't refuse it
4189
- Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent());
4353
+ if (tps[0].getLastPathComponent() != Globals.theRenderer.LightCamera())
4354
+ {
4355
+ CameraPane.camerachangeframe = 0; // don't refuse it
4356
+ Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent());
4357
+ }
41904358 // Globals.theRenderer.renderCamera = Globals.theRenderer.manipCamera;
41914359 // Globals.theRenderer.eyeCamera = Globals.theRenderer.manipCamera;
41924360 }
....@@ -4270,16 +4438,18 @@
42704438 {
42714439 if (group.selection.isEmpty())
42724440 return;
4273
- GrafreeD.clipboardIsTempGroup = false;
4441
+
4442
+ Grafreed.clipboardIsTempGroup = false;
42744443 Composite tGroup = null;
42754444 if (group.selection.size() > 0) // 1)
42764445 {
42774446 tGroup = new cGroup();
4278
- GrafreeD.clipboardIsTempGroup = true;
4447
+ Grafreed.clipboardIsTempGroup = true;
42794448 }
42804449
42814450 if (cut)
42824451 {
4452
+ Save();
42834453 //int indices[] = jList.getSelectedIndices();
42844454 //for (int i = indices.length - 1; i >= 0; i--)
42854455 //jList.remove(indices[i]);
....@@ -4315,16 +4485,16 @@
43154485 //System.out.println("cut " + child);
43164486 //System.out.println("parent = " + child.parent);
43174487 // tmp.addChild(child);
4318
- if (GrafreeD.clipboardIsTempGroup)
4488
+ if (Grafreed.clipboardIsTempGroup)
43194489 tGroup.add/*Child*/(tmp);
43204490 else
4321
- GrafreeD.clipboard = tmp;
4491
+ Grafreed.clipboard = tmp;
43224492 }
43234493 else
4324
- if (GrafreeD.clipboardIsTempGroup)
4494
+ if (Grafreed.clipboardIsTempGroup)
43254495 tGroup.add/*Child*/(child);
43264496 else
4327
- GrafreeD.clipboard = child;
4497
+ Grafreed.clipboard = child;
43284498 }
43294499
43304500 //ResetModel();
....@@ -4356,21 +4526,23 @@
43564526 //System.out.println("cut " + elem);
43574527 //System.out.println("parent = " + elem.parent);
43584528 // tmp.addChild(elem);
4359
- if (GrafreeD.clipboardIsTempGroup)
4529
+ if (Grafreed.clipboardIsTempGroup)
43604530 tGroup.add/*Child*/(tmp);
43614531 else
4362
- GrafreeD.clipboard = tmp;
4532
+ Grafreed.clipboard = tmp;
43634533 }
43644534 else
4365
- if (GrafreeD.clipboardIsTempGroup)
4535
+ if (Grafreed.clipboardIsTempGroup)
43664536 tGroup.add/*Child*/(child);
43674537 else
4368
- GrafreeD.clipboard = child;
4538
+ Grafreed.clipboard = child;
43694539 }
43704540
43714541 }
4372
- if (GrafreeD.clipboardIsTempGroup)
4373
- GrafreeD.clipboard = tGroup;
4542
+
4543
+ if (Grafreed.clipboardIsTempGroup)
4544
+ Grafreed.clipboard = tGroup;
4545
+
43744546 if (cut)
43754547 {
43764548 ResetModel();
....@@ -4384,7 +4556,7 @@
43844556 // return;
43854557 boolean first = true;
43864558
4387
- if (GrafreeD.clipboardIsTempGroup)
4559
+ if (Grafreed.clipboardIsTempGroup)
43884560 {
43894561 Composite temp;
43904562
....@@ -4395,7 +4567,7 @@
43954567 temp = (Composite)Applet3D.clipboard.deepCopy();
43964568 */
43974569 Object3D elem;
4398
- for (Enumeration e = /*temp.children*/GrafreeD.clipboard.elements(); e.hasMoreElements();) // objList.add(copy.name))
4570
+ for (Enumeration e = /*temp.children*/Grafreed.clipboard.elements(); e.hasMoreElements();) // objList.add(copy.name))
43994571 {
44004572 Object3D child = (Object3D)e.nextElement();
44014573
....@@ -4429,14 +4601,14 @@
44294601 //Object3D cb = Applet3D.clipboard;
44304602 //temp.addChild(cb);
44314603 //makeSomething((expand?temp.copyExpand():temp.deepCopy()).get(0));
4432
- assert(GrafreeD.clipboard.parent == null);
4433
- Object3D /*Composite*/ keepparent = GrafreeD.clipboard.get(0).parent;
4434
- GrafreeD.clipboard.get(0).parent = null; // Avoid copy?
4435
- if (LA.isIdentity(GrafreeD.clipboard.toParent))
4436
- makeSomething(expand?GrafreeD.clipboard.get(0).copyExpand():GrafreeD.clipboard.get(0).deepCopy());
4604
+ assert(Grafreed.clipboard.parent == null);
4605
+ Object3D /*Composite*/ keepparent = Grafreed.clipboard.get(0).parent;
4606
+ Grafreed.clipboard.get(0).parent = null; // Avoid copy?
4607
+ if (LA.isIdentity(Grafreed.clipboard.toParent))
4608
+ makeSomething(expand?Grafreed.clipboard.get(0).copyExpand():Grafreed.clipboard.get(0).deepCopy());
44374609 else
4438
- makeSomething(expand?GrafreeD.clipboard.copyExpand():GrafreeD.clipboard.deepCopy());
4439
- GrafreeD.clipboard.get(0).parent = keepparent;
4610
+ makeSomething(expand?Grafreed.clipboard.copyExpand():Grafreed.clipboard.deepCopy());
4611
+ Grafreed.clipboard.get(0).parent = keepparent;
44404612 }
44414613
44424614 ResetModel();
....@@ -4485,9 +4657,9 @@
44854657 {
44864658 boolean first = true;
44874659
4488
- if (GrafreeD.clipboardIsTempGroup)
4660
+ if (Grafreed.clipboardIsTempGroup)
44894661 {
4490
- Composite temp = (Composite)GrafreeD.clipboard;
4662
+ Composite temp = (Composite)Grafreed.clipboard;
44914663 Object3D copy;
44924664 for (Enumeration e = temp.children.elements(); e.hasMoreElements();)
44934665 {
....@@ -4497,7 +4669,7 @@
44974669 }
44984670 } else
44994671 {
4500
- linkSomething(GrafreeD.clipboard); //.get(0));
4672
+ linkSomething(Grafreed.clipboard); //.get(0));
45014673 }
45024674 }
45034675 }
....@@ -4902,21 +5074,6 @@
49025074 }
49035075 */
49045076
4905
- void ImportGFD()
4906
- {
4907
- FileDialog browser = new FileDialog(objEditor.frame, "Import GrafreeD", FileDialog.LOAD);
4908
- browser.show();
4909
- String filename = browser.getFile();
4910
- if (filename != null && filename.length() > 0)
4911
- {
4912
- String fullname = browser.getDirectory() + filename;
4913
-
4914
- //Object3D readobj =
4915
- objEditor.ReadGFD(fullname, objEditor);
4916
- //makeSomething(readobj);
4917
- }
4918
- }
4919
-
49205077 /*
49215078 public void Callback(Object obj)
49225079 {
....@@ -4940,26 +5097,9 @@
49405097 }
49415098 */
49425099
4943
- void ImportVRMLX3D()
4944
- {
4945
- if (GrafreeD.standAlone)
4946
- {
4947
- /**/
4948
- FileDialog browser = new FileDialog(objEditor.frame, "Import VRML/X3D", FileDialog.LOAD);
4949
- browser.show();
4950
- String filename = browser.getFile();
4951
- if (filename != null && filename.length() > 0)
4952
- {
4953
- String fullname = browser.getDirectory() + filename;
4954
- LoadVRMLX3D(fullname);
4955
- }
4956
- /**/
4957
- }
4958
- }
4959
-
49605100 String GetFile(String dialogName)
49615101 {
4962
- if (GrafreeD.standAlone)
5102
+ if (Grafreed.standAlone)
49635103 {
49645104 FileDialog browser = new FileDialog(objEditor.frame, dialogName, FileDialog.LOAD);
49655105 browser.show();
....@@ -5027,6 +5167,9 @@
50275167 cButton clearpanelButton;
50285168 cButton unselectButton;
50295169
5170
+ cButton saveButton;
5171
+ cButton undoButton;
5172
+ cButton redoButton;
50305173 cButton oneStepButton;
50315174
50325175 cButton screenfitButton;
....@@ -5059,6 +5202,8 @@
50595202 private MenuItem lookFromItem;
50605203 private MenuItem switchItem;
50615204 private MenuItem cutItem;
5205
+ private MenuItem undoItem;
5206
+ private MenuItem redoItem;
50625207 private MenuItem duplicateItem;
50635208 private MenuItem cloneItem;
50645209 private MenuItem cloneSupportItem;
....@@ -5072,7 +5217,7 @@
50725217 private MenuItem linkverticesItem;
50735218 private MenuItem relinkverticesItem;
50745219 private MenuItem setMasterItem;
5075
- private MenuItem resetMeshItem;
5220
+ private MenuItem resetAllItem;
50765221 private MenuItem stepAllItem;
50775222 private MenuItem revertMeshItem;
50785223 private MenuItem poseMeshItem;
....@@ -5133,8 +5278,10 @@
51335278 private MenuItem panoTexturesItem;
51345279
51355280 private MenuItem resetCentroidItem;
5136
- private MenuItem transformgeometryItem;
5281
+ private MenuItem resetCentroidXZItem;
51375282 private MenuItem resetTransformItem;
5283
+ private MenuItem transformGeometryItem;
5284
+ private MenuItem transformChildrenItem;
51385285 private MenuItem hideItem;
51395286 private MenuItem grabItem;
51405287 private MenuItem backItem;
....@@ -5203,11 +5350,6 @@
52035350 private MenuItem doubleItem;
52045351 private MenuItem tripleItem;
52055352
5206
- private MenuItem importGFDItem;
5207
- private MenuItem importVRMLX3DItem;
5208
- private MenuItem import3DSItem;
5209
- private MenuItem importOBJItem;
5210
-
52115353 private MenuItem computeAOItem;
52125354 private MenuItem recompileItem;
52135355 private MenuItem editScriptItem;
....@@ -5217,4 +5359,8 @@
52175359 private MenuItem analyzeItem;
52185360 private MenuItem dumpItem;
52195361 //boolean freezemodel = false;
5362
+
5363
+ Menu cameraMenu;
5364
+ MenuItem editCameraItem;
5365
+ MenuItem revertCameraItem;
52205366 }