.. | .. |
---|
74 | 74 | this.copy = this.group = copy; |
---|
75 | 75 | //selectees = this.group.selectees; |
---|
76 | 76 | |
---|
77 | | - SetupMenu2(objEditor); |
---|
| 77 | + SetupMenu2(this); //objEditor); |
---|
78 | 78 | SetupUI2(objEditor); |
---|
79 | 79 | objEditor.SetupUI(true); |
---|
80 | 80 | SetupViews(objEditor); |
---|
.. | .. |
---|
148 | 148 | |
---|
149 | 149 | //JTextField nameField; |
---|
150 | 150 | |
---|
151 | | - void SetupMenu2(ObjEditor oe) |
---|
| 151 | + void SetupMenu2(GroupEditor oe) |
---|
152 | 152 | { |
---|
153 | | - if (Globals.ADVANCED) |
---|
154 | | - { |
---|
155 | | - oe.cameraMenu.add(lookAtItem = new MenuItem("Set Interest")); |
---|
156 | | - //cameraMenu.add(lookFromItem = new MenuItem("Look From Selection")); |
---|
157 | | - //cameraMenu.add(switchItem = new MenuItem("Reverse View")); |
---|
158 | | - editLeafItem = oe.cameraMenu.add(new MenuItem("Edit Leaf")); |
---|
159 | | - oe.cameraMenu.add("-"); |
---|
160 | | - openWindowItem = oe.cameraMenu.add(new MenuItem("Edit copy...")); |
---|
161 | | - openWindowItem.addActionListener(this); |
---|
162 | | - editLeafItem.addActionListener(this); |
---|
163 | | - lookAtItem.addActionListener(this); |
---|
164 | | - //lookFromItem.addActinoListener(this); |
---|
165 | | - //switchItem.addActionListener(this); |
---|
166 | | - } |
---|
167 | | - |
---|
| 153 | + oe.jTree = new cTree(); |
---|
| 154 | + |
---|
168 | 155 | Menu menu; |
---|
169 | 156 | oe.menuBar.add(menu = new Menu("Edit")); |
---|
170 | 157 | //editItem = menu.add(new MenuItem("Edit")); |
---|
171 | 158 | //editItem.addActionListener(this); |
---|
172 | | - duplicateItem = menu.add(new MenuItem("Duplicate")); |
---|
| 159 | + |
---|
| 160 | +// undoItem = menu.add(new MenuItem("Undo")); |
---|
| 161 | +// undoItem.addActionListener(this); |
---|
| 162 | +// redoItem = menu.add(new MenuItem("Redo")); |
---|
| 163 | +// redoItem.addActionListener(this); |
---|
| 164 | +// menu.add("-"); |
---|
| 165 | + duplicateItem = oe.jTree.popup.add(new JMenuItem("Duplicate")); |
---|
173 | 166 | duplicateItem.addActionListener(this); |
---|
174 | 167 | cloneItem = menu.add(new MenuItem("Clone")); |
---|
175 | 168 | cloneItem.addActionListener(this); |
---|
.. | .. |
---|
185 | 178 | copyItem.addActionListener(this); |
---|
186 | 179 | pasteItem = menu.add(new MenuItem("Paste")); |
---|
187 | 180 | pasteItem.addActionListener(this); |
---|
188 | | - menu.add("-"); |
---|
189 | 181 | |
---|
190 | 182 | menu.add("-"); |
---|
191 | 183 | pasteIntoItem = menu.add(new MenuItem("Paste into")); |
---|
.. | .. |
---|
206 | 198 | clearAllItem = menu.add(new MenuItem("Clear All")); |
---|
207 | 199 | clearAllItem.addActionListener(this); |
---|
208 | 200 | } |
---|
| 201 | + |
---|
| 202 | + menuBar.add(cameraMenu = new Menu("View")); |
---|
| 203 | + //cameraMenu.add(zBufferItem = new CheckboxMenuItem("Z Buffer")); |
---|
| 204 | + //zBufferItem.addActionListener(this); |
---|
| 205 | + //cameraMenu.add(normalLensItem = new MenuItem("Normal Lens")); |
---|
| 206 | + //normalLensItem.addActionListener(this); |
---|
| 207 | + cameraMenu.add(revertCameraItem = new MenuItem("Restore Viewpoint")); |
---|
| 208 | + revertCameraItem.addActionListener(this); |
---|
| 209 | + |
---|
| 210 | + cameraMenu.add(toggleFullScreenItem = new CheckboxMenuItem("Full Screen")); |
---|
| 211 | + toggleFullScreenItem.addItemListener(this); |
---|
| 212 | + toggleFullScreenItem.setState(CameraPane.FULLSCREEN); |
---|
| 213 | + cameraMenu.add("-"); |
---|
| 214 | + |
---|
| 215 | + cameraMenu.add(toggleTextureItem = new CheckboxMenuItem("Texture")); |
---|
| 216 | + toggleTextureItem.addItemListener(this); |
---|
| 217 | + toggleTextureItem.setState(CameraPane.textureon); |
---|
| 218 | + |
---|
| 219 | + cameraMenu.add(toggleSwitchItem = new CheckboxMenuItem("Switch")); |
---|
| 220 | + toggleSwitchItem.addItemListener(this); |
---|
| 221 | + toggleSwitchItem.setState(CameraPane.SWITCH); |
---|
| 222 | + |
---|
| 223 | + cameraMenu.add(toggleHandleItem = new CheckboxMenuItem("Handles")); |
---|
| 224 | + toggleHandleItem.addItemListener(this); |
---|
| 225 | + toggleHandleItem.setState(CameraPane.HANDLES); |
---|
| 226 | + |
---|
| 227 | + cameraMenu.add(togglePaintItem = new CheckboxMenuItem("Paint mode")); |
---|
| 228 | + togglePaintItem.addItemListener(this); |
---|
| 229 | + togglePaintItem.setState(CameraPane.PAINTMODE); |
---|
| 230 | + |
---|
| 231 | + if (Globals.ADVANCED) |
---|
| 232 | + { |
---|
| 233 | + cameraMenu.add("-"); |
---|
| 234 | + cameraMenu.add(toggleLiveItem = new CheckboxMenuItem("Live")); |
---|
| 235 | + toggleLiveItem.addItemListener(this); |
---|
| 236 | + toggleLiveItem.setState(Globals.isLIVE()); |
---|
209 | 237 | |
---|
| 238 | + cameraMenu.add(stepItem = new MenuItem("Step")); |
---|
| 239 | + stepItem.addActionListener(this); |
---|
| 240 | + // cameraMenu.add(toggleDLItem = new CheckboxMenuItem("Display List")); |
---|
| 241 | + // toggleDLItem.addItemListener(this); |
---|
| 242 | + // toggleDLItem.setState(false); |
---|
| 243 | + |
---|
| 244 | + cameraMenu.add(toggleRenderItem = new CheckboxMenuItem("Render")); |
---|
| 245 | + toggleRenderItem.addItemListener(this); |
---|
| 246 | + toggleRenderItem.setState(!CameraPane.frozen); |
---|
| 247 | + |
---|
| 248 | + cameraMenu.add(toggleDebugItem = new CheckboxMenuItem("Debug")); |
---|
| 249 | + toggleDebugItem.addItemListener(this); |
---|
| 250 | + toggleDebugItem.setState(Globals.DEBUG); |
---|
| 251 | + |
---|
| 252 | + cameraMenu.add(toggleFrustumItem = new CheckboxMenuItem("Frustum")); |
---|
| 253 | + toggleFrustumItem.addItemListener(this); |
---|
| 254 | + toggleFrustumItem.setState(CameraPane.FRUSTUM); |
---|
| 255 | + |
---|
| 256 | + cameraMenu.add(toggleFootContactItem = new CheckboxMenuItem("Foot contact")); |
---|
| 257 | + toggleFootContactItem.addItemListener(this); |
---|
| 258 | + toggleFootContactItem.setState(CameraPane.FOOTCONTACT); |
---|
| 259 | + |
---|
| 260 | + cameraMenu.add(toggleTimelineItem = new CheckboxMenuItem("Timeline")); |
---|
| 261 | + toggleTimelineItem.addItemListener(this); |
---|
| 262 | + } |
---|
| 263 | + |
---|
| 264 | +// cameraMenu.add(toggleRootItem = new CheckboxMenuItem("Alternate Root")); |
---|
| 265 | +// toggleRootItem.addItemListener(this); |
---|
| 266 | +// toggleRootItem.setState(false); |
---|
| 267 | +// cameraMenu.add(animationItem = new CheckboxMenuItem("Animation")); |
---|
| 268 | +// animationItem.addItemListener(this); |
---|
| 269 | +// animationItem.setState(CameraPane.ANIMATION); |
---|
| 270 | + cameraMenu.add("-"); |
---|
| 271 | + cameraMenu.add(editCameraItem = new MenuItem("Save Viewpoint")); |
---|
| 272 | + editCameraItem.addActionListener(this); |
---|
| 273 | + |
---|
| 274 | + if (Globals.ADVANCED) |
---|
| 275 | + { |
---|
| 276 | + oe.cameraMenu.add(lookAtItem = new MenuItem("Set Interest")); |
---|
| 277 | + //cameraMenu.add(lookFromItem = new MenuItem("Look From Selection")); |
---|
| 278 | + //cameraMenu.add(switchItem = new MenuItem("Reverse View")); |
---|
| 279 | + editLeafItem = oe.cameraMenu.add(new MenuItem("Edit Leaf")); |
---|
| 280 | + oe.cameraMenu.add("-"); |
---|
| 281 | + openWindowItem = oe.cameraMenu.add(new MenuItem("Edit copy...")); |
---|
| 282 | + openWindowItem.addActionListener(this); |
---|
| 283 | + editLeafItem.addActionListener(this); |
---|
| 284 | + lookAtItem.addActionListener(this); |
---|
| 285 | + //lookFromItem.addActinoListener(this); |
---|
| 286 | + //switchItem.addActionListener(this); |
---|
| 287 | + } |
---|
| 288 | + |
---|
210 | 289 | oe.menuBar.add(menu = new Menu("Setting")); |
---|
211 | 290 | if (Globals.ADVANCED) |
---|
212 | 291 | { |
---|
.. | .. |
---|
257 | 336 | frontItem.addActionListener(this); |
---|
258 | 337 | compositeItem = menu.add(new MenuItem("Composite")); |
---|
259 | 338 | compositeItem.addActionListener(this); |
---|
| 339 | + |
---|
| 340 | + if (Globals.ADVANCED) |
---|
| 341 | + { |
---|
260 | 342 | hideItem = menu.add(new MenuItem("Hidden Group")); |
---|
261 | 343 | hideItem.addActionListener(this); |
---|
| 344 | + } |
---|
262 | 345 | ungroupItem = menu.add(new MenuItem("Ungroup")); |
---|
263 | 346 | ungroupItem.addActionListener(this); |
---|
| 347 | + |
---|
264 | 348 | menu.add("-"); |
---|
| 349 | + |
---|
265 | 350 | randomItem = menu.add(new MenuItem("Switch node")); |
---|
266 | 351 | randomItem.addActionListener(this); |
---|
| 352 | + if (Globals.ADVANCED) |
---|
| 353 | + { |
---|
267 | 354 | switchGeoItem = menu.add(new MenuItem("Switch Geometry")); |
---|
268 | 355 | switchGeoItem.addActionListener(this); |
---|
269 | 356 | switchTransfoItem = menu.add(new MenuItem("Switch Transform")); |
---|
.. | .. |
---|
271 | 358 | morphItem = menu.add(new MenuItem("Morph Group")); |
---|
272 | 359 | morphItem.addActionListener(this); |
---|
273 | 360 | |
---|
274 | | - if (Globals.ADVANCED) |
---|
275 | | - { |
---|
276 | 361 | menu.add("-"); |
---|
277 | 362 | physicsItem = menu.add(new MenuItem("Physics")); |
---|
278 | 363 | physicsItem.addActionListener(this); |
---|
.. | .. |
---|
291 | 376 | billboardItem.addActionListener(this); |
---|
292 | 377 | csgItem = menu.add(new MenuItem("CSG")); |
---|
293 | 378 | csgItem.addActionListener(this); |
---|
294 | | - shadowXItem = menu.add(new MenuItem("Shadow X")); |
---|
| 379 | + shadowXItem = menu.add(new MenuItem("Shadow Red")); |
---|
295 | 380 | shadowXItem.addActionListener(this); |
---|
296 | | - shadowYItem = menu.add(new MenuItem("Shadow Y")); |
---|
| 381 | + shadowYItem = menu.add(new MenuItem("Shadow Green")); |
---|
297 | 382 | shadowYItem.addActionListener(this); |
---|
298 | | - shadowZItem = menu.add(new MenuItem("Shadow Z")); |
---|
| 383 | + shadowZItem = menu.add(new MenuItem("Shadow Blue")); |
---|
299 | 384 | shadowZItem.addActionListener(this); |
---|
300 | 385 | if (Globals.ADVANCED) |
---|
301 | 386 | { |
---|
.. | .. |
---|
392 | 477 | markleavesItem.addActionListener(this); |
---|
393 | 478 | unmarkleavesItem = menu.add(new MenuItem("Unmark Leaves")); |
---|
394 | 479 | unmarkleavesItem.addActionListener(this); |
---|
| 480 | + rewindleavesItem = menu.add(new MenuItem("Rewind Leaves")); |
---|
| 481 | + rewindleavesItem.addActionListener(this); |
---|
| 482 | + unrewindleavesItem = menu.add(new MenuItem("Unrewind Leaves")); |
---|
| 483 | + unrewindleavesItem.addActionListener(this); |
---|
| 484 | + randomleavesItem = menu.add(new MenuItem("Random Leaves")); |
---|
| 485 | + randomleavesItem.addActionListener(this); |
---|
| 486 | + unrandomleavesItem = menu.add(new MenuItem("Unrandom Leaves")); |
---|
| 487 | + unrandomleavesItem.addActionListener(this); |
---|
395 | 488 | menu.add("-"); |
---|
396 | 489 | flipVItem = menu.add(new MenuItem("Flip V")); |
---|
397 | 490 | flipVItem.addActionListener(this); |
---|
.. | .. |
---|
443 | 536 | oe.menuBar.add(menu = new Menu("Insert")); |
---|
444 | 537 | buildCreateMenu(menu); |
---|
445 | 538 | |
---|
446 | | - oe.menuBar.add(menu = new Menu("Include")); |
---|
447 | | - importOBJItem = menu.add(new MenuItem("OBJ file...")); |
---|
448 | | - importOBJItem.addActionListener(this); |
---|
449 | | - menu.add("-"); |
---|
450 | | - import3DSItem = menu.add(new MenuItem("3DS file...")); |
---|
451 | | - 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); |
---|
458 | | - |
---|
459 | 539 | oe.menuBar.add(menu = new Menu("Tools")); |
---|
460 | 540 | buildToolsMenu(menu); |
---|
461 | 541 | } |
---|
462 | 542 | |
---|
463 | 543 | void SetupUI2(ObjEditor oe) |
---|
464 | 544 | { |
---|
| 545 | + // June 2019 |
---|
| 546 | + if (oe == null) |
---|
| 547 | + { |
---|
| 548 | + //super.SetupUI2(this); |
---|
| 549 | + //return; |
---|
| 550 | + } |
---|
| 551 | + |
---|
| 552 | + if (copy != group) |
---|
| 553 | + { |
---|
| 554 | + //super.SetupUI2(this); |
---|
| 555 | + } |
---|
| 556 | + |
---|
465 | 557 | //new Exception().printStackTrace(); |
---|
466 | 558 | |
---|
467 | 559 | oe.radioPanel = new JPanel(new GridBagLayout()); |
---|
.. | .. |
---|
492 | 584 | */ |
---|
493 | 585 | //this.AddOptions(oe.toolbarPanel, oe.aConstraints); |
---|
494 | 586 | |
---|
495 | | - oe.toolbarPanel.add(liveCB = new cCheckBox("Live", Globals.isLIVE())); //, oe.aConstraints); |
---|
| 587 | + //oe.toolbarPanel.add(minButton = new cButton("Min", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 588 | + //minButton.setToolTipText("Minimize window"); |
---|
| 589 | + //minButton.addActionListener(this); |
---|
| 590 | + |
---|
| 591 | + oe.toolbarPanel.add(maxButton = GetButton("icons/add-128.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 592 | + maxButton.setToolTipText("Maximize window"); |
---|
| 593 | + maxButton.addActionListener(this); |
---|
| 594 | + |
---|
| 595 | + oe.toolbarPanel.add(fullButton = GetButton("icons/fullscreen.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 596 | + fullButton.setToolTipText("Full-screen window"); |
---|
| 597 | + fullButton.addActionListener(this); |
---|
| 598 | + |
---|
| 599 | + oe.toolboxPanel.add(undoButton = GetButton("icons/undo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 600 | + undoButton.setToolTipText("Undo changes"); |
---|
| 601 | + undoButton.addActionListener(this); |
---|
| 602 | + |
---|
| 603 | + oe.toolboxPanel.add(redoButton = GetButton("icons/redo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 604 | + redoButton.setToolTipText("Redo changes"); |
---|
| 605 | + redoButton.addActionListener(this); |
---|
| 606 | + |
---|
| 607 | + oe.toolboxPanel.add(saveButton = GetButton("icons/down_arrow.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 608 | + saveButton.setToolTipText("Save changes"); |
---|
| 609 | + saveButton.addActionListener(this); |
---|
| 610 | + |
---|
| 611 | + oe.toolboxPanel.add(liveCB = GetToggleButton("icons/run.png", Globals.isLIVE())); //, oe.aConstraints); |
---|
496 | 612 | liveCB.setToolTipText("Enable animation"); |
---|
497 | 613 | liveCB.addItemListener(this); |
---|
498 | 614 | |
---|
499 | | - oe.toolbarPanel.add(oneStepButton = new cButton("Step", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 615 | + oe.toolboxPanel.add(oneStepButton = GetButton("icons/step.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
500 | 616 | oneStepButton.setToolTipText("Animate one step forward"); |
---|
501 | 617 | oneStepButton.addActionListener(this); |
---|
502 | 618 | |
---|
503 | | - oe.toolbarPanel.add(fastCB = new cCheckBox("Fast", CameraPane.FAST)); //, constraints); |
---|
| 619 | + oe.toolboxPanel.add(fastCB = GetToggleButton("icons/runfast.png", CameraPane.FAST)); //, constraints); |
---|
504 | 620 | fastCB.setToolTipText("Fast mode"); |
---|
505 | 621 | fastCB.addItemListener(this); |
---|
506 | 622 | |
---|
507 | | - oe.toolbarPanel.add(trackCB = new cCheckBox("Track", CameraPane.TRACK)); //, oe.aConstraints); |
---|
| 623 | + oe.toolboxPanel.Return(); |
---|
| 624 | + |
---|
| 625 | + oe.toolboxPanel.add(trackCB = GetToggleButton("icons/track.png", CameraPane.TRACK)); //, oe.aConstraints); |
---|
508 | 626 | trackCB.setToolTipText("Enable tracking"); |
---|
509 | 627 | trackCB.addItemListener(this); |
---|
510 | 628 | |
---|
511 | | - oe.toolbarPanel.add(screenfitButton = new cButton("@", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 629 | + oe.toolboxPanel.add(screenfitButton = GetButton("icons/fit.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
512 | 630 | screenfitButton.setToolTipText("Screen fit"); |
---|
513 | 631 | screenfitButton.addActionListener(this); |
---|
514 | 632 | |
---|
.. | .. |
---|
522 | 640 | snapobjectButton.setToolTipText("Snap Object"); |
---|
523 | 641 | } |
---|
524 | 642 | |
---|
525 | | - oe.toolbarPanel.add(flashSelectionButton = new cButton("?", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
526 | | - flashSelectionButton.setToolTipText("Show selection"); |
---|
| 643 | + oe.toolboxPanel.add(flashSelectionButton = GetButton("icons/flash-light.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 644 | + flashSelectionButton.setToolTipText("Highlight selection"); |
---|
527 | 645 | flashSelectionButton.addActionListener(this); |
---|
528 | 646 | |
---|
529 | | - oe.toolbarPanel.add(new JSeparator(SwingConstants.VERTICAL)); |
---|
| 647 | + //oe.toolbarPanel.add(new JSeparator(SwingConstants.VERTICAL)); |
---|
530 | 648 | |
---|
531 | | - oe.toolbarPanel.add(twoButton = new cButton("|+|", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 649 | + oe.toolbarPanel.add(twoButton = new cButton("|-|", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
532 | 650 | twoButton.setToolTipText("Show center view only"); |
---|
533 | 651 | twoButton.addActionListener(this); |
---|
534 | | - oe.toolbarPanel.add(fourButton = new cButton("+||", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 652 | + this.fullscreenLayout = twoButton; |
---|
| 653 | + |
---|
| 654 | + oe.toolbarPanel.add(fourButton = new cButton("-||", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
535 | 655 | fourButton.addActionListener(this); |
---|
536 | 656 | fourButton.setToolTipText("Show left panel only"); |
---|
537 | | - oe.toolbarPanel.add(sixButton = new cButton("+|+|", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 657 | + oe.toolbarPanel.add(sixButton = new cButton("-|-|", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
538 | 658 | sixButton.setToolTipText("2-column layout left"); |
---|
539 | 659 | sixButton.addActionListener(this); |
---|
540 | | - oe.toolbarPanel.add(threeButton = new cButton("|+|+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 660 | + oe.toolbarPanel.add(threeButton = new cButton("|-|-", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
541 | 661 | threeButton.setToolTipText("2-column layout right"); |
---|
542 | 662 | threeButton.addActionListener(this); |
---|
543 | | - oe.toolbarPanel.add(sevenButton = new cButton("+|+|+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 663 | + oe.toolbarPanel.add(sevenButton = new cButton("-|-|-", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
544 | 664 | sevenButton.setToolTipText("3-column layout"); |
---|
545 | 665 | sevenButton.addActionListener(this); |
---|
546 | 666 | // |
---|
547 | 667 | |
---|
548 | | - oe.toolbarPanel.add(rootButton = new cButton("o o o", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 668 | + oe.toolbarPanel.add(rootButton = GetButton("icons/write.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
549 | 669 | rootButton.setToolTipText("Edit selection in new tab"); |
---|
550 | 670 | rootButton.addActionListener(this); |
---|
551 | 671 | |
---|
552 | | - oe.toolbarPanel.add(closeButton = new cButton("X", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 672 | + oe.toolbarPanel.add(closeButton = GetButton("icons/close-icon.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
553 | 673 | closeButton.setToolTipText("Close tab"); |
---|
554 | 674 | closeButton.addActionListener(this); |
---|
555 | 675 | //oe.treePanel.add(clearButton = new cButton("X"), oe.aConstraints); |
---|
556 | 676 | //clearButton.addActionListener(this); |
---|
557 | | - |
---|
558 | | - cGridBag commandsPanel = new cGridBag(); |
---|
| 677 | + |
---|
| 678 | + // INSERT |
---|
| 679 | + oe.toolboxPanel.add(gridButton = GetButton("icons/grid.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 680 | + gridButton.setToolTipText("Create grid"); |
---|
| 681 | + gridButton.addActionListener(this); |
---|
| 682 | + |
---|
| 683 | + oe.toolboxPanel.add(boxButton = GetButton("icons/box.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 684 | + boxButton.setToolTipText("Create box"); |
---|
| 685 | + boxButton.addActionListener(this); |
---|
| 686 | + |
---|
| 687 | + oe.toolboxPanel.add(sphereButton = GetButton("icons/sphere.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 688 | + sphereButton.setToolTipText("Create sphere"); |
---|
| 689 | + sphereButton.addActionListener(this); |
---|
| 690 | + |
---|
| 691 | + oe.toolboxPanel.Return(); |
---|
559 | 692 | |
---|
560 | | - commandsPanel.add(editButton = new cButton("+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 693 | + oe.toolboxPanel.add(coneButton = GetButton("icons/cone.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 694 | + coneButton.setToolTipText("Create cone"); |
---|
| 695 | + coneButton.addActionListener(this); |
---|
| 696 | + |
---|
| 697 | + oe.toolboxPanel.add(torusButton = GetButton("icons/torus.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 698 | + torusButton.setToolTipText("Create torus"); |
---|
| 699 | + torusButton.addActionListener(this); |
---|
| 700 | + |
---|
| 701 | + oe.toolboxPanel.add(superButton = GetButton("icons/super.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 702 | + superButton.setToolTipText("Create superellipsoid"); |
---|
| 703 | + superButton.addActionListener(this); |
---|
| 704 | + |
---|
| 705 | + if (Globals.ADVANCED) |
---|
| 706 | + { |
---|
| 707 | + oe.toolboxPanel.add(kleinButton = GetButton("icons/klein.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 708 | + kleinButton.setToolTipText("Create Klein bottle"); |
---|
| 709 | + kleinButton.addActionListener(this); |
---|
| 710 | + } |
---|
| 711 | + |
---|
| 712 | + oe.toolboxPanel.add(particlesButton = GetButton("icons/particles.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 713 | + particlesButton.setToolTipText("Create particle system"); |
---|
| 714 | + particlesButton.addActionListener(this); |
---|
| 715 | + |
---|
| 716 | + oe.toolboxPanel.add(overlayButton = GetButton("icons/overlay.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 717 | + overlayButton.setToolTipText("Create overlay"); |
---|
| 718 | + overlayButton.addActionListener(this); |
---|
| 719 | + |
---|
| 720 | + oe.toolboxPanel.add(lightButton = GetButton("icons/light-bulb.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 721 | + lightButton.setToolTipText("Create light"); |
---|
| 722 | + lightButton.addActionListener(this); |
---|
| 723 | + |
---|
| 724 | + // EDIT panel |
---|
| 725 | + editCommandsPanel.add(editButton = new cButton("+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
561 | 726 | editButton.setToolTipText("Edit selection"); |
---|
562 | 727 | editButton.addActionListener(this); |
---|
563 | 728 | |
---|
564 | | - commandsPanel.add(uneditButton = new cButton("-", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 729 | + editCommandsPanel.add(uneditButton = new cButton("-", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
565 | 730 | uneditButton.setToolTipText("Unedit selection"); |
---|
566 | 731 | uneditButton.addActionListener(this); |
---|
567 | 732 | |
---|
568 | | - commandsPanel.add(allParamsButton = new JCheckBox("All", allparams)); //, oe.aConstraints); |
---|
| 733 | + editCommandsPanel.add(allParamsButton = new JCheckBox("All", allparams)); //, oe.aConstraints); |
---|
569 | 734 | allParamsButton.setToolTipText("Edit all params"); |
---|
570 | 735 | allParamsButton.addActionListener(this); |
---|
571 | 736 | |
---|
572 | | - commandsPanel.add(clearPanelButton = new cButton("C", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 737 | + editCommandsPanel.add(clearPanelButton = new cButton("C", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
573 | 738 | clearPanelButton.setToolTipText("Clear edit panel"); |
---|
574 | 739 | clearPanelButton.addActionListener(this); |
---|
575 | 740 | |
---|
576 | | - commandsPanel.add(unselectButton = new cButton("U", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 741 | + editCommandsPanel.add(unselectButton = new cButton("U", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
577 | 742 | unselectButton.setToolTipText("Unselect"); |
---|
578 | 743 | unselectButton.addActionListener(this); |
---|
579 | 744 | |
---|
580 | | - commandsPanel.preferredHeight = 1; |
---|
| 745 | + editCommandsPanel.preferredHeight = 1; |
---|
581 | 746 | |
---|
582 | | - oe.treePanel.add(commandsPanel); |
---|
583 | | - oe.treePanel.Return(); |
---|
| 747 | +// oe.treePanel.add(commandsPanel); |
---|
| 748 | +// oe.treePanel.Return(); |
---|
584 | 749 | |
---|
585 | 750 | // oe.aConstraints.gridx += 1; |
---|
586 | 751 | // oe.aConstraints.weighty = 0; |
---|
.. | .. |
---|
597 | 762 | |
---|
598 | 763 | JScrollPane jSP; |
---|
599 | 764 | //ctrlPanel.add(new JScrollPane(jTree = new cTree(new cTreeModel(this))), aConstraints); |
---|
600 | | - jSPPanel.add(jSP = new JScrollPane(oe.jTree = new cTree(null))); //, oe.aConstraints); |
---|
| 765 | + jSPPanel.add(jSP = new JScrollPane(oe.jTree)); //, oe.aConstraints); |
---|
601 | 766 | ResetModel(); |
---|
602 | 767 | |
---|
603 | 768 | oe.treePanel.add(jSPPanel); |
---|
.. | .. |
---|
702 | 867 | // debugCB.addItemListener(this); |
---|
703 | 868 | |
---|
704 | 869 | panel.add(oeilCB = new cCheckBox("Eye", CameraPane.OEIL)); //, constraints); |
---|
| 870 | + oeilCB.setToolTipText("Move camera when tracking target"); |
---|
705 | 871 | oeilCB.addItemListener(this); |
---|
706 | 872 | |
---|
| 873 | + panel.add(shadowCB = new cCheckBox("Shadow", Globals.COMPUTESHADOWWHENLIVE)); //, constraints); |
---|
| 874 | + shadowCB.setToolTipText("Compute shadows when live"); |
---|
| 875 | + shadowCB.addItemListener(this); |
---|
| 876 | + |
---|
| 877 | + panel.add(autosaveCB = new cCheckBox("Auto-save", Globals.SAVEONMAKE)); //, constraints); |
---|
| 878 | + autosaveCB.setToolTipText("Auto-save on structure change"); |
---|
| 879 | + autosaveCB.addItemListener(this); |
---|
| 880 | + |
---|
| 881 | + if (Globals.ADVANCED) |
---|
| 882 | + { |
---|
707 | 883 | panel.add(lookAtCB = new cCheckBox("Target", CameraPane.LOOKAT)); //, constraints); |
---|
708 | 884 | lookAtCB.setToolTipText("Look-at target"); |
---|
709 | 885 | lookAtCB.addItemListener(this); |
---|
| 886 | + } |
---|
710 | 887 | |
---|
711 | 888 | } |
---|
712 | 889 | |
---|
.. | .. |
---|
721 | 898 | void EditObject(Object3D obj) |
---|
722 | 899 | { |
---|
723 | 900 | cRadio radioButton = new cRadio(obj.name); |
---|
| 901 | + |
---|
| 902 | + // Patch to avoid bug with transparency. |
---|
| 903 | + radioButton.hadMaterial = obj.material != null; |
---|
| 904 | + if (!radioButton.hadMaterial) |
---|
| 905 | + { |
---|
| 906 | + obj.material = new cMaterial(); |
---|
| 907 | + } |
---|
| 908 | + |
---|
724 | 909 | radioButton.SetObject(obj); |
---|
725 | 910 | radioButton.layout = sevenButton; |
---|
726 | 911 | radioButton.SetCamera(cameraView.renderCamera, false); |
---|
.. | .. |
---|
732 | 917 | |
---|
733 | 918 | void SetupViews(ObjEditor oe) |
---|
734 | 919 | { |
---|
| 920 | + theFrame = this; |
---|
| 921 | + |
---|
735 | 922 | oe.SetupViews(); |
---|
736 | 923 | |
---|
737 | 924 | System.out.println("SetupViews"); |
---|
.. | .. |
---|
740 | 927 | /*DropTarget dropTarget =*/ new DropTarget(oe.cameraView, this); |
---|
741 | 928 | } |
---|
742 | 929 | |
---|
743 | | - JCheckBox liveCB; |
---|
744 | | - JCheckBox supportCB; |
---|
745 | | - JCheckBox localCB; |
---|
746 | | - JCheckBox crowdCB; |
---|
747 | | - JCheckBox smoothCB; |
---|
748 | | - JCheckBox fastCB; |
---|
749 | | - JCheckBox slowCB; |
---|
750 | | - JCheckBox boxCB; |
---|
751 | | - JCheckBox zoomBoxCB; |
---|
752 | | - JCheckBox trackCB; |
---|
753 | | - JCheckBox smoothfocusCB; |
---|
| 930 | + cToggleButton liveCB; |
---|
| 931 | + cCheckBox supportCB; |
---|
| 932 | + cCheckBox localCB; |
---|
| 933 | + cCheckBox crowdCB; |
---|
| 934 | + cCheckBox smoothCB; |
---|
| 935 | + cToggleButton fastCB; |
---|
| 936 | + cCheckBox slowCB; |
---|
| 937 | + cCheckBox boxCB; |
---|
| 938 | + cCheckBox zoomBoxCB; |
---|
| 939 | + cToggleButton trackCB; |
---|
| 940 | + cCheckBox smoothfocusCB; |
---|
754 | 941 | // JCheckBox speakerMocapCB; |
---|
755 | | - JCheckBox speakerCameraCB; |
---|
756 | | - JCheckBox speakerFocusCB; |
---|
757 | | - JCheckBox debugCB; |
---|
758 | | - JCheckBox oeilCB; |
---|
759 | | - JCheckBox lookAtCB; |
---|
| 942 | + cCheckBox speakerCameraCB; |
---|
| 943 | + cCheckBox speakerFocusCB; |
---|
| 944 | + cCheckBox debugCB; |
---|
| 945 | + |
---|
| 946 | + cCheckBox oeilCB; |
---|
| 947 | + cCheckBox shadowCB; |
---|
| 948 | + cCheckBox autosaveCB; |
---|
| 949 | + cCheckBox lookAtCB; |
---|
760 | 950 | |
---|
761 | 951 | // static int COLOR = 1; |
---|
762 | 952 | // static int MATERIAL = 2; |
---|
.. | .. |
---|
764 | 954 | |
---|
765 | 955 | int dropAttributes = Object3D.COLOR | Object3D.MATERIAL; |
---|
766 | 956 | |
---|
767 | | - JCheckBox colorCB; |
---|
768 | | - JCheckBox materialCB; |
---|
769 | | - JCheckBox textureCB; |
---|
| 957 | + cCheckBox colorCB; |
---|
| 958 | + cCheckBox materialCB; |
---|
| 959 | + cCheckBox textureCB; |
---|
770 | 960 | |
---|
771 | 961 | public void itemStateChanged(ItemEvent e) |
---|
772 | 962 | { |
---|
.. | .. |
---|
794 | 984 | } else if(e.getSource() == liveCB) |
---|
795 | 985 | { |
---|
796 | 986 | cameraView.ToggleLive(); |
---|
| 987 | + refreshContents(false); |
---|
797 | 988 | } |
---|
798 | 989 | else if(e.getSource() == supportCB) |
---|
799 | 990 | { |
---|
.. | .. |
---|
858 | 1049 | { |
---|
859 | 1050 | cameraView.ToggleOeil(); |
---|
860 | 1051 | } |
---|
| 1052 | + else if(e.getSource() == shadowCB) |
---|
| 1053 | + { |
---|
| 1054 | + Globals.COMPUTESHADOWWHENLIVE ^= true; |
---|
| 1055 | + } |
---|
| 1056 | + else if(e.getSource() == autosaveCB) |
---|
| 1057 | + { |
---|
| 1058 | + Globals.SAVEONMAKE ^= true; |
---|
| 1059 | + } |
---|
861 | 1060 | else if(e.getSource() == lookAtCB) |
---|
862 | 1061 | { |
---|
863 | 1062 | cameraView.ToggleLookAt(); |
---|
.. | .. |
---|
874 | 1073 | |
---|
875 | 1074 | /**/ |
---|
876 | 1075 | //DragSource.getDefaultDragSource().startDrag(dge, DragSource.DefaultMoveNoDrop, new StringSelection("Allo"), this); |
---|
877 | | - TreePath path = new TreePath(objEditor.jTree.getSelectionPath().getLastPathComponent()); |
---|
| 1076 | + //TreePath path = new TreePath(objEditor.jTree.getSelectionPath().getLastPathComponent()); |
---|
| 1077 | + TreePath path = objEditor.jTree.getSelectionPath(); |
---|
878 | 1078 | if ((path == null) || (path.getPathCount() <= 1)) { |
---|
879 | 1079 | // We can't move the root node or an empty selection |
---|
880 | 1080 | return; |
---|
.. | .. |
---|
998 | 1198 | return; |
---|
999 | 1199 | } |
---|
1000 | 1200 | |
---|
1001 | | - if (dtde.getDropAction() == DnDConstants.ACTION_MOVE) // ?? LINK) |
---|
1002 | | - { |
---|
| 1201 | +// june 2019 if (dtde.getDropAction() == DnDConstants.ACTION_MOVE) // ?? LINK) |
---|
| 1202 | +// { |
---|
1003 | 1203 | loadClipboard(true); |
---|
1004 | 1204 | objEditor.jTree.setSelectionPath(destinationPath); |
---|
1005 | 1205 | pasteInto(false, false); |
---|
1006 | | - } else { |
---|
1007 | | - loadClipboard(false); |
---|
1008 | | - objEditor.jTree.setSelectionPath(destinationPath); |
---|
1009 | | - pasteInto(false, false); // true); // ??? |
---|
1010 | | - } |
---|
| 1206 | +// } else { |
---|
| 1207 | +// loadClipboard(false); |
---|
| 1208 | +// objEditor.jTree.setSelectionPath(destinationPath); |
---|
| 1209 | +// pasteInto(false, false); // true); // ??? |
---|
| 1210 | +// } |
---|
1011 | 1211 | } |
---|
1012 | 1212 | public void dropActionChanged(DropTargetDragEvent dtde) |
---|
1013 | 1213 | // Called if the user has modified the current drop gesture |
---|
.. | .. |
---|
1201 | 1401 | memoryItem.addActionListener(this); |
---|
1202 | 1402 | menu.add(analyzeItem = new MenuItem("Analyze")); |
---|
1203 | 1403 | analyzeItem.addActionListener(this); |
---|
1204 | | - menu.add(dumpItem = new MenuItem("Dump")); |
---|
| 1404 | + menu.add(dumpItem = new MenuItem("Print")); |
---|
1205 | 1405 | dumpItem.addActionListener(this); |
---|
1206 | 1406 | // menu.add(pathItem = new MenuItem("From-to path")); |
---|
1207 | 1407 | // pathItem.addActionListener(this); |
---|
.. | .. |
---|
1342 | 1542 | shadow.material = new cMaterial(obj.material); |
---|
1343 | 1543 | shadow.material.diffuse = 0.0001f; |
---|
1344 | 1544 | shadow.material.specular = 0.0001f; |
---|
| 1545 | + //shadow.projectedVertices[1].x = 300; |
---|
1345 | 1546 | |
---|
1346 | 1547 | makeSomething(shadow); |
---|
1347 | 1548 | } |
---|
.. | .. |
---|
1598 | 1799 | objEditor.cameraView.renderCamera.setAim(v2, v1); |
---|
1599 | 1800 | objEditor.cameraView.repaint(); |
---|
1600 | 1801 | } else |
---|
1601 | | - if (source == rectoidItem) |
---|
| 1802 | + if (source == rectoidItem || source == boxButton) |
---|
1602 | 1803 | { |
---|
1603 | 1804 | makeSomething(new Box()); |
---|
1604 | 1805 | } else |
---|
1605 | | - if (source == particleItem) |
---|
| 1806 | + if (source == particleItem || source == particlesButton) |
---|
1606 | 1807 | { |
---|
1607 | 1808 | ParticleNode particleGeom = new ParticleNode("Particles", 1000); //, particleType); |
---|
1608 | 1809 | ParticleController particleController = new ParticleController(particleGeom); |
---|
.. | .. |
---|
1681 | 1882 | |
---|
1682 | 1883 | makeSomething(obj); |
---|
1683 | 1884 | } else |
---|
1684 | | - if (source == gridItem) |
---|
| 1885 | + if (source == gridItem || source == gridButton) |
---|
1685 | 1886 | { |
---|
1686 | 1887 | makeSomething(new Grid()); |
---|
1687 | 1888 | } else |
---|
1688 | | - if (source == ellipsoidItem) |
---|
| 1889 | + if (source == ellipsoidItem || source == sphereButton) |
---|
1689 | 1890 | { |
---|
1690 | 1891 | makeSomething(new Sphere()); |
---|
1691 | 1892 | } else |
---|
1692 | | - if (source == coneItem) |
---|
| 1893 | + if (source == coneItem || source == coneButton) |
---|
1693 | 1894 | { |
---|
1694 | 1895 | makeSomething(new Cone()); |
---|
1695 | 1896 | } else |
---|
1696 | | - if (source == torusItem) |
---|
| 1897 | + if (source == torusItem || source == torusButton) |
---|
1697 | 1898 | { |
---|
1698 | 1899 | makeSomething(new Torus()); |
---|
1699 | 1900 | } else |
---|
1700 | | - if (source == superItem) |
---|
| 1901 | + if (source == superItem || source == superButton) |
---|
1701 | 1902 | { |
---|
1702 | 1903 | makeSomething(new Superellipsoid()); |
---|
1703 | 1904 | } else |
---|
1704 | | - if (source == kleinItem) |
---|
| 1905 | + if (source == kleinItem || source == kleinButton) |
---|
1705 | 1906 | { |
---|
1706 | 1907 | makeSomething(new Klein()); |
---|
1707 | 1908 | } else |
---|
.. | .. |
---|
1721 | 1922 | { |
---|
1722 | 1923 | makeSomething(new BezierSurface()); |
---|
1723 | 1924 | } else |
---|
1724 | | - if (source == overlayItem) |
---|
| 1925 | + if (source == overlayItem || source == overlayButton) |
---|
1725 | 1926 | { |
---|
1726 | 1927 | /* |
---|
1727 | 1928 | Object3D obj = new BezierSurface(5,8); |
---|
.. | .. |
---|
1769 | 1970 | s.setup(); |
---|
1770 | 1971 | makeSomething(s); |
---|
1771 | 1972 | } else |
---|
1772 | | - if (source == lightItem) |
---|
| 1973 | + if (source == lightItem || source == lightButton) |
---|
1773 | 1974 | { |
---|
1774 | 1975 | makeSomething(new Light()); |
---|
1775 | 1976 | } else |
---|
.. | .. |
---|
1855 | 2056 | csg.addChild(child); |
---|
1856 | 2057 | child.addChild(csg); |
---|
1857 | 2058 | } else |
---|
1858 | | - |
---|
1859 | | - if (source == importGFDItem) |
---|
1860 | | - { |
---|
1861 | | - ImportGFD(); |
---|
1862 | | - } else |
---|
1863 | | - if (source == importVRMLX3DItem) |
---|
1864 | | - { |
---|
1865 | | - ImportVRMLX3D(); |
---|
1866 | | - } else |
---|
1867 | | - if (source == import3DSItem) |
---|
1868 | | - { |
---|
1869 | | - objEditor.ImportJME(new com.jmex.model.converters.MaxToJme(), "3ds", "Import 3DS"); |
---|
1870 | | - } else |
---|
1871 | | - if (source == importOBJItem) |
---|
1872 | | - { |
---|
1873 | | - //objEditor.ImportJME(new com.jmex.model.converters.ObjToJme(), "obj", "Import OBJ"); |
---|
1874 | | - FileDialog browser = new FileDialog(frame, "Import OBJ", FileDialog.LOAD); |
---|
1875 | | - browser.setVisible(true); |
---|
1876 | | - String filename = browser.getFile(); |
---|
1877 | | - if (filename != null && filename.length() > 0) |
---|
1878 | | - { |
---|
1879 | | - String fullname = browser.getDirectory() + filename; |
---|
1880 | | - makeSomething(ReadOBJ(fullname), true); |
---|
1881 | | - } |
---|
1882 | | - } else |
---|
1883 | 2059 | if (source == computeAOItem) |
---|
1884 | 2060 | { |
---|
1885 | 2061 | Globals.drawMode = CameraPane.OCCLUSION; |
---|
.. | .. |
---|
1916 | 2092 | if (source == dumpItem) |
---|
1917 | 2093 | { |
---|
1918 | 2094 | DumpObject(); |
---|
| 2095 | + } else |
---|
| 2096 | + if (source == minButton) |
---|
| 2097 | + { |
---|
| 2098 | + Minimize(); |
---|
| 2099 | + } else |
---|
| 2100 | + if (source == maxButton) |
---|
| 2101 | + { |
---|
| 2102 | + Maximize(); |
---|
| 2103 | + } else |
---|
| 2104 | + if (source == fullButton) |
---|
| 2105 | + { |
---|
| 2106 | + ToggleFullScreen(); |
---|
| 2107 | + } else |
---|
| 2108 | + if (source == undoButton) |
---|
| 2109 | + { |
---|
| 2110 | + Undo(); |
---|
| 2111 | + } else |
---|
| 2112 | + if (source == redoButton) |
---|
| 2113 | + { |
---|
| 2114 | + Redo(); |
---|
| 2115 | + } else |
---|
| 2116 | + if (source == saveButton) |
---|
| 2117 | + { |
---|
| 2118 | + Save(); |
---|
1919 | 2119 | } else |
---|
1920 | 2120 | if (source == oneStepButton) |
---|
1921 | 2121 | { |
---|
.. | .. |
---|
1970 | 2170 | if (source == cutItem || source == clearButton) |
---|
1971 | 2171 | { |
---|
1972 | 2172 | loadClipboard(true); |
---|
| 2173 | + } else |
---|
| 2174 | + if (source == undoItem) |
---|
| 2175 | + { |
---|
| 2176 | + Undo(); |
---|
| 2177 | + } else |
---|
| 2178 | + if (source == redoItem) |
---|
| 2179 | + { |
---|
| 2180 | + Redo(); |
---|
1973 | 2181 | } else |
---|
1974 | 2182 | if (source == duplicateItem) |
---|
1975 | 2183 | { |
---|
.. | .. |
---|
2448 | 2656 | { |
---|
2449 | 2657 | CastShadow(2); |
---|
2450 | 2658 | } else |
---|
2451 | | - if (source == ungroupItem) |
---|
| 2659 | + if (source == ungroupItem || source == ungroupButton) |
---|
2452 | 2660 | { |
---|
2453 | 2661 | //ungroup(); |
---|
2454 | 2662 | for (int i=0; i<group.selection.size(); i++) |
---|
.. | .. |
---|
2470 | 2678 | } else |
---|
2471 | 2679 | if (source == genNormalsMESHItem) |
---|
2472 | 2680 | { |
---|
2473 | | - GenNormals(true); // TODO |
---|
| 2681 | + GenNormalsMESH(); |
---|
2474 | 2682 | } else |
---|
2475 | 2683 | if (source == genNormalsORGANItem) |
---|
2476 | 2684 | { |
---|
.. | .. |
---|
2535 | 2743 | if (source == unmarkleavesItem) |
---|
2536 | 2744 | { |
---|
2537 | 2745 | MarkLeaves(false); |
---|
| 2746 | + } else |
---|
| 2747 | + if (source == rewindleavesItem) |
---|
| 2748 | + { |
---|
| 2749 | + RewindLeaves(true); |
---|
| 2750 | + } else |
---|
| 2751 | + if (source == unrewindleavesItem) |
---|
| 2752 | + { |
---|
| 2753 | + RewindLeaves(false); |
---|
| 2754 | + } else |
---|
| 2755 | + if (source == randomleavesItem) |
---|
| 2756 | + { |
---|
| 2757 | + RandomLeaves(true); |
---|
| 2758 | + } else |
---|
| 2759 | + if (source == unrandomleavesItem) |
---|
| 2760 | + { |
---|
| 2761 | + RandomLeaves(false); |
---|
2538 | 2762 | } else |
---|
2539 | 2763 | if (source == flipVItem) |
---|
2540 | 2764 | { |
---|
.. | .. |
---|
2770 | 2994 | if (source == twoButton) |
---|
2771 | 2995 | { |
---|
2772 | 2996 | radio.layout = twoButton; |
---|
| 2997 | + |
---|
| 2998 | + if (CameraPane.FULLSCREEN) |
---|
| 2999 | + fullscreenLayout = radio.layout; |
---|
| 3000 | + |
---|
2773 | 3001 | // bug |
---|
2774 | 3002 | //gridPanel.setDividerLocation(1.0); |
---|
2775 | 3003 | //bigPanel.setDividerLocation(0.0); |
---|
.. | .. |
---|
2802 | 3030 | bigThree.ClearUI(); |
---|
2803 | 3031 | bigThree.add(centralPanel); |
---|
2804 | 3032 | bigThree.FlushUI(); |
---|
| 3033 | + |
---|
| 3034 | + cameraView.requestFocusInWindow(); |
---|
| 3035 | + |
---|
| 3036 | +// refreshContents(true); |
---|
| 3037 | +// |
---|
| 3038 | +// try |
---|
| 3039 | +// { |
---|
| 3040 | +// java.awt.Robot bot = new java.awt.Robot(); |
---|
| 3041 | +// int mask = InputEvent.BUTTON1_MASK; |
---|
| 3042 | +// bot.mouseMove(100, 100); |
---|
| 3043 | +// bot.mousePress(mask); |
---|
| 3044 | +// bot.mouseRelease(mask); |
---|
| 3045 | +// } |
---|
| 3046 | +// catch (Exception e) |
---|
| 3047 | +// { |
---|
| 3048 | +// |
---|
| 3049 | +// } |
---|
| 3050 | + |
---|
2805 | 3051 | } else |
---|
2806 | 3052 | if (source == threeButton) |
---|
2807 | 3053 | { |
---|
2808 | 3054 | radio.layout = threeButton; |
---|
| 3055 | + |
---|
| 3056 | + if (CameraPane.FULLSCREEN) |
---|
| 3057 | + fullscreenLayout = radio.layout; |
---|
2809 | 3058 | |
---|
2810 | 3059 | // bigThree.remove(scenePanel); |
---|
2811 | 3060 | // bigThree.remove(centralPanel); |
---|
.. | .. |
---|
2838 | 3087 | bigThree.add(centralPanel); |
---|
2839 | 3088 | bigThree.add(XYZPanel); |
---|
2840 | 3089 | bigThree.FlushUI(); |
---|
| 3090 | + |
---|
| 3091 | + cameraView.requestFocusInWindow(); |
---|
2841 | 3092 | } else |
---|
2842 | 3093 | if (source == fourButton) |
---|
2843 | 3094 | { |
---|
2844 | 3095 | radio.layout = fourButton; |
---|
| 3096 | + |
---|
| 3097 | + if (CameraPane.FULLSCREEN) |
---|
| 3098 | + fullscreenLayout = radio.layout; |
---|
2845 | 3099 | |
---|
2846 | 3100 | // bigThree.remove(scenePanel); |
---|
2847 | 3101 | // bigThree.remove(centralPanel); |
---|
.. | .. |
---|
2873 | 3127 | bigThree.ClearUI(); |
---|
2874 | 3128 | bigThree.add(scenePanel); |
---|
2875 | 3129 | bigThree.FlushUI(); |
---|
| 3130 | + |
---|
| 3131 | + cameraView.requestFocusInWindow(); |
---|
2876 | 3132 | } else |
---|
2877 | 3133 | if (source == sixButton) |
---|
2878 | 3134 | { |
---|
2879 | 3135 | radio.layout = sixButton; |
---|
| 3136 | + |
---|
| 3137 | + if (CameraPane.FULLSCREEN) |
---|
| 3138 | + fullscreenLayout = radio.layout; |
---|
2880 | 3139 | |
---|
2881 | 3140 | // bigThree.remove(scenePanel); |
---|
2882 | 3141 | // bigThree.remove(centralPanel); |
---|
.. | .. |
---|
2909 | 3168 | bigThree.add(scenePanel); |
---|
2910 | 3169 | bigThree.add(centralPanel); |
---|
2911 | 3170 | bigThree.FlushUI(); |
---|
| 3171 | + |
---|
| 3172 | + cameraView.requestFocusInWindow(); |
---|
2912 | 3173 | } else |
---|
2913 | 3174 | if (source == sevenButton) |
---|
2914 | 3175 | { |
---|
2915 | 3176 | radio.layout = sevenButton; |
---|
| 3177 | + |
---|
| 3178 | + if (CameraPane.FULLSCREEN) |
---|
| 3179 | + fullscreenLayout = radio.layout; |
---|
2916 | 3180 | |
---|
2917 | 3181 | // bigThree.remove(scenePanel); |
---|
2918 | 3182 | // bigThree.remove(centralPanel); |
---|
.. | .. |
---|
2946 | 3210 | bigThree.add(centralPanel); |
---|
2947 | 3211 | bigThree.add(XYZPanel); |
---|
2948 | 3212 | bigThree.FlushUI(); |
---|
| 3213 | + |
---|
| 3214 | + cameraView.requestFocusInWindow(); |
---|
2949 | 3215 | } else |
---|
2950 | 3216 | if (source == rootButton) |
---|
2951 | 3217 | { |
---|
.. | .. |
---|
2957 | 3223 | EditObject(obj); |
---|
2958 | 3224 | } |
---|
2959 | 3225 | |
---|
| 3226 | + cameraView.requestFocusInWindow(); |
---|
2960 | 3227 | refreshContents(true); |
---|
2961 | 3228 | } else |
---|
2962 | 3229 | if (source == closeButton) |
---|
.. | .. |
---|
2966 | 3233 | for (Enumeration e = buttonGroup.getElements(); e.hasMoreElements();) |
---|
2967 | 3234 | { |
---|
2968 | 3235 | ab = (cRadio)e.nextElement(); |
---|
2969 | | - if(ab.getModel().isSelected() && ab.GetObject() != client) |
---|
| 3236 | + if (ab.getModel().isSelected() && ab.GetObject() != client) |
---|
2970 | 3237 | { |
---|
| 3238 | + // Patch to avoid bug with transparency. |
---|
| 3239 | + if (!ab.hadMaterial) |
---|
| 3240 | + { |
---|
| 3241 | + ab.object.material = null; |
---|
| 3242 | + } |
---|
| 3243 | + |
---|
2971 | 3244 | buttonGroup.remove(ab); |
---|
2972 | 3245 | radioPanel.remove(ab); |
---|
2973 | 3246 | |
---|
2974 | | - ab.GetObject().editWindow = null; |
---|
| 3247 | + //ab.GetObject().editWindow = null; |
---|
| 3248 | + ab.GetObject().manipWindow = null; |
---|
2975 | 3249 | // ab.GetObject().objectUI = null; // ????????? |
---|
2976 | 3250 | |
---|
2977 | 3251 | ((cRadio)radioPanel.getComponent(radioPanel.getComponentCount() - 1)).doClick(); |
---|
2978 | 3252 | break; |
---|
2979 | 3253 | } |
---|
2980 | 3254 | } |
---|
| 3255 | + |
---|
| 3256 | + cameraView.requestFocusInWindow(); |
---|
2981 | 3257 | refreshContents(true); |
---|
2982 | 3258 | } else |
---|
2983 | 3259 | if (source == editItem || source == editButton) |
---|
.. | .. |
---|
2994 | 3270 | child.CloseUI(); |
---|
2995 | 3271 | listUI.remove(child); |
---|
2996 | 3272 | |
---|
2997 | | - child.editWindow = null; // ??????????? |
---|
| 3273 | + //child.editWindow = null; // ??????????? |
---|
2998 | 3274 | } |
---|
2999 | 3275 | objEditor.ctrlPanel.FlushUI(); |
---|
3000 | 3276 | //objEditor.jTree.clearSelection(); |
---|
.. | .. |
---|
3081 | 3357 | sideView.object = group; |
---|
3082 | 3358 | } |
---|
3083 | 3359 | |
---|
3084 | | -// fix "+" issue group.editWindow = this; |
---|
| 3360 | +// fix "+" issue |
---|
| 3361 | + //group.editWindow = this; |
---|
| 3362 | + group.manipWindow = this; |
---|
3085 | 3363 | |
---|
3086 | 3364 | /* |
---|
3087 | 3365 | currentLayout = radio.layout; |
---|
.. | .. |
---|
3094 | 3372 | //group.parent = null; // ROOT |
---|
3095 | 3373 | //group.attributes = -1; |
---|
3096 | 3374 | ResetModel(); |
---|
| 3375 | + |
---|
| 3376 | + cameraView.requestFocusInWindow(); |
---|
3097 | 3377 | refreshContents(true); |
---|
3098 | | - } |
---|
| 3378 | + } else if (event.getSource() == editCameraItem) |
---|
| 3379 | + { |
---|
| 3380 | + cameraView.ProtectCamera(); |
---|
| 3381 | + cameraView.repaint(); |
---|
| 3382 | + return; |
---|
| 3383 | + } else if (event.getSource() == revertCameraItem) |
---|
| 3384 | + { |
---|
| 3385 | + cameraView.RevertCamera(); |
---|
| 3386 | + cameraView.repaint(); |
---|
| 3387 | + return; |
---|
| 3388 | + // } else if (event.getSource() == textureButton) |
---|
| 3389 | + // { |
---|
| 3390 | + // return; // true; |
---|
| 3391 | + } |
---|
3099 | 3392 | else |
---|
3100 | 3393 | { |
---|
3101 | 3394 | //return super.action(event, arg); |
---|
.. | .. |
---|
3104 | 3397 | } |
---|
3105 | 3398 | |
---|
3106 | 3399 | boolean useclient = false; |
---|
3107 | | - cRadio radio; |
---|
3108 | 3400 | |
---|
3109 | 3401 | void ToggleRoot() |
---|
3110 | 3402 | { |
---|
.. | .. |
---|
3343 | 3635 | |
---|
3344 | 3636 | int size = obj.MemorySize(); |
---|
3345 | 3637 | |
---|
3346 | | - System.err.println((size/1024) + " KB is the size of " + obj); |
---|
| 3638 | + //System.err.println((size/1024) + " KB is the size of " + obj); |
---|
| 3639 | + System.err.println("the size of " + obj + " is " + size + " (" + (size/1024) + "KB)"); |
---|
3347 | 3640 | } |
---|
3348 | 3641 | } |
---|
3349 | 3642 | catch (Exception e) |
---|
.. | .. |
---|
3424 | 3717 | void GenNormals(boolean crease) |
---|
3425 | 3718 | { |
---|
3426 | 3719 | group.GenNormalsS(crease); |
---|
| 3720 | + |
---|
| 3721 | + refreshContents(); |
---|
| 3722 | + } |
---|
| 3723 | + |
---|
| 3724 | + void GenNormalsMESH() |
---|
| 3725 | + { |
---|
| 3726 | + group.GenNormalsMeshS(); |
---|
3427 | 3727 | |
---|
3428 | 3728 | refreshContents(); |
---|
3429 | 3729 | } |
---|
.. | .. |
---|
4051 | 4351 | refreshContents(); |
---|
4052 | 4352 | } |
---|
4053 | 4353 | |
---|
| 4354 | + void RewindLeaves(boolean hide) |
---|
| 4355 | + { |
---|
| 4356 | + group.selection.RewindLeaves(hide); |
---|
| 4357 | + refreshContents(); |
---|
| 4358 | + } |
---|
| 4359 | + |
---|
| 4360 | + void RandomLeaves(boolean hide) |
---|
| 4361 | + { |
---|
| 4362 | + group.selection.RandomLeaves(hide); |
---|
| 4363 | + refreshContents(); |
---|
| 4364 | + } |
---|
| 4365 | + |
---|
4054 | 4366 | void SetTexRes(int tr) |
---|
4055 | 4367 | { |
---|
4056 | 4368 | group.selection.SetTexRes(tr); |
---|
.. | .. |
---|
4133 | 4445 | { |
---|
4134 | 4446 | //System.out.println("edit : " + objectPanel.indexOfTab("Material")); |
---|
4135 | 4447 | //objectPanel.setEnabledAt(objectPanel.indexOfTab("Material"), false); |
---|
4136 | | - objectPanel.setSelectedIndex(objectPanel.indexOfTab("Edit")); |
---|
| 4448 | + //objectPanel.setSelectedIndex(objectPanel.indexOfTab("Edit")); |
---|
4137 | 4449 | |
---|
4138 | 4450 | Object3D elem = (Object3D)group.selection.elementAt(i); |
---|
4139 | 4451 | if(elem != group || !newWindow) |
---|
.. | .. |
---|
4226 | 4538 | //case 702: // Event.LIST_DESELECT |
---|
4227 | 4539 | group.deselectAll(); |
---|
4228 | 4540 | TreePath tps[] = objEditor.jTree.getSelectionPaths(); |
---|
4229 | | - objEditor.ClearInfo(); // .GetMaterial()); |
---|
4230 | 4541 | if (tps != null) |
---|
4231 | 4542 | { |
---|
4232 | 4543 | for (int i=0; i < tps.length; i++) |
---|
.. | .. |
---|
4235 | 4546 | |
---|
4236 | 4547 | //if (child.parent != null) |
---|
4237 | 4548 | //child.parent.addSelectee(child); |
---|
| 4549 | + objEditor.SetMaterial(child); |
---|
4238 | 4550 | group.addSelectee(child); |
---|
4239 | | - objEditor.SetMaterial(child); // .GetMaterial()); |
---|
4240 | | - objEditor.AddInfo(child, this, true); // .GetMaterial()); |
---|
4241 | | - System.err.println("info : " + child.GetPath()); |
---|
4242 | 4551 | } |
---|
4243 | 4552 | } |
---|
4244 | 4553 | // else |
---|
.. | .. |
---|
4248 | 4557 | // System.err.println("info : " + group.GetPath()); |
---|
4249 | 4558 | // } |
---|
4250 | 4559 | |
---|
4251 | | - objEditor.SetText(); // jan 2014 |
---|
4252 | | - |
---|
4253 | | - if (flashIt && !Globals.isLIVE() && tps != null && tps.length > 0 && !(((Object3D) tps[0].getLastPathComponent()) instanceof Camera)) |
---|
| 4560 | + if (flashIt && !Globals.isLIVE() && tps != null && tps.length > 0 && !(tps[0].getLastPathComponent() instanceof Camera)) |
---|
4254 | 4561 | CameraPane.flash = true; |
---|
4255 | 4562 | |
---|
4256 | | - if (tps != null && tps.length > 0 && ((Object3D) tps[0].getLastPathComponent()) instanceof Camera) |
---|
| 4563 | + if (tps != null && tps.length > 0 && tps[0].getLastPathComponent() instanceof Camera) |
---|
4257 | 4564 | // a camera |
---|
4258 | 4565 | { |
---|
4259 | | - CameraPane.camerachangeframe = 0; // don't refuse it |
---|
4260 | | - Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent()); |
---|
| 4566 | + if (tps[0].getLastPathComponent() != Globals.theRenderer.LightCamera()) |
---|
| 4567 | + { |
---|
| 4568 | + CameraPane.camerachangeframe = 0; // don't refuse it |
---|
| 4569 | + Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent()); |
---|
| 4570 | + } |
---|
4261 | 4571 | // Globals.theRenderer.renderCamera = Globals.theRenderer.manipCamera; |
---|
4262 | 4572 | // Globals.theRenderer.eyeCamera = Globals.theRenderer.manipCamera; |
---|
4263 | 4573 | } |
---|
.. | .. |
---|
4270 | 4580 | |
---|
4271 | 4581 | freezemodel = false; |
---|
4272 | 4582 | } |
---|
| 4583 | + |
---|
| 4584 | + void refreshContents(boolean cp) |
---|
| 4585 | + { |
---|
| 4586 | + if (!Globals.MOUSEDRAGGED) |
---|
| 4587 | + { |
---|
| 4588 | + objEditor.ClearInfo(); // .GetMaterial()); |
---|
| 4589 | + |
---|
| 4590 | + for (int i=0; i < group.selection.Size(); i++) |
---|
| 4591 | + { |
---|
| 4592 | + Object3D child = (Object3D) group.selection.get(i); |
---|
| 4593 | + |
---|
| 4594 | + objEditor.AddInfo(child, this, true); |
---|
| 4595 | + System.err.println("info : " + child.GetPath()); |
---|
| 4596 | + } |
---|
| 4597 | + |
---|
| 4598 | + objEditor.SetText(); // jan 2014 |
---|
| 4599 | + } |
---|
| 4600 | + |
---|
| 4601 | + super.refreshContents(cp); |
---|
| 4602 | + } |
---|
4273 | 4603 | |
---|
4274 | 4604 | void linkSomething(Object3D thing) |
---|
4275 | 4605 | { |
---|
.. | .. |
---|
4341 | 4671 | { |
---|
4342 | 4672 | if (group.selection.isEmpty()) |
---|
4343 | 4673 | return; |
---|
| 4674 | + |
---|
4344 | 4675 | Grafreed.clipboardIsTempGroup = false; |
---|
4345 | 4676 | Composite tGroup = null; |
---|
4346 | 4677 | if (group.selection.size() > 0) // 1) |
---|
.. | .. |
---|
4351 | 4682 | |
---|
4352 | 4683 | if (cut) |
---|
4353 | 4684 | { |
---|
| 4685 | + if (Globals.SAVEONMAKE) |
---|
| 4686 | + Save(); |
---|
4354 | 4687 | //int indices[] = jList.getSelectedIndices(); |
---|
4355 | 4688 | //for (int i = indices.length - 1; i >= 0; i--) |
---|
4356 | 4689 | //jList.remove(indices[i]); |
---|
.. | .. |
---|
4440 | 4773 | } |
---|
4441 | 4774 | |
---|
4442 | 4775 | } |
---|
| 4776 | + |
---|
4443 | 4777 | if (Grafreed.clipboardIsTempGroup) |
---|
4444 | 4778 | Grafreed.clipboard = tGroup; |
---|
| 4779 | + |
---|
4445 | 4780 | if (cut) |
---|
4446 | 4781 | { |
---|
4447 | 4782 | ResetModel(); |
---|
.. | .. |
---|
4973 | 5308 | } |
---|
4974 | 5309 | */ |
---|
4975 | 5310 | |
---|
4976 | | - void ImportGFD() |
---|
4977 | | - { |
---|
4978 | | - FileDialog browser = new FileDialog(objEditor.frame, "Import GrafreeD", FileDialog.LOAD); |
---|
4979 | | - browser.show(); |
---|
4980 | | - String filename = browser.getFile(); |
---|
4981 | | - if (filename != null && filename.length() > 0) |
---|
4982 | | - { |
---|
4983 | | - String fullname = browser.getDirectory() + filename; |
---|
4984 | | - |
---|
4985 | | - //Object3D readobj = |
---|
4986 | | - objEditor.ReadGFD(fullname, objEditor); |
---|
4987 | | - //makeSomething(readobj); |
---|
4988 | | - } |
---|
4989 | | - } |
---|
4990 | | - |
---|
4991 | 5311 | /* |
---|
4992 | 5312 | public void Callback(Object obj) |
---|
4993 | 5313 | { |
---|
.. | .. |
---|
5011 | 5331 | } |
---|
5012 | 5332 | */ |
---|
5013 | 5333 | |
---|
5014 | | - void ImportVRMLX3D() |
---|
5015 | | - { |
---|
5016 | | - if (Grafreed.standAlone) |
---|
5017 | | - { |
---|
5018 | | - /**/ |
---|
5019 | | - FileDialog browser = new FileDialog(objEditor.frame, "Import VRML/X3D", FileDialog.LOAD); |
---|
5020 | | - browser.show(); |
---|
5021 | | - String filename = browser.getFile(); |
---|
5022 | | - if (filename != null && filename.length() > 0) |
---|
5023 | | - { |
---|
5024 | | - String fullname = browser.getDirectory() + filename; |
---|
5025 | | - LoadVRMLX3D(fullname); |
---|
5026 | | - } |
---|
5027 | | - /**/ |
---|
5028 | | - } |
---|
5029 | | - } |
---|
5030 | | - |
---|
5031 | 5334 | String GetFile(String dialogName) |
---|
5032 | 5335 | { |
---|
5033 | 5336 | if (Grafreed.standAlone) |
---|
.. | .. |
---|
5098 | 5401 | cButton clearpanelButton; |
---|
5099 | 5402 | cButton unselectButton; |
---|
5100 | 5403 | |
---|
| 5404 | + cButton minButton; |
---|
| 5405 | + cButton maxButton; |
---|
| 5406 | + cButton fullButton; |
---|
| 5407 | + cButton undoButton; |
---|
| 5408 | + cButton redoButton; |
---|
| 5409 | + cButton saveButton; |
---|
5101 | 5410 | cButton oneStepButton; |
---|
| 5411 | + |
---|
| 5412 | + cButton groupButton; |
---|
| 5413 | + cButton ungroupButton; |
---|
| 5414 | + cButton compositeButton; |
---|
| 5415 | + |
---|
| 5416 | + cButton gridButton; |
---|
| 5417 | + cButton boxButton; |
---|
| 5418 | + cButton sphereButton; |
---|
| 5419 | + cButton coneButton; |
---|
| 5420 | + cButton torusButton; |
---|
| 5421 | + cButton superButton; |
---|
| 5422 | + cButton kleinButton; |
---|
| 5423 | + cButton particlesButton; |
---|
| 5424 | + cButton overlayButton; |
---|
| 5425 | + cButton lightButton; |
---|
5102 | 5426 | |
---|
5103 | 5427 | cButton screenfitButton; |
---|
5104 | 5428 | cButton screenfitpointButton; |
---|
.. | .. |
---|
5111 | 5435 | |
---|
5112 | 5436 | cButton setsupportButton; |
---|
5113 | 5437 | |
---|
5114 | | - cButton twoButton; |
---|
5115 | | - cButton sixButton; |
---|
5116 | | - cButton threeButton; |
---|
5117 | | - cButton sevenButton; |
---|
5118 | | - cButton fourButton; // full panel |
---|
5119 | | - cButton oneButton; // full XYZ |
---|
5120 | | - //cButton currentLayout; |
---|
5121 | | - |
---|
5122 | 5438 | // |
---|
5123 | 5439 | //Composite |
---|
5124 | 5440 | Object3D // to do !! |
---|
.. | .. |
---|
5130 | 5446 | private MenuItem lookFromItem; |
---|
5131 | 5447 | private MenuItem switchItem; |
---|
5132 | 5448 | private MenuItem cutItem; |
---|
5133 | | - private MenuItem duplicateItem; |
---|
| 5449 | + private MenuItem undoItem; |
---|
| 5450 | + private MenuItem redoItem; |
---|
| 5451 | + private JMenuItem duplicateItem; |
---|
5134 | 5452 | private MenuItem cloneItem; |
---|
5135 | 5453 | private MenuItem cloneSupportItem; |
---|
5136 | 5454 | private MenuItem overwriteGeoItem; |
---|
.. | .. |
---|
5193 | 5511 | private MenuItem showleavesItem; |
---|
5194 | 5512 | private MenuItem markleavesItem; |
---|
5195 | 5513 | private MenuItem unmarkleavesItem; |
---|
| 5514 | + private MenuItem rewindleavesItem; |
---|
| 5515 | + private MenuItem unrewindleavesItem; |
---|
| 5516 | + private MenuItem randomleavesItem; |
---|
| 5517 | + private MenuItem unrandomleavesItem; |
---|
5196 | 5518 | |
---|
5197 | 5519 | private MenuItem flipVItem; |
---|
5198 | 5520 | private MenuItem unflipVItem; |
---|
.. | .. |
---|
5276 | 5598 | private MenuItem doubleItem; |
---|
5277 | 5599 | private MenuItem tripleItem; |
---|
5278 | 5600 | |
---|
5279 | | - private MenuItem importGFDItem; |
---|
5280 | | - private MenuItem importVRMLX3DItem; |
---|
5281 | | - private MenuItem import3DSItem; |
---|
5282 | | - private MenuItem importOBJItem; |
---|
5283 | | - |
---|
5284 | 5601 | private MenuItem computeAOItem; |
---|
5285 | 5602 | private MenuItem recompileItem; |
---|
5286 | 5603 | private MenuItem editScriptItem; |
---|
.. | .. |
---|
5290 | 5607 | private MenuItem analyzeItem; |
---|
5291 | 5608 | private MenuItem dumpItem; |
---|
5292 | 5609 | //boolean freezemodel = false; |
---|
| 5610 | + |
---|
| 5611 | + Menu cameraMenu; |
---|
| 5612 | + MenuItem editCameraItem; |
---|
| 5613 | + MenuItem revertCameraItem; |
---|
5293 | 5614 | } |
---|