Normand Briere
2019-07-17 a5580a47d246c1272b10adba68070f6e13da5e41
ObjEditor.java
....@@ -4,6 +4,7 @@
44
55 import java.awt.*;
66 import java.awt.event.*;
7
+import java.awt.image.BufferedImage;
78 import javax.swing.*;
89 import javax.swing.event.*;
910 import javax.swing.text.*;
....@@ -13,6 +14,9 @@
1314 import javax.swing.plaf.metal.MetalLookAndFeel;
1415 //import javax.swing.plaf.ColorUIResource;
1516 //import javax.swing.plaf.metal.DefaultMetalTheme;
17
+
18
+import javax.swing.plaf.basic.BasicSplitPaneDivider;
19
+import javax.swing.plaf.basic.BasicSplitPaneUI;
1620
1721 //import javax.media.opengl.GLCanvas;
1822
....@@ -35,6 +39,67 @@
3539
3640 GroupEditor callee;
3741 JFrame frame;
42
+
43
+ static ObjEditor theFrame;
44
+
45
+ cButton GetButton(String name, boolean border)
46
+ {
47
+ try
48
+ {
49
+ ImageIcon icon = GetIcon(name);
50
+ return new cButton(icon, border);
51
+ }
52
+ catch (Exception e)
53
+ {
54
+ return new cButton(name, border);
55
+ }
56
+ }
57
+
58
+ cToggleButton GetToggleButton(String name, boolean border)
59
+ {
60
+ try
61
+ {
62
+ ImageIcon icon = GetIcon(name);
63
+ return new cToggleButton(icon, border);
64
+ }
65
+ catch (Exception e)
66
+ {
67
+ return new cToggleButton(name, border);
68
+ }
69
+ }
70
+
71
+ cCheckBox GetCheckBox(String name, boolean border)
72
+ {
73
+ try
74
+ {
75
+ ImageIcon icon = GetIcon(name);
76
+ return new cCheckBox(icon, border);
77
+ }
78
+ catch (Exception e)
79
+ {
80
+ return new cCheckBox(name, border);
81
+ }
82
+ }
83
+
84
+ private ImageIcon GetIcon(String name) throws IOException
85
+ {
86
+ BufferedImage image = javax.imageio.ImageIO.read(getClass().getClassLoader().getResourceAsStream(name));
87
+
88
+ if (image.getWidth() != 24 && image.getHeight() != 24)
89
+ {
90
+ BufferedImage resized = new BufferedImage(24, 24, image.getType());
91
+ Graphics2D g = resized.createGraphics();
92
+ g.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);
93
+ //g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
94
+ g.drawImage(image, 0, 0, 24, 24, 0, 0, image.getWidth(), image.getHeight(), null);
95
+ g.dispose();
96
+
97
+ image = resized;
98
+ }
99
+
100
+ javax.swing.ImageIcon icon = new javax.swing.ImageIcon(image);
101
+ return icon;
102
+ }
38103
39104 // SCRIPT
40105
....@@ -145,7 +210,7 @@
145210
146211 objEditor.ctrlPanel.remove(namePanel);
147212
148
- if (!GroupEditor.allparams)
213
+ if (!allparams)
149214 return;
150215
151216 // objEditor.ctrlPanel.remove(liveCB);
....@@ -168,7 +233,8 @@
168233 // objEditor.ctrlPanel.remove(remarkButton);
169234
170235 objEditor.ctrlPanel.remove(setupPanel);
171
- objEditor.ctrlPanel.remove(commandsPanel);
236
+ objEditor.ctrlPanel.remove(setupPanel2);
237
+ objEditor.ctrlPanel.remove(objectCommandsPanel);
172238 objEditor.ctrlPanel.remove(pushPanel);
173239 //objEditor.ctrlPanel.remove(fillPanel);
174240
....@@ -243,6 +309,7 @@
243309 //localCopy.parent = null;
244310
245311 frame = new JFrame();
312
+ frame.setUndecorated(false);
246313 objEditor = this;
247314 this.callee = callee;
248315
....@@ -273,12 +340,17 @@
273340 return frame.action(event, obj);
274341 }
275342
343
+ // Cannot work without static
344
+ static boolean allparams = true;
345
+
346
+ static java.util.Vector<Object3D> listUI = new java.util.Vector<Object3D>();
347
+
276348 void SetupMenu()
277349 {
278350 frame.setMenuBar(menuBar = new MenuBar());
279351 menuBar.add(fileMenu = new Menu("File"));
280352 fileMenu.add(newItem = new MenuItem("New"));
281
- fileMenu.add(loadItem = new MenuItem("Load..."));
353
+ fileMenu.add(openItem = new MenuItem("Open..."));
282354
283355 //oe.menuBar.add(menu = new Menu("Include"));
284356 Menu menu = new Menu("Import");
....@@ -310,7 +382,7 @@
310382 }
311383
312384 newItem.addActionListener(this);
313
- loadItem.addActionListener(this);
385
+ openItem.addActionListener(this);
314386 saveItem.addActionListener(this);
315387 saveAsItem.addActionListener(this);
316388 exportAsItem.addActionListener(this);
....@@ -319,14 +391,52 @@
319391 closeItem.addActionListener(this);
320392
321393 objectPanel = new JTabbedPane();
394
+
395
+ ChangeListener changeListener = new ChangeListener()
396
+ {
397
+ public void stateChanged(ChangeEvent changeEvent)
398
+ {
399
+// if (objectPanel.getSelectedIndex() == objectPanel.indexOfTab("Material") && !materialFlushed)
400
+// {
401
+// if (latestObject != null)
402
+// {
403
+// refreshContents(true);
404
+// SetMaterial(latestObject);
405
+// }
406
+//
407
+// materialFlushed = true;
408
+// }
409
+// if (objectPanel.getSelectedIndex() == objectPanel.indexOfTab("Edit"))
410
+// {
411
+// if (listUI.size() == 0)
412
+// EditSelection(false);
413
+// }
414
+
415
+ refreshContents(false); // To refresh Info tab
416
+ }
417
+ };
418
+ objectPanel.addChangeListener(changeListener);
419
+
322420 toolbarPanel = new JPanel();
323421 toolbarPanel.setName("Toolbar");
324422 treePanel = new cGridBag();
325423 treePanel.setName("Tree");
424
+
425
+ editPanel = new cGridBag().setVertical(true);
426
+ editPanel.setName("Edit");
427
+
326428 ctrlPanel = new cGridBag().setVertical(false); // new GridBagLayout());
327
- ctrlPanel.setName("Edit");
429
+
430
+ editCommandsPanel = new cGridBag();
431
+ editPanel.add(editCommandsPanel);
432
+ editPanel.add(ctrlPanel);
433
+
434
+ toolboxPanel = new cGridBag().setVertical(false);
435
+ toolboxPanel.setName("Toolbox");
436
+
328437 materialPanel = new cGridBag().setVertical(true);
329438 materialPanel.setName("Material");
439
+
330440 /*JTextPane*/
331441 infoarea = createTextPane();
332442 doc = infoarea.getStyledDocument();
....@@ -339,7 +449,7 @@
339449 // TEXTAREA infoarea.setLineWrap(true);
340450 // TEXTAREA infoarea.setWrapStyleWord(true);
341451 infoPanel = new JScrollPane(infoarea, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //AS_NEEDED);
342
- infoPanel.setPreferredSize(new Dimension(50, 200));
452
+ infoPanel.setPreferredSize(new Dimension(1, 1));
343453 infoPanel.setName("Info");
344454 //infoPanel.setLayout(new BorderLayout());
345455 //infoPanel.add(createTextPane());
....@@ -351,7 +461,14 @@
351461 mainPanel.setDividerSize(9);
352462 mainPanel.setDividerLocation(0.5); //1.0);
353463 mainPanel.setResizeWeight(0.5);
354
-
464
+
465
+//mainPanel.setDividerSize((int) (mainPanel.getDividerSize() * 1.5));
466
+ BasicSplitPaneDivider divider = ( (BasicSplitPaneUI) mainPanel.getUI()).getDivider();
467
+ divider.setDividerSize(15);
468
+ divider.setBorder(BorderFactory.createTitledBorder(divider.getBorder(), "Custom border title -- gets rid of the one-touch arrows!"));
469
+
470
+ mainPanel.setUI(new BasicSplitPaneUI());
471
+
355472 //ctrlPanel.setLayout(new GridLayout(4, 1, 5, 5));
356473 //mainPanel.setLayout(new GridBagLayout());
357474 toolbarPanel.setLayout(new FlowLayout(FlowLayout.LEFT));
....@@ -419,10 +536,10 @@
419536 e.printStackTrace();
420537 }
421538
422
- String selection = infoarea.getText();
423
- java.awt.datatransfer.StringSelection data = new java.awt.datatransfer.StringSelection(selection);
424
- java.awt.datatransfer.Clipboard clipboard =
425
- Toolkit.getDefaultToolkit().getSystemClipboard();
539
+// String selection = infoarea.getText();
540
+// java.awt.datatransfer.StringSelection data = new java.awt.datatransfer.StringSelection(selection);
541
+// java.awt.datatransfer.Clipboard clipboard =
542
+// Toolkit.getDefaultToolkit().getSystemClipboard();
426543 //clipboard.setContents(data, data);
427544 }
428545
....@@ -582,21 +699,144 @@
582699 }
583700 }
584701
702
+//static GraphicsDevice device = GraphicsEnvironment
703
+// .getLocalGraphicsEnvironment().getScreenDevices()[0];
704
+
705
+ Rectangle keeprect;
706
+ cRadio radio;
707
+
708
+cButton keepButton;
709
+ cButton twoButton; // Full 3D
710
+ cButton sixButton;
711
+ cButton threeButton;
712
+ cButton sevenButton;
713
+ cButton fourButton; // full panel
714
+ cButton oneButton; // full XYZ
715
+ //cButton currentLayout;
716
+
717
+ boolean maximized;
718
+
719
+ cButton fullscreenLayout;
720
+
721
+ void Minimize()
722
+ {
723
+ frame.setState(Frame.ICONIFIED);
724
+ frame.validate();
725
+ }
726
+
727
+// artifactURI=null, type=0, property=${file.reference.jfxrt.jar}, object=org.netbeans.modules.java.api.common.classpath.ClassPathSupport$RelativePath@6767876f, broken=false, additional={}
728
+// artifactURI=null, type=0, property=${file.reference.mac-ui.jar}, object=org.netbeans.modules.java.api.common.classpath.ClassPathSupport$RelativePath@16bdc817, broken=false, additional={}
729
+// artifactURI=null, type=0, property=${file.reference.classes.jar}, object=org.netbeans.modules.java.api.common.classpath.ClassPathSupport$RelativePath@9daa9c17, broken=false, additional={}
730
+ void Maximize()
731
+ {
732
+ if (CameraPane.FULLSCREEN)
733
+ {
734
+ ToggleFullScreen();
735
+ }
736
+
737
+ if (maximized)
738
+ {
739
+ frame.setBounds(keeprect.x, keeprect.y, keeprect.width, keeprect.height);
740
+ }
741
+ else
742
+ {
743
+ keeprect = frame.getBounds();
744
+// Rectangle rect = GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds();
745
+// Dimension rect2 = frame.getToolkit().getScreenSize();
746
+// frame.setBounds(0, rect2.height - rect.height, rect.width, rect.height);
747
+// frame.setState(Frame.MAXIMIZED_BOTH);
748
+ frame.setBounds(frame.getGraphicsConfiguration().getBounds());
749
+ }
750
+
751
+ maximized ^= true;
752
+
753
+ frame.validate();
754
+ }
755
+
756
+ cButton minButton;
757
+ cButton maxButton;
758
+ cButton fullButton;
759
+
585760 void ToggleFullScreen()
586761 {
587
- if (CameraPane.FULLSCREEN)
762
+GraphicsDevice device = frame.getGraphicsConfiguration().getDevice();
763
+
764
+ cameraView.ToggleFullScreen();
765
+
766
+ if (!CameraPane.FULLSCREEN)
588767 {
589
- frame.getContentPane().remove(/*"Center",*/bigThree);
590
- framePanel.add(bigThree);
591
- frame.getContentPane().add(/*"Center",*/framePanel);
768
+ device.setFullScreenWindow(null);
769
+ frame.dispose();
770
+ frame.setUndecorated(false);
771
+ frame.validate();
772
+ frame.setVisible(true);
773
+
774
+ //frame.setVisible(false);
775
+// frame.removeNotify();
776
+// frame.setUndecorated(false);
777
+// frame.addNotify();
778
+ //frame.setBounds(keeprect.x, keeprect.y, keeprect.width, keeprect.height);
779
+
780
+// X frame.getContentPane().remove(/*"Center",*/bigThree);
781
+// X framePanel.add(bigThree);
782
+// X frame.getContentPane().add(/*"Center",*/framePanel);
783
+ framePanel.setDividerLocation(46);
784
+
785
+ //frame.setVisible(true);
786
+ radio.layout = keepButton;
787
+ //theFrame = null;
788
+ keepButton = null;
789
+ radio.layout.doClick();
790
+
592791 } else
593792 {
594
- frame.getContentPane().remove(/*"Center",*/framePanel);
595
- framePanel.remove(bigThree);
596
- frame.getContentPane().add(/*"Center",*/bigThree);
793
+ keepButton = radio.layout;
794
+ //keeprect = frame.getBounds();
795
+// frame.setBounds(0, 0, frame.getToolkit().getScreenSize().width,
796
+// frame.getToolkit().getScreenSize().height);
797
+ //frame.setVisible(false);
798
+
799
+ frame.dispose();
800
+ frame.setUndecorated(true);
801
+ device.setFullScreenWindow(frame);
802
+ frame.validate();
803
+ frame.setVisible(true);
804
+// frame.removeNotify();
805
+// frame.setUndecorated(true);
806
+// frame.addNotify();
807
+// X frame.getContentPane().remove(/*"Center",*/framePanel);
808
+// X framePanel.remove(bigThree);
809
+// X frame.getContentPane().add(/*"Center",*/bigThree);
810
+ framePanel.setDividerLocation(0);
811
+
812
+ radio.layout = fullscreenLayout;
813
+ radio.layout.doClick();
814
+ //frame.setVisible(true);
597815 }
598
- cameraView.ToggleFullScreen();
816
+ frame.validate();
599817 }
818
+
819
+ private byte[] CompressCopy()
820
+ {
821
+ boolean temp = CameraPane.SWITCH;
822
+ CameraPane.SWITCH = false;
823
+
824
+ copy.ExtractBigData(versiontable);
825
+ // if (copy == client)
826
+
827
+ byte[] versions[] = copy.versions;
828
+ copy.versions = null;
829
+
830
+ byte[] compress = Compress(copy);
831
+
832
+ copy.versions = versions;
833
+
834
+ copy.RestoreBigData(versiontable);
835
+
836
+ CameraPane.SWITCH = temp;
837
+
838
+ return compress;
839
+ }
600840
601841 private JTextPane createTextPane()
602842 {
....@@ -736,7 +976,12 @@
736976 JCheckBox speedupCB;
737977 JCheckBox rewindCB;
738978 JCheckBox flipVCB;
979
+
980
+ cCheckBox toggleTextureCB;
981
+ cCheckBox toggleSwitchCB;
982
+
739983 JComboBox texresMenu;
984
+
740985 JButton resetButton;
741986 JButton stepButton;
742987 JButton stepAllButton;
....@@ -745,9 +990,13 @@
745990 JButton fasterButton;
746991 JButton remarkButton;
747992
993
+ cGridBag editPanel;
994
+ cGridBag editCommandsPanel;
995
+
748996 cGridBag namePanel;
749997 cGridBag setupPanel;
750
- cGridBag commandsPanel;
998
+ cGridBag setupPanel2;
999
+ cGridBag objectCommandsPanel;
7511000 cGridBag pushPanel;
7521001 cGridBag fillPanel;
7531002
....@@ -919,12 +1168,12 @@
9191168 namePanel = new cGridBag();
9201169
9211170 nameField = AddText(namePanel, copy.GetName());
922
- namePanel.add(nameField);
1171
+ namePanel.add(new JScrollPane(nameField, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER));
9231172 oe.ctrlPanel.add(namePanel);
9241173
9251174 oe.ctrlPanel.Return();
9261175
927
- if (!GroupEditor.allparams)
1176
+ if (!allparams)
9281177 return;
9291178
9301179 setupPanel = new cGridBag().setVertical(false);
....@@ -937,42 +1186,47 @@
9371186 hideCB = AddCheckBox(setupPanel, "Hide", copy.hide);
9381187 hideCB.setToolTipText("Hide object");
9391188 markCB = AddCheckBox(setupPanel, "Mark", copy.marked);
940
- markCB.setToolTipText("Set the animation target transform");
1189
+ markCB.setToolTipText("As animation target transform");
9411190
942
- rewindCB = AddCheckBox(setupPanel, "Rewind", copy.rewind);
1191
+ setupPanel2 = new cGridBag().setVertical(false);
1192
+
1193
+ rewindCB = AddCheckBox(setupPanel2, "Rewind", copy.rewind);
9431194 rewindCB.setToolTipText("Rewind animation");
9441195
945
- randomCB = AddCheckBox(setupPanel, "Random", copy.random);
946
- randomCB.setToolTipText("Option for switch node");
1196
+ randomCB = AddCheckBox(setupPanel2, "Random", copy.random);
1197
+ randomCB.setToolTipText("Randomly Rewind (or Go back and forth)");
9471198
1199
+ link2masterCB = AddCheckBox(setupPanel2, "Support", copy.link2master);
1200
+ link2masterCB.setToolTipText("Attach to support");
1201
+
9481202 if (Globals.ADVANCED)
9491203 {
950
- link2masterCB = AddCheckBox(setupPanel, "Support", copy.link2master);
951
- link2masterCB.setToolTipText("Attach to support");
952
- speedupCB = AddCheckBox(setupPanel, "Speed", copy.speedup);
1204
+ speedupCB = AddCheckBox(setupPanel2, "Speed", copy.speedup);
9531205 speedupCB.setToolTipText("Option motion capture");
9541206 }
9551207
9561208 oe.ctrlPanel.add(setupPanel);
9571209 oe.ctrlPanel.Return();
1210
+ oe.ctrlPanel.add(setupPanel2);
1211
+ oe.ctrlPanel.Return();
9581212
959
- commandsPanel = new cGridBag().setVertical(false);
1213
+ objectCommandsPanel = new cGridBag().setVertical(false);
9601214
961
- resetButton = AddButton(commandsPanel, "Reset");
1215
+ resetButton = AddButton(objectCommandsPanel, "Reset");
9621216 resetButton.setToolTipText("Jump to frame zero");
963
- stepButton = AddButton(commandsPanel, "Step");
1217
+ stepButton = AddButton(objectCommandsPanel, "Step");
9641218 stepButton.setToolTipText("Step one frame");
9651219 // resetAllButton = AddButton(oe, "Reset All");
9661220 // stepAllButton = AddButton(oe, "Step All");
9671221 // Return();
968
- slowerButton = AddButton(commandsPanel, "Slow");
1222
+ slowerButton = AddButton(objectCommandsPanel, "Slow");
9691223 slowerButton.setToolTipText("Decrease animation speed");
970
- fasterButton = AddButton(commandsPanel, "Fast");
1224
+ fasterButton = AddButton(objectCommandsPanel, "Fast");
9711225 fasterButton.setToolTipText("Increase animation speed");
972
- remarkButton = AddButton(commandsPanel, "Remark");
1226
+ remarkButton = AddButton(objectCommandsPanel, "Remark");
9731227 remarkButton.setToolTipText("Set the current transform as the target");
9741228
975
- oe.ctrlPanel.add(commandsPanel);
1229
+ oe.ctrlPanel.add(objectCommandsPanel);
9761230 oe.ctrlPanel.Return();
9771231
9781232 pushPanel = AddSlider(oe.ctrlPanel, "Push", -1, 1, copy.NORMALPUSH, 1.1); // To have the buttons
....@@ -1178,8 +1432,11 @@
11781432 //worldPanel.setName("World");
11791433 centralPanel = new cGridBag();
11801434 centralPanel.preferredWidth = 20;
1181
- timelinePanel = new JPanel(new BorderLayout());
1182
- timelineMenubar = new timeflow.app.TimeflowApp().TimeFlowWindow(timelinePanel);
1435
+
1436
+ if (Globals.ADVANCED)
1437
+ {
1438
+ timelinePanel = new JPanel(new BorderLayout());
1439
+ timelineMenubar = new timeflow.app.TimeflowApp().TimeFlowWindow(timelinePanel);
11831440
11841441 cameraPanel = new JSplitPane(JSplitPane.VERTICAL_SPLIT, cameraView, timelinePanel);
11851442 cameraPanel.setContinuousLayout(true);
....@@ -1188,7 +1445,10 @@
11881445 // cameraPanel.setDividerSize(9);
11891446 cameraPanel.setResizeWeight(1.0);
11901447
1448
+ }
1449
+
11911450 centralPanel.add(cameraView);
1451
+ centralPanel.setFocusable(true);
11921452 //frame.setJMenuBar(timelineMenubar);
11931453 //centralPanel.add(timelinePanel);
11941454
....@@ -1255,8 +1515,12 @@
12551515 // north.setName("Edit");
12561516 // north.add(ctrlPanel, BorderLayout.NORTH);
12571517 // objectPanel.add(north);
1258
- objectPanel.add(ctrlPanel);
1259
- objectPanel.add(infoPanel);
1518
+ objectPanel.add(editPanel);
1519
+
1520
+ //if (Globals.ADVANCED)
1521
+ objectPanel.add(infoPanel);
1522
+
1523
+ objectPanel.add(toolboxPanel);
12601524
12611525 /*
12621526 aConstraints.gridx = 0;
....@@ -1265,7 +1529,7 @@
12651529 aConstraints.gridy += 1;
12661530 aConstraints.gridwidth = 1;
12671531 mainPanel.add(objectPanel, aConstraints);
1268
- */
1532
+ */
12691533
12701534 scrollpane = new JScrollPane(mainPanel, ScrollPaneConstants.// VERTICAL_SCROLLBAR_ALWAYS,
12711535 VERTICAL_SCROLLBAR_AS_NEEDED,
....@@ -1282,9 +1546,7 @@
12821546 JTabbedPane tabbedPane = new JTabbedPane();
12831547 tabbedPane.add(scrollpane);
12841548
1285
- tabbedPane.add(FSPane = new cFileSystemPane(this));
1286
-
1287
- optionsPanel = new cGridBag().setVertical(true);
1549
+ optionsPanel = new cGridBag().setVertical(false);
12881550
12891551 optionsPanel.setName("Options");
12901552
....@@ -1292,6 +1554,8 @@
12921554
12931555 tabbedPane.add(optionsPanel);
12941556
1557
+ tabbedPane.add(FSPane = new cFileSystemPane(this));
1558
+
12951559 scenePanel.add(tabbedPane);
12961560
12971561 /*
....@@ -1364,9 +1628,9 @@
13641628 // aConstraints.gridheight = 1;
13651629
13661630 framePanel = new JSplitPane(JSplitPane.VERTICAL_SPLIT, toolbarPanel, bigThree);
1367
- framePanel.setContinuousLayout(true);
1368
- framePanel.setOneTouchExpandable(true);
1369
- framePanel.setDividerLocation(0.8);
1631
+ framePanel.setContinuousLayout(false);
1632
+ framePanel.setOneTouchExpandable(false);
1633
+ //.setDividerLocation(0.8);
13701634 //framePanel.setDividerSize(15);
13711635 //framePanel.setResizeWeight(0.15);
13721636 framePanel.setName("Frame");
....@@ -1384,9 +1648,14 @@
13841648 // aConstraints = gbc; // (GridBagConstraints) GrafreeD.clone(gbc);
13851649
13861650 frame.setSize(1280, 860);
1387
- frame.setVisible(true);
1388
-
1651
+
1652
+ cameraView.requestFocusInWindow();
1653
+
13891654 gridPanel.setDividerLocation(1.0);
1655
+
1656
+ frame.validate();
1657
+
1658
+ frame.setVisible(true);
13901659
13911660 frame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
13921661 frame.addWindowListener(new WindowAdapter()
....@@ -1473,24 +1742,6 @@
14731742 texture.add(textureField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
14741743 colorSection.add(texture);
14751744
1476
- cGridBag anisoU = new cGridBag();
1477
- anisoU.add(anisoLabel = new JLabel("AnisoU")); // , aConstraints);
1478
- anisoLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1479
- anisoU.add(anisoField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1480
- colorSection.add(anisoU);
1481
-
1482
- cGridBag anisoV = new cGridBag();
1483
- anisoV.add(anisoVLabel = new JLabel("AnisoV")); // , aConstraints);
1484
- anisoVLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1485
- anisoV.add(anisoVField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1486
- colorSection.add(anisoV);
1487
-
1488
- cGridBag shadowbias = new cGridBag();
1489
- shadowbias.add(shadowbiasLabel = new JLabel("Shadowbias")); // , aConstraints);
1490
- shadowbiasLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1491
- shadowbias.add(shadowbiasField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1492
- colorSection.add(shadowbias);
1493
-
14941745 panel.add(new JSeparator());
14951746
14961747 panel.add(colorSection);
....@@ -1540,6 +1791,12 @@
15401791 fakedepthLabel.setHorizontalAlignment(SwingConstants.TRAILING);
15411792 fakedepth.add(fakedepthField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
15421793 diffuseSection.add(fakedepth);
1794
+
1795
+ cGridBag shadowbias = new cGridBag();
1796
+ shadowbias.add(shadowbiasLabel = new JLabel("Shadowbias")); // , aConstraints);
1797
+ shadowbiasLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1798
+ shadowbias.add(shadowbiasField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1799
+ diffuseSection.add(shadowbias);
15431800
15441801 panel.add(new JSeparator());
15451802
....@@ -1591,6 +1848,18 @@
15911848 // aConstraints.gridy += 1;
15921849 // aConstraints.gridwidth = 1;
15931850
1851
+ cGridBag anisoU = new cGridBag();
1852
+ anisoU.add(anisoLabel = new JLabel("AnisoU")); // , aConstraints);
1853
+ anisoLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1854
+ anisoU.add(anisoField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1855
+ specularSection.add(anisoU);
1856
+
1857
+ cGridBag anisoV = new cGridBag();
1858
+ anisoV.add(anisoVLabel = new JLabel("AnisoV")); // , aConstraints);
1859
+ anisoVLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1860
+ anisoV.add(anisoVField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1861
+ specularSection.add(anisoV);
1862
+
15941863
15951864 panel.add(new JSeparator());
15961865
....@@ -1598,35 +1867,35 @@
15981867
15991868 //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
16001869
1601
- cGridBag globalSection = new cGridBag().setVertical(true);
1870
+ //cGridBag globalSection = new cGridBag().setVertical(true);
16021871
16031872 cGridBag camera = new cGridBag();
16041873 camera.add(cameraLabel = new JLabel("GlobalLight")); // , aConstraints);
16051874 cameraLabel.setHorizontalAlignment(SwingConstants.TRAILING);
16061875 camera.add(cameraField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1607
- globalSection.add(camera);
1876
+ colorSection.add(camera);
16081877
16091878 cGridBag ambient = new cGridBag();
16101879 ambient.add(ambientLabel = new JLabel("Ambient")); // , aConstraints);
16111880 ambientLabel.setHorizontalAlignment(SwingConstants.TRAILING);
16121881 ambient.add(ambientField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1613
- globalSection.add(ambient);
1882
+ colorSection.add(ambient);
16141883
16151884 cGridBag backlit = new cGridBag();
16161885 backlit.add(backlitLabel = new JLabel("Backlit")); // , aConstraints);
16171886 backlitLabel.setHorizontalAlignment(SwingConstants.TRAILING);
16181887 backlit.add(backlitField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1619
- globalSection.add(backlit);
1888
+ colorSection.add(backlit);
16201889
16211890 cGridBag opacity = new cGridBag();
16221891 opacity.add(opacityLabel = new JLabel("Opacity")); // , aConstraints);
16231892 opacityLabel.setHorizontalAlignment(SwingConstants.TRAILING);
16241893 opacity.add(opacityField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1625
- globalSection.add(opacity);
1894
+ colorSection.add(opacity);
16261895
1627
- panel.add(new JSeparator());
1896
+ //panel.add(new JSeparator());
16281897
1629
- panel.add(globalSection);
1898
+ //panel.add(globalSection);
16301899
16311900 //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
16321901
....@@ -1733,8 +2002,9 @@
17332002 // 3D models
17342003 if (filename.endsWith(".3ds") || filename.endsWith(".3DS"))
17352004 {
1736
- lastConverter = new com.jmex.model.converters.MaxToJme();
1737
- LoadFile(filename, lastConverter);
2005
+ //lastConverter = new com.jmex.model.converters.MaxToJme();
2006
+ //LoadFile(filename, lastConverter);
2007
+ LoadObjFile(filename); // New 3ds loader
17382008 continue;
17392009 }
17402010 if (filename.endsWith(".dae") || filename.endsWith(".DAE"))
....@@ -2072,19 +2342,19 @@
20722342
20732343 void LoadObjFile(String fullname)
20742344 {
2075
- /*
2345
+ System.out.println("Loading " + fullname);
2346
+ /**/
20762347 //lastFilename = fullname;
20772348 if(loadObjThread == null)
20782349 {
2079
- loadObjThread = new LoadOBJThread();
2080
- loadObjThread.start();
2350
+ loadObjThread = new LoadOBJThread();
2351
+ loadObjThread.start();
20812352 }
20822353
20832354 loadObjThread.add(fullname);
2084
- */
2355
+ /**/
20852356
2086
- System.out.println("Loading " + fullname);
2087
- makeSomething(new FileObject(fullname, true), true);
2357
+ //makeSomething(new FileObject(fullname, true), true);
20882358 }
20892359
20902360 void LoadGFDFile(String fullname)
....@@ -2460,6 +2730,7 @@
24602730 LA.matXRotate(((Object3D) group.get(group.size() - 1)).toParent, -Math.PI / 2);
24612731 LA.matXRotate(((Object3D) group.get(group.size() - 1)).fromParent, Math.PI / 2);
24622732 }
2733
+
24632734 //cJME.count++;
24642735 //cJME.count %= 12;
24652736 if (gc)
....@@ -2643,6 +2914,7 @@
26432914 }
26442915 }
26452916 }
2917
+
26462918 cFileSystemPane FSPane;
26472919
26482920 void SetMaterial(cMaterial mat, Object3D.cVector2[] others)
....@@ -2696,11 +2968,14 @@
26962968 }
26972969 }
26982970 }
2971
+
26992972 freezematerial = false;
27002973 }
27012974
27022975 void SetMaterial(Object3D object)
27032976 {
2977
+ latestObject = object;
2978
+
27042979 cMaterial mat = object.material;
27052980
27062981 if (mat == null)
....@@ -2812,12 +3087,17 @@
28123087 // }
28133088
28143089 /**/
2815
- if (deselect)
3090
+ if (deselect || child == null)
28163091 {
28173092 //group.deselectAll();
28183093 //freeze = true;
28193094 GetTree().clearSelection();
28203095 //freeze = false;
3096
+
3097
+ if (child == null)
3098
+ {
3099
+ return;
3100
+ }
28213101 }
28223102
28233103 //group.addSelectee(child);
....@@ -2886,7 +3166,7 @@
28863166 cameraView.ToggleDL();
28873167 cameraView.repaint();
28883168 return;
2889
- } else if (event.getSource() == toggleTextureItem)
3169
+ } else if (event.getSource() == toggleTextureItem || event.getSource() == toggleTextureCB)
28903170 {
28913171 cameraView.ToggleTexture();
28923172 // june 2013 copy.HardTouch();
....@@ -2925,7 +3205,7 @@
29253205 frame.validate();
29263206
29273207 return;
2928
- } else if (event.getSource() == toggleSwitchItem)
3208
+ } else if (event.getSource() == toggleSwitchItem || event.getSource() == toggleSwitchCB)
29293209 {
29303210 cameraView.ToggleSwitch();
29313211 cameraView.repaint();
....@@ -3141,9 +3421,9 @@
31413421 {
31423422 Close();
31433423 //return true;
3144
- } else if (source == loadItem)
3424
+ } else if (source == openItem)
31453425 {
3146
- load();
3426
+ Open();
31473427 //return true;
31483428 } else if (source == newItem)
31493429 {
....@@ -3168,6 +3448,10 @@
31683448 {
31693449 generatePOV();
31703450 //return true;
3451
+ } else if (event.getSource() == archiveItem)
3452
+ {
3453
+ cTools.Archive(frame);
3454
+ return;
31713455 } else if (source == zBufferItem)
31723456 {
31733457 try
....@@ -3214,22 +3498,31 @@
32143498 objEditor.refreshContents();
32153499 }
32163500
3217
- static public byte[] Compress(Object o)
3501
+ static public byte[] Compress(Object3D o)
32183502 {
32193503 try
32203504 {
32213505 ByteArrayOutputStream baos = new ByteArrayOutputStream();
3222
- java.util.zip.GZIPOutputStream zstream = new java.util.zip.GZIPOutputStream(baos);
3223
- ObjectOutputStream out = new ObjectOutputStream(zstream);
3506
+// java.util.zip.GZIPOutputStream zstream = new java.util.zip.GZIPOutputStream(baos);
3507
+ ObjectOutputStream out = new ObjectOutputStream(baos); //zstream);
32243508
3509
+ Object3D parent = o.parent;
3510
+ o.parent = null;
3511
+
32253512 out.writeObject(o);
32263513
3514
+ o.parent = parent;
3515
+
32273516 out.flush();
32283517
3229
- zstream.close();
3518
+ baos //zstream
3519
+ .close();
32303520 out.close();
32313521
3232
- return baos.toByteArray();
3522
+ byte[] bytes = baos.toByteArray();
3523
+
3524
+ System.out.println("save #bytes = " + bytes.length);
3525
+ return bytes;
32333526 } catch (Exception e)
32343527 {
32353528 System.err.println(e);
....@@ -3239,13 +3532,16 @@
32393532
32403533 static public Object Uncompress(byte[] bytes)
32413534 {
3242
- System.out.println("#bytes = " + bytes.length);
3535
+ System.out.println("restore #bytes = " + bytes.length);
32433536 try
32443537 {
32453538 ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
3246
- java.util.zip.GZIPInputStream istream = new java.util.zip.GZIPInputStream(bais);
3247
- ObjectInputStream in = new ObjectInputStream(istream);
3539
+ //java.util.zip.GZIPInputStream istream = new java.util.zip.GZIPInputStream(bais);
3540
+ ObjectInputStream in = new ObjectInputStream(bais); // istream);
32483541 Object obj = in.readObject();
3542
+
3543
+ bais //istream
3544
+ .close();
32493545 in.close();
32503546
32513547 return obj;
....@@ -3300,37 +3596,77 @@
33003596 return null;
33013597 }
33023598
3303
- java.util.Hashtable<java.util.UUID, Object3D> hashtable = new java.util.Hashtable<java.util.UUID, Object3D>();
33043599
33053600 public void Save()
33063601 {
3602
+ //Save(true);
3603
+ Replace();
3604
+ }
3605
+
3606
+ private boolean Equal(byte[] compress, byte[] name)
3607
+ {
3608
+ if (compress.length != name.length)
3609
+ {
3610
+ return false;
3611
+ }
3612
+
3613
+ for (int i=compress.length; --i>=0;)
3614
+ {
3615
+ if (compress[i] != name[i])
3616
+ return false;
3617
+ }
3618
+
3619
+ return true;
3620
+ }
3621
+
3622
+ java.util.Hashtable<java.util.UUID, Object3D> versiontable = new java.util.Hashtable<java.util.UUID, Object3D>();
3623
+
3624
+ public boolean Save(boolean user)
3625
+ {
3626
+ System.err.println("Save");
3627
+
33073628 cRadio tab = GetCurrentTab();
33083629
3309
- boolean temp = CameraPane.SWITCH;
3310
- CameraPane.SWITCH = false;
3630
+ byte[] compress = CompressCopy();
33113631
3312
- copy.ExtractBigData(hashtable);
3632
+ boolean thesame = false;
3633
+
3634
+ // Quick heuristic using length. Works only when stream is compressed.
3635
+ if (copy.versionindex > 0 && copy.versions[copy.versionindex-1] != null && Equal(compress, copy.versions[copy.versionindex-1]))
3636
+ {
3637
+ thesame = true;
3638
+ }
33133639
33143640 //EditorFrame.m_MainFrame.requestFocusInWindow();
3315
- tab.graphs[tab.undoindex++] = Compress(copy);
3316
-
3317
- copy.RestoreBigData(hashtable);
3318
-
3319
- CameraPane.SWITCH = temp;
3320
-
3321
- //assert(hashtable.isEmpty());
3322
-
3323
- for (int i = tab.undoindex; i < tab.graphs.length; i++)
3641
+ if (!thesame)
33243642 {
3325
- tab.graphs[i] = null;
3643
+ //tab.user[tab.versionindex] = user;
3644
+ //boolean increment = true; // tab.graphs[tab.versionindex] == null;
3645
+
3646
+ copy.versions[++copy.versionindex] = compress;
3647
+
3648
+ // if (increment)
3649
+ // tab.versionindex++;
33263650 }
33273651
3652
+ //copy.RestoreBigData(versiontable);
3653
+
3654
+ //assert(hashtable.isEmpty());
3655
+
3656
+ for (int i = copy.versionindex+1; i < copy.versions.length; i++)
3657
+ {
3658
+ //tab.user[i] = false;
3659
+ copy.versions[i] = null;
3660
+ }
3661
+
3662
+ SetUndoStates();
3663
+
33283664 // test save
33293665 if (false)
33303666 {
33313667 try
33323668 {
3333
- FileOutputStream ostream = new FileOutputStream("save" + tab.undoindex);
3669
+ FileOutputStream ostream = new FileOutputStream("save" + copy.versionindex);
33343670 ObjectOutputStream p = new ObjectOutputStream(ostream);
33353671
33363672 p.writeObject(copy);
....@@ -3343,14 +3679,18 @@
33433679 e.printStackTrace();
33443680 }
33453681 }
3682
+
3683
+ return !thesame;
33463684 }
33473685
33483686 void CopyChanged(Object3D obj)
33493687 {
3688
+ SetUndoStates();
3689
+
33503690 boolean temp = CameraPane.SWITCH;
33513691 CameraPane.SWITCH = false;
33523692
3353
- copy.ExtractBigData(hashtable);
3693
+ copy.ExtractBigData(versiontable);
33543694
33553695 copy.clear();
33563696
....@@ -3359,7 +3699,7 @@
33593699 copy.add(obj.get(i));
33603700 }
33613701
3362
- copy.RestoreBigData(hashtable);
3702
+ copy.RestoreBigData(versiontable);
33633703
33643704 CameraPane.SWITCH = temp;
33653705
....@@ -3386,40 +3726,103 @@
33863726 refreshContents();
33873727 }
33883728
3389
- public void Undo()
3729
+ cButton undoButton;
3730
+ cButton restoreButton;
3731
+ cButton replaceButton;
3732
+ cButton redoButton;
3733
+
3734
+ void SetUndoStates()
33903735 {
33913736 cRadio tab = GetCurrentTab();
33923737
3393
- if (tab.undoindex == 0)
3738
+ restoreButton.setEnabled(copy.versionindex != -1);
3739
+ replaceButton.setEnabled(copy.versionindex != -1);
3740
+ undoButton.setEnabled(copy.versionindex > 0);
3741
+ redoButton.setEnabled(copy.versions[copy.versionindex + 1] != null);
3742
+ }
3743
+
3744
+ public boolean Undo()
3745
+ {
3746
+ System.err.println("Undo");
3747
+
3748
+ cRadio tab = GetCurrentTab();
3749
+
3750
+ if (copy.versionindex == 0)
33943751 {
33953752 java.awt.Toolkit.getDefaultToolkit().beep();
3396
- return;
3753
+ return false;
33973754 }
33983755
3399
- if (tab.graphs[tab.undoindex] == null)
3756
+// if (tab.graphs[tab.versionindex] == null) // || !tab.user[tab.versionindex])
3757
+// {
3758
+// if (Save(false))
3759
+// tab.versionindex -= 1;
3760
+// else
3761
+// {
3762
+// if (tab.versionindex <= 0)
3763
+// return false;
3764
+// else
3765
+// tab.versionindex -= 1;
3766
+// }
3767
+// }
3768
+
3769
+ copy.versionindex -= 1;
3770
+
3771
+ CopyChanged((Object3D)Uncompress(copy.versions[copy.versionindex]));
3772
+
3773
+ return true;
3774
+ }
3775
+
3776
+ public boolean Restore()
3777
+ {
3778
+ System.err.println("Restore");
3779
+
3780
+ cRadio tab = GetCurrentTab();
3781
+
3782
+ if (copy.versionindex == -1 || copy.versions[copy.versionindex] == null)
34003783 {
3401
- Save();
3402
- tab.undoindex -= 1;
3784
+ java.awt.Toolkit.getDefaultToolkit().beep();
3785
+ return false;
34033786 }
34043787
3405
- tab.undoindex -= 1;
3788
+ CopyChanged((Object3D)Uncompress(copy.versions[copy.versionindex]));
3789
+
3790
+ return true;
3791
+ }
34063792
3407
- CopyChanged((Object3D)Uncompress(tab.graphs[tab.undoindex]));
3793
+ public boolean Replace()
3794
+ {
3795
+ System.err.println("Replace");
3796
+
3797
+ cRadio tab = GetCurrentTab();
3798
+
3799
+ if (copy.versionindex == -1 || copy.versions[copy.versionindex] == null)
3800
+ {
3801
+ // No version yet. OK. java.awt.Toolkit.getDefaultToolkit().beep();
3802
+ return false;
3803
+ }
3804
+
3805
+ copy.versions[copy.versionindex] = CompressCopy();
3806
+
3807
+ return true;
34083808 }
34093809
34103810 public void Redo()
34113811 {
34123812 cRadio tab = GetCurrentTab();
34133813
3414
- if (tab.graphs[tab.undoindex + 1] == null)
3814
+ if (copy.versions[copy.versionindex + 1] == null)
34153815 {
34163816 java.awt.Toolkit.getDefaultToolkit().beep();
34173817 return;
34183818 }
34193819
3420
- tab.undoindex += 1;
3820
+ copy.versionindex += 1;
34213821
3422
- CopyChanged((Object3D)Uncompress(tab.graphs[tab.undoindex]));
3822
+ CopyChanged((Object3D)Uncompress(copy.versions[copy.versionindex]));
3823
+
3824
+ //if (!tab.user[tab.versionindex])
3825
+ // tab.graphs[tab.versionindex] = null;
34233826 }
34243827
34253828 void ImportGFD()
....@@ -3571,7 +3974,7 @@
35713974 assert false;
35723975 }
35733976
3574
- void EditSelection()
3977
+ void EditSelection(boolean newWindow)
35753978 {
35763979 }
35773980
....@@ -3715,9 +4118,22 @@
37154118 //copy.Touch();
37164119 }
37174120
4121
+ cNumberSlider versionField;
4122
+
37184123 public void stateChanged(ChangeEvent e)
37194124 {
37204125 // assert(false);
4126
+ if (e.getSource() == versionField)
4127
+ {
4128
+ int version = versionField.getInteger();
4129
+
4130
+ if (copy.versions[version] != null)
4131
+ {
4132
+ CopyChanged((Object3D)Uncompress(copy.versions[copy.versionindex = version]));
4133
+ }
4134
+
4135
+ return;
4136
+ }
37214137
37224138 if (freezematerial)
37234139 {
....@@ -4066,7 +4482,8 @@
40664482
40674483 void makeSomething(Object3D thing, boolean resetmodel) // deselect)
40684484 {
4069
- Save();
4485
+ if (Globals.REPLACEONMAKE) // && resetmodel)
4486
+ Save();
40704487 //Tween.set(thing, 0).target(1).start(tweenManager);
40714488 //Tween.to(thing, 0, 0.5f).target(0).start(tweenManager);
40724489 // if (thing instanceof GenericJointDemo)
....@@ -4153,6 +4570,12 @@
41534570 {
41544571 ResetModel();
41554572 Select(thing.GetTreePath(), true, false); // unselect... false);
4573
+
4574
+ if (thing.Size() == 0)
4575
+ {
4576
+ //EditSelection(false);
4577
+ }
4578
+
41564579 refreshContents();
41574580 }
41584581
....@@ -4290,6 +4713,7 @@
42904713
42914714 try
42924715 {
4716
+ // Try compressed version first.
42934717 java.io.FileInputStream istream = new java.io.FileInputStream(fullname);
42944718 java.util.zip.GZIPInputStream zstream = new java.util.zip.GZIPInputStream(istream);
42954719 java.io.ObjectInputStream p = new java.io.ObjectInputStream(zstream);
....@@ -4359,6 +4783,12 @@
43594783
43604784 void LoadIt(Object obj)
43614785 {
4786
+ if (obj == null)
4787
+ {
4788
+ // Invalid file
4789
+ return;
4790
+ }
4791
+
43624792 System.out.println("Loaded " + obj);
43634793 //new Exception().printStackTrace();
43644794 Object3D readobj = (Object3D) obj;
....@@ -4368,7 +4798,8 @@
43684798
43694799 if (readobj != null)
43704800 {
4371
- Save();
4801
+ //if (Globals.SAVEONMAKE) // A new object cannot share meshes
4802
+ // Save();
43724803 try
43734804 {
43744805 //readobj.deepCopySelf(copy);
....@@ -4423,13 +4854,18 @@
44234854 c.addChild(csg);
44244855 }
44254856
4857
+ copy.versions = readobj.versions;
4858
+ copy.versionindex = readobj.versionindex;
4859
+
4860
+ SetUndoStates();
4861
+
44264862 ResetModel();
44274863 copy.HardTouch(); // recompile?
44284864 refreshContents();
44294865 }
44304866 }
44314867
4432
- void load() // throws ClassNotFoundException
4868
+ void Open() // throws ClassNotFoundException
44334869 {
44344870 if (Grafreed.standAlone)
44354871 {
....@@ -4546,6 +4982,8 @@
45464982 String filename = browser.getFile();
45474983 if (filename != null && filename.length() > 0)
45484984 {
4985
+ if (!filename.endsWith(".gfd"))
4986
+ filename += ".gfd";
45494987 lastname = browser.getDirectory() + filename;
45504988 save();
45514989 }
....@@ -4712,7 +5150,7 @@
47125150 MenuBar menuBar;
47135151 Menu fileMenu;
47145152 MenuItem newItem;
4715
- MenuItem loadItem;
5153
+ MenuItem openItem;
47165154 MenuItem saveItem;
47175155 MenuItem saveAsItem;
47185156 MenuItem exportAsItem;
....@@ -4735,22 +5173,36 @@
47355173 CheckboxMenuItem toggleSwitchItem;
47365174 CheckboxMenuItem toggleRootItem;
47375175 CheckboxMenuItem animationItem;
5176
+ MenuItem archiveItem;
47385177 CheckboxMenuItem toggleHandleItem;
47395178 CheckboxMenuItem togglePaintItem;
47405179 JSplitPane mainPanel;
47415180 JScrollPane scrollpane;
5181
+
47425182 JPanel toolbarPanel;
5183
+
47435184 cGridBag treePanel;
5185
+
47445186 JPanel radioPanel;
47455187 ButtonGroup buttonGroup;
4746
- cGridBag ctrlPanel;
5188
+
5189
+ cGridBag toolboxPanel;
47475190 cGridBag materialPanel;
5191
+ cGridBag ctrlPanel;
5192
+
47485193 JScrollPane infoPanel;
5194
+
47495195 cGridBag optionsPanel;
5196
+
47505197 JTabbedPane objectPanel;
5198
+ boolean materialFlushed;
5199
+ Object3D latestObject;
5200
+
47515201 cGridBag XYZPanel;
5202
+
47525203 JSplitPane gridPanel;
47535204 JSplitPane bigPanel;
5205
+
47545206 cGridBag bigThree;
47555207 cGridBag scenePanel;
47565208 cGridBag centralPanel;
....@@ -4865,7 +5317,7 @@
48655317 cNumberSlider fogField;
48665318 JLabel opacityPowerLabel;
48675319 cNumberSlider opacityPowerField;
4868
- JTree jTree;
5320
+ cTree jTree;
48695321 //ObjectUI parent;
48705322
48715323 cNumberSlider normalpushField;