Normand Briere
2019-05-01 a742f6cebf1d471217d836e07934e5c02c22b6db
ObjEditor.java
....@@ -19,6 +19,8 @@
1919 import //weka.core.
2020 matrix.Matrix;
2121
22
+import grafeme.ui.*;
23
+
2224 class ObjEditor /*extends JFrame*/ implements iCallBack, ObjectUI,
2325 ActionListener, ChangeListener,
2426 InputMethodListener,
....@@ -31,6 +33,9 @@
3133 boolean timeline;
3234 boolean wasFullScreen;
3335
36
+ GroupEditor callee;
37
+ JFrame frame;
38
+
3439 // SCRIPT
3540
3641 transient JFrame textpanel = null;
....@@ -121,47 +126,52 @@
121126 void keyPressed(int key, int modifiers)
122127 {
123128 System.out.println("KEY PRESSED");
124
- CameraPane.theRenderer.keyPressed(key, modifiers);
129
+ Globals.theRenderer.keyPressed(key, modifiers);
125130 }
126131 */
127132
128133 static GridBagConstraints aConstraints;
129134 static GridBagConstraints aWindowConstraints;
130
- GroupEditor callee;
131
- JFrame frame;
135
+
132136 static int GRIDWIDTH = 100; // 4;
133137
134138 public void closeUI()
135139 {
136140 //new Exception().printStackTrace();
137
- System.out.println("this = " + this);
138
- System.out.println("objEditor = " + objEditor);
141
+// System.out.println("this = " + this);
142
+// System.out.println("objEditor = " + objEditor);
139143 //nameField.removeActionListener(this);
140
- objEditor.ctrlPanel.remove(nameField);
144
+// objEditor.ctrlPanel.remove(nameField);
141145
142146 if (!GroupEditor.allparams)
143147 return;
144148
145
- objEditor.ctrlPanel.remove(liveCB);
146
- objEditor.ctrlPanel.remove(hideCB);
147
- objEditor.ctrlPanel.remove(markCB);
148
-
149
- objEditor.ctrlPanel.remove(randomCB);
150
- objEditor.ctrlPanel.remove(speedupCB);
151
- objEditor.ctrlPanel.remove(rewindCB);
152
-
153
- objEditor.ctrlPanel.remove(resetButton);
154
- objEditor.ctrlPanel.remove(stepButton);
155
-// objEditor.ctrlPanel.remove(stepAllButton);
156
-// objEditor.ctrlPanel.remove(resetAllButton);
157
- objEditor.ctrlPanel.remove(link2masterCB);
158
- //objEditor.ctrlPanel.remove(flipVCB);
159
- //objEditor.ctrlPanel.remove(texresMenu);
160
- objEditor.ctrlPanel.remove(slowerButton);
161
- objEditor.ctrlPanel.remove(fasterButton);
162
- objEditor.ctrlPanel.remove(remarkButton);
149
+// objEditor.ctrlPanel.remove(liveCB);
150
+// objEditor.ctrlPanel.remove(hideCB);
151
+// objEditor.ctrlPanel.remove(markCB);
152
+//
153
+// objEditor.ctrlPanel.remove(randomCB);
154
+// objEditor.ctrlPanel.remove(speedupCB);
155
+// objEditor.ctrlPanel.remove(rewindCB);
156
+//
157
+// objEditor.ctrlPanel.remove(resetButton);
158
+// objEditor.ctrlPanel.remove(stepButton);
159
+//// objEditor.ctrlPanel.remove(stepAllButton);
160
+//// objEditor.ctrlPanel.remove(resetAllButton);
161
+// objEditor.ctrlPanel.remove(link2masterCB);
162
+// //objEditor.ctrlPanel.remove(flipVCB);
163
+// //objEditor.ctrlPanel.remove(texresMenu);
164
+// objEditor.ctrlPanel.remove(slowerButton);
165
+// objEditor.ctrlPanel.remove(fasterButton);
166
+// objEditor.ctrlPanel.remove(remarkButton);
163167
164
- Remove(normalpushField);
168
+ objEditor.ctrlPanel.remove(namePanel);
169
+ objEditor.ctrlPanel.remove(setupPanel);
170
+ objEditor.ctrlPanel.remove(commandsPanel);
171
+ objEditor.ctrlPanel.remove(pushPanel);
172
+ //objEditor.ctrlPanel.remove(fillPanel);
173
+
174
+ //Remove(normalpushField);
165175 }
166176
167177 public ObjEditor GetEditor()
....@@ -309,7 +319,7 @@
309319 toggleTextureItem.setState(CameraPane.textureon);
310320 cameraMenu.add(toggleLiveItem = new CheckboxMenuItem("Live"));
311321 toggleLiveItem.addItemListener(this);
312
- toggleLiveItem.setState(CameraPane.isLIVE());
322
+ toggleLiveItem.setState(Globals.isLIVE());
313323 cameraMenu.add(stepItem = new MenuItem("Step"));
314324 stepItem.addActionListener(this);
315325 // cameraMenu.add(toggleDLItem = new CheckboxMenuItem("Display List"));
....@@ -349,21 +359,23 @@
349359 objectPanel = new JTabbedPane();
350360 toolbarPanel = new JPanel();
351361 toolbarPanel.setName("Toolbar");
352
- treePanel = new JPanel();
362
+ treePanel = new cGridBag();
353363 treePanel.setName("Tree");
354
- ctrlPanel = new JPanel(); // new GridBagLayout());
364
+ ctrlPanel = new cGridBag().setVertical(false); // new GridBagLayout());
355365 ctrlPanel.setName("Edit");
356
- materialPanel = new JPanel();
366
+ materialPanel = new cGridBag().setVertical(true);
357367 materialPanel.setName("Material");
358368 /*JTextPane*/
359369 infoarea = createTextPane();
370
+ doc = infoarea.getStyledDocument();
371
+
360372 infoarea.setEditable(true);
361373 SetText();
362374 // infoarea.setFont(infoarea.getFont().deriveFont(10, 14f));
363375 // infoarea.setOpaque(false);
364376 // //infoarea.setForeground(textcolor);
365
- infoarea.setLineWrap(true);
366
- infoarea.setWrapStyleWord(true);
377
+// TEXTAREA infoarea.setLineWrap(true);
378
+// TEXTAREA infoarea.setWrapStyleWord(true);
367379 infoPanel = new JScrollPane(infoarea, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //AS_NEEDED);
368380 infoPanel.setPreferredSize(new Dimension(50, 200));
369381 infoPanel.setName("Info");
....@@ -374,16 +386,16 @@
374386 mainPanel.setName("Main");
375387 mainPanel.setContinuousLayout(true);
376388 mainPanel.setOneTouchExpandable(true);
377
- mainPanel.setDividerLocation(1.0);
378389 mainPanel.setDividerSize(9);
379
- mainPanel.setResizeWeight(0);
390
+ mainPanel.setDividerLocation(0.5); //1.0);
391
+ mainPanel.setResizeWeight(0.5);
380392
381393 //ctrlPanel.setLayout(new GridLayout(4, 1, 5, 5));
382394 //mainPanel.setLayout(new GridBagLayout());
383395 toolbarPanel.setLayout(new FlowLayout(FlowLayout.LEFT));
384
- treePanel.setLayout(new GridBagLayout());
385
- ctrlPanel.setLayout(new GridBagLayout());
386
- materialPanel.setLayout(new GridBagLayout());
396
+// treePanel.setLayout(new GridBagLayout());
397
+ //ctrlPanel.setLayout(new GridBagLayout());
398
+ //materialPanel.setLayout(new GridBagLayout());
387399
388400 aConstraints = new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0,
389401 GridBagConstraints.NORTHEAST, GridBagConstraints.BOTH, new Insets(1, 1, 1, 1), 0, 0);
....@@ -422,7 +434,7 @@
422434 static String newline = "\n";
423435 protected static final String buttonString = "JButton";
424436 StyledDocument doc;
425
- JTextArea infoarea;
437
+ JTextPane infoarea;
426438
427439 void ClearInfo()
428440 {
....@@ -489,7 +501,10 @@
489501 }
490502
491503 if (full)
492
- si.SendInfo(" BBox: " + minima + " - " + maxima, "regular");
504
+ {
505
+ si.SendInfo(" BBox min: " + minima, "regular");
506
+ si.SendInfo(" BBox max: " + maxima, "regular");
507
+ }
493508
494509 if (sel.bRep != null)
495510 {
....@@ -587,6 +602,9 @@
587602 {
588603 CameraPane.pointflow = (PointFlow) sel;
589604 }
605
+
606
+ si.SendInfo("_____________________", "regular");
607
+ si.SendInfo("", "regular");
590608 }
591609 }
592610
....@@ -618,52 +636,52 @@
618636 cameraView.ToggleFullScreen();
619637 }
620638
621
- private JTextArea createTextPane()
639
+ private JTextPane createTextPane()
622640 {
623
- String[] initString =
624
- {
625
- "This is an editable JTextPane, ", //regular
626
- "another ", //italic
627
- "styled ", //bold
628
- "text ", //small
629
- "component, ", //large
630
- "which supports embedded components..." + newline,//regular
631
- " " + newline, //button
632
- "...and embedded icons..." + newline, //regular
633
- " ", //icon
634
- newline + "JTextPane is a subclass of JEditorPane that "
635
- + "uses a StyledEditorKit and StyledDocument, and provides "
636
- + "cover methods for interacting with those objects."
637
- };
641
+// TEXTAREA String[] initString =
642
+// {
643
+// "This is an editable JTextPane, ", //regular
644
+// "another ", //italic
645
+// "styled ", //bold
646
+// "text ", //small
647
+// "component, ", //large
648
+// "which supports embedded components..." + newline,//regular
649
+// " " + newline, //button
650
+// "...and embedded icons..." + newline, //regular
651
+// " ", //icon
652
+// newline + "JTextPane is a subclass of JEditorPane that "
653
+// + "uses a StyledEditorKit and StyledDocument, and provides "
654
+// + "cover methods for interacting with those objects."
655
+// };
656
+//
657
+// String[] initStyles =
658
+// {
659
+// "regular", "italic", "bold", "small", "large",
660
+// "regular", "button", "regular", "icon",
661
+// "regular"
662
+// };
663
+//
664
+// JTextPane textPane = new JTextPane();
665
+// textPane.setEditable(true);
666
+// /*StyledDocument*/ doc = textPane.getStyledDocument();
667
+// addStylesToDocument(doc);
668
+//
669
+// try
670
+// {
671
+// for (int j = 0; j < 2; j++)
672
+// {
673
+// for (int i = 0; i < initString.length; i++)
674
+// {
675
+// doc.insertString(doc.getLength(), initString[i],
676
+// doc.getStyle(initStyles[i]));
677
+// }
678
+// }
679
+// } catch (BadLocationException ble)
680
+// {
681
+// System.err.println("Couldn't insert initial text into text pane.");
682
+// }
638683
639
- String[] initStyles =
640
- {
641
- "regular", "italic", "bold", "small", "large",
642
- "regular", "button", "regular", "icon",
643
- "regular"
644
- };
645
-
646
- JTextPane textPane = new JTextPane();
647
- textPane.setEditable(true);
648
- /*StyledDocument*/ doc = textPane.getStyledDocument();
649
- addStylesToDocument(doc);
650
-
651
- try
652
- {
653
- for (int j = 0; j < 2; j++)
654
- {
655
- for (int i = 0; i < initString.length; i++)
656
- {
657
- doc.insertString(doc.getLength(), initString[i],
658
- doc.getStyle(initStyles[i]));
659
- }
660
- }
661
- } catch (BadLocationException ble)
662
- {
663
- System.err.println("Couldn't insert initial text into text pane.");
664
- }
665
-
666
- return new JTextArea(); // textPane;
684
+ return new JTextPane(); // textPane;
667685 }
668686
669687 protected void addStylesToDocument(StyledDocument doc)
....@@ -763,115 +781,83 @@
763781 JButton slowerButton;
764782 JButton fasterButton;
765783 JButton remarkButton;
784
+
785
+ cGridBag namePanel;
786
+ cGridBag setupPanel;
787
+ cGridBag commandsPanel;
788
+ cGridBag pushPanel;
789
+ cGridBag fillPanel;
766790
767
- JCheckBox AddCheckBox(ObjEditor oe, String label, boolean on)
791
+ JCheckBox AddCheckBox(cGridBag panel, String label, boolean on)
768792 {
769793 JCheckBox cb;
770794
771
- oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;
772
- oe.aConstraints.gridwidth = 1; // 3;
773
-// oe.aConstraints.weightx = 1;
774
-// oe.aConstraints.anchor = GridBagConstraints.WEST;
775
- oe.ctrlPanel.add(cb = new JCheckBox(label, on), oe.aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
795
+ panel.add(cb = new JCheckBox(label, on)); //, oe.aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
776796 cb.addItemListener(this);
777
-// oe.aConstraints.anchor = GridBagConstraints.EAST;
778
- oe.aConstraints.gridwidth = 1;
779
- oe.aConstraints.gridx += 1;
780797
781798 return cb;
782799 }
783800
784
- cButton AddButton(ObjEditor oe, String label)
801
+ cButton AddButton(cGridBag panel, String label)
785802 {
786803 cButton cb;
787804
788
- oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;
789
- oe.aConstraints.gridwidth = 1;
790
-// oe.aConstraints.weightx = 1;
791
-// oe.aConstraints.anchor = GridBagConstraints.WEST;
792
- oe.ctrlPanel.add(cb = new cButton(label), oe.aConstraints, oe.ctrlPanel.getComponentCount() - 1);
805
+ panel.add(cb = new cButton(label)); //, oe.aConstraints, oe.ctrlPanel.getComponentCount() - 1);
793806 cb.addActionListener(this);
794
-// oe.aConstraints.anchor = GridBagConstraints.EAST;
795
- oe.aConstraints.gridwidth = 1;
796
- oe.aConstraints.gridx += 1;
797807
798808 return cb;
799809 }
800810
801
- JComboBox AddCombo(ObjEditor oe, java.util.Vector list, int item)
811
+ JComboBox AddCombo(cGridBag panel, java.util.Vector list, int item)
802812 {
803813 JComboBox combo;
804814
805
- oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;
806
- oe.ctrlPanel.add(combo = new JComboBox(new cListModel(list, item)), oe.aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
807
- oe.aConstraints.gridx += 1;
815
+ panel.add(combo = new JComboBox(new cListModel(list, item))); //, oe.aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
808816 combo.addActionListener(this);
809817
810818 return combo;
811819 }
812820
813
- NumberSlider AddSlider(JPanel ctrlPanel, String label, double min, double max, double current, double pow)
821
+ cGridBag AddSlider(cGridBag panel, String label, double min, double max, double current, double pow)
814822 {
815
- NumberSlider combo;
823
+ cGridBag control = new cGridBag();
824
+
825
+ cNumberSlider combo;
816826
817827 JLabel jlabel = new JLabel(label);
818
-
819
- aConstraints.fill = GridBagConstraints.VERTICAL;
820828 jlabel.setHorizontalAlignment(SwingConstants.TRAILING);
821
- aConstraints.gridwidth = 1;
822
- ctrlPanel.add(jlabel, aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
823
- aConstraints.gridx += 1;
824
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
825
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
826
- ctrlPanel.add(combo = new NumberSlider(min, max, pow), aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
827
- aConstraints.gridx += 1;
828
- aConstraints.gridwidth = 1;
829
-
829
+ control.add(jlabel); //, aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
830
+ control.add(combo = new cNumberSlider(this, min, max, pow)); //, aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
830831 combo.setFloat(current);
831
-
832
- combo.label = jlabel;
833
-
834
- combo.addChangeListener(this);
835
-
836
- return combo;
832
+
833
+ panel.add(control);
834
+
835
+ return control;
837836 }
838837
839
- NumberSlider AddSlider(JPanel ctrlPanel, String label, int min, int max, int current)
838
+ cGridBag AddSlider(cGridBag panel, String label, int min, int max, int current)
840839 {
841
- NumberSlider combo;
840
+ cGridBag control = new cGridBag();
841
+
842
+ cNumberSlider combo;
842843
843844 JLabel jlabel = new JLabel(label);
844
-
845
- aConstraints.fill = GridBagConstraints.VERTICAL;
846845 jlabel.setHorizontalAlignment(SwingConstants.TRAILING);
847
- aConstraints.gridwidth = 2;
848
- ctrlPanel.add(jlabel, aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
849
- aConstraints.gridx += 1;
850
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
851
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
852
- ctrlPanel.add(combo = new NumberSlider(min, max), aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
853
- aConstraints.gridx += 1;
854
- aConstraints.gridwidth = 1;
855
-
846
+ control.add(jlabel); //, aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
847
+ control.add(combo = new cNumberSlider(this, min, max)); //, aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
856848 combo.setInteger(current);
857849
858
- combo.label = jlabel;
859
-
860
- combo.addChangeListener(this);
861
-
862
- return combo;
850
+ panel.add(control);
851
+
852
+ return control;
863853 }
864854
865
- JTextArea AddText(JPanel ctrlPanel, String name)
855
+ JTextArea AddText(cGridBag ctrlPanel, String name)
866856 {
867857 JTextArea text;
868858
869
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
870
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
871
- ctrlPanel.add(text = new JTextArea(name), aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
859
+ ctrlPanel.add(text = new JTextArea(name)); //, aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
872860 text.addCaretListener(this);
873
- aConstraints.gridx += 1;
874
- aConstraints.gridwidth = 1;
875861
876862 return text;
877863 }
....@@ -901,9 +887,16 @@
901887 objEditor.ctrlPanel.remove(j);
902888 }
903889
890
+ void Remove(cNumberSlider j)
891
+ {
892
+ j.removeChangeListener(this);
893
+ //objEditor.ctrlPanel.remove(j.label);
894
+ objEditor.ctrlPanel.remove(j);
895
+ }
896
+
904897 /*
905898 */
906
- void Return() // ObjEditor oe)
899
+ void Return0() // ObjEditor oe)
907900 {
908901 aConstraints.gridy += 1;
909902 aConstraints.gridx = 0;
....@@ -958,37 +951,53 @@
958951
959952 void SetupUI2(ObjEditor oe)
960953 {
961
-// oe.aConstraints.weightx = 0;
962
-// oe.aConstraints.weighty = 0;
963
-// oe.aConstraints.gridx = 0;
964
-// oe.aConstraints.gridy = 0;
965
- SetupName(oe);
954
+ //SetupName(oe);
955
+
956
+ namePanel = new cGridBag();
957
+
958
+ nameField = AddText(namePanel, copy.GetName());
959
+ namePanel.add(nameField);
960
+ oe.ctrlPanel.add(namePanel);
961
+
962
+ oe.ctrlPanel.Return();
966963
967964 if (!GroupEditor.allparams)
968965 return;
969966
970
- liveCB = AddCheckBox(oe, "Live", copy.live);
971
- link2masterCB = AddCheckBox(oe, "Supp", copy.link2master);
972
- hideCB = AddCheckBox(oe, "Hide", copy.hide);
967
+ setupPanel = new cGridBag().setVertical(false);
968
+
969
+ liveCB = AddCheckBox(setupPanel, "Live", copy.live);
970
+ if (Globals.ADVANCED)
971
+ link2masterCB = AddCheckBox(setupPanel, "Supp", copy.link2master);
972
+ hideCB = AddCheckBox(setupPanel, "Hide", copy.hide);
973973 // Return();
974
- markCB = AddCheckBox(oe, "Mark", copy.marked);
975
- rewindCB = AddCheckBox(oe, "Rew", copy.rewind);
976
- randomCB = AddCheckBox(oe, "Rand", copy.random);
977
- Return();
978
- resetButton = AddButton(oe, "Reset");
979
- stepButton = AddButton(oe, "Step");
974
+ markCB = AddCheckBox(setupPanel, "Mark", copy.marked);
975
+ rewindCB = AddCheckBox(setupPanel, "Rew", copy.rewind);
976
+ randomCB = AddCheckBox(setupPanel, "Rand", copy.random);
977
+
978
+ oe.ctrlPanel.add(setupPanel);
979
+ oe.ctrlPanel.Return();
980
+
981
+ commandsPanel = new cGridBag().setVertical(false);
982
+
983
+ resetButton = AddButton(commandsPanel, "Reset");
984
+ stepButton = AddButton(commandsPanel, "Step");
980985 // resetAllButton = AddButton(oe, "Reset All");
981986 // stepAllButton = AddButton(oe, "Step All");
982
- speedupCB = AddCheckBox(oe, "Speed", copy.speedup);
987
+ speedupCB = AddCheckBox(commandsPanel, "Speed", copy.speedup);
983988 // Return();
984
- slowerButton = AddButton(oe, "Slow");
985
- fasterButton = AddButton(oe, "Fast");
986
- remarkButton = AddButton(oe, "Rem");
989
+ slowerButton = AddButton(commandsPanel, "Slow");
990
+ fasterButton = AddButton(commandsPanel, "Fast");
991
+ remarkButton = AddButton(commandsPanel, "Remark");
987992
988
- Return();
993
+ oe.ctrlPanel.add(commandsPanel);
994
+ oe.ctrlPanel.Return();
989995
990
- normalpushField = AddSlider(oe.ctrlPanel, "Push", -10, 10, 0, -1);
991
- Return();
996
+ pushPanel = AddSlider(oe.ctrlPanel, "Push", -10, 10, 0, 1);
997
+ normalpushField = (cNumberSlider)pushPanel.getComponent(1);
998
+ //Return();
999
+
1000
+ oe.ctrlPanel.Return();
9921001
9931002 // oe.ctrlPanel.add(stepButton = new cButton("Step"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2);
9941003 // ObjEditor.aConstraints.gridx += 1;
....@@ -1083,7 +1092,7 @@
10831092 oe.aConstraints.gridwidth = 1;
10841093 /**/
10851094 nameField = AddText(oe.ctrlPanel, copy.GetName());
1086
- Return();
1095
+ oe.ctrlPanel.Return();
10871096
10881097 //ctrlPanel.add(textureButton = new Button("Texture..."));
10891098 //textureButton.setEnabled(false);
....@@ -1185,10 +1194,18 @@
11851194 //JPanel worldPanel =
11861195 // new gov.nasa.worldwind.examples.ApplicationTemplate.AppPanel(null, true);
11871196 //worldPanel.setName("World");
1188
- centralPanel = new JPanel(new BorderLayout());
1197
+ centralPanel = new cGridBag();
1198
+ centralPanel.preferredWidth = 20;
11891199 timelinePanel = new JPanel(new BorderLayout());
11901200 timelineMenubar = new timeflow.app.TimeflowApp().TimeFlowWindow(timelinePanel);
11911201
1202
+ cameraPanel = new JSplitPane(JSplitPane.VERTICAL_SPLIT, cameraView, timelinePanel);
1203
+ cameraPanel.setContinuousLayout(true);
1204
+ cameraPanel.setOneTouchExpandable(true);
1205
+// cameraPanel.setDividerLocation(0.9);
1206
+// cameraPanel.setDividerSize(9);
1207
+ cameraPanel.setResizeWeight(1.0);
1208
+
11921209 centralPanel.add(cameraView);
11931210 //frame.setJMenuBar(timelineMenubar);
11941211 //centralPanel.add(timelinePanel);
....@@ -1208,12 +1225,13 @@
12081225 //frontView.object = copy;
12091226 //sideView.object = copy;
12101227
1211
- XYZPanel = new JPanel();
1212
- XYZPanel.setLayout(new GridLayout(3, 1, 5, 5));
1228
+ XYZPanel = new cGridBag().setVertical(true);
1229
+ //XYZPanel.setLayout(new GridLayout(3, 1, 5, 5));
12131230
1214
- XYZPanel.add(/*BorderLayout.SOUTH,*/sideView); // Scroll);
1215
- XYZPanel.add(/*BorderLayout.CENTER,*/frontView); // Scroll);
1216
- XYZPanel.add(/*BorderLayout.NORTH,*/topView); // Scroll);
1231
+ XYZPanel.preferredWidth = 5;
1232
+ XYZPanel.addComponent(/*BorderLayout.SOUTH,*/sideView); // Scroll);
1233
+ XYZPanel.addComponent(/*BorderLayout.CENTER,*/frontView); // Scroll);
1234
+ XYZPanel.addComponent(/*BorderLayout.NORTH,*/topView); // Scroll);
12171235
12181236 /*
12191237 gridPanel = new JPanel(); //new BorderLayout());
....@@ -1251,10 +1269,11 @@
12511269 //JScrollPane tmp = new JScrollPane(ctrlPanel, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
12521270 //tmp.setName("Edit");
12531271 objectPanel.add(materialPanel);
1254
- JPanel north = new JPanel(new BorderLayout());
1255
- north.setName("Edit");
1256
- north.add(ctrlPanel, BorderLayout.NORTH);
1257
- objectPanel.add(north);
1272
+// JPanel north = new JPanel(new BorderLayout());
1273
+// north.setName("Edit");
1274
+// north.add(ctrlPanel, BorderLayout.NORTH);
1275
+// objectPanel.add(north);
1276
+ objectPanel.add(ctrlPanel);
12581277 objectPanel.add(infoPanel);
12591278
12601279 /*
....@@ -1275,16 +1294,23 @@
12751294 scrollpane.setWheelScrollingEnabled(true);
12761295 scrollpane.addMouseWheelListener(this); // Default not fast enough
12771296
1278
- /*JTabbedPane*/ scenePanel = new JTabbedPane();
1279
- scenePanel.add(scrollpane);
1297
+ /*JTabbedPane*/ scenePanel = new cGridBag();
1298
+ scenePanel.preferredWidth = 7;
1299
+
1300
+ JTabbedPane tabbedPane = new JTabbedPane();
1301
+ tabbedPane.add(scrollpane);
12801302
1281
- scenePanel.add(FSPane = new cFileSystemPane(this));
1303
+ tabbedPane.add(FSPane = new cFileSystemPane(this));
12821304
1283
- optionsPanel = new JPanel(new GridBagLayout());
1305
+ optionsPanel = new cGridBag().setVertical(true);
12841306
12851307 optionsPanel.setName("Options");
1286
- scenePanel.add(optionsPanel);
1287
-
1308
+
1309
+ AddOptions(optionsPanel); //, aConstraints);
1310
+
1311
+ tabbedPane.add(optionsPanel);
1312
+
1313
+ scenePanel.add(tabbedPane);
12881314
12891315 /*
12901316 cTree jTree = new cTree(null);
....@@ -1318,6 +1344,7 @@
13181344 //bigPanel.setSize(new Dimension(10,10));
13191345 //bigPanel.add(ctrlPanel);
13201346 //bigPanel.add(gridPanel);
1347
+ /**
13211348 bigThree = new JPanel();
13221349 //big.setLayout(new FlowLayout(FlowLayout.LEFT));
13231350 bigThree.setLayout(new GridBagLayout()); //1,3,5,5));
....@@ -1341,7 +1368,13 @@
13411368 // aConstraints.gridheight = 3;
13421369 aWindowConstraints.fill = GridBagConstraints.VERTICAL;
13431370 bigThree.add(XYZPanel, aWindowConstraints);
1371
+ /**/
13441372
1373
+ bigThree = new cGridBag();
1374
+ bigThree.addComponent(scenePanel);
1375
+ bigThree.addComponent(centralPanel);
1376
+ bigThree.addComponent(XYZPanel);
1377
+
13451378 // // SIDE EFFECT!!!
13461379 // aConstraints.gridx = 0;
13471380 // aConstraints.gridy = 0;
....@@ -1362,7 +1395,8 @@
13621395 //worldPane.add(bigPanel);
13631396 //worldPane.add(worldPanel);
13641397 /**/
1365
- frame.getContentPane().add(/*"Center",*/framePanel);
1398
+ //frame.getContentPane().add(/*"Center",*/framePanel);
1399
+ frame.add(/*"Center",*/framePanel);
13661400 //frame.getContentPane().add(/*"Center",*/ worldPane);
13671401
13681402 // aConstraints = gbc; // (GridBagConstraints) GrafreeD.clone(gbc);
....@@ -1383,6 +1417,10 @@
13831417 });
13841418 }
13851419
1420
+ void AddOptions(cGridBag panel) //, GridBagConstraints constraints)
1421
+ {
1422
+ }
1423
+
13861424 JTree GetTree()
13871425 {
13881426 return objEditor.jTree;
....@@ -1394,260 +1432,170 @@
13941432 ctrlPanel.removeAll();
13951433 }
13961434
1397
- void SetupMaterial(JPanel ctrlPanel)
1435
+ void SetupMaterial(cGridBag panel)
13981436 {
1399
- aConstraints.weighty = 0;
1400
- //aConstraints.weightx = 1;
1401
- /*
1437
+ /*
14021438 ctrlPanel.add(materialLabel = new JLabel("MATERIAL : "), aConstraints);
14031439 materialLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1404
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1405
- aConstraints.gridx += 1;
14061440 */
14071441
1408
- aConstraints.gridwidth = 1;
1409
- ctrlPanel.add(createMaterialButton = new cButton("Create"), aConstraints);
1410
- aConstraints.gridx += 1;
1411
- aConstraints.weighty = 0;
1412
- aConstraints.gridwidth = 1;
1442
+ cGridBag editBar = new cGridBag().setVertical(false);
1443
+
1444
+ editBar.add(createMaterialButton = new cButton("Create", !GrafreeD.NIMBUSLAF)); // , aConstraints);
1445
+ createMaterialButton.setToolTipText("Create material");
14131446
14141447 /*
14151448 ctrlPanel.add(resetSlidersButton = new cButton("Reset All"), aConstraints);
1416
- aConstraints.gridx += 1;
1417
- aConstraints.weighty = 0;
1418
- aConstraints.gridwidth = 1;
14191449 */
14201450
1421
- ctrlPanel.add(clearMaterialButton = new cButton("Clear"), aConstraints);
1422
- aConstraints.gridx += 1;
1451
+ editBar.add(clearMaterialButton = new cButton("Clear", !GrafreeD.NIMBUSLAF)); // , aConstraints);
1452
+ clearMaterialButton.setToolTipText("Clear material");
1453
+
1454
+ editBar.add(resetSlidersButton = new cButton("Reset", !GrafreeD.NIMBUSLAF)); // , aConstraints);
1455
+ editBar.add(propagateToggle = new cCheckBox("Prop", propagate)); // , aConstraints);
1456
+ editBar.add(multiplyToggle = new cCheckBox("Mult", false)); // , aConstraints);
14231457
1424
- ctrlPanel.add(resetSlidersButton = new cButton("Reset"), aConstraints);
1425
-
1426
- aConstraints.gridx += 1;
1427
-
1428
- ctrlPanel.add(propagateToggle = new cCheckBox("Prop", propagate), aConstraints);
1429
-
1430
- aConstraints.gridx += 1;
1431
-
1432
- ctrlPanel.add(multiplyToggle = new cCheckBox("Mult", false), aConstraints);
1433
-
1434
- aConstraints.gridx = 0;
1435
- aConstraints.gridy += 1;
1436
- aConstraints.weighty = 0;
1437
- aConstraints.gridwidth = 1;
1458
+ editBar.preferredHeight = 15;
1459
+
1460
+ panel.add(editBar);
1461
+
14381462 /**/
14391463 //aConstraints.weighty = 0;
14401464 ////aConstraints.weightx = 1;
14411465 //aConstraints.weighty = 1;
14421466 aConstraints.gridwidth = ObjEditor.GRIDWIDTH; // 100;
14431467 //aConstraints.gridx += 1;
1444
- ctrlPanel.add(new JLabel("----------------------------------"), aConstraints);
1445
- aConstraints.weighty = 0;
1446
- aConstraints.gridx = 0;
1447
- aConstraints.gridy += 1;
1448
- aConstraints.gridwidth = 1;
1468
+ //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
14491469
1450
- ctrlPanel.add(colorLabel = new JLabel("Color/hue"), aConstraints);
1451
- colorLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1452
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1453
- aConstraints.gridx += 1;
1454
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1455
- //aConstraints.weightx = 0;
1456
- ctrlPanel.add(colorField = new NumberSlider(0.001, 1, -0.5), aConstraints);
1457
- aConstraints.gridx = 0;
1458
- aConstraints.gridy += 1;
1459
- aConstraints.gridwidth = 1;
1470
+ cGridBag colorSection = new cGridBag().setVertical(true);
1471
+
1472
+ cGridBag color = new cGridBag();
1473
+ color.add(colorLabel = new JLabel("Color/hue")); // , aConstraints);
1474
+ colorLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1475
+ color.add(colorField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1476
+ //colorField.preferredWidth = 200;
1477
+ colorSection.add(color);
14601478
1461
- ctrlPanel.add(modulationLabel = new JLabel("Saturation"), aConstraints);
1462
- modulationLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1463
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1464
- aConstraints.gridx += 1;
1465
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1466
- ctrlPanel.add(modulationField = new NumberSlider(0.001, 1, -0.5), aConstraints);
1467
- aConstraints.gridx = 0;
1468
- aConstraints.gridy += 1;
1469
- aConstraints.gridwidth = 1;
1479
+ cGridBag modulation = new cGridBag();
1480
+ modulation.add(modulationLabel = new JLabel("Saturation")); // , aConstraints);
1481
+ modulationLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1482
+ modulation.add(modulationField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1483
+ colorSection.add(modulation);
14701484
1471
- ctrlPanel.add(textureLabel = new JLabel("Texture"), aConstraints);
1472
- textureLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1473
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1474
- aConstraints.gridx += 1;
1475
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1476
- ctrlPanel.add(textureField = new NumberSlider(0.001, 1, -0.5), aConstraints);
1477
- aConstraints.gridx = 0;
1478
- aConstraints.gridy += 1;
1479
- aConstraints.gridwidth = 1;
1485
+ cGridBag texture = new cGridBag();
1486
+ texture.add(textureLabel = new JLabel("Texture")); // , aConstraints);
1487
+ textureLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1488
+ texture.add(textureField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1489
+ colorSection.add(texture);
14801490
1481
- ctrlPanel.add(anisoLabel = new JLabel("AnisoU"), aConstraints);
1482
- anisoLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1483
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1484
- aConstraints.gridx += 1;
1485
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1486
- ctrlPanel.add(anisoField = new NumberSlider(0.001, 1, -0.5), aConstraints);
1487
- aConstraints.gridx = 0;
1488
- aConstraints.gridy += 1;
1489
- aConstraints.gridwidth = 1;
1491
+ cGridBag anisoU = new cGridBag();
1492
+ anisoU.add(anisoLabel = new JLabel("AnisoU")); // , aConstraints);
1493
+ anisoLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1494
+ anisoU.add(anisoField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1495
+ colorSection.add(anisoU);
14901496
1491
- ctrlPanel.add(anisoVLabel = new JLabel("AnisoV"), aConstraints);
1492
- anisoVLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1493
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1494
- aConstraints.gridx += 1;
1495
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1496
- ctrlPanel.add(anisoVField = new NumberSlider(0.001, 1, -0.5), aConstraints);
1497
- aConstraints.gridx = 0;
1498
- aConstraints.gridy += 1;
1499
- aConstraints.gridwidth = 1;
1497
+ cGridBag anisoV = new cGridBag();
1498
+ anisoV.add(anisoVLabel = new JLabel("AnisoV")); // , aConstraints);
1499
+ anisoVLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1500
+ anisoV.add(anisoVField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1501
+ colorSection.add(anisoV);
15001502
1501
- ctrlPanel.add(shadowbiasLabel = new JLabel("Shadowbias"), aConstraints);
1502
- shadowbiasLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1503
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1504
- aConstraints.gridx += 1;
1505
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1506
- ctrlPanel.add(shadowbiasField = new NumberSlider(0.001, 50, -1), aConstraints);
1507
- aConstraints.gridx = 0;
1508
- aConstraints.gridy += 1;
1509
- aConstraints.gridwidth = 1;
1503
+ cGridBag shadowbias = new cGridBag();
1504
+ shadowbias.add(shadowbiasLabel = new JLabel("Shadowbias")); // , aConstraints);
1505
+ shadowbiasLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1506
+ shadowbias.add(shadowbiasField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1507
+ colorSection.add(shadowbias);
15101508
1511
- //aConstraints.weighty = 1;
1512
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH; // 100;
1513
- //aConstraints.gridx += 1;
1514
- ctrlPanel.add(new JLabel("----------------------------------"), aConstraints);
1515
- aConstraints.weighty = 0;
1516
- aConstraints.gridx = 0;
1517
- aConstraints.gridy += 1;
1518
- aConstraints.gridwidth = 1;
1509
+ panel.add(new JSeparator());
1510
+
1511
+ panel.add(colorSection);
1512
+
1513
+ //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
1514
+
1515
+ cGridBag diffuseSection = new cGridBag().setVertical(true);
1516
+
1517
+ cGridBag diffuse = new cGridBag();
1518
+ diffuse.add(diffuseLabel = new JLabel("Diffuse")); // , aConstraints);
1519
+ diffuseLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1520
+ diffuse.add(diffuseField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1521
+ diffuseSection.add(diffuse);
15191522
1520
- ctrlPanel.add(diffuseLabel = new JLabel("Diffuse"), aConstraints);
1521
- diffuseLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1522
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1523
- aConstraints.gridx += 1;
1524
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1525
- ctrlPanel.add(diffuseField = new NumberSlider(0.001, 50, -1), aConstraints);
1526
- aConstraints.gridx = 0;
1527
- aConstraints.gridy += 1;
1528
- aConstraints.gridwidth = 1;
1523
+ cGridBag diffuseness = new cGridBag();
1524
+ diffuseness.add(diffusenessLabel = new JLabel("Diffusion")); // , aConstraints);
1525
+ diffusenessLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1526
+ diffuseness.add(diffusenessField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1527
+ diffuseSection.add(diffuseness);
15291528
1530
- ctrlPanel.add(diffusenessLabel = new JLabel("Diffusion"), aConstraints);
1531
- diffusenessLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1532
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1533
- aConstraints.gridx += 1;
1534
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1535
- ctrlPanel.add(diffusenessField = new NumberSlider(0.001, 50, -1), aConstraints);
1536
- aConstraints.gridx = 0;
1537
- aConstraints.gridy += 1;
1538
- aConstraints.gridwidth = 1;
1529
+ cGridBag selfshadow = new cGridBag();
1530
+ selfshadow.add(selfshadowLabel = new JLabel("Selfshadow")); // , aConstraints);
1531
+ selfshadowLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1532
+ selfshadow.add(selfshadowField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1533
+ diffuseSection.add(selfshadow);
15391534
1540
- ctrlPanel.add(selfshadowLabel = new JLabel("Selfshadow"), aConstraints);
1541
- selfshadowLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1542
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1543
- aConstraints.gridx += 1;
1544
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1545
- ctrlPanel.add(selfshadowField = new NumberSlider(0.001, 50, -1), aConstraints);
1546
- aConstraints.gridx = 0;
1547
- aConstraints.gridy += 1;
1548
- aConstraints.gridwidth = 1;
1535
+ cGridBag sheen = new cGridBag();
1536
+ sheen.add(sheenLabel = new JLabel("Sheen")); // , aConstraints);
1537
+ sheenLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1538
+ sheen.add(sheenField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1539
+ diffuseSection.add(sheen);
15491540
1550
- ctrlPanel.add(sheenLabel = new JLabel("Sheen"), aConstraints);
1551
- sheenLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1552
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1553
- aConstraints.gridx += 1;
1554
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1555
- ctrlPanel.add(sheenField = new NumberSlider(0.001, 50, -1), aConstraints);
1556
- aConstraints.gridx = 0;
1557
- aConstraints.gridy += 1;
1558
- aConstraints.gridwidth = 1;
1541
+ cGridBag subsurface = new cGridBag();
1542
+ subsurface.add(subsurfaceLabel = new JLabel("Subsurface")); // , aConstraints);
1543
+ subsurfaceLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1544
+ subsurface.add(subsurfaceField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1545
+ diffuseSection.add(subsurface);
15591546
1560
- ctrlPanel.add(subsurfaceLabel = new JLabel("Subsurface"), aConstraints);
1561
- subsurfaceLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1562
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1563
- aConstraints.gridx += 1;
1564
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1565
- ctrlPanel.add(subsurfaceField = new NumberSlider(0.001, 1, -0.5), aConstraints);
1566
- aConstraints.gridx = 0;
1567
- aConstraints.gridy += 1;
1568
- aConstraints.gridwidth = 1;
1547
+ cGridBag shadow = new cGridBag();
1548
+ shadow.add(shadowLabel = new JLabel("Shadowing")); // , aConstraints);
1549
+ shadowLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1550
+ shadow.add(shadowField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1551
+ diffuseSection.add(shadow);
15691552
1570
- ctrlPanel.add(shadowLabel = new JLabel("Shadowing"), aConstraints);
1571
- shadowLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1572
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1573
- aConstraints.gridx += 1;
1574
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1575
- ctrlPanel.add(shadowField = new NumberSlider(0.001, 50, -1), aConstraints);
1576
- aConstraints.gridx = 0;
1577
- aConstraints.gridy += 1;
1578
- aConstraints.gridwidth = 1;
1553
+ cGridBag fakedepth = new cGridBag();
1554
+ fakedepth.add(fakedepthLabel = new JLabel("Fakedepth")); // , aConstraints);
1555
+ fakedepthLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1556
+ fakedepth.add(fakedepthField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1557
+ diffuseSection.add(fakedepth);
15791558
1580
- ctrlPanel.add(fakedepthLabel = new JLabel("Fakedepth"), aConstraints);
1581
- fakedepthLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1582
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1583
- aConstraints.gridx += 1;
1584
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1585
- ctrlPanel.add(fakedepthField = new NumberSlider(0.001, 50, -1), aConstraints);
1586
- aConstraints.gridx = 0;
1587
- aConstraints.gridy += 1;
1588
- aConstraints.gridwidth = 1;
1559
+ panel.add(new JSeparator());
1560
+
1561
+ panel.add(diffuseSection);
1562
+
1563
+ //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
1564
+
1565
+ cGridBag specularSection = new cGridBag().setVertical(true);
15891566
1590
- //aConstraints.weighty = 1;
1591
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH; // 100;
1592
- //aConstraints.gridx += 1;
1593
- ctrlPanel.add(new JLabel("----------------------------------"), aConstraints);
1594
- aConstraints.weighty = 0;
1595
- aConstraints.gridx = 0;
1596
- aConstraints.gridy += 1;
1597
- aConstraints.gridwidth = 1;
1567
+ cGridBag specular = new cGridBag();
1568
+ specular.add(specularLabel = new JLabel("Specular")); // , aConstraints);
1569
+ specularLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1570
+ specular.add(specularField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1571
+ specularSection.add(specular);
15981572
1599
- ctrlPanel.add(specularLabel = new JLabel("Specular"), aConstraints);
1600
- specularLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1601
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1602
- aConstraints.gridx += 1;
1603
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1604
- ctrlPanel.add(specularField = new NumberSlider(0.001, 50, -1), aConstraints);
1605
- aConstraints.gridx = 0;
1606
- aConstraints.gridy += 1;
1607
- aConstraints.gridwidth = 1;
1573
+ cGridBag lightarea = new cGridBag();
1574
+ lightarea.add(lightareaLabel = new JLabel("Lightarea")); // , aConstraints);
1575
+ lightareaLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1576
+ lightarea.add(lightareaField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1577
+ specularSection.add(lightarea);
16081578
1609
- ctrlPanel.add(lightareaLabel = new JLabel("Lightarea"), aConstraints);
1610
- lightareaLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1611
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1612
- aConstraints.gridx += 1;
1613
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1614
- ctrlPanel.add(lightareaField = new NumberSlider(0.001, 50, -1), aConstraints);
1615
- aConstraints.gridx = 0;
1616
- aConstraints.gridy += 1;
1617
- aConstraints.gridwidth = 1;
1579
+ cGridBag shininess = new cGridBag();
1580
+ shininess.add(shininessLabel = new JLabel("Roughness")); // , aConstraints);
1581
+ shininessLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1582
+ shininess.add(shininessField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1583
+ specularSection.add(shininess);
16181584
1619
- ctrlPanel.add(shininessLabel = new JLabel("Roughness"), aConstraints);
1620
- shininessLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1621
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1622
- aConstraints.gridx += 1;
1623
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1624
- ctrlPanel.add(shininessField = new NumberSlider(0.001, 50, -1), aConstraints);
1625
- aConstraints.gridx = 0;
1626
- aConstraints.gridy += 1;
1627
- aConstraints.gridwidth = 1;
1585
+ cGridBag metalness = new cGridBag();
1586
+ metalness.add(metalnessLabel = new JLabel("Metalness")); // , aConstraints);
1587
+ metalnessLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1588
+ metalness.add(metalnessField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1589
+ specularSection.add(metalness);
16281590
1629
- ctrlPanel.add(metalnessLabel = new JLabel("Metalness"), aConstraints);
1630
- metalnessLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1631
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1632
- aConstraints.gridx += 1;
1633
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1634
- ctrlPanel.add(metalnessField = new NumberSlider(0.001, 1, -0.5), aConstraints);
1635
- aConstraints.gridx = 0;
1636
- aConstraints.gridy += 1;
1637
- aConstraints.gridwidth = 1;
1591
+ cGridBag velvet = new cGridBag();
1592
+ velvet.add(velvetLabel = new JLabel("Velvet")); // , aConstraints);
1593
+ velvetLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1594
+ velvet.add(velvetField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1595
+ specularSection.add(velvet);
16381596
1639
- ctrlPanel.add(velvetLabel = new JLabel("Velvet"), aConstraints);
1640
- velvetLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1641
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1642
- aConstraints.gridx += 1;
1643
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1644
- ctrlPanel.add(velvetField = new NumberSlider(0.001, 50, -1), aConstraints);
1645
- aConstraints.gridx = 0;
1646
- aConstraints.gridy += 1;
1647
- aConstraints.gridwidth = 1;
1648
-
1649
- shiftField = AddSlider(ctrlPanel, "Shift", 0.001, 50, copy.material.shift, -1);
1650
- Return();
1597
+ shiftField = (cNumberSlider)AddSlider(specularSection, "Shift", 0.001, 50, copy.material.shift, -1).getComponent(1);
1598
+ //Return();
16511599 // ctrlPanel.add(shiftLabel = new JLabel("Shift"), aConstraints);
16521600 // shiftLabel.setHorizontalAlignment(SwingConstants.TRAILING);
16531601 // aConstraints.fill = GridBagConstraints.HORIZONTAL;
....@@ -1658,130 +1606,93 @@
16581606 // aConstraints.gridy += 1;
16591607 // aConstraints.gridwidth = 1;
16601608
1661
- //aConstraints.weighty = 1;
1662
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH; // 100;
1663
- //aConstraints.gridx += 1;
1664
- ctrlPanel.add(new JLabel("----------------------------------"), aConstraints);
1665
- aConstraints.weighty = 0;
1666
- aConstraints.gridx = 0;
1667
- aConstraints.gridy += 1;
1668
- aConstraints.gridwidth = 1;
16691609
1670
- ctrlPanel.add(cameraLabel = new JLabel("GlobalLight"), aConstraints);
1671
- cameraLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1672
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1673
- aConstraints.gridx += 1;
1674
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1675
- ctrlPanel.add(cameraField = new NumberSlider(0.001, 50, -1), aConstraints);
1676
- aConstraints.gridx = 0;
1677
- aConstraints.gridy += 1;
1678
- aConstraints.gridwidth = 1;
1610
+ panel.add(new JSeparator());
1611
+
1612
+ panel.add(specularSection);
1613
+
1614
+ //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
1615
+
1616
+ cGridBag globalSection = new cGridBag().setVertical(true);
16791617
1680
- ctrlPanel.add(ambientLabel = new JLabel("Ambient"), aConstraints);
1681
- ambientLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1682
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1683
- aConstraints.gridx += 1;
1684
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1685
- ctrlPanel.add(ambientField = new NumberSlider(0.001, 50, -1), aConstraints);
1686
- aConstraints.gridx = 0;
1687
- aConstraints.gridy += 1;
1688
- aConstraints.gridwidth = 1;
1618
+ cGridBag camera = new cGridBag();
1619
+ camera.add(cameraLabel = new JLabel("GlobalLight")); // , aConstraints);
1620
+ cameraLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1621
+ camera.add(cameraField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1622
+ globalSection.add(camera);
16891623
1690
- ctrlPanel.add(backlitLabel = new JLabel("Backlit"), aConstraints);
1691
- backlitLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1692
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1693
- aConstraints.gridx += 1;
1694
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1695
- ctrlPanel.add(backlitField = new NumberSlider(0.001, 50, -1), aConstraints);
1696
- aConstraints.gridx = 0;
1697
- aConstraints.gridy += 1;
1698
- aConstraints.gridwidth = 1;
1624
+ cGridBag ambient = new cGridBag();
1625
+ ambient.add(ambientLabel = new JLabel("Ambient")); // , aConstraints);
1626
+ ambientLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1627
+ ambient.add(ambientField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1628
+ globalSection.add(ambient);
16991629
1700
- ctrlPanel.add(opacityLabel = new JLabel("Opacity"), aConstraints);
1701
- opacityLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1702
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1703
- aConstraints.gridx += 1;
1704
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1705
- ctrlPanel.add(opacityField = new NumberSlider(0.001, 1, -0.5), aConstraints);
1706
- aConstraints.gridx = 0;
1707
- aConstraints.gridy += 1;
1708
- aConstraints.gridwidth = 1;
1709
- aConstraints.weighty = 0;
1630
+ cGridBag backlit = new cGridBag();
1631
+ backlit.add(backlitLabel = new JLabel("Backlit")); // , aConstraints);
1632
+ backlitLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1633
+ backlit.add(backlitField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1634
+ globalSection.add(backlit);
17101635
1711
- ctrlPanel.add(bumpLabel = new JLabel("Bump"), aConstraints);
1712
- bumpLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1713
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1714
- aConstraints.gridx += 1;
1715
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1716
- ctrlPanel.add(bumpField = new NumberSlider(0.0, 2), aConstraints);
1717
- aConstraints.gridx = 0;
1718
- aConstraints.gridy += 1;
1719
- aConstraints.gridwidth = 1;
1636
+ cGridBag opacity = new cGridBag();
1637
+ opacity.add(opacityLabel = new JLabel("Opacity")); // , aConstraints);
1638
+ opacityLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1639
+ opacity.add(opacityField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1640
+ globalSection.add(opacity);
17201641
1721
- ctrlPanel.add(noiseLabel = new JLabel("Noise"), aConstraints);
1722
- noiseLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1723
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1724
- aConstraints.gridx += 1;
1725
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1726
- ctrlPanel.add(noiseField = new NumberSlider(0.0, 1/*5*/), aConstraints);
1727
- aConstraints.gridx = 0;
1728
- aConstraints.gridy += 1;
1729
- aConstraints.gridwidth = 1;
1642
+ panel.add(new JSeparator());
1643
+
1644
+ panel.add(globalSection);
1645
+
1646
+ //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
1647
+
1648
+ cGridBag textureSection = new cGridBag().setVertical(true);
17301649
1731
- ctrlPanel.add(powerLabel = new JLabel("Turbulance"), aConstraints);
1732
- powerLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1733
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1734
- aConstraints.gridx += 1;
1735
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1736
- ctrlPanel.add(powerField = new NumberSlider(0.0, 5), aConstraints);
1737
- aConstraints.gridx = 0;
1738
- aConstraints.gridy += 1;
1739
- aConstraints.gridwidth = 1;
1650
+ cGridBag bump = new cGridBag();
1651
+ bump.add(bumpLabel = new JLabel("Bump")); // , aConstraints);
1652
+ bumpLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1653
+ bump.add(bumpField = new cNumberSlider(this, 0.0, 2)); // , aConstraints);
1654
+ textureSection.add(bump);
17401655
1741
- ctrlPanel.add(borderfadeLabel = new JLabel("Borderfade"), aConstraints);
1742
- borderfadeLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1743
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1744
- aConstraints.gridx += 1;
1745
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1746
- ctrlPanel.add(borderfadeField = new NumberSlider(0.0, 2), aConstraints);
1747
- aConstraints.gridx = 0;
1748
- aConstraints.gridy += 1;
1749
- aConstraints.gridwidth = 1;
1656
+ cGridBag noise = new cGridBag();
1657
+ noise.add(noiseLabel = new JLabel("Noise")); // , aConstraints);
1658
+ noiseLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1659
+ noise.add(noiseField = new cNumberSlider(this, 0.0, 1/*5*/)); // , aConstraints);
1660
+ textureSection.add(noise);
17501661
1751
- ctrlPanel.add(fogLabel = new JLabel("Punch"), aConstraints);
1752
- fogLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1753
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1754
- aConstraints.gridx += 1;
1755
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1756
- ctrlPanel.add(fogField = new NumberSlider(0.0, 20), aConstraints);
1757
- aConstraints.gridx = 0;
1758
- aConstraints.gridy += 1;
1759
- aConstraints.gridwidth = 1;
1662
+ cGridBag power = new cGridBag();
1663
+ power.add(powerLabel = new JLabel("Turbulance")); // , aConstraints);
1664
+ powerLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1665
+ power.add(powerField = new cNumberSlider(this, 0.0, 5)); // , aConstraints);
1666
+ textureSection.add(power);
17601667
1761
- ctrlPanel.add(opacityPowerLabel = new JLabel("Halo"), aConstraints);
1762
- opacityPowerLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1763
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1764
- aConstraints.gridx += 1;
1765
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1766
- ctrlPanel.add(opacityPowerField = new NumberSlider(0.0, 10 /*10 dec 2013*/), aConstraints);
1767
- aConstraints.gridx = 0;
1768
- aConstraints.gridy += 1;
1769
- aConstraints.gridwidth = 1;
1668
+ cGridBag borderfade = new cGridBag();
1669
+ borderfade.add(borderfadeLabel = new JLabel("Borderfade")); // , aConstraints);
1670
+ borderfadeLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1671
+ borderfade.add(borderfadeField = new cNumberSlider(this, 0.0, 2)); // , aConstraints);
1672
+ textureSection.add(borderfade);
17701673
1771
- //aConstraints.weighty = 1;
1772
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH; // 100;
1773
- //aConstraints.gridx += 1;
1774
- ctrlPanel.add(new JLabel("----------------------------------"), aConstraints);
1775
- aConstraints.weighty = 0;
1674
+ cGridBag fog = new cGridBag();
1675
+ fog.add(fogLabel = new JLabel("Punch")); // , aConstraints);
1676
+ fogLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1677
+ fog.add(fogField = new cNumberSlider(this, 0.0, 20)); // , aConstraints);
1678
+ textureSection.add(fog);
17761679
1777
- aConstraints.gridx = 0;
1778
- aConstraints.gridy = 0;
1779
- aConstraints.gridwidth = 1;
1680
+ cGridBag opacityPower = new cGridBag();
1681
+ opacityPower.add(opacityPowerLabel = new JLabel("Halo")); // , aConstraints);
1682
+ opacityPowerLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1683
+ opacityPower.add(opacityPowerField = new cNumberSlider(this, 0.0, 10 /*10 dec 2013*/)); // , aConstraints);
1684
+ textureSection.add(opacityPower);
1685
+
1686
+ panel.add(new JSeparator());
1687
+
1688
+ panel.add(textureSection);
1689
+
1690
+ //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
17801691
17811692 SetMaterial(copy); // .GetMaterial());
17821693
1783
- colorField.addChangeListener(this);
1784
- modulationField.addChangeListener(this);
1694
+ //colorField.addChangeListener(this);
1695
+// modulationField.addChangeListener(this);
17851696 metalnessField.addChangeListener(this);
17861697 diffuseField.addChangeListener(this);
17871698 specularField.addChangeListener(this);
....@@ -2593,6 +2504,7 @@
25932504 }
25942505 if (input == null)
25952506 {
2507
+ new Exception().printStackTrace();
25962508 System.exit(0);
25972509 }
25982510
....@@ -2996,7 +2908,8 @@
29962908 if (timeline)
29972909 {
29982910 centralPanel.remove(cameraView);
2999
- centralPanel.add(timelinePanel);
2911
+ cameraPanel.add(cameraView);
2912
+ centralPanel.add(cameraPanel);
30002913 frame.setJMenuBar(timelineMenubar);
30012914 wasFullScreen = CameraPane.FULLSCREEN;
30022915 if (!CameraPane.FULLSCREEN)
....@@ -3005,7 +2918,7 @@
30052918 }
30062919 else
30072920 {
3008
- centralPanel.remove(timelinePanel);
2921
+ centralPanel.remove(cameraPanel);
30092922 centralPanel.add(cameraView);
30102923 frame.setJMenuBar(null);
30112924 if (!wasFullScreen)
....@@ -3128,7 +3041,8 @@
31283041 objEditor.refreshContents();
31293042 } else if (event.getSource() == stepItem)
31303043 {
3131
- cameraView.ONESTEP = true;
3044
+ //cameraView.ONESTEP = true;
3045
+ Globals.ONESTEP = true;
31323046 cameraView.repaint();
31333047 return;
31343048 } else if (event.getSource() == stepButton)
....@@ -3285,25 +3199,25 @@
32853199
32863200 void ToggleAnimation()
32873201 {
3288
- if (!CameraPane.ANIMATION)
3202
+ if (!Globals.ANIMATION)
32893203 {
32903204 FileDialog browser = new FileDialog(frame, "Save Animation As...", FileDialog.SAVE);
3291
- browser.show();
3205
+ browser.setVisible(true);
32923206 String filename = browser.getFile();
32933207 if (filename != null && filename.length() > 0)
32943208 {
3295
- CameraPane.filename = browser.getDirectory() + filename;
3209
+ Globals.filename = browser.getDirectory() + filename;
32963210 //CameraPane.framecount = 0;
3297
- CameraPane.imagecount = 0;
3211
+ Globals.imagecount = 0;
32983212
3299
- CameraPane.ANIMATION ^= true;
3213
+ Globals.ANIMATION ^= true;
33003214
33013215 GrafreeD.wav.cursor = 0;
33023216 GrafreeD.wav.loop = 0;
33033217 }
33043218 } else
33053219 {
3306
- CameraPane.ANIMATION ^= true;
3220
+ Globals.ANIMATION ^= true;
33073221 }
33083222 }
33093223
....@@ -3320,6 +3234,7 @@
33203234 callee.refreshContents();
33213235 } else
33223236 {
3237
+ new Exception().printStackTrace();
33233238 System.exit(0);
33243239 }
33253240 }
....@@ -3482,7 +3397,7 @@
34823397 current.fakedepth = (float) fakedepthField.getFloat();
34833398 current.shadowbias = (float) shadowbiasField.getFloat();
34843399
3485
- if (!NumberSlider.frozen)
3400
+ if (!cNumberSlider.frozen)
34863401 {
34873402 //System.out.println("Propagate = " + propagate);
34883403 copy.UpdateMaterial(anchor, current, propagate);
....@@ -3530,6 +3445,7 @@
35303445 || e.getSource() == apertureField
35313446 || e.getSource() == shadowblurField)
35323447 {
3448
+ new Exception().printStackTrace();
35333449 System.exit(0);
35343450 cameraView.options1[0] = (float) focusField.getFloat() * 10;
35353451 cameraView.options1[1] = (float) apertureField.getFloat() / 1000;
....@@ -3855,7 +3771,7 @@
38553771
38563772 radioPanel.revalidate();
38573773 radioPanel.repaint();
3858
- ctrlPanel.revalidate(); // ? new
3774
+ ctrlPanel.validate(); // ? new
38593775 ctrlPanel.repaint();
38603776 }
38613777 }
....@@ -4501,8 +4417,8 @@
45014417 //MenuItem normalLensItem;
45024418 MenuItem editCameraItem;
45034419 MenuItem revertCameraItem;
4504
- CheckboxMenuItem toggleLiveItem;
45054420 MenuItem stepItem;
4421
+ CheckboxMenuItem toggleLiveItem;
45064422 CheckboxMenuItem toggleFullScreenItem;
45074423 CheckboxMenuItem toggleTimelineItem;
45084424 CheckboxMenuItem toggleRenderItem;
....@@ -4519,20 +4435,21 @@
45194435 JSplitPane mainPanel;
45204436 JScrollPane scrollpane;
45214437 JPanel toolbarPanel;
4522
- JPanel treePanel;
4438
+ cGridBag treePanel;
45234439 JPanel radioPanel;
45244440 ButtonGroup buttonGroup;
4525
- JPanel ctrlPanel;
4526
- JPanel materialPanel;
4441
+ cGridBag ctrlPanel;
4442
+ cGridBag materialPanel;
45274443 JScrollPane infoPanel;
4528
- JPanel optionsPanel;
4444
+ cGridBag optionsPanel;
45294445 JTabbedPane objectPanel;
4530
- JPanel XYZPanel;
4446
+ cGridBag XYZPanel;
45314447 JSplitPane gridPanel;
45324448 JSplitPane bigPanel;
4533
- JPanel bigThree;
4534
- JTabbedPane scenePanel;
4535
- JPanel centralPanel;
4449
+ cGridBag bigThree;
4450
+ cGridBag scenePanel;
4451
+ cGridBag centralPanel;
4452
+ JSplitPane cameraPanel;
45364453 JPanel timelinePanel;
45374454 JMenuBar timelineMenubar;
45384455 JSplitPane framePanel;
....@@ -4584,67 +4501,67 @@
45844501 // MATERIAL
45854502 JLabel materialLabel;
45864503 JLabel colorLabel;
4587
- NumberSlider colorField;
4504
+ cNumberSlider colorField;
45884505 JLabel modulationLabel;
4589
- NumberSlider modulationField;
4506
+ cNumberSlider modulationField;
45904507 JLabel metalnessLabel;
4591
- NumberSlider metalnessField;
4508
+ cNumberSlider metalnessField;
45924509 JLabel diffuseLabel;
4593
- NumberSlider diffuseField;
4510
+ cNumberSlider diffuseField;
45944511 JLabel specularLabel;
4595
- NumberSlider specularField;
4512
+ cNumberSlider specularField;
45964513 JLabel shininessLabel;
4597
- NumberSlider shininessField;
4514
+ cNumberSlider shininessField;
45984515 JLabel shiftLabel;
4599
- NumberSlider shiftField;
4516
+ cNumberSlider shiftField;
46004517 JLabel ambientLabel;
4601
- NumberSlider ambientField;
4518
+ cNumberSlider ambientField;
46024519 JLabel lightareaLabel;
4603
- NumberSlider lightareaField;
4520
+ cNumberSlider lightareaField;
46044521 JLabel diffusenessLabel;
4605
- NumberSlider diffusenessField;
4522
+ cNumberSlider diffusenessField;
46064523 JLabel velvetLabel;
4607
- NumberSlider velvetField;
4524
+ cNumberSlider velvetField;
46084525 JLabel sheenLabel;
4609
- NumberSlider sheenField;
4526
+ cNumberSlider sheenField;
46104527 JLabel subsurfaceLabel;
4611
- NumberSlider subsurfaceField;
4528
+ cNumberSlider subsurfaceField;
46124529 //JLabel bumpLabel;
46134530 //NumberSlider bumpField;
46144531 JLabel backlitLabel;
4615
- NumberSlider backlitField;
4532
+ cNumberSlider backlitField;
46164533 JLabel anisoLabel;
4617
- NumberSlider anisoField;
4534
+ cNumberSlider anisoField;
46184535 JLabel anisoVLabel;
4619
- NumberSlider anisoVField;
4536
+ cNumberSlider anisoVField;
46204537 JLabel cameraLabel;
4621
- NumberSlider cameraField;
4538
+ cNumberSlider cameraField;
46224539 JLabel selfshadowLabel;
4623
- NumberSlider selfshadowField;
4540
+ cNumberSlider selfshadowField;
46244541 JLabel shadowLabel;
4625
- NumberSlider shadowField;
4542
+ cNumberSlider shadowField;
46264543 JLabel textureLabel;
4627
- NumberSlider textureField;
4544
+ cNumberSlider textureField;
46284545 JLabel opacityLabel;
4629
- NumberSlider opacityField;
4546
+ cNumberSlider opacityField;
46304547 JLabel fakedepthLabel;
4631
- NumberSlider fakedepthField;
4548
+ cNumberSlider fakedepthField;
46324549 JLabel shadowbiasLabel;
4633
- NumberSlider shadowbiasField;
4550
+ cNumberSlider shadowbiasField;
46344551 JLabel bumpLabel;
4635
- NumberSlider bumpField;
4552
+ cNumberSlider bumpField;
46364553 JLabel noiseLabel;
4637
- NumberSlider noiseField;
4554
+ cNumberSlider noiseField;
46384555 JLabel powerLabel;
4639
- NumberSlider powerField;
4556
+ cNumberSlider powerField;
46404557 JLabel borderfadeLabel;
4641
- NumberSlider borderfadeField;
4558
+ cNumberSlider borderfadeField;
46424559 JLabel fogLabel;
4643
- NumberSlider fogField;
4560
+ cNumberSlider fogField;
46444561 JLabel opacityPowerLabel;
4645
- NumberSlider opacityPowerField;
4562
+ cNumberSlider opacityPowerField;
46464563 JTree jTree;
46474564 //ObjectUI parent;
46484565
4649
- NumberSlider normalpushField;
4566
+ cNumberSlider normalpushField;
46504567 }