Normand Briere
2019-05-13 f924d3e00db476c06f55f3d5aaef307e17575340
GroupEditor.java
....@@ -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
....@@ -150,6 +150,8 @@
150150
151151 void SetupMenu2(ObjEditor oe)
152152 {
153
+ if (Globals.ADVANCED)
154
+ {
153155 oe.cameraMenu.add(lookAtItem = new MenuItem("Set Interest"));
154156 //cameraMenu.add(lookFromItem = new MenuItem("Look From Selection"));
155157 //cameraMenu.add(switchItem = new MenuItem("Reverse View"));
....@@ -161,17 +163,21 @@
161163 lookAtItem.addActionListener(this);
162164 //lookFromItem.addActinoListener(this);
163165 //switchItem.addActionListener(this);
166
+ }
167
+
164168 Menu menu;
165169 oe.menuBar.add(menu = new Menu("Edit"));
166170 //editItem = menu.add(new MenuItem("Edit"));
167171 //editItem.addActionListener(this);
168172 duplicateItem = menu.add(new MenuItem("Duplicate"));
169173 duplicateItem.addActionListener(this);
170
- menu.add("-");
171174 cloneItem = menu.add(new MenuItem("Clone"));
172175 cloneItem.addActionListener(this);
176
+ if (Globals.ADVANCED)
177
+ {
173178 cloneSupportItem = menu.add(new MenuItem("Clone (+supports)"));
174179 cloneSupportItem.addActionListener(this);
180
+ }
175181 menu.add("-");
176182 cutItem = menu.add(new MenuItem("Cut"));
177183 cutItem.addActionListener(this);
....@@ -179,18 +185,31 @@
179185 copyItem.addActionListener(this);
180186 pasteItem = menu.add(new MenuItem("Paste"));
181187 pasteItem.addActionListener(this);
188
+ menu.add("-");
189
+
190
+ menu.add("-");
191
+ pasteIntoItem = menu.add(new MenuItem("Paste into"));
192
+ pasteIntoItem.addActionListener(this);
182193 pasteLinkItem = menu.add(new MenuItem("Paste link"));
183194 pasteLinkItem.addActionListener(this);
184195 pasteCloneItem = menu.add(new MenuItem("Paste clone"));
185196 pasteCloneItem.addActionListener(this);
186197 // pasteExpandItem = menu.add(new MenuItem("Paste expand"));
187198 // pasteExpandItem.addActionListener(this);
199
+ menu.add("-");
188200 clearItem = menu.add(new MenuItem("Clear"));
189201 clearItem.addActionListener(this);
202
+
203
+ if (Globals.ADVANCED)
204
+ {
205
+ // Deletes the cameras...
190206 clearAllItem = menu.add(new MenuItem("Clear All"));
191207 clearAllItem.addActionListener(this);
208
+ }
192209
193210 oe.menuBar.add(menu = new Menu("Setting"));
211
+ if (Globals.ADVANCED)
212
+ {
194213 resetMeshItem = menu.add(new MenuItem("Reset All"));
195214 resetMeshItem.addActionListener(this);
196215 stepAllItem = menu.add(new MenuItem("Step All"));
....@@ -200,6 +219,7 @@
200219 resetreferencesItem = menu.add(new MenuItem("Reset Mesh References"));
201220 resetreferencesItem.addActionListener(this);
202221 menu.add("-");
222
+ }
203223 overwriteGeoItem = menu.add(new MenuItem("Overwrite Geometry"));
204224 overwriteGeoItem.addActionListener(this);
205225 overwriteMatItem = menu.add(new MenuItem("Overwrite Material"));
....@@ -211,19 +231,26 @@
211231 overwriteUVItem = menu.add(new MenuItem("Overwrite UV"));
212232 overwriteUVItem.addActionListener(this);
213233 menu.add("-");
234
+ if (Globals.ADVANCED)
235
+ {
214236 generateMeshItem = menu.add(new MenuItem("Generate Meshes"));
215237 generateMeshItem.addActionListener(this);
216238 poseMeshItem = menu.add(new MenuItem("Set Pose Meshes"));
217239 poseMeshItem.addActionListener(this);
218240 menu.add("-");
241
+ }
219242 resetsupportItem = menu.add(new MenuItem("Reset support"));
220243 resetsupportItem.addActionListener(this);
221244 linkverticesItem = menu.add(new MenuItem("Link to Support"));
222245 linkverticesItem.addActionListener(this);
223246 relinkverticesItem = menu.add(new MenuItem("Re-link to Support"));
224247 relinkverticesItem.addActionListener(this);
248
+
249
+ if (Globals.ADVANCED)
250
+ {
225251 setMasterItem = menu.add(new MenuItem("Set Master Mesh"));
226252 setMasterItem.addActionListener(this);
253
+ }
227254
228255 oe.menuBar.add(menu = new Menu("Group"));
229256 grabItem = menu.add(new MenuItem("Grab"));
....@@ -234,7 +261,7 @@
234261 frontItem.addActionListener(this);
235262 compositeItem = menu.add(new MenuItem("Composite"));
236263 compositeItem.addActionListener(this);
237
- hideItem = menu.add(new MenuItem("Hide"));
264
+ hideItem = menu.add(new MenuItem("Hidden Group"));
238265 hideItem.addActionListener(this);
239266 ungroupItem = menu.add(new MenuItem("Ungroup"));
240267 ungroupItem.addActionListener(this);
....@@ -245,16 +272,21 @@
245272 switchGeoItem.addActionListener(this);
246273 switchTransfoItem = menu.add(new MenuItem("Switch Transform"));
247274 switchTransfoItem.addActionListener(this);
275
+ morphItem = menu.add(new MenuItem("Morph Group"));
276
+ morphItem.addActionListener(this);
277
+
278
+ if (Globals.ADVANCED)
279
+ {
280
+ menu.add("-");
248281 physicsItem = menu.add(new MenuItem("Physics"));
249282 physicsItem.addActionListener(this);
250283 frameselectorItem = menu.add(new MenuItem("Frame Selector"));
251284 frameselectorItem.addActionListener(this);
252
- morphItem = menu.add(new MenuItem("Morph"));
253
- morphItem.addActionListener(this);
254285 scriptNodeItem = menu.add(new MenuItem("Script Node"));
255286 scriptNodeItem.addActionListener(this);
256287 cameraItem = menu.add(new MenuItem("Camera"));
257288 cameraItem.addActionListener(this);
289
+ }
258290
259291 oe.menuBar.add(menu = new Menu("Object"));
260292 textureItem = menu.add(new MenuItem("Texture"));
....@@ -269,21 +301,29 @@
269301 shadowYItem.addActionListener(this);
270302 shadowZItem = menu.add(new MenuItem("Shadow Z"));
271303 shadowZItem.addActionListener(this);
304
+ if (Globals.ADVANCED)
305
+ {
306
+ menu.add("-");
272307 linkerItem = menu.add(new MenuItem("Linker"));
273308 linkerItem.addActionListener(this);
274
- templateItem = menu.add(new MenuItem("Template"));
275
- templateItem.addActionListener(this);
276309 attributeItem = menu.add(new MenuItem("Attribute"));
277310 attributeItem.addActionListener(this);
311
+ templateItem = menu.add(new MenuItem("Template"));
312
+ templateItem.addActionListener(this);
278313 pointflowItem = menu.add(new MenuItem("Point Flow"));
279314 pointflowItem.addActionListener(this);
315
+ }
280316 menu.add("-");
281317 resetTransformItem = menu.add(new MenuItem("Reset Transform"));
282318 resetTransformItem.addActionListener(this);
283319 resetCentroidItem = menu.add(new MenuItem("Reset Centroid"));
284320 resetCentroidItem.addActionListener(this);
285
- transformgeometryItem = menu.add(new MenuItem("Transform Geometry"));
286
- transformgeometryItem.addActionListener(this);
321
+ resetCentroidXZItem = menu.add(new MenuItem("Reset Centroid XY"));
322
+ resetCentroidXZItem.addActionListener(this);
323
+ transformGeometryItem = menu.add(new MenuItem("Transform Geometry"));
324
+ transformGeometryItem.addActionListener(this);
325
+ transformChildrenItem = menu.add(new MenuItem("Transform Children"));
326
+ transformChildrenItem.addActionListener(this);
287327
288328 oe.menuBar.add(menu = new Menu("Geometry"));
289329 genUVItem = menu.add(new MenuItem("Generate UV"));
....@@ -294,8 +334,11 @@
294334 genNormalsCADItem.addActionListener(this);
295335 genNormalsMESHItem = menu.add(new MenuItem("Mesh Normals"));
296336 genNormalsMESHItem.addActionListener(this);
337
+ if (Globals.ADVANCED)
338
+ {
297339 genNormalsMINEItem = menu.add(new MenuItem("My Normals"));
298340 genNormalsMINEItem.addActionListener(this);
341
+ }
299342 stripifyItem = menu.add(new MenuItem("Stripify"));
300343 stripifyItem.addActionListener(this);
301344 unstripifyItem = menu.add(new MenuItem("Unstripify"));
....@@ -317,10 +360,14 @@
317360 reduce34MeshItem.addActionListener(this);
318361 increaseMeshItem = menu.add(new MenuItem("Increase mesh"));
319362 increaseMeshItem.addActionListener(this);
320
- smoothMeshItem = menu.add(new MenuItem("Smooth mesh"));
321
- smoothMeshItem.addActionListener(this);
322363 clipMeshItem = menu.add(new MenuItem("Clip mesh"));
323364 clipMeshItem.addActionListener(this);
365
+
366
+ if (Globals.ADVANCED)
367
+ {
368
+ smoothMeshItem = menu.add(new MenuItem("Smooth mesh"));
369
+ smoothMeshItem.addActionListener(this);
370
+ }
324371
325372 oe.menuBar.add(menu = new Menu("Attributes"));
326373 clearMaterialsItem = menu.add(new MenuItem("Clear Materials"));
....@@ -330,10 +377,13 @@
330377 liveleavesItem.addActionListener(this);
331378 unliveleavesItem = menu.add(new MenuItem("Unlive Leaves"));
332379 unliveleavesItem.addActionListener(this);
380
+ if (Globals.ADVANCED)
381
+ {
333382 supportleavesItem = menu.add(new MenuItem("Support Leaves"));
334383 supportleavesItem.addActionListener(this);
335384 unsupportleavesItem = menu.add(new MenuItem("Unsupport Leaves"));
336385 unsupportleavesItem.addActionListener(this);
386
+ }
337387 hideleavesItem = menu.add(new MenuItem("Hide Leaves"));
338388 hideleavesItem.addActionListener(this);
339389 showleavesItem = menu.add(new MenuItem("Show Leaves"));
....@@ -377,28 +427,34 @@
377427 sortbynameItem = menu.add(new MenuItem("Sort by name"));
378428 sortbynameItem.addActionListener(this);
379429 menu.add("-");
430
+ shareGeometriesItem = menu.add(new MenuItem("Share Geometries"));
431
+ shareGeometriesItem.addActionListener(this);
432
+ mergeGeometriesItem = menu.add(new MenuItem("Merge Geometries"));
433
+ mergeGeometriesItem.addActionListener(this);
434
+ if (Globals.ADVANCED)
435
+ {
436
+ // Pretty much the same as duplicate and clone.
380437 extractGeometriesItem = menu.add(new MenuItem("Link Geometry"));
381438 extractGeometriesItem.addActionListener(this);
382439 cloneGeometriesItem = menu.add(new MenuItem("Clone Geometry"));
383440 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);
441
+ }
388442
389443 oe.menuBar.add(menu = new Menu("Insert"));
390444 buildCreateMenu(menu);
391445
392
-
393446 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..."));
447
+ importOBJItem = menu.add(new MenuItem("OBJ file..."));
399448 importOBJItem.addActionListener(this);
400
- import3DSItem = menu.add(new MenuItem("3DS Object..."));
449
+ menu.add("-");
450
+ import3DSItem = menu.add(new MenuItem("3DS file..."));
401451 import3DSItem.addActionListener(this);
452
+ menu.add("-");
453
+ importVRMLX3DItem = menu.add(new MenuItem("VRML/X3D file..."));
454
+ importVRMLX3DItem.addActionListener(this);
455
+ menu.add("-");
456
+ importGFDItem = menu.add(new MenuItem("GrafreeD file..."));
457
+ importGFDItem.addActionListener(this);
402458
403459 oe.menuBar.add(menu = new Menu("Tools"));
404460 buildToolsMenu(menu);
....@@ -440,6 +496,10 @@
440496 liveCB.setToolTipText("Enabled animation");
441497 liveCB.addItemListener(this);
442498
499
+ oe.toolbarPanel.add(oneStepButton = new cButton("Step", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
500
+ oneStepButton.setToolTipText("Animate one step forward");
501
+ oneStepButton.addActionListener(this);
502
+
443503 oe.toolbarPanel.add(fastCB = new cCheckBox("Fast", CameraPane.FAST)); //, constraints);
444504 fastCB.setToolTipText("Fast mode");
445505 fastCB.addItemListener(this);
....@@ -448,7 +508,7 @@
448508 trackCB.setToolTipText("Enable tracking");
449509 trackCB.addItemListener(this);
450510
451
- oe.toolbarPanel.add(screenfitButton = new cButton("@", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
511
+ oe.toolbarPanel.add(screenfitButton = new cButton("@", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
452512 screenfitButton.setToolTipText("Screen fit");
453513 screenfitButton.addActionListener(this);
454514
....@@ -457,39 +517,39 @@
457517
458518 if (Globals.ADVANCED)
459519 {
460
- oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
520
+ oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
461521 snapobjectButton.addActionListener(this);
462522 snapobjectButton.setToolTipText("Snap Object");
463523 }
464524
465
- oe.toolbarPanel.add(flashSelectionButton = new cButton("?", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
525
+ oe.toolbarPanel.add(flashSelectionButton = new cButton("?", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
466526 flashSelectionButton.setToolTipText("Show selection");
467527 flashSelectionButton.addActionListener(this);
468528
469529 oe.toolbarPanel.add(new JSeparator(SwingConstants.VERTICAL));
470530
471
- oe.toolbarPanel.add(twoButton = new cButton("|+|", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
531
+ oe.toolbarPanel.add(twoButton = new cButton("|+|", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
472532 twoButton.setToolTipText("Show center view only");
473533 twoButton.addActionListener(this);
474
- oe.toolbarPanel.add(fourButton = new cButton("+||", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
534
+ oe.toolbarPanel.add(fourButton = new cButton("+||", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
475535 fourButton.addActionListener(this);
476536 fourButton.setToolTipText("Show left panel only");
477
- oe.toolbarPanel.add(sixButton = new cButton("+|+|", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
537
+ oe.toolbarPanel.add(sixButton = new cButton("+|+|", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
478538 sixButton.setToolTipText("2-column layout left");
479539 sixButton.addActionListener(this);
480
- oe.toolbarPanel.add(threeButton = new cButton("|+|+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
540
+ oe.toolbarPanel.add(threeButton = new cButton("|+|+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
481541 threeButton.setToolTipText("2-column layout right");
482542 threeButton.addActionListener(this);
483
- oe.toolbarPanel.add(sevenButton = new cButton("+|+|+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
543
+ oe.toolbarPanel.add(sevenButton = new cButton("+|+|+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
484544 sevenButton.setToolTipText("3-column layout");
485545 sevenButton.addActionListener(this);
486546 //
487547
488
- oe.toolbarPanel.add(rootButton = new cButton("o o o", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
548
+ oe.toolbarPanel.add(rootButton = new cButton("o o o", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
489549 rootButton.setToolTipText("Edit selection in new tab");
490550 rootButton.addActionListener(this);
491551
492
- oe.toolbarPanel.add(closeButton = new cButton("X", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
552
+ oe.toolbarPanel.add(closeButton = new cButton("X", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
493553 closeButton.setToolTipText("Close tab");
494554 closeButton.addActionListener(this);
495555 //oe.treePanel.add(clearButton = new cButton("X"), oe.aConstraints);
....@@ -497,11 +557,11 @@
497557
498558 cGridBag commandsPanel = new cGridBag();
499559
500
- commandsPanel.add(editButton = new cButton("+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
560
+ commandsPanel.add(editButton = new cButton("+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
501561 editButton.setToolTipText("Edit selection");
502562 editButton.addActionListener(this);
503563
504
- commandsPanel.add(uneditButton = new cButton("-", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
564
+ commandsPanel.add(uneditButton = new cButton("-", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
505565 uneditButton.setToolTipText("Unedit selection");
506566 uneditButton.addActionListener(this);
507567
....@@ -509,11 +569,11 @@
509569 allParamsButton.setToolTipText("Edit all params");
510570 allParamsButton.addActionListener(this);
511571
512
- commandsPanel.add(clearPanelButton = new cButton("C", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
572
+ commandsPanel.add(clearPanelButton = new cButton("C", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
513573 clearPanelButton.setToolTipText("Clear edit panel");
514574 clearPanelButton.addActionListener(this);
515575
516
- commandsPanel.add(unselectButton = new cButton("U", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
576
+ commandsPanel.add(unselectButton = new cButton("U", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
517577 unselectButton.setToolTipText("Unselect");
518578 unselectButton.addActionListener(this);
519579
....@@ -588,8 +648,18 @@
588648
589649 void AddOptions(cGridBag panel) //, GridBagConstraints constraints)
590650 {
651
+ panel.add(boxCB = new cCheckBox("Box", CameraPane.BOXMODE)); //, constraints);
652
+ boxCB.setToolTipText("Display bounding boxes");
653
+ boxCB.addItemListener(this);
654
+
655
+ panel.add(zoomBoxCB = new cCheckBox("Zoom", CameraPane.ZOOMBOXMODE)); //, constraints);
656
+ zoomBoxCB.setToolTipText("Display bounding boxes when moving the wheel");
657
+ zoomBoxCB.addItemListener(this);
658
+
659
+ if (true) // Globals.ADVANCED)
660
+ {
591661 panel.add(supportCB = new cCheckBox("Support", CameraPane.SUPPORT)); //, constraints);
592
- supportCB.setToolTipText("Enabled rigging");
662
+ supportCB.setToolTipText("Enable rigging");
593663 supportCB.addItemListener(this);
594664
595665 // panel.add(localCB = new cCheckBox("Local", CameraPane.LOCALTRANSFORM), constraints);
....@@ -607,14 +677,6 @@
607677 slowCB.setToolTipText("Smooth interpolation");
608678 slowCB.addItemListener(this);
609679
610
- panel.add(boxCB = new cCheckBox("Box", CameraPane.BOXMODE)); //, constraints);
611
- boxCB.setToolTipText("Display bounding boxes");
612
- boxCB.addItemListener(this);
613
-
614
- panel.add(zoomBoxCB = new cCheckBox("Zoom", CameraPane.ZOOMBOXMODE)); //, constraints);
615
- zoomBoxCB.setToolTipText("Display bounding boxes when moving the wheel");
616
- zoomBoxCB.addItemListener(this);
617
-
618680 // constraints.gridy += 1;
619681 // panel.add(speakerMocapCB = new cCheckBox("Mocap", CameraPane.SPEAKERMOCAP), constraints);
620682 // speakerMocapCB.addItemListener(this);
....@@ -645,6 +707,8 @@
645707 panel.add(lookAtCB = new cCheckBox("Target", CameraPane.LOOKAT)); //, constraints);
646708 lookAtCB.setToolTipText("Look-at target");
647709 lookAtCB.addItemListener(this);
710
+
711
+ }
648712
649713 cGridBag fill = new cGridBag();
650714
....@@ -881,7 +945,9 @@
881945 // objEditor.DropFile((java.io.File[]) object, true);
882946 // return;
883947 // }
884
- if (string.charAt(0) == '/')
948
+
949
+ // File path for Mac and Windows
950
+ if (string.charAt(0) == '/' || string.charAt(1) == ':')
885951 {
886952 // file(s)
887953 String[] names = string.split("\n");
....@@ -908,7 +974,7 @@
908974
909975 flashIt = false;
910976 CameraPane pane = (CameraPane) target;
911
- pane.clickStart(objEditor.location.x, objEditor.location.y, 0);
977
+ pane.clickStart(objEditor.location.x, objEditor.location.y, 0, 0);
912978 pane.clickEnd(objEditor.location.x, objEditor.location.y, 0, true);
913979
914980 if (group.selection.size() == 1)
....@@ -935,11 +1001,11 @@
9351001 {
9361002 loadClipboard(true);
9371003 objEditor.jTree.setSelectionPath(destinationPath);
938
- pasteInto(false);
1004
+ pasteInto(false, false);
9391005 } else {
9401006 loadClipboard(false);
9411007 objEditor.jTree.setSelectionPath(destinationPath);
942
- pasteInto(false); // true); // ???
1008
+ pasteInto(false, false); // true); // ???
9431009 }
9441010 }
9451011 public void dropActionChanged(DropTargetDragEvent dtde)
....@@ -1061,27 +1127,33 @@
10611127 kleinItem.addActionListener(this);
10621128 particleItem = menu.add(new MenuItem("Particle system"));
10631129 particleItem.addActionListener(this);
1130
+ if (Globals.ADVANCED)
1131
+ {
10641132 ragdollItem = menu.add(new MenuItem("Rag Walk"));
10651133 ragdollItem.addActionListener(this);
10661134 ragdoll2Item = menu.add(new MenuItem("Rag Fall"));
10671135 ragdoll2Item.addActionListener(this);
1136
+ }
10681137 menu.add("-");
1069
- meshItem = menu.add(new MenuItem("Mesh"));
1138
+ meshItem = menu.add(new MenuItem("Dynamic Mesh"));
10701139 meshItem.addActionListener(this);
10711140 // meshGroupItem = menu.add(new MenuItem("Mesh Group"));
10721141 // meshGroupItem.addActionListener(this);
1142
+ if (Globals.ADVANCED)
1143
+ {
10731144 springItem = menu.add(new MenuItem("Spring"));
10741145 springItem.addActionListener(this);
10751146 flagItem = menu.add(new MenuItem("Flag"));
10761147 flagItem.addActionListener(this);
1077
- bezierItem = menu.add(new MenuItem("Patch"));
1078
- bezierItem.addActionListener(this);
1079
- checkerItem = menu.add(new MenuItem("Checker"));
1080
- checkerItem.addActionListener(this);
10811148 blobItem = menu.add(new MenuItem("Blob"));
10821149 blobItem.addActionListener(this);
10831150 latheItem = menu.add(new MenuItem("Lathe"));
10841151 latheItem.addActionListener(this);
1152
+ }
1153
+ bezierItem = menu.add(new MenuItem("Bezier Patch"));
1154
+ bezierItem.addActionListener(this);
1155
+ overlayItem = menu.add(new MenuItem("Overlay"));
1156
+ overlayItem.addActionListener(this);
10851157 lightItem = menu.add(new MenuItem("Light"));
10861158 lightItem.addActionListener(this);
10871159 menu.add("-");
....@@ -1091,8 +1163,11 @@
10911163 loopItem.addActionListener(this);
10921164 doubleItem = menu.add(new MenuItem("Fork"));
10931165 doubleItem.addActionListener(this);
1166
+ if (Globals.ADVANCED)
1167
+ {
10941168 tripleItem = menu.add(new MenuItem("Trident"));
10951169 tripleItem.addActionListener(this);
1170
+ }
10961171 }
10971172
10981173 void buildToolsMenu(Menu menu)
....@@ -1106,19 +1181,21 @@
11061181 parseverticesItem.addActionListener(this);
11071182 textureFieldItem = menu.add(new MenuItem("Texture Field"));
11081183 textureFieldItem.addActionListener(this);
1109
- alignItem = menu.add(new MenuItem("Align"));
1184
+ alignItem = menu.add(new MenuItem("Align Objects"));
11101185 alignItem.addActionListener(this);
1111
- mirrorItem = menu.add(new MenuItem("Mirror Poses"));
1112
- mirrorItem.addActionListener(this);
11131186 reduceMorphItem = menu.add(new MenuItem("Reduce Morphs"));
11141187 reduceMorphItem.addActionListener(this);
11151188 reduce34MorphItem = menu.add(new MenuItem("Reduce Morphs (34)"));
11161189 reduce34MorphItem.addActionListener(this);
1117
-
1190
+ menu.add("-");
11181191 menu.add(computeAOItem = new MenuItem("Compute AO"));
11191192 computeAOItem.addActionListener(this);
1120
- menu.add("-");
11211193
1194
+ if (Globals.ADVANCED)
1195
+ {
1196
+ mirrorItem = menu.add(new MenuItem("Mirror Poses"));
1197
+ mirrorItem.addActionListener(this);
1198
+ menu.add("-");
11221199 menu.add(memoryItem = new MenuItem("Memory Usage"));
11231200 memoryItem.addActionListener(this);
11241201 menu.add(analyzeItem = new MenuItem("Analyze"));
....@@ -1141,6 +1218,7 @@
11411218 menu.add("-");
11421219 menu.add(editScriptItem = new MenuItem("Edit Script..."));
11431220 editScriptItem.addActionListener(this);
1221
+ }
11441222 }
11451223
11461224 void ScreenFit()
....@@ -1469,9 +1547,9 @@
14691547
14701548 void Overwrite(int mask)
14711549 {
1472
- if (/*group.selection.size() == 1 &&*/ GrafreeD.clipboard.size() == 1)
1550
+ if (/*group.selection.size() == 1 &&*/ Grafreed.clipboard.size() == 1)
14731551 {
1474
- Object3D content = GrafreeD.clipboard.get(0);
1552
+ Object3D content = Grafreed.clipboard.get(0);
14751553
14761554 if (content instanceof cGroup && ((cGroup)content).transientlink )
14771555 content = ((cGroup)content).get(0);
....@@ -1642,7 +1720,7 @@
16421720 {
16431721 makeSomething(new BezierSurface());
16441722 } else
1645
- if (source == checkerItem)
1723
+ if (source == overlayItem)
16461724 {
16471725 /*
16481726 Object3D obj = new BezierSurface(5,8);
....@@ -1791,7 +1869,15 @@
17911869 } else
17921870 if (source == importOBJItem)
17931871 {
1794
- objEditor.ImportJME(new com.jmex.model.converters.ObjToJme(), "obj", "Import OBJ");
1872
+ //objEditor.ImportJME(new com.jmex.model.converters.ObjToJme(), "obj", "Import OBJ");
1873
+ FileDialog browser = new FileDialog(frame, "Import OBJ", FileDialog.LOAD);
1874
+ browser.setVisible(true);
1875
+ String filename = browser.getFile();
1876
+ if (filename != null && filename.length() > 0)
1877
+ {
1878
+ String fullname = browser.getDirectory() + filename;
1879
+ makeSomething(ReadOBJ(fullname), true);
1880
+ }
17951881 } else
17961882 if (source == computeAOItem)
17971883 {
....@@ -1811,7 +1897,7 @@
18111897 if (source == invariantsItem)
18121898 {
18131899 System.out.println("Invariants:");
1814
- GrafreeD.grafreeD.universe.invariants();
1900
+ Grafreed.grafreeD.universe.invariants();
18151901 } else
18161902 if (source == memoryItem)
18171903 {
....@@ -1829,6 +1915,11 @@
18291915 if (source == dumpItem)
18301916 {
18311917 DumpObject();
1918
+ } else
1919
+ if (source == oneStepButton)
1920
+ {
1921
+ Globals.ONESTEP = true;
1922
+ cameraView.repaint();
18321923 } else
18331924 if (source == screenfitButton)
18341925 {
....@@ -1881,10 +1972,10 @@
18811972 } else
18821973 if (source == duplicateItem)
18831974 {
1884
- Object3D keep = GrafreeD.clipboard;
1975
+ Object3D keep = Grafreed.clipboard;
18851976 loadClipboard(false);
18861977 paste(false);
1887
- GrafreeD.clipboard = keep;
1978
+ Grafreed.clipboard = keep;
18881979 } else
18891980 if (source == cloneItem)
18901981 {
....@@ -1902,13 +1993,17 @@
19021993 {
19031994 paste(false);
19041995 } else
1996
+ if (source == pasteIntoItem)
1997
+ {
1998
+ pasteInto(true, false);
1999
+ } else
19052000 if (source == pasteLinkItem)
19062001 {
1907
- pasteInto(false);
2002
+ pasteInto(false, false);
19082003 } else
19092004 if (source == pasteCloneItem)
19102005 {
1911
- pasteInto(true);
2006
+ pasteInto(true, true);
19122007 } else
19132008 if (source == pasteExpandItem)
19142009 {
....@@ -2100,9 +2195,9 @@
21002195 // group.selection.get(0).setMasterThis(content); // should be identity
21012196 // refreshContents();
21022197 // }
2103
- if (/*group.selection.size() == 1 &&*/ GrafreeD.clipboard.size() == 1)
2198
+ if (/*group.selection.size() == 1 &&*/ Grafreed.clipboard.size() == 1)
21042199 {
2105
- Object3D content = GrafreeD.clipboard.get(0);
2200
+ Object3D content = Grafreed.clipboard.get(0);
21062201
21072202 if (content instanceof cGroup && ((cGroup)content).transientlink )
21082203 content = ((cGroup)content).get(0);
....@@ -2110,11 +2205,11 @@
21102205 Globals.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.WAIT_CURSOR));
21112206 for (int i=0; i<group.selection.size(); i++)
21122207 {
2113
- boolean random = CameraPane.RANDOM;
2114
- CameraPane.RANDOM = false; // parse all random nodes
2208
+ boolean random = CameraPane.SWITCH;
2209
+ CameraPane.SWITCH = false; // parse all random nodes
21152210 group.selection.get(i).linkVerticesThis(content);
21162211 // group.selection.get(i).setMasterThis(content); // should be identity
2117
- CameraPane.RANDOM = random;
2212
+ CameraPane.SWITCH = random;
21182213 }
21192214 Globals.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.DEFAULT_CURSOR));
21202215 refreshContents();
....@@ -2124,20 +2219,20 @@
21242219 {
21252220 for (int i=0; i<group.selection.size(); i++)
21262221 {
2127
- boolean random = CameraPane.RANDOM;
2128
- CameraPane.RANDOM = false; // parse all random nodes
2222
+ boolean random = CameraPane.SWITCH;
2223
+ CameraPane.SWITCH = false; // parse all random nodes
21292224 group.selection.get(i).linkVerticesThis(null);
2130
- CameraPane.RANDOM = random;
2225
+ CameraPane.SWITCH = random;
21312226 }
21322227
21332228 refreshContents();
21342229 } else
21352230 if (source == relinkverticesItem)
21362231 {
2137
- boolean random = CameraPane.RANDOM;
2138
- CameraPane.RANDOM = false; // parse all random nodes
2232
+ boolean random = CameraPane.SWITCH;
2233
+ CameraPane.SWITCH = false; // parse all random nodes
21392234 group.selection.RelinkToSupport();
2140
- CameraPane.RANDOM = random;
2235
+ CameraPane.SWITCH = random;
21412236
21422237 refreshContents();
21432238 } else
....@@ -2152,9 +2247,9 @@
21522247 } else
21532248 if (source == setMasterItem)
21542249 {
2155
- if (group.selection.size() == 1 && GrafreeD.clipboard.size() == 1)
2250
+ if (group.selection.size() == 1 && Grafreed.clipboard.size() == 1)
21562251 {
2157
- Object3D content = GrafreeD.clipboard.get(0);
2252
+ Object3D content = Grafreed.clipboard.get(0);
21582253
21592254 if (content instanceof cGroup && ((cGroup)content).transientlink )
21602255 content = ((cGroup)content).get(0);
....@@ -2167,9 +2262,9 @@
21672262 {
21682263 if (group.selection.size() == 1)
21692264 {
2170
- if (GrafreeD.clipboard.size() == 1)
2265
+ if (Grafreed.clipboard.size() == 1)
21712266 {
2172
- Object3D content = GrafreeD.clipboard.get(0);
2267
+ Object3D content = Grafreed.clipboard.get(0);
21732268
21742269 if (content instanceof cGroup && ((cGroup)content).transientlink )
21752270 content = ((cGroup)content).get(0);
....@@ -2524,9 +2619,13 @@
25242619 {
25252620 SmoothMesh();
25262621 } else
2527
- if (source == transformgeometryItem)
2622
+ if (source == transformGeometryItem)
25282623 {
25292624 TransformGeometry();
2625
+ } else
2626
+ if (source == transformChildrenItem)
2627
+ {
2628
+ TransformChildren();
25302629 } else
25312630 if (source == resetTransformItem)
25322631 {
....@@ -2534,7 +2633,11 @@
25342633 } else
25352634 if (source == resetCentroidItem)
25362635 {
2537
- ResetCentroid();
2636
+ ResetCentroid(true);
2637
+ } else
2638
+ if (source == resetCentroidXZItem)
2639
+ {
2640
+ ResetCentroid(false);
25382641 } else
25392642 if (source == resetParentItem)
25402643 {
....@@ -3050,6 +3153,28 @@
30503153 refreshContents();
30513154 }
30523155
3156
+ void TransformChildren()
3157
+ {
3158
+ Object3D obj;
3159
+ for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
3160
+ {
3161
+ obj = (Object3D)e.nextElement();
3162
+ obj.KeepTextureMatrices();
3163
+ obj.TransformChildren();
3164
+ obj.RestoreTextureMatrices();
3165
+
3166
+// if (obj.parent == null)
3167
+// {
3168
+// System.out.println("NULL PARENT!");
3169
+// new Exception().printStackTrace();
3170
+// }
3171
+// else
3172
+// TouchTransform(obj);
3173
+// //obj.parent.Touch();
3174
+ }
3175
+
3176
+ refreshContents();
3177
+ }
30533178
30543179 void ResetTransform()
30553180 {
....@@ -3162,7 +3287,7 @@
31623287 refreshContents();
31633288 }
31643289
3165
- void ResetCentroid()
3290
+ void ResetCentroid(boolean full)
31663291 {
31673292 Object3D obj;
31683293 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -3177,12 +3302,16 @@
31773302 LA.matIdentity(Object3D.mat);
31783303 obj.getBounds(minima, maxima, false);
31793304 Object3D.mat[3][0] = -(minima.x + maxima.x)/2;
3180
- Object3D.mat[3][1] = -(minima.y + maxima.y)/2;
3305
+ if (full)
3306
+ Object3D.mat[3][1] = -(minima.y + maxima.y)/2;
31813307 Object3D.mat[3][2] = -(minima.z + maxima.z)/2;
31823308 obj.TransformMesh(Object3D.mat);
3309
+
31833310 Object3D.mat[3][0] = (minima.x + maxima.x)/2;
3184
- Object3D.mat[3][1] = (minima.y + maxima.y)/2;
3311
+ if (full)
3312
+ Object3D.mat[3][1] = (minima.y + maxima.y)/2;
31853313 Object3D.mat[3][2] = (minima.z + maxima.z)/2;
3314
+
31863315 LA.matConcat(Object3D.mat, obj.toParent, obj.toParent);
31873316 //Object3D.mat[3][0] = -Object3D.mat[3][0];
31883317 //Object3D.mat[3][1] = -Object3D.mat[3][1];
....@@ -3248,9 +3377,9 @@
32483377 obj = (Object3D)e.nextElement();
32493378
32503379 System.out.println("Object is: " + obj);
3251
- GrafreeD.AnalyzeObject(obj);
3380
+ Grafreed.AnalyzeObject(obj);
32523381 System.out.println("Boundary rep: " + obj.bRep);
3253
- GrafreeD.AnalyzeObject(obj.bRep);
3382
+ Grafreed.AnalyzeObject(obj.bRep);
32543383
32553384 // System.err.println((size/1024) + " KB is the size of " + obj);
32563385 }
....@@ -3464,8 +3593,8 @@
34643593
34653594 void ParseVertices()
34663595 {
3467
- boolean epsequal = GrafreeD.epsequal;
3468
- GrafreeD.epsequal = true;
3596
+ boolean epsequal = Grafreed.epsequal;
3597
+ Grafreed.epsequal = true;
34693598
34703599 for (int i=0; i<group.selection.size(); i++)
34713600 {
....@@ -3490,7 +3619,7 @@
34903619 LA.matTranslate(g.toParent, temp.x, temp.y, temp.z);
34913620 LA.matTranslate(g.fromParent, -temp.x, -temp.y, -temp.z);
34923621
3493
- g.add(GrafreeD.clipboard);
3622
+ g.add(Grafreed.clipboard);
34943623
34953624 buffer.add(g);
34963625 }
....@@ -3505,7 +3634,7 @@
35053634 makeSomething(buffer, i==group.selection.size()-1);
35063635 }
35073636
3508
- GrafreeD.epsequal = epsequal;
3637
+ Grafreed.epsequal = epsequal;
35093638
35103639 refreshContents();
35113640 }
....@@ -3611,11 +3740,11 @@
36113740
36123741 SwitchNode sn = new SwitchNode(poses, Object3D.GEOMETRY);
36133742
3614
- boolean random = CameraPane.RANDOM;
3615
- CameraPane.RANDOM = false; // parse all random nodes
3743
+ boolean random = CameraPane.SWITCH;
3744
+ CameraPane.SWITCH = false; // parse all random nodes
36163745 lowres.linkVerticesThis(null);
36173746 lowres.linkVerticesThis(sn);
3618
- CameraPane.RANDOM = random;
3747
+ CameraPane.SWITCH = random;
36193748
36203749 System.err.flush();
36213750
....@@ -3655,7 +3784,7 @@
36553784 return;
36563785
36573786 Object3D poses = group.selection.get(0);
3658
- Object3D ref = GrafreeD.clipboard.get(0);
3787
+ Object3D ref = Grafreed.clipboard.get(0);
36593788
36603789 Object3D newgroup = new Object3D("Po:" + poses.name);
36613790
....@@ -3849,9 +3978,9 @@
38493978
38503979 void ClipMesh()
38513980 {
3852
- if (/*group.selection.size() == 1 &&*/ GrafreeD.clipboard.size() == 1)
3981
+ if (/*group.selection.size() == 1 &&*/ Grafreed.clipboard.size() == 1)
38533982 {
3854
- Object3D content = GrafreeD.clipboard.get(0);
3983
+ Object3D content = Grafreed.clipboard.get(0);
38553984
38563985 if (content instanceof cGroup && ((cGroup)content).transientlink )
38573986 content = ((cGroup)content).get(0);
....@@ -3860,7 +3989,7 @@
38603989 // {
38613990 // group.selection.get(i).ClipMesh(GrafreeD.clipboard);
38623991 // }
3863
- group.selection.ClipMesh(GrafreeD.clipboard);
3992
+ group.selection.ClipMesh(Grafreed.clipboard);
38643993 }
38653994 // group.selection.ClipMesh(GrafreeD.clipboard);
38663995 System.out.println("DONE.");
....@@ -4200,12 +4329,12 @@
42004329 {
42014330 if (group.selection.isEmpty())
42024331 return;
4203
- GrafreeD.clipboardIsTempGroup = false;
4332
+ Grafreed.clipboardIsTempGroup = false;
42044333 Composite tGroup = null;
42054334 if (group.selection.size() > 0) // 1)
42064335 {
42074336 tGroup = new cGroup();
4208
- GrafreeD.clipboardIsTempGroup = true;
4337
+ Grafreed.clipboardIsTempGroup = true;
42094338 }
42104339
42114340 if (cut)
....@@ -4245,16 +4374,16 @@
42454374 //System.out.println("cut " + child);
42464375 //System.out.println("parent = " + child.parent);
42474376 // tmp.addChild(child);
4248
- if (GrafreeD.clipboardIsTempGroup)
4377
+ if (Grafreed.clipboardIsTempGroup)
42494378 tGroup.add/*Child*/(tmp);
42504379 else
4251
- GrafreeD.clipboard = tmp;
4380
+ Grafreed.clipboard = tmp;
42524381 }
42534382 else
4254
- if (GrafreeD.clipboardIsTempGroup)
4383
+ if (Grafreed.clipboardIsTempGroup)
42554384 tGroup.add/*Child*/(child);
42564385 else
4257
- GrafreeD.clipboard = child;
4386
+ Grafreed.clipboard = child;
42584387 }
42594388
42604389 //ResetModel();
....@@ -4286,21 +4415,21 @@
42864415 //System.out.println("cut " + elem);
42874416 //System.out.println("parent = " + elem.parent);
42884417 // tmp.addChild(elem);
4289
- if (GrafreeD.clipboardIsTempGroup)
4418
+ if (Grafreed.clipboardIsTempGroup)
42904419 tGroup.add/*Child*/(tmp);
42914420 else
4292
- GrafreeD.clipboard = tmp;
4421
+ Grafreed.clipboard = tmp;
42934422 }
42944423 else
4295
- if (GrafreeD.clipboardIsTempGroup)
4424
+ if (Grafreed.clipboardIsTempGroup)
42964425 tGroup.add/*Child*/(child);
42974426 else
4298
- GrafreeD.clipboard = child;
4427
+ Grafreed.clipboard = child;
42994428 }
43004429
43014430 }
4302
- if (GrafreeD.clipboardIsTempGroup)
4303
- GrafreeD.clipboard = tGroup;
4431
+ if (Grafreed.clipboardIsTempGroup)
4432
+ Grafreed.clipboard = tGroup;
43044433 if (cut)
43054434 {
43064435 ResetModel();
....@@ -4314,7 +4443,7 @@
43144443 // return;
43154444 boolean first = true;
43164445
4317
- if (GrafreeD.clipboardIsTempGroup)
4446
+ if (Grafreed.clipboardIsTempGroup)
43184447 {
43194448 Composite temp;
43204449
....@@ -4325,7 +4454,7 @@
43254454 temp = (Composite)Applet3D.clipboard.deepCopy();
43264455 */
43274456 Object3D elem;
4328
- for (Enumeration e = /*temp.children*/GrafreeD.clipboard.elements(); e.hasMoreElements();) // objList.add(copy.name))
4457
+ for (Enumeration e = /*temp.children*/Grafreed.clipboard.elements(); e.hasMoreElements();) // objList.add(copy.name))
43294458 {
43304459 Object3D child = (Object3D)e.nextElement();
43314460
....@@ -4359,21 +4488,21 @@
43594488 //Object3D cb = Applet3D.clipboard;
43604489 //temp.addChild(cb);
43614490 //makeSomething((expand?temp.copyExpand():temp.deepCopy()).get(0));
4362
- assert(GrafreeD.clipboard.parent == null);
4363
- Object3D /*Composite*/ keepparent = GrafreeD.clipboard.get(0).parent;
4364
- GrafreeD.clipboard.get(0).parent = null; // Avoid copy?
4365
- if (LA.isIdentity(GrafreeD.clipboard.toParent))
4366
- makeSomething(expand?GrafreeD.clipboard.get(0).copyExpand():GrafreeD.clipboard.get(0).deepCopy());
4491
+ assert(Grafreed.clipboard.parent == null);
4492
+ Object3D /*Composite*/ keepparent = Grafreed.clipboard.get(0).parent;
4493
+ Grafreed.clipboard.get(0).parent = null; // Avoid copy?
4494
+ if (LA.isIdentity(Grafreed.clipboard.toParent))
4495
+ makeSomething(expand?Grafreed.clipboard.get(0).copyExpand():Grafreed.clipboard.get(0).deepCopy());
43674496 else
4368
- makeSomething(expand?GrafreeD.clipboard.copyExpand():GrafreeD.clipboard.deepCopy());
4369
- GrafreeD.clipboard.get(0).parent = keepparent;
4497
+ makeSomething(expand?Grafreed.clipboard.copyExpand():Grafreed.clipboard.deepCopy());
4498
+ Grafreed.clipboard.get(0).parent = keepparent;
43704499 }
43714500
43724501 ResetModel();
43734502 refreshContents();
43744503 }
43754504
4376
- void pasteInto(boolean copyit)
4505
+ void pasteInto(boolean copyit, boolean clone)
43774506 {
43784507 // if (GrafreeD.clipboard == null)
43794508 // return;
....@@ -4402,15 +4531,22 @@
44024531 if (copyit)
44034532 {
44044533 // paste(false);
4405
- CloneClipboard(false); // sept 2014
4534
+ if (clone)
4535
+ {
4536
+ CloneClipboard(false); // sept 2014
4537
+ }
4538
+ else
4539
+ {
4540
+ paste(false);
4541
+ }
44064542 }
44074543 else
44084544 {
44094545 boolean first = true;
44104546
4411
- if (GrafreeD.clipboardIsTempGroup)
4547
+ if (Grafreed.clipboardIsTempGroup)
44124548 {
4413
- Composite temp = (Composite)GrafreeD.clipboard;
4549
+ Composite temp = (Composite)Grafreed.clipboard;
44144550 Object3D copy;
44154551 for (Enumeration e = temp.children.elements(); e.hasMoreElements();)
44164552 {
....@@ -4420,7 +4556,7 @@
44204556 }
44214557 } else
44224558 {
4423
- linkSomething(GrafreeD.clipboard); //.get(0));
4559
+ linkSomething(Grafreed.clipboard); //.get(0));
44244560 }
44254561 }
44264562 }
....@@ -4865,7 +5001,7 @@
48655001
48665002 void ImportVRMLX3D()
48675003 {
4868
- if (GrafreeD.standAlone)
5004
+ if (Grafreed.standAlone)
48695005 {
48705006 /**/
48715007 FileDialog browser = new FileDialog(objEditor.frame, "Import VRML/X3D", FileDialog.LOAD);
....@@ -4882,7 +5018,7 @@
48825018
48835019 String GetFile(String dialogName)
48845020 {
4885
- if (GrafreeD.standAlone)
5021
+ if (Grafreed.standAlone)
48865022 {
48875023 FileDialog browser = new FileDialog(objEditor.frame, dialogName, FileDialog.LOAD);
48885024 browser.show();
....@@ -4950,6 +5086,8 @@
49505086 cButton clearpanelButton;
49515087 cButton unselectButton;
49525088
5089
+ cButton oneStepButton;
5090
+
49535091 cButton screenfitButton;
49545092 cButton screenfitpointButton;
49555093 cButton snapobjectButton;
....@@ -5004,6 +5142,7 @@
50045142 private MenuItem mergeGeometriesItem;
50055143 private MenuItem copyItem;
50065144 private MenuItem pasteItem;
5145
+ private MenuItem pasteIntoItem;
50075146 private MenuItem pasteLinkItem;
50085147 private MenuItem pasteCloneItem;
50095148 private MenuItem pasteExpandItem;
....@@ -5053,8 +5192,10 @@
50535192 private MenuItem panoTexturesItem;
50545193
50555194 private MenuItem resetCentroidItem;
5056
- private MenuItem transformgeometryItem;
5195
+ private MenuItem resetCentroidXZItem;
50575196 private MenuItem resetTransformItem;
5197
+ private MenuItem transformGeometryItem;
5198
+ private MenuItem transformChildrenItem;
50585199 private MenuItem hideItem;
50595200 private MenuItem grabItem;
50605201 private MenuItem backItem;
....@@ -5101,7 +5242,7 @@
51015242 private MenuItem blobItem;
51025243 private MenuItem latheItem;
51035244 private MenuItem bezierItem;
5104
- private MenuItem checkerItem;
5245
+ private MenuItem overlayItem;
51055246 private MenuItem meshItem;
51065247 // private MenuItem meshGroupItem;
51075248 private MenuItem springItem;