Normand Briere
2019-06-21 15123b19e7bc8da2869429b07f0fbaa0598e945e
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,8 +148,130 @@
148148
149149 //JTextField nameField;
150150
151
- void SetupMenu2(ObjEditor oe)
151
+ void SetupMenu2(GroupEditor oe)
152152 {
153
+ Menu menu;
154
+ oe.menuBar.add(menu = new Menu("Edit"));
155
+ //editItem = menu.add(new MenuItem("Edit"));
156
+ //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("-");
163
+ duplicateItem = menu.add(new MenuItem("Duplicate"));
164
+ 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("-");
173
+ cutItem = menu.add(new MenuItem("Cut"));
174
+ cutItem.addActionListener(this);
175
+ copyItem = menu.add(new MenuItem("Copy"));
176
+ copyItem.addActionListener(this);
177
+ pasteItem = menu.add(new MenuItem("Paste"));
178
+ pasteItem.addActionListener(this);
179
+ menu.add("-");
180
+
181
+ menu.add("-");
182
+ pasteIntoItem = menu.add(new MenuItem("Paste into"));
183
+ pasteIntoItem.addActionListener(this);
184
+ pasteLinkItem = menu.add(new MenuItem("Paste link"));
185
+ pasteLinkItem.addActionListener(this);
186
+ pasteCloneItem = menu.add(new MenuItem("Paste clone"));
187
+ pasteCloneItem.addActionListener(this);
188
+// pasteExpandItem = menu.add(new MenuItem("Paste expand"));
189
+// pasteExpandItem.addActionListener(this);
190
+ menu.add("-");
191
+ clearItem = menu.add(new MenuItem("Clear"));
192
+ clearItem.addActionListener(this);
193
+
194
+ if (Globals.ADVANCED)
195
+ {
196
+ // Deletes the cameras...
197
+ clearAllItem = menu.add(new MenuItem("Clear All"));
198
+ clearAllItem.addActionListener(this);
199
+ }
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());
236
+
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
+ {
153275 oe.cameraMenu.add(lookAtItem = new MenuItem("Set Interest"));
154276 //cameraMenu.add(lookFromItem = new MenuItem("Look From Selection"));
155277 //cameraMenu.add(switchItem = new MenuItem("Reverse View"));
....@@ -161,45 +283,17 @@
161283 lookAtItem.addActionListener(this);
162284 //lookFromItem.addActinoListener(this);
163285 //switchItem.addActionListener(this);
164
- Menu menu;
165
- oe.menuBar.add(menu = new Menu("Edit"));
166
- //editItem = menu.add(new MenuItem("Edit"));
167
- //editItem.addActionListener(this);
168
- duplicateItem = menu.add(new MenuItem("Duplicate"));
169
- duplicateItem.addActionListener(this);
170
- menu.add("-");
171
- cloneItem = menu.add(new MenuItem("Clone"));
172
- cloneItem.addActionListener(this);
173
- cloneSupportItem = menu.add(new MenuItem("Clone (+supports)"));
174
- cloneSupportItem.addActionListener(this);
175
- menu.add("-");
176
- cutItem = menu.add(new MenuItem("Cut"));
177
- cutItem.addActionListener(this);
178
- copyItem = menu.add(new MenuItem("Copy"));
179
- copyItem.addActionListener(this);
180
- pasteItem = menu.add(new MenuItem("Paste"));
181
- pasteItem.addActionListener(this);
182
- pasteLinkItem = menu.add(new MenuItem("Paste link"));
183
- pasteLinkItem.addActionListener(this);
184
- pasteCloneItem = menu.add(new MenuItem("Paste clone"));
185
- pasteCloneItem.addActionListener(this);
186
-// pasteExpandItem = menu.add(new MenuItem("Paste expand"));
187
-// pasteExpandItem.addActionListener(this);
188
- clearItem = menu.add(new MenuItem("Clear"));
189
- clearItem.addActionListener(this);
190
- clearAllItem = menu.add(new MenuItem("Clear All"));
191
- clearAllItem.addActionListener(this);
192
-
286
+ }
287
+
193288 oe.menuBar.add(menu = new Menu("Setting"));
194
- resetMeshItem = menu.add(new MenuItem("Reset All"));
195
- resetMeshItem.addActionListener(this);
196
- stepAllItem = menu.add(new MenuItem("Step All"));
197
- stepAllItem.addActionListener(this);
289
+ if (Globals.ADVANCED)
290
+ {
198291 revertMeshItem = menu.add(new MenuItem("Revert Meshes"));
199292 revertMeshItem.addActionListener(this);
200293 resetreferencesItem = menu.add(new MenuItem("Reset Mesh References"));
201294 resetreferencesItem.addActionListener(this);
202295 menu.add("-");
296
+ }
203297 overwriteGeoItem = menu.add(new MenuItem("Overwrite Geometry"));
204298 overwriteGeoItem.addActionListener(this);
205299 overwriteMatItem = menu.add(new MenuItem("Overwrite Material"));
....@@ -211,19 +305,26 @@
211305 overwriteUVItem = menu.add(new MenuItem("Overwrite UV"));
212306 overwriteUVItem.addActionListener(this);
213307 menu.add("-");
308
+ if (Globals.ADVANCED)
309
+ {
214310 generateMeshItem = menu.add(new MenuItem("Generate Meshes"));
215311 generateMeshItem.addActionListener(this);
216312 poseMeshItem = menu.add(new MenuItem("Set Pose Meshes"));
217313 poseMeshItem.addActionListener(this);
218314 menu.add("-");
315
+ }
219316 resetsupportItem = menu.add(new MenuItem("Reset support"));
220317 resetsupportItem.addActionListener(this);
221318 linkverticesItem = menu.add(new MenuItem("Link to Support"));
222319 linkverticesItem.addActionListener(this);
223320 relinkverticesItem = menu.add(new MenuItem("Re-link to Support"));
224321 relinkverticesItem.addActionListener(this);
322
+
323
+ if (Globals.ADVANCED)
324
+ {
225325 setMasterItem = menu.add(new MenuItem("Set Master Mesh"));
226326 setMasterItem.addActionListener(this);
327
+ }
227328
228329 oe.menuBar.add(menu = new Menu("Group"));
229330 grabItem = menu.add(new MenuItem("Grab"));
....@@ -234,27 +335,32 @@
234335 frontItem.addActionListener(this);
235336 compositeItem = menu.add(new MenuItem("Composite"));
236337 compositeItem.addActionListener(this);
237
- hideItem = menu.add(new MenuItem("Hide"));
338
+ hideItem = menu.add(new MenuItem("Hidden Group"));
238339 hideItem.addActionListener(this);
239340 ungroupItem = menu.add(new MenuItem("Ungroup"));
240341 ungroupItem.addActionListener(this);
241342 menu.add("-");
242
- randomItem = menu.add(new MenuItem("Random"));
343
+ randomItem = menu.add(new MenuItem("Switch node"));
243344 randomItem.addActionListener(this);
244
- physicsItem = menu.add(new MenuItem("Physics"));
245
- physicsItem.addActionListener(this);
246
- frameselectorItem = menu.add(new MenuItem("Frame Selector"));
247
- frameselectorItem.addActionListener(this);
248345 switchGeoItem = menu.add(new MenuItem("Switch Geometry"));
249346 switchGeoItem.addActionListener(this);
250347 switchTransfoItem = menu.add(new MenuItem("Switch Transform"));
251348 switchTransfoItem.addActionListener(this);
252
- morphItem = menu.add(new MenuItem("Morph"));
349
+ morphItem = menu.add(new MenuItem("Morph Group"));
253350 morphItem.addActionListener(this);
351
+
352
+ if (Globals.ADVANCED)
353
+ {
354
+ menu.add("-");
355
+ physicsItem = menu.add(new MenuItem("Physics"));
356
+ physicsItem.addActionListener(this);
357
+ frameselectorItem = menu.add(new MenuItem("Frame Selector"));
358
+ frameselectorItem.addActionListener(this);
254359 scriptNodeItem = menu.add(new MenuItem("Script Node"));
255360 scriptNodeItem.addActionListener(this);
256361 cameraItem = menu.add(new MenuItem("Camera"));
257362 cameraItem.addActionListener(this);
363
+ }
258364
259365 oe.menuBar.add(menu = new Menu("Object"));
260366 textureItem = menu.add(new MenuItem("Texture"));
....@@ -269,21 +375,29 @@
269375 shadowYItem.addActionListener(this);
270376 shadowZItem = menu.add(new MenuItem("Shadow Z"));
271377 shadowZItem.addActionListener(this);
378
+ if (Globals.ADVANCED)
379
+ {
380
+ menu.add("-");
272381 linkerItem = menu.add(new MenuItem("Linker"));
273382 linkerItem.addActionListener(this);
274
- templateItem = menu.add(new MenuItem("Template"));
275
- templateItem.addActionListener(this);
276383 attributeItem = menu.add(new MenuItem("Attribute"));
277384 attributeItem.addActionListener(this);
385
+ templateItem = menu.add(new MenuItem("Template"));
386
+ templateItem.addActionListener(this);
278387 pointflowItem = menu.add(new MenuItem("Point Flow"));
279388 pointflowItem.addActionListener(this);
389
+ }
280390 menu.add("-");
281391 resetTransformItem = menu.add(new MenuItem("Reset Transform"));
282392 resetTransformItem.addActionListener(this);
283393 resetCentroidItem = menu.add(new MenuItem("Reset Centroid"));
284394 resetCentroidItem.addActionListener(this);
285
- transformgeometryItem = menu.add(new MenuItem("Transform Geometry"));
286
- 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);
287401
288402 oe.menuBar.add(menu = new Menu("Geometry"));
289403 genUVItem = menu.add(new MenuItem("Generate UV"));
....@@ -294,8 +408,11 @@
294408 genNormalsCADItem.addActionListener(this);
295409 genNormalsMESHItem = menu.add(new MenuItem("Mesh Normals"));
296410 genNormalsMESHItem.addActionListener(this);
411
+ if (Globals.ADVANCED)
412
+ {
297413 genNormalsMINEItem = menu.add(new MenuItem("My Normals"));
298414 genNormalsMINEItem.addActionListener(this);
415
+ }
299416 stripifyItem = menu.add(new MenuItem("Stripify"));
300417 stripifyItem.addActionListener(this);
301418 unstripifyItem = menu.add(new MenuItem("Unstripify"));
....@@ -317,23 +434,34 @@
317434 reduce34MeshItem.addActionListener(this);
318435 increaseMeshItem = menu.add(new MenuItem("Increase mesh"));
319436 increaseMeshItem.addActionListener(this);
320
- smoothMeshItem = menu.add(new MenuItem("Smooth mesh"));
321
- smoothMeshItem.addActionListener(this);
322437 clipMeshItem = menu.add(new MenuItem("Clip mesh"));
323438 clipMeshItem.addActionListener(this);
439
+
440
+ if (Globals.ADVANCED)
441
+ {
442
+ smoothMeshItem = menu.add(new MenuItem("Smooth mesh"));
443
+ smoothMeshItem.addActionListener(this);
444
+ }
324445
325446 oe.menuBar.add(menu = new Menu("Attributes"));
326447 clearMaterialsItem = menu.add(new MenuItem("Clear Materials"));
327448 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);
328453 menu.add("-");
329454 liveleavesItem = menu.add(new MenuItem("Live Leaves"));
330455 liveleavesItem.addActionListener(this);
331456 unliveleavesItem = menu.add(new MenuItem("Unlive Leaves"));
332457 unliveleavesItem.addActionListener(this);
458
+ if (Globals.ADVANCED)
459
+ {
333460 supportleavesItem = menu.add(new MenuItem("Support Leaves"));
334461 supportleavesItem.addActionListener(this);
335462 unsupportleavesItem = menu.add(new MenuItem("Unsupport Leaves"));
336463 unsupportleavesItem.addActionListener(this);
464
+ }
337465 hideleavesItem = menu.add(new MenuItem("Hide Leaves"));
338466 hideleavesItem.addActionListener(this);
339467 showleavesItem = menu.add(new MenuItem("Show Leaves"));
....@@ -342,6 +470,14 @@
342470 markleavesItem.addActionListener(this);
343471 unmarkleavesItem = menu.add(new MenuItem("Unmark Leaves"));
344472 unmarkleavesItem.addActionListener(this);
473
+ rewindleavesItem = menu.add(new MenuItem("Rewind Leaves"));
474
+ rewindleavesItem.addActionListener(this);
475
+ unrewindleavesItem = menu.add(new MenuItem("Unrewind Leaves"));
476
+ unrewindleavesItem.addActionListener(this);
477
+ randomleavesItem = menu.add(new MenuItem("Random Leaves"));
478
+ randomleavesItem.addActionListener(this);
479
+ unrandomleavesItem = menu.add(new MenuItem("Unrandom Leaves"));
480
+ unrandomleavesItem.addActionListener(this);
345481 menu.add("-");
346482 flipVItem = menu.add(new MenuItem("Flip V"));
347483 flipVItem.addActionListener(this);
....@@ -377,29 +513,22 @@
377513 sortbynameItem = menu.add(new MenuItem("Sort by name"));
378514 sortbynameItem.addActionListener(this);
379515 menu.add("-");
516
+ shareGeometriesItem = menu.add(new MenuItem("Share Geometries"));
517
+ shareGeometriesItem.addActionListener(this);
518
+ mergeGeometriesItem = menu.add(new MenuItem("Merge Geometries"));
519
+ mergeGeometriesItem.addActionListener(this);
520
+ if (Globals.ADVANCED)
521
+ {
522
+ // Pretty much the same as duplicate and clone.
380523 extractGeometriesItem = menu.add(new MenuItem("Link Geometry"));
381524 extractGeometriesItem.addActionListener(this);
382525 cloneGeometriesItem = menu.add(new MenuItem("Clone Geometry"));
383526 cloneGeometriesItem.addActionListener(this);
384
- shareGeometriesItem = menu.add(new MenuItem("Share Geometry"));
385
- shareGeometriesItem.addActionListener(this);
386
- mergeGeometriesItem = menu.add(new MenuItem("Merge Geometry"));
387
- mergeGeometriesItem.addActionListener(this);
527
+ }
388528
389529 oe.menuBar.add(menu = new Menu("Insert"));
390530 buildCreateMenu(menu);
391531
392
-
393
- oe.menuBar.add(menu = new Menu("Include"));
394
- importGFDItem = menu.add(new MenuItem("GrafreeD Object..."));
395
- importGFDItem.addActionListener(this);
396
- importVRMLX3DItem = menu.add(new MenuItem("VRML/X3D Object..."));
397
- importVRMLX3DItem.addActionListener(this);
398
- importOBJItem = menu.add(new MenuItem("OBJ Object..."));
399
- importOBJItem.addActionListener(this);
400
- import3DSItem = menu.add(new MenuItem("3DS Object..."));
401
- import3DSItem.addActionListener(this);
402
-
403532 oe.menuBar.add(menu = new Menu("Tools"));
404533 buildToolsMenu(menu);
405534 }
....@@ -436,10 +565,26 @@
436565 */
437566 //this.AddOptions(oe.toolbarPanel, oe.aConstraints);
438567
568
+ oe.toolbarPanel.add(undoButton = new cButton("Undo", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
569
+ undoButton.setToolTipText("Undo changes");
570
+ undoButton.addActionListener(this);
571
+
572
+ oe.toolbarPanel.add(redoButton = new cButton("Redo", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
573
+ redoButton.setToolTipText("Redo changes");
574
+ redoButton.addActionListener(this);
575
+
576
+ oe.toolbarPanel.add(saveButton = new cButton("Save", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
577
+ saveButton.setToolTipText("Save changes");
578
+ saveButton.addActionListener(this);
579
+
439580 oe.toolbarPanel.add(liveCB = new cCheckBox("Live", Globals.isLIVE())); //, oe.aConstraints);
440
- liveCB.setToolTipText("Enabled animation");
581
+ liveCB.setToolTipText("Enable animation");
441582 liveCB.addItemListener(this);
442583
584
+ oe.toolbarPanel.add(oneStepButton = new cButton("Step", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
585
+ oneStepButton.setToolTipText("Animate one step forward");
586
+ oneStepButton.addActionListener(this);
587
+
443588 oe.toolbarPanel.add(fastCB = new cCheckBox("Fast", CameraPane.FAST)); //, constraints);
444589 fastCB.setToolTipText("Fast mode");
445590 fastCB.addItemListener(this);
....@@ -448,51 +593,48 @@
448593 trackCB.setToolTipText("Enable tracking");
449594 trackCB.addItemListener(this);
450595
451
- oe.toolbarPanel.add(screenfitButton = new cButton("@", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
596
+ oe.toolbarPanel.add(screenfitButton = new cButton("@", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
452597 screenfitButton.setToolTipText("Screen fit");
453598 screenfitButton.addActionListener(this);
454599
455600 // oe.toolbarPanel.add(screenfitpointButton = new cButton(" @+ ")); //, oe.aConstraints);
456601 // screenfitpointButton.addActionListener(this);
457
-// oe.aConstraints.gridx += 1;
458
- oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
459
- snapobjectButton.addActionListener(this);
460
- snapobjectButton.setToolTipText("Snap Object");
461
- oe.aConstraints.gridx += 1;
462602
463
- //aConstraints.gridx = 0;
464
- //aConstraints.gridy += 1;
465
- oe.aConstraints.weighty = 0;
466
- oe.aConstraints.gridwidth = 1;
467
-
468
- oe.toolbarPanel.add(flashSelectionButton = new cButton("?", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
603
+ if (Globals.ADVANCED)
604
+ {
605
+ oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
606
+ snapobjectButton.addActionListener(this);
607
+ snapobjectButton.setToolTipText("Snap Object");
608
+ }
609
+
610
+ oe.toolbarPanel.add(flashSelectionButton = new cButton("?", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
469611 flashSelectionButton.setToolTipText("Show selection");
470612 flashSelectionButton.addActionListener(this);
471613
472614 oe.toolbarPanel.add(new JSeparator(SwingConstants.VERTICAL));
473615
474
- oe.toolbarPanel.add(twoButton = new cButton("|+|", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
616
+ oe.toolbarPanel.add(twoButton = new cButton("|+|", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
475617 twoButton.setToolTipText("Show center view only");
476618 twoButton.addActionListener(this);
477
- oe.toolbarPanel.add(fourButton = new cButton("+||", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
619
+ oe.toolbarPanel.add(fourButton = new cButton("+||", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
478620 fourButton.addActionListener(this);
479621 fourButton.setToolTipText("Show left panel only");
480
- oe.toolbarPanel.add(sixButton = new cButton("+|+|", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
622
+ oe.toolbarPanel.add(sixButton = new cButton("+|+|", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
481623 sixButton.setToolTipText("2-column layout left");
482624 sixButton.addActionListener(this);
483
- oe.toolbarPanel.add(threeButton = new cButton("|+|+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
625
+ oe.toolbarPanel.add(threeButton = new cButton("|+|+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
484626 threeButton.setToolTipText("2-column layout right");
485627 threeButton.addActionListener(this);
486
- oe.toolbarPanel.add(sevenButton = new cButton("+|+|+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
628
+ oe.toolbarPanel.add(sevenButton = new cButton("+|+|+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
487629 sevenButton.setToolTipText("3-column layout");
488630 sevenButton.addActionListener(this);
489631 //
490632
491
- oe.toolbarPanel.add(rootButton = new cButton("o o o", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
633
+ oe.toolbarPanel.add(rootButton = new cButton("o o o", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
492634 rootButton.setToolTipText("Edit selection in new tab");
493635 rootButton.addActionListener(this);
494636
495
- oe.toolbarPanel.add(closeButton = new cButton("X", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
637
+ oe.toolbarPanel.add(closeButton = new cButton("X", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
496638 closeButton.setToolTipText("Close tab");
497639 closeButton.addActionListener(this);
498640 //oe.treePanel.add(clearButton = new cButton("X"), oe.aConstraints);
....@@ -500,23 +642,23 @@
500642
501643 cGridBag commandsPanel = new cGridBag();
502644
503
- commandsPanel.add(editButton = new cButton("+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
645
+ commandsPanel.add(editButton = new cButton("+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
504646 editButton.setToolTipText("Edit selection");
505647 editButton.addActionListener(this);
506648
507
- commandsPanel.add(uneditButton = new cButton("-", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
649
+ commandsPanel.add(uneditButton = new cButton("-", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
508650 uneditButton.setToolTipText("Unedit selection");
509651 uneditButton.addActionListener(this);
510652
511
- commandsPanel.add(clearPanelButton = new cButton("C", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
653
+ commandsPanel.add(allParamsButton = new JCheckBox("All", allparams)); //, oe.aConstraints);
654
+ allParamsButton.setToolTipText("Edit all params");
655
+ allParamsButton.addActionListener(this);
656
+
657
+ commandsPanel.add(clearPanelButton = new cButton("C", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
512658 clearPanelButton.setToolTipText("Clear edit panel");
513659 clearPanelButton.addActionListener(this);
514660
515
- commandsPanel.add(allParamsButton = new cButton("A", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
516
- allParamsButton.setToolTipText("All params??");
517
- allParamsButton.addActionListener(this);
518
-
519
- commandsPanel.add(unselectButton = new cButton("U", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
661
+ commandsPanel.add(unselectButton = new cButton("U", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
520662 unselectButton.setToolTipText("Unselect");
521663 unselectButton.addActionListener(this);
522664
....@@ -591,8 +733,18 @@
591733
592734 void AddOptions(cGridBag panel) //, GridBagConstraints constraints)
593735 {
736
+ panel.add(boxCB = new cCheckBox("Box", CameraPane.BOXMODE)); //, constraints);
737
+ boxCB.setToolTipText("Display bounding boxes");
738
+ boxCB.addItemListener(this);
739
+
740
+ panel.add(zoomBoxCB = new cCheckBox("Zoom", CameraPane.ZOOMBOXMODE)); //, constraints);
741
+ zoomBoxCB.setToolTipText("Display bounding boxes when moving the wheel");
742
+ zoomBoxCB.addItemListener(this);
743
+
744
+ if (true) // Globals.ADVANCED)
745
+ {
594746 panel.add(supportCB = new cCheckBox("Support", CameraPane.SUPPORT)); //, constraints);
595
- supportCB.setToolTipText("Enabled rigging");
747
+ supportCB.setToolTipText("Enable rigging");
596748 supportCB.addItemListener(this);
597749
598750 // panel.add(localCB = new cCheckBox("Local", CameraPane.LOCALTRANSFORM), constraints);
....@@ -610,14 +762,6 @@
610762 slowCB.setToolTipText("Smooth interpolation");
611763 slowCB.addItemListener(this);
612764
613
- panel.add(boxCB = new cCheckBox("Box", CameraPane.BOXMODE)); //, constraints);
614
- boxCB.setToolTipText("Display bounding boxes");
615
- boxCB.addItemListener(this);
616
-
617
- panel.add(zoomBoxCB = new cCheckBox("Zoom", CameraPane.ZOOMBOXMODE)); //, constraints);
618
- zoomBoxCB.setToolTipText("Display bounding boxes when moving the wheel");
619
- zoomBoxCB.addItemListener(this);
620
-
621765 // constraints.gridy += 1;
622766 // panel.add(speakerMocapCB = new cCheckBox("Mocap", CameraPane.SPEAKERMOCAP), constraints);
623767 // speakerMocapCB.addItemListener(this);
....@@ -648,6 +792,8 @@
648792 panel.add(lookAtCB = new cCheckBox("Target", CameraPane.LOOKAT)); //, constraints);
649793 lookAtCB.setToolTipText("Look-at target");
650794 lookAtCB.addItemListener(this);
795
+
796
+ }
651797
652798 cGridBag fill = new cGridBag();
653799
....@@ -668,6 +814,7 @@
668814 buttonGroup.add(radioButton);
669815 radioButton.doClick();
670816 }
817
+
671818 void SetupViews(ObjEditor oe)
672819 {
673820 oe.SetupViews();
....@@ -732,6 +879,7 @@
732879 } else if(e.getSource() == liveCB)
733880 {
734881 cameraView.ToggleLive();
882
+ refreshContents(false);
735883 }
736884 else if(e.getSource() == supportCB)
737885 {
....@@ -884,7 +1032,9 @@
8841032 // objEditor.DropFile((java.io.File[]) object, true);
8851033 // return;
8861034 // }
887
- if (string.charAt(0) == '/')
1035
+
1036
+ // File path for Mac and Windows
1037
+ if (string.charAt(0) == '/' || string.charAt(1) == ':')
8881038 {
8891039 // file(s)
8901040 String[] names = string.split("\n");
....@@ -911,7 +1061,7 @@
9111061
9121062 flashIt = false;
9131063 CameraPane pane = (CameraPane) target;
914
- pane.clickStart(objEditor.location.x, objEditor.location.y, 0);
1064
+ pane.clickStart(objEditor.location.x, objEditor.location.y, 0, 0);
9151065 pane.clickEnd(objEditor.location.x, objEditor.location.y, 0, true);
9161066
9171067 if (group.selection.size() == 1)
....@@ -938,11 +1088,11 @@
9381088 {
9391089 loadClipboard(true);
9401090 objEditor.jTree.setSelectionPath(destinationPath);
941
- pasteInto(false);
1091
+ pasteInto(false, false);
9421092 } else {
9431093 loadClipboard(false);
9441094 objEditor.jTree.setSelectionPath(destinationPath);
945
- pasteInto(false); // true); // ???
1095
+ pasteInto(false, false); // true); // ???
9461096 }
9471097 }
9481098 public void dropActionChanged(DropTargetDragEvent dtde)
....@@ -1064,27 +1214,33 @@
10641214 kleinItem.addActionListener(this);
10651215 particleItem = menu.add(new MenuItem("Particle system"));
10661216 particleItem.addActionListener(this);
1217
+ if (Globals.ADVANCED)
1218
+ {
10671219 ragdollItem = menu.add(new MenuItem("Rag Walk"));
10681220 ragdollItem.addActionListener(this);
10691221 ragdoll2Item = menu.add(new MenuItem("Rag Fall"));
10701222 ragdoll2Item.addActionListener(this);
1223
+ }
10711224 menu.add("-");
1072
- meshItem = menu.add(new MenuItem("Mesh"));
1225
+ meshItem = menu.add(new MenuItem("Dynamic Mesh"));
10731226 meshItem.addActionListener(this);
10741227 // meshGroupItem = menu.add(new MenuItem("Mesh Group"));
10751228 // meshGroupItem.addActionListener(this);
1229
+ if (Globals.ADVANCED)
1230
+ {
10761231 springItem = menu.add(new MenuItem("Spring"));
10771232 springItem.addActionListener(this);
10781233 flagItem = menu.add(new MenuItem("Flag"));
10791234 flagItem.addActionListener(this);
1080
- bezierItem = menu.add(new MenuItem("Patch"));
1081
- bezierItem.addActionListener(this);
1082
- checkerItem = menu.add(new MenuItem("Checker"));
1083
- checkerItem.addActionListener(this);
10841235 blobItem = menu.add(new MenuItem("Blob"));
10851236 blobItem.addActionListener(this);
10861237 latheItem = menu.add(new MenuItem("Lathe"));
10871238 latheItem.addActionListener(this);
1239
+ }
1240
+ bezierItem = menu.add(new MenuItem("Bezier Patch"));
1241
+ bezierItem.addActionListener(this);
1242
+ overlayItem = menu.add(new MenuItem("Overlay"));
1243
+ overlayItem.addActionListener(this);
10881244 lightItem = menu.add(new MenuItem("Light"));
10891245 lightItem.addActionListener(this);
10901246 menu.add("-");
....@@ -1094,8 +1250,11 @@
10941250 loopItem.addActionListener(this);
10951251 doubleItem = menu.add(new MenuItem("Fork"));
10961252 doubleItem.addActionListener(this);
1253
+ if (Globals.ADVANCED)
1254
+ {
10971255 tripleItem = menu.add(new MenuItem("Trident"));
10981256 tripleItem.addActionListener(this);
1257
+ }
10991258 }
11001259
11011260 void buildToolsMenu(Menu menu)
....@@ -1109,24 +1268,26 @@
11091268 parseverticesItem.addActionListener(this);
11101269 textureFieldItem = menu.add(new MenuItem("Texture Field"));
11111270 textureFieldItem.addActionListener(this);
1112
- alignItem = menu.add(new MenuItem("Align"));
1271
+ alignItem = menu.add(new MenuItem("Align Objects"));
11131272 alignItem.addActionListener(this);
1114
- mirrorItem = menu.add(new MenuItem("Mirror Poses"));
1115
- mirrorItem.addActionListener(this);
11161273 reduceMorphItem = menu.add(new MenuItem("Reduce Morphs"));
11171274 reduceMorphItem.addActionListener(this);
11181275 reduce34MorphItem = menu.add(new MenuItem("Reduce Morphs (34)"));
11191276 reduce34MorphItem.addActionListener(this);
1120
-
1277
+ menu.add("-");
11211278 menu.add(computeAOItem = new MenuItem("Compute AO"));
11221279 computeAOItem.addActionListener(this);
1123
- menu.add("-");
11241280
1281
+ if (Globals.ADVANCED)
1282
+ {
1283
+ mirrorItem = menu.add(new MenuItem("Mirror Poses"));
1284
+ mirrorItem.addActionListener(this);
1285
+ menu.add("-");
11251286 menu.add(memoryItem = new MenuItem("Memory Usage"));
11261287 memoryItem.addActionListener(this);
11271288 menu.add(analyzeItem = new MenuItem("Analyze"));
11281289 analyzeItem.addActionListener(this);
1129
- menu.add(dumpItem = new MenuItem("Dump"));
1290
+ menu.add(dumpItem = new MenuItem("Print"));
11301291 dumpItem.addActionListener(this);
11311292 // menu.add(pathItem = new MenuItem("From-to path"));
11321293 // pathItem.addActionListener(this);
....@@ -1144,6 +1305,7 @@
11441305 menu.add("-");
11451306 menu.add(editScriptItem = new MenuItem("Edit Script..."));
11461307 editScriptItem.addActionListener(this);
1308
+ }
11471309 }
11481310
11491311 void ScreenFit()
....@@ -1472,9 +1634,9 @@
14721634
14731635 void Overwrite(int mask)
14741636 {
1475
- if (/*group.selection.size() == 1 &&*/ GrafreeD.clipboard.size() == 1)
1637
+ if (/*group.selection.size() == 1 &&*/ Grafreed.clipboard.size() == 1)
14761638 {
1477
- Object3D content = GrafreeD.clipboard.get(0);
1639
+ Object3D content = Grafreed.clipboard.get(0);
14781640
14791641 if (content instanceof cGroup && ((cGroup)content).transientlink )
14801642 content = ((cGroup)content).get(0);
....@@ -1645,7 +1807,7 @@
16451807 {
16461808 makeSomething(new BezierSurface());
16471809 } else
1648
- if (source == checkerItem)
1810
+ if (source == overlayItem)
16491811 {
16501812 /*
16511813 Object3D obj = new BezierSurface(5,8);
....@@ -1779,23 +1941,6 @@
17791941 csg.addChild(child);
17801942 child.addChild(csg);
17811943 } else
1782
-
1783
- if (source == importGFDItem)
1784
- {
1785
- ImportGFD();
1786
- } else
1787
- if (source == importVRMLX3DItem)
1788
- {
1789
- ImportVRMLX3D();
1790
- } else
1791
- if (source == import3DSItem)
1792
- {
1793
- objEditor.ImportJME(new com.jmex.model.converters.MaxToJme(), "3ds", "Import 3DS");
1794
- } else
1795
- if (source == importOBJItem)
1796
- {
1797
- objEditor.ImportJME(new com.jmex.model.converters.ObjToJme(), "obj", "Import OBJ");
1798
- } else
17991944 if (source == computeAOItem)
18001945 {
18011946 Globals.drawMode = CameraPane.OCCLUSION;
....@@ -1814,7 +1959,7 @@
18141959 if (source == invariantsItem)
18151960 {
18161961 System.out.println("Invariants:");
1817
- GrafreeD.grafreeD.universe.invariants();
1962
+ Grafreed.grafreeD.universe.invariants();
18181963 } else
18191964 if (source == memoryItem)
18201965 {
....@@ -1832,6 +1977,23 @@
18321977 if (source == dumpItem)
18331978 {
18341979 DumpObject();
1980
+ } else
1981
+ if (source == undoButton)
1982
+ {
1983
+ Undo();
1984
+ } else
1985
+ if (source == redoButton)
1986
+ {
1987
+ Redo();
1988
+ } else
1989
+ if (source == saveButton)
1990
+ {
1991
+ Save();
1992
+ } else
1993
+ if (source == oneStepButton)
1994
+ {
1995
+ Globals.ONESTEP = true;
1996
+ cameraView.repaint();
18351997 } else
18361998 if (source == screenfitButton)
18371999 {
....@@ -1882,12 +2044,20 @@
18822044 {
18832045 loadClipboard(true);
18842046 } else
2047
+ if (source == undoItem)
2048
+ {
2049
+ Undo();
2050
+ } else
2051
+ if (source == redoItem)
2052
+ {
2053
+ Redo();
2054
+ } else
18852055 if (source == duplicateItem)
18862056 {
1887
- Object3D keep = GrafreeD.clipboard;
2057
+ Object3D keep = Grafreed.clipboard;
18882058 loadClipboard(false);
18892059 paste(false);
1890
- GrafreeD.clipboard = keep;
2060
+ Grafreed.clipboard = keep;
18912061 } else
18922062 if (source == cloneItem)
18932063 {
....@@ -1905,13 +2075,17 @@
19052075 {
19062076 paste(false);
19072077 } else
2078
+ if (source == pasteIntoItem)
2079
+ {
2080
+ pasteInto(true, false);
2081
+ } else
19082082 if (source == pasteLinkItem)
19092083 {
1910
- pasteInto(false);
2084
+ pasteInto(false, false);
19112085 } else
19122086 if (source == pasteCloneItem)
19132087 {
1914
- pasteInto(true);
2088
+ pasteInto(true, true);
19152089 } else
19162090 if (source == pasteExpandItem)
19172091 {
....@@ -2103,9 +2277,9 @@
21032277 // group.selection.get(0).setMasterThis(content); // should be identity
21042278 // refreshContents();
21052279 // }
2106
- if (/*group.selection.size() == 1 &&*/ GrafreeD.clipboard.size() == 1)
2280
+ if (/*group.selection.size() == 1 &&*/ Grafreed.clipboard.size() == 1)
21072281 {
2108
- Object3D content = GrafreeD.clipboard.get(0);
2282
+ Object3D content = Grafreed.clipboard.get(0);
21092283
21102284 if (content instanceof cGroup && ((cGroup)content).transientlink )
21112285 content = ((cGroup)content).get(0);
....@@ -2113,11 +2287,11 @@
21132287 Globals.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.WAIT_CURSOR));
21142288 for (int i=0; i<group.selection.size(); i++)
21152289 {
2116
- boolean random = CameraPane.RANDOM;
2117
- CameraPane.RANDOM = false; // parse all random nodes
2290
+ boolean random = CameraPane.SWITCH;
2291
+ CameraPane.SWITCH = false; // parse all random nodes
21182292 group.selection.get(i).linkVerticesThis(content);
21192293 // group.selection.get(i).setMasterThis(content); // should be identity
2120
- CameraPane.RANDOM = random;
2294
+ CameraPane.SWITCH = random;
21212295 }
21222296 Globals.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.DEFAULT_CURSOR));
21232297 refreshContents();
....@@ -2127,20 +2301,20 @@
21272301 {
21282302 for (int i=0; i<group.selection.size(); i++)
21292303 {
2130
- boolean random = CameraPane.RANDOM;
2131
- CameraPane.RANDOM = false; // parse all random nodes
2304
+ boolean random = CameraPane.SWITCH;
2305
+ CameraPane.SWITCH = false; // parse all random nodes
21322306 group.selection.get(i).linkVerticesThis(null);
2133
- CameraPane.RANDOM = random;
2307
+ CameraPane.SWITCH = random;
21342308 }
21352309
21362310 refreshContents();
21372311 } else
21382312 if (source == relinkverticesItem)
21392313 {
2140
- boolean random = CameraPane.RANDOM;
2141
- CameraPane.RANDOM = false; // parse all random nodes
2314
+ boolean random = CameraPane.SWITCH;
2315
+ CameraPane.SWITCH = false; // parse all random nodes
21422316 group.selection.RelinkToSupport();
2143
- CameraPane.RANDOM = random;
2317
+ CameraPane.SWITCH = random;
21442318
21452319 refreshContents();
21462320 } else
....@@ -2155,9 +2329,9 @@
21552329 } else
21562330 if (source == setMasterItem)
21572331 {
2158
- if (group.selection.size() == 1 && GrafreeD.clipboard.size() == 1)
2332
+ if (group.selection.size() == 1 && Grafreed.clipboard.size() == 1)
21592333 {
2160
- Object3D content = GrafreeD.clipboard.get(0);
2334
+ Object3D content = Grafreed.clipboard.get(0);
21612335
21622336 if (content instanceof cGroup && ((cGroup)content).transientlink )
21632337 content = ((cGroup)content).get(0);
....@@ -2170,9 +2344,9 @@
21702344 {
21712345 if (group.selection.size() == 1)
21722346 {
2173
- if (GrafreeD.clipboard.size() == 1)
2347
+ if (Grafreed.clipboard.size() == 1)
21742348 {
2175
- Object3D content = GrafreeD.clipboard.get(0);
2349
+ Object3D content = Grafreed.clipboard.get(0);
21762350
21772351 if (content instanceof cGroup && ((cGroup)content).transientlink )
21782352 content = ((cGroup)content).get(0);
....@@ -2189,7 +2363,7 @@
21892363 {
21902364 RevertMeshes();
21912365 } else
2192
- if (source == resetMeshItem)
2366
+ if (source == resetAllItem)
21932367 {
21942368 ResetAll();
21952369 } else
....@@ -2238,7 +2412,7 @@
22382412 RandomNode random = new RandomNode();
22392413 group(random);
22402414 if (random.size() > 0)
2241
- random.name = random.get(0).name + "Rnd";
2415
+ random.name = random.get(0).name + "Switch";
22422416 } else
22432417 if (source == physicsItem)
22442418 {
....@@ -2377,7 +2551,7 @@
23772551 } else
23782552 if (source == genNormalsMESHItem)
23792553 {
2380
- GenNormals(true); // TODO
2554
+ GenNormalsMESH();
23812555 } else
23822556 if (source == genNormalsORGANItem)
23832557 {
....@@ -2442,6 +2616,22 @@
24422616 if (source == unmarkleavesItem)
24432617 {
24442618 MarkLeaves(false);
2619
+ } else
2620
+ if (source == rewindleavesItem)
2621
+ {
2622
+ RewindLeaves(true);
2623
+ } else
2624
+ if (source == unrewindleavesItem)
2625
+ {
2626
+ RewindLeaves(false);
2627
+ } else
2628
+ if (source == randomleavesItem)
2629
+ {
2630
+ RandomLeaves(true);
2631
+ } else
2632
+ if (source == unrandomleavesItem)
2633
+ {
2634
+ RandomLeaves(false);
24452635 } else
24462636 if (source == flipVItem)
24472637 {
....@@ -2527,9 +2717,13 @@
25272717 {
25282718 SmoothMesh();
25292719 } else
2530
- if (source == transformgeometryItem)
2720
+ if (source == transformGeometryItem)
25312721 {
25322722 TransformGeometry();
2723
+ } else
2724
+ if (source == transformChildrenItem)
2725
+ {
2726
+ TransformChildren();
25332727 } else
25342728 if (source == resetTransformItem)
25352729 {
....@@ -2537,7 +2731,11 @@
25372731 } else
25382732 if (source == resetCentroidItem)
25392733 {
2540
- ResetCentroid();
2734
+ ResetCentroid(true);
2735
+ } else
2736
+ if (source == resetCentroidXZItem)
2737
+ {
2738
+ ResetCentroid(false);
25412739 } else
25422740 if (source == resetParentItem)
25432741 {
....@@ -2893,9 +3091,9 @@
28933091 child.CloseUI();
28943092 listUI.remove(child);
28953093
2896
- child.editWindow = null; // ???????????
3094
+ //child.editWindow = null; // ???????????
28973095 }
2898
- objEditor.ctrlPanel.validate();
3096
+ objEditor.ctrlPanel.FlushUI();
28993097 //objEditor.jTree.clearSelection();
29003098 //objEditor.ResetSliders();
29013099 refreshContents(true);
....@@ -2979,7 +3177,10 @@
29793177 frontView.object = group;
29803178 sideView.object = group;
29813179 }
3180
+
3181
+// fix "+" issue
29823182 group.editWindow = this;
3183
+
29833184 /*
29843185 currentLayout = radio.layout;
29853186 if (currentLayout == null)
....@@ -2992,7 +3193,20 @@
29923193 //group.attributes = -1;
29933194 ResetModel();
29943195 refreshContents(true);
2995
- }
3196
+ } else if (event.getSource() == editCameraItem)
3197
+ {
3198
+ cameraView.ProtectCamera();
3199
+ cameraView.repaint();
3200
+ return;
3201
+ } else if (event.getSource() == revertCameraItem)
3202
+ {
3203
+ cameraView.RevertCamera();
3204
+ cameraView.repaint();
3205
+ return;
3206
+ // } else if (event.getSource() == textureButton)
3207
+ // {
3208
+ // return; // true;
3209
+ }
29963210 else
29973211 {
29983212 //return super.action(event, arg);
....@@ -3053,6 +3267,28 @@
30533267 refreshContents();
30543268 }
30553269
3270
+ void TransformChildren()
3271
+ {
3272
+ Object3D obj;
3273
+ for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
3274
+ {
3275
+ obj = (Object3D)e.nextElement();
3276
+ obj.KeepTextureMatrices();
3277
+ obj.TransformChildren();
3278
+ obj.RestoreTextureMatrices();
3279
+
3280
+// if (obj.parent == null)
3281
+// {
3282
+// System.out.println("NULL PARENT!");
3283
+// new Exception().printStackTrace();
3284
+// }
3285
+// else
3286
+// TouchTransform(obj);
3287
+// //obj.parent.Touch();
3288
+ }
3289
+
3290
+ refreshContents();
3291
+ }
30563292
30573293 void ResetTransform()
30583294 {
....@@ -3165,7 +3401,7 @@
31653401 refreshContents();
31663402 }
31673403
3168
- void ResetCentroid()
3404
+ void ResetCentroid(boolean full)
31693405 {
31703406 Object3D obj;
31713407 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -3180,12 +3416,16 @@
31803416 LA.matIdentity(Object3D.mat);
31813417 obj.getBounds(minima, maxima, false);
31823418 Object3D.mat[3][0] = -(minima.x + maxima.x)/2;
3183
- Object3D.mat[3][1] = -(minima.y + maxima.y)/2;
3419
+ if (full)
3420
+ Object3D.mat[3][1] = -(minima.y + maxima.y)/2;
31843421 Object3D.mat[3][2] = -(minima.z + maxima.z)/2;
31853422 obj.TransformMesh(Object3D.mat);
3423
+
31863424 Object3D.mat[3][0] = (minima.x + maxima.x)/2;
3187
- Object3D.mat[3][1] = (minima.y + maxima.y)/2;
3425
+ if (full)
3426
+ Object3D.mat[3][1] = (minima.y + maxima.y)/2;
31883427 Object3D.mat[3][2] = (minima.z + maxima.z)/2;
3428
+
31893429 LA.matConcat(Object3D.mat, obj.toParent, obj.toParent);
31903430 //Object3D.mat[3][0] = -Object3D.mat[3][0];
31913431 //Object3D.mat[3][1] = -Object3D.mat[3][1];
....@@ -3214,7 +3454,8 @@
32143454
32153455 int size = obj.MemorySize();
32163456
3217
- System.err.println((size/1024) + " KB is the size of " + obj);
3457
+ //System.err.println((size/1024) + " KB is the size of " + obj);
3458
+ System.err.println("the size of " + obj + " is " + size + " (" + (size/1024) + "KB)");
32183459 }
32193460 }
32203461 catch (Exception e)
....@@ -3251,9 +3492,9 @@
32513492 obj = (Object3D)e.nextElement();
32523493
32533494 System.out.println("Object is: " + obj);
3254
- GrafreeD.AnalyzeObject(obj);
3495
+ Grafreed.AnalyzeObject(obj);
32553496 System.out.println("Boundary rep: " + obj.bRep);
3256
- GrafreeD.AnalyzeObject(obj.bRep);
3497
+ Grafreed.AnalyzeObject(obj.bRep);
32573498
32583499 // System.err.println((size/1024) + " KB is the size of " + obj);
32593500 }
....@@ -3295,6 +3536,13 @@
32953536 void GenNormals(boolean crease)
32963537 {
32973538 group.GenNormalsS(crease);
3539
+
3540
+ refreshContents();
3541
+ }
3542
+
3543
+ void GenNormalsMESH()
3544
+ {
3545
+ group.GenNormalsMeshS();
32983546
32993547 refreshContents();
33003548 }
....@@ -3467,8 +3715,8 @@
34673715
34683716 void ParseVertices()
34693717 {
3470
- boolean epsequal = GrafreeD.epsequal;
3471
- GrafreeD.epsequal = true;
3718
+ boolean epsequal = Grafreed.epsequal;
3719
+ Grafreed.epsequal = true;
34723720
34733721 for (int i=0; i<group.selection.size(); i++)
34743722 {
....@@ -3493,7 +3741,7 @@
34933741 LA.matTranslate(g.toParent, temp.x, temp.y, temp.z);
34943742 LA.matTranslate(g.fromParent, -temp.x, -temp.y, -temp.z);
34953743
3496
- g.add(GrafreeD.clipboard);
3744
+ g.add(Grafreed.clipboard);
34973745
34983746 buffer.add(g);
34993747 }
....@@ -3508,7 +3756,7 @@
35083756 makeSomething(buffer, i==group.selection.size()-1);
35093757 }
35103758
3511
- GrafreeD.epsequal = epsequal;
3759
+ Grafreed.epsequal = epsequal;
35123760
35133761 refreshContents();
35143762 }
....@@ -3526,7 +3774,16 @@
35263774 String pigment = Object3D.GetPigment(tex);
35273775 //String bump = Object3D.GetBump(tex);
35283776
3529
- com.sun.opengl.util.texture.TextureData texturedata = Globals.theRenderer.GetTextureData(pigment, false, node.texres);
3777
+ com.sun.opengl.util.texture.TextureData texturedata = null;
3778
+
3779
+ try
3780
+ {
3781
+ texturedata = Globals.theRenderer.GetTextureData(pigment, false, node.texres);
3782
+ }
3783
+ catch (Exception e)
3784
+ {
3785
+ System.err.println("FAIL: " + node);
3786
+ }
35303787
35313788 double s = v.s;
35323789
....@@ -3614,11 +3871,11 @@
36143871
36153872 SwitchNode sn = new SwitchNode(poses, Object3D.GEOMETRY);
36163873
3617
- boolean random = CameraPane.RANDOM;
3618
- CameraPane.RANDOM = false; // parse all random nodes
3874
+ boolean random = CameraPane.SWITCH;
3875
+ CameraPane.SWITCH = false; // parse all random nodes
36193876 lowres.linkVerticesThis(null);
36203877 lowres.linkVerticesThis(sn);
3621
- CameraPane.RANDOM = random;
3878
+ CameraPane.SWITCH = random;
36223879
36233880 System.err.flush();
36243881
....@@ -3658,7 +3915,7 @@
36583915 return;
36593916
36603917 Object3D poses = group.selection.get(0);
3661
- Object3D ref = GrafreeD.clipboard.get(0);
3918
+ Object3D ref = Grafreed.clipboard.get(0);
36623919
36633920 Object3D newgroup = new Object3D("Po:" + poses.name);
36643921
....@@ -3852,9 +4109,9 @@
38524109
38534110 void ClipMesh()
38544111 {
3855
- if (/*group.selection.size() == 1 &&*/ GrafreeD.clipboard.size() == 1)
4112
+ if (/*group.selection.size() == 1 &&*/ Grafreed.clipboard.size() == 1)
38564113 {
3857
- Object3D content = GrafreeD.clipboard.get(0);
4114
+ Object3D content = Grafreed.clipboard.get(0);
38584115
38594116 if (content instanceof cGroup && ((cGroup)content).transientlink )
38604117 content = ((cGroup)content).get(0);
....@@ -3863,7 +4120,7 @@
38634120 // {
38644121 // group.selection.get(i).ClipMesh(GrafreeD.clipboard);
38654122 // }
3866
- group.selection.ClipMesh(GrafreeD.clipboard);
4123
+ group.selection.ClipMesh(Grafreed.clipboard);
38674124 }
38684125 // group.selection.ClipMesh(GrafreeD.clipboard);
38694126 System.out.println("DONE.");
....@@ -3910,6 +4167,18 @@
39104167 void MarkLeaves(boolean hide)
39114168 {
39124169 group.selection.MarkLeaves(hide);
4170
+ refreshContents();
4171
+ }
4172
+
4173
+ void RewindLeaves(boolean hide)
4174
+ {
4175
+ group.selection.RewindLeaves(hide);
4176
+ refreshContents();
4177
+ }
4178
+
4179
+ void RandomLeaves(boolean hide)
4180
+ {
4181
+ group.selection.RandomLeaves(hide);
39134182 refreshContents();
39144183 }
39154184
....@@ -3998,7 +4267,7 @@
39984267 objectPanel.setSelectedIndex(objectPanel.indexOfTab("Edit"));
39994268
40004269 Object3D elem = (Object3D)group.selection.elementAt(i);
4001
- if(elem != group)
4270
+ if(elem != group || !newWindow)
40024271 {
40034272 // if (!(elem instanceof Composite))
40044273 // newWindow = false;
....@@ -4088,7 +4357,6 @@
40884357 //case 702: // Event.LIST_DESELECT
40894358 group.deselectAll();
40904359 TreePath tps[] = objEditor.jTree.getSelectionPaths();
4091
- objEditor.ClearInfo(); // .GetMaterial());
40924360 if (tps != null)
40934361 {
40944362 for (int i=0; i < tps.length; i++)
....@@ -4097,10 +4365,8 @@
40974365
40984366 //if (child.parent != null)
40994367 //child.parent.addSelectee(child);
4368
+ objEditor.SetMaterial(child);
41004369 group.addSelectee(child);
4101
- objEditor.SetMaterial(child); // .GetMaterial());
4102
- objEditor.AddInfo(child, this, true); // .GetMaterial());
4103
- System.err.println("info : " + child.GetPath());
41044370 }
41054371 }
41064372 // else
....@@ -4110,16 +4376,17 @@
41104376 // System.err.println("info : " + group.GetPath());
41114377 // }
41124378
4113
- objEditor.SetText(); // jan 2014
4114
-
4115
- if (flashIt && !Globals.isLIVE() && tps != null && tps.length > 0 && !(((Object3D) tps[0].getLastPathComponent()) instanceof Camera))
4379
+ if (flashIt && !Globals.isLIVE() && tps != null && tps.length > 0 && !(tps[0].getLastPathComponent() instanceof Camera))
41164380 CameraPane.flash = true;
41174381
4118
- if (tps != null && tps.length > 0 && ((Object3D) tps[0].getLastPathComponent()) instanceof Camera)
4382
+ if (tps != null && tps.length > 0 && tps[0].getLastPathComponent() instanceof Camera)
41194383 // a camera
41204384 {
4121
- CameraPane.camerachangeframe = 0; // don't refuse it
4122
- Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent());
4385
+ if (tps[0].getLastPathComponent() != Globals.theRenderer.LightCamera())
4386
+ {
4387
+ CameraPane.camerachangeframe = 0; // don't refuse it
4388
+ Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent());
4389
+ }
41234390 // Globals.theRenderer.renderCamera = Globals.theRenderer.manipCamera;
41244391 // Globals.theRenderer.eyeCamera = Globals.theRenderer.manipCamera;
41254392 }
....@@ -4132,6 +4399,26 @@
41324399
41334400 freezemodel = false;
41344401 }
4402
+
4403
+ void refreshContents(boolean cp)
4404
+ {
4405
+ if (!Globals.MOUSEDRAGGED)
4406
+ {
4407
+ objEditor.ClearInfo(); // .GetMaterial());
4408
+
4409
+ for (int i=0; i < group.selection.Size(); i++)
4410
+ {
4411
+ Object3D child = (Object3D) group.selection.get(i);
4412
+
4413
+ objEditor.AddInfo(child, this, true);
4414
+ System.err.println("info : " + child.GetPath());
4415
+ }
4416
+
4417
+ objEditor.SetText(); // jan 2014
4418
+ }
4419
+
4420
+ super.refreshContents(cp);
4421
+ }
41354422
41364423 void linkSomething(Object3D thing)
41374424 {
....@@ -4203,16 +4490,18 @@
42034490 {
42044491 if (group.selection.isEmpty())
42054492 return;
4206
- GrafreeD.clipboardIsTempGroup = false;
4493
+
4494
+ Grafreed.clipboardIsTempGroup = false;
42074495 Composite tGroup = null;
42084496 if (group.selection.size() > 0) // 1)
42094497 {
42104498 tGroup = new cGroup();
4211
- GrafreeD.clipboardIsTempGroup = true;
4499
+ Grafreed.clipboardIsTempGroup = true;
42124500 }
42134501
42144502 if (cut)
42154503 {
4504
+ Save();
42164505 //int indices[] = jList.getSelectedIndices();
42174506 //for (int i = indices.length - 1; i >= 0; i--)
42184507 //jList.remove(indices[i]);
....@@ -4248,16 +4537,16 @@
42484537 //System.out.println("cut " + child);
42494538 //System.out.println("parent = " + child.parent);
42504539 // tmp.addChild(child);
4251
- if (GrafreeD.clipboardIsTempGroup)
4540
+ if (Grafreed.clipboardIsTempGroup)
42524541 tGroup.add/*Child*/(tmp);
42534542 else
4254
- GrafreeD.clipboard = tmp;
4543
+ Grafreed.clipboard = tmp;
42554544 }
42564545 else
4257
- if (GrafreeD.clipboardIsTempGroup)
4546
+ if (Grafreed.clipboardIsTempGroup)
42584547 tGroup.add/*Child*/(child);
42594548 else
4260
- GrafreeD.clipboard = child;
4549
+ Grafreed.clipboard = child;
42614550 }
42624551
42634552 //ResetModel();
....@@ -4289,21 +4578,23 @@
42894578 //System.out.println("cut " + elem);
42904579 //System.out.println("parent = " + elem.parent);
42914580 // tmp.addChild(elem);
4292
- if (GrafreeD.clipboardIsTempGroup)
4581
+ if (Grafreed.clipboardIsTempGroup)
42934582 tGroup.add/*Child*/(tmp);
42944583 else
4295
- GrafreeD.clipboard = tmp;
4584
+ Grafreed.clipboard = tmp;
42964585 }
42974586 else
4298
- if (GrafreeD.clipboardIsTempGroup)
4587
+ if (Grafreed.clipboardIsTempGroup)
42994588 tGroup.add/*Child*/(child);
43004589 else
4301
- GrafreeD.clipboard = child;
4590
+ Grafreed.clipboard = child;
43024591 }
43034592
43044593 }
4305
- if (GrafreeD.clipboardIsTempGroup)
4306
- GrafreeD.clipboard = tGroup;
4594
+
4595
+ if (Grafreed.clipboardIsTempGroup)
4596
+ Grafreed.clipboard = tGroup;
4597
+
43074598 if (cut)
43084599 {
43094600 ResetModel();
....@@ -4317,7 +4608,7 @@
43174608 // return;
43184609 boolean first = true;
43194610
4320
- if (GrafreeD.clipboardIsTempGroup)
4611
+ if (Grafreed.clipboardIsTempGroup)
43214612 {
43224613 Composite temp;
43234614
....@@ -4328,7 +4619,7 @@
43284619 temp = (Composite)Applet3D.clipboard.deepCopy();
43294620 */
43304621 Object3D elem;
4331
- for (Enumeration e = /*temp.children*/GrafreeD.clipboard.elements(); e.hasMoreElements();) // objList.add(copy.name))
4622
+ for (Enumeration e = /*temp.children*/Grafreed.clipboard.elements(); e.hasMoreElements();) // objList.add(copy.name))
43324623 {
43334624 Object3D child = (Object3D)e.nextElement();
43344625
....@@ -4362,21 +4653,21 @@
43624653 //Object3D cb = Applet3D.clipboard;
43634654 //temp.addChild(cb);
43644655 //makeSomething((expand?temp.copyExpand():temp.deepCopy()).get(0));
4365
- assert(GrafreeD.clipboard.parent == null);
4366
- Object3D /*Composite*/ keepparent = GrafreeD.clipboard.get(0).parent;
4367
- GrafreeD.clipboard.get(0).parent = null; // Avoid copy?
4368
- if (LA.isIdentity(GrafreeD.clipboard.toParent))
4369
- makeSomething(expand?GrafreeD.clipboard.get(0).copyExpand():GrafreeD.clipboard.get(0).deepCopy());
4656
+ assert(Grafreed.clipboard.parent == null);
4657
+ Object3D /*Composite*/ keepparent = Grafreed.clipboard.get(0).parent;
4658
+ Grafreed.clipboard.get(0).parent = null; // Avoid copy?
4659
+ if (LA.isIdentity(Grafreed.clipboard.toParent))
4660
+ makeSomething(expand?Grafreed.clipboard.get(0).copyExpand():Grafreed.clipboard.get(0).deepCopy());
43704661 else
4371
- makeSomething(expand?GrafreeD.clipboard.copyExpand():GrafreeD.clipboard.deepCopy());
4372
- GrafreeD.clipboard.get(0).parent = keepparent;
4662
+ makeSomething(expand?Grafreed.clipboard.copyExpand():Grafreed.clipboard.deepCopy());
4663
+ Grafreed.clipboard.get(0).parent = keepparent;
43734664 }
43744665
43754666 ResetModel();
43764667 refreshContents();
43774668 }
43784669
4379
- void pasteInto(boolean copyit)
4670
+ void pasteInto(boolean copyit, boolean clone)
43804671 {
43814672 // if (GrafreeD.clipboard == null)
43824673 // return;
....@@ -4405,15 +4696,22 @@
44054696 if (copyit)
44064697 {
44074698 // paste(false);
4408
- CloneClipboard(false); // sept 2014
4699
+ if (clone)
4700
+ {
4701
+ CloneClipboard(false); // sept 2014
4702
+ }
4703
+ else
4704
+ {
4705
+ paste(false);
4706
+ }
44094707 }
44104708 else
44114709 {
44124710 boolean first = true;
44134711
4414
- if (GrafreeD.clipboardIsTempGroup)
4712
+ if (Grafreed.clipboardIsTempGroup)
44154713 {
4416
- Composite temp = (Composite)GrafreeD.clipboard;
4714
+ Composite temp = (Composite)Grafreed.clipboard;
44174715 Object3D copy;
44184716 for (Enumeration e = temp.children.elements(); e.hasMoreElements();)
44194717 {
....@@ -4423,7 +4721,7 @@
44234721 }
44244722 } else
44254723 {
4426
- linkSomething(GrafreeD.clipboard); //.get(0));
4724
+ linkSomething(Grafreed.clipboard); //.get(0));
44274725 }
44284726 }
44294727 }
....@@ -4828,21 +5126,6 @@
48285126 }
48295127 */
48305128
4831
- void ImportGFD()
4832
- {
4833
- FileDialog browser = new FileDialog(objEditor.frame, "Import GrafreeD", FileDialog.LOAD);
4834
- browser.show();
4835
- String filename = browser.getFile();
4836
- if (filename != null && filename.length() > 0)
4837
- {
4838
- String fullname = browser.getDirectory() + filename;
4839
-
4840
- //Object3D readobj =
4841
- objEditor.ReadGFD(fullname, objEditor);
4842
- //makeSomething(readobj);
4843
- }
4844
- }
4845
-
48465129 /*
48475130 public void Callback(Object obj)
48485131 {
....@@ -4866,26 +5149,9 @@
48665149 }
48675150 */
48685151
4869
- void ImportVRMLX3D()
4870
- {
4871
- if (GrafreeD.standAlone)
4872
- {
4873
- /**/
4874
- FileDialog browser = new FileDialog(objEditor.frame, "Import VRML/X3D", FileDialog.LOAD);
4875
- browser.show();
4876
- String filename = browser.getFile();
4877
- if (filename != null && filename.length() > 0)
4878
- {
4879
- String fullname = browser.getDirectory() + filename;
4880
- LoadVRMLX3D(fullname);
4881
- }
4882
- /**/
4883
- }
4884
- }
4885
-
48865152 String GetFile(String dialogName)
48875153 {
4888
- if (GrafreeD.standAlone)
5154
+ if (Grafreed.standAlone)
48895155 {
48905156 FileDialog browser = new FileDialog(objEditor.frame, dialogName, FileDialog.LOAD);
48915157 browser.show();
....@@ -4949,10 +5215,15 @@
49495215 cButton flashSelectionButton;
49505216 cButton editButton;
49515217 cButton uneditButton;
5218
+ JCheckBox allParamsButton;
49525219 cButton clearpanelButton;
4953
- cButton allParamsButton;
49545220 cButton unselectButton;
49555221
5222
+ cButton saveButton;
5223
+ cButton undoButton;
5224
+ cButton redoButton;
5225
+ cButton oneStepButton;
5226
+
49565227 cButton screenfitButton;
49575228 cButton screenfitpointButton;
49585229 cButton snapobjectButton;
....@@ -4983,6 +5254,8 @@
49835254 private MenuItem lookFromItem;
49845255 private MenuItem switchItem;
49855256 private MenuItem cutItem;
5257
+ private MenuItem undoItem;
5258
+ private MenuItem redoItem;
49865259 private MenuItem duplicateItem;
49875260 private MenuItem cloneItem;
49885261 private MenuItem cloneSupportItem;
....@@ -4996,7 +5269,7 @@
49965269 private MenuItem linkverticesItem;
49975270 private MenuItem relinkverticesItem;
49985271 private MenuItem setMasterItem;
4999
- private MenuItem resetMeshItem;
5272
+ private MenuItem resetAllItem;
50005273 private MenuItem stepAllItem;
50015274 private MenuItem revertMeshItem;
50025275 private MenuItem poseMeshItem;
....@@ -5007,6 +5280,7 @@
50075280 private MenuItem mergeGeometriesItem;
50085281 private MenuItem copyItem;
50095282 private MenuItem pasteItem;
5283
+ private MenuItem pasteIntoItem;
50105284 private MenuItem pasteLinkItem;
50115285 private MenuItem pasteCloneItem;
50125286 private MenuItem pasteExpandItem;
....@@ -5045,6 +5319,10 @@
50455319 private MenuItem showleavesItem;
50465320 private MenuItem markleavesItem;
50475321 private MenuItem unmarkleavesItem;
5322
+ private MenuItem rewindleavesItem;
5323
+ private MenuItem unrewindleavesItem;
5324
+ private MenuItem randomleavesItem;
5325
+ private MenuItem unrandomleavesItem;
50485326
50495327 private MenuItem flipVItem;
50505328 private MenuItem unflipVItem;
....@@ -5056,8 +5334,10 @@
50565334 private MenuItem panoTexturesItem;
50575335
50585336 private MenuItem resetCentroidItem;
5059
- private MenuItem transformgeometryItem;
5337
+ private MenuItem resetCentroidXZItem;
50605338 private MenuItem resetTransformItem;
5339
+ private MenuItem transformGeometryItem;
5340
+ private MenuItem transformChildrenItem;
50615341 private MenuItem hideItem;
50625342 private MenuItem grabItem;
50635343 private MenuItem backItem;
....@@ -5104,7 +5384,7 @@
51045384 private MenuItem blobItem;
51055385 private MenuItem latheItem;
51065386 private MenuItem bezierItem;
5107
- private MenuItem checkerItem;
5387
+ private MenuItem overlayItem;
51085388 private MenuItem meshItem;
51095389 // private MenuItem meshGroupItem;
51105390 private MenuItem springItem;
....@@ -5126,11 +5406,6 @@
51265406 private MenuItem doubleItem;
51275407 private MenuItem tripleItem;
51285408
5129
- private MenuItem importGFDItem;
5130
- private MenuItem importVRMLX3DItem;
5131
- private MenuItem import3DSItem;
5132
- private MenuItem importOBJItem;
5133
-
51345409 private MenuItem computeAOItem;
51355410 private MenuItem recompileItem;
51365411 private MenuItem editScriptItem;
....@@ -5140,4 +5415,8 @@
51405415 private MenuItem analyzeItem;
51415416 private MenuItem dumpItem;
51425417 //boolean freezemodel = false;
5418
+
5419
+ Menu cameraMenu;
5420
+ MenuItem editCameraItem;
5421
+ MenuItem revertCameraItem;
51435422 }