Normand Briere
2019-05-02 c209bbe1cf788c9af3dcffea7667c830170a3f1f
ObjEditor.java
....@@ -138,34 +138,41 @@
138138 public void closeUI()
139139 {
140140 //new Exception().printStackTrace();
141
- System.out.println("this = " + this);
142
- System.out.println("objEditor = " + objEditor);
141
+// System.out.println("this = " + this);
142
+// System.out.println("objEditor = " + objEditor);
143143 //nameField.removeActionListener(this);
144
- objEditor.ctrlPanel.remove(nameField);
144
+// objEditor.ctrlPanel.remove(nameField);
145
+
146
+ objEditor.ctrlPanel.remove(namePanel);
145147
146148 if (!GroupEditor.allparams)
147149 return;
148150
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);
151
+// objEditor.ctrlPanel.remove(liveCB);
152
+// objEditor.ctrlPanel.remove(hideCB);
153
+// objEditor.ctrlPanel.remove(markCB);
154
+//
155
+// objEditor.ctrlPanel.remove(randomCB);
156
+// objEditor.ctrlPanel.remove(speedupCB);
157
+// objEditor.ctrlPanel.remove(rewindCB);
158
+//
159
+// objEditor.ctrlPanel.remove(resetButton);
160
+// objEditor.ctrlPanel.remove(stepButton);
161
+//// objEditor.ctrlPanel.remove(stepAllButton);
162
+//// objEditor.ctrlPanel.remove(resetAllButton);
163
+// objEditor.ctrlPanel.remove(link2masterCB);
164
+// //objEditor.ctrlPanel.remove(flipVCB);
165
+// //objEditor.ctrlPanel.remove(texresMenu);
166
+// objEditor.ctrlPanel.remove(slowerButton);
167
+// objEditor.ctrlPanel.remove(fasterButton);
168
+// objEditor.ctrlPanel.remove(remarkButton);
167169
168
- Remove(normalpushField);
170
+ objEditor.ctrlPanel.remove(setupPanel);
171
+ objEditor.ctrlPanel.remove(commandsPanel);
172
+ objEditor.ctrlPanel.remove(pushPanel);
173
+ //objEditor.ctrlPanel.remove(fillPanel);
174
+
175
+ //Remove(normalpushField);
169176 }
170177
171178 public ObjEditor GetEditor()
....@@ -302,44 +309,60 @@
302309 //normalLensItem.addActionListener(this);
303310 cameraMenu.add(revertCameraItem = new MenuItem("Revert Camera"));
304311 revertCameraItem.addActionListener(this);
305
- cameraMenu.add(toggleTimelineItem = new CheckboxMenuItem("Timeline"));
306
- toggleTimelineItem.addItemListener(this);
312
+
307313 cameraMenu.add(toggleFullScreenItem = new CheckboxMenuItem("Full Screen"));
308314 toggleFullScreenItem.addItemListener(this);
309315 toggleFullScreenItem.setState(CameraPane.FULLSCREEN);
310316 cameraMenu.add("-");
317
+
311318 cameraMenu.add(toggleTextureItem = new CheckboxMenuItem("Texture"));
312319 toggleTextureItem.addItemListener(this);
313320 toggleTextureItem.setState(CameraPane.textureon);
314
- cameraMenu.add(toggleLiveItem = new CheckboxMenuItem("Live"));
315
- toggleLiveItem.addItemListener(this);
316
- toggleLiveItem.setState(Globals.isLIVE());
317
- cameraMenu.add(stepItem = new MenuItem("Step"));
318
- stepItem.addActionListener(this);
319
-// cameraMenu.add(toggleDLItem = new CheckboxMenuItem("Display List"));
320
-// toggleDLItem.addItemListener(this);
321
-// toggleDLItem.setState(false);
322
- cameraMenu.add(toggleRenderItem = new CheckboxMenuItem("Render"));
323
- toggleRenderItem.addItemListener(this);
324
- toggleRenderItem.setState(!CameraPane.frozen);
325
- cameraMenu.add(toggleDebugItem = new CheckboxMenuItem("Debug"));
326
- toggleDebugItem.addItemListener(this);
327
- toggleDebugItem.setState(CameraPane.DEBUG);
328
- cameraMenu.add(toggleFrustumItem = new CheckboxMenuItem("Frustum"));
329
- toggleFrustumItem.addItemListener(this);
330
- toggleFrustumItem.setState(CameraPane.FRUSTUM);
331
- cameraMenu.add(toggleFootContactItem = new CheckboxMenuItem("Foot contact"));
332
- toggleFootContactItem.addItemListener(this);
333
- toggleFootContactItem.setState(CameraPane.FOOTCONTACT);
334
- cameraMenu.add(toggleRandomItem = new CheckboxMenuItem("Random"));
335
- toggleRandomItem.addItemListener(this);
336
- toggleRandomItem.setState(CameraPane.RANDOM);
321
+
322
+ if (Globals.ADVANCED)
323
+ {
324
+ cameraMenu.add(toggleLiveItem = new CheckboxMenuItem("Live"));
325
+ toggleLiveItem.addItemListener(this);
326
+ toggleLiveItem.setState(Globals.isLIVE());
327
+
328
+ cameraMenu.add(stepItem = new MenuItem("Step"));
329
+ stepItem.addActionListener(this);
330
+ // cameraMenu.add(toggleDLItem = new CheckboxMenuItem("Display List"));
331
+ // toggleDLItem.addItemListener(this);
332
+ // toggleDLItem.setState(false);
333
+
334
+ cameraMenu.add(toggleRenderItem = new CheckboxMenuItem("Render"));
335
+ toggleRenderItem.addItemListener(this);
336
+ toggleRenderItem.setState(!CameraPane.frozen);
337
+
338
+ cameraMenu.add(toggleDebugItem = new CheckboxMenuItem("Debug"));
339
+ toggleDebugItem.addItemListener(this);
340
+ toggleDebugItem.setState(CameraPane.DEBUG);
341
+
342
+ cameraMenu.add(toggleFrustumItem = new CheckboxMenuItem("Frustum"));
343
+ toggleFrustumItem.addItemListener(this);
344
+ toggleFrustumItem.setState(CameraPane.FRUSTUM);
345
+
346
+ cameraMenu.add(toggleFootContactItem = new CheckboxMenuItem("Foot contact"));
347
+ toggleFootContactItem.addItemListener(this);
348
+ toggleFootContactItem.setState(CameraPane.FOOTCONTACT);
349
+
350
+ cameraMenu.add(toggleTimelineItem = new CheckboxMenuItem("Timeline"));
351
+ toggleTimelineItem.addItemListener(this);
352
+ }
353
+
354
+ cameraMenu.add(toggleSwitchItem = new CheckboxMenuItem("Switch"));
355
+ toggleSwitchItem.addItemListener(this);
356
+ toggleSwitchItem.setState(CameraPane.SWITCH);
357
+
337358 cameraMenu.add(toggleHandleItem = new CheckboxMenuItem("Handles"));
338359 toggleHandleItem.addItemListener(this);
339360 toggleHandleItem.setState(CameraPane.HANDLES);
361
+
340362 cameraMenu.add(togglePaintItem = new CheckboxMenuItem("Paint mode"));
341363 togglePaintItem.addItemListener(this);
342364 togglePaintItem.setState(CameraPane.PAINTMODE);
365
+
343366 // cameraMenu.add(toggleRootItem = new CheckboxMenuItem("Alternate Root"));
344367 // toggleRootItem.addItemListener(this);
345368 // toggleRootItem.setState(false);
....@@ -353,21 +376,23 @@
353376 objectPanel = new JTabbedPane();
354377 toolbarPanel = new JPanel();
355378 toolbarPanel.setName("Toolbar");
356
- treePanel = new JPanel();
379
+ treePanel = new cGridBag();
357380 treePanel.setName("Tree");
358
- ctrlPanel = new JPanel(); // new GridBagLayout());
381
+ ctrlPanel = new cGridBag().setVertical(false); // new GridBagLayout());
359382 ctrlPanel.setName("Edit");
360
- materialPanel = new JPanel();
383
+ materialPanel = new cGridBag().setVertical(true);
361384 materialPanel.setName("Material");
362385 /*JTextPane*/
363386 infoarea = createTextPane();
387
+ doc = infoarea.getStyledDocument();
388
+
364389 infoarea.setEditable(true);
365390 SetText();
366391 // infoarea.setFont(infoarea.getFont().deriveFont(10, 14f));
367392 // infoarea.setOpaque(false);
368393 // //infoarea.setForeground(textcolor);
369
- infoarea.setLineWrap(true);
370
- infoarea.setWrapStyleWord(true);
394
+// TEXTAREA infoarea.setLineWrap(true);
395
+// TEXTAREA infoarea.setWrapStyleWord(true);
371396 infoPanel = new JScrollPane(infoarea, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //AS_NEEDED);
372397 infoPanel.setPreferredSize(new Dimension(50, 200));
373398 infoPanel.setName("Info");
....@@ -378,16 +403,16 @@
378403 mainPanel.setName("Main");
379404 mainPanel.setContinuousLayout(true);
380405 mainPanel.setOneTouchExpandable(true);
381
- mainPanel.setDividerLocation(1.0);
382406 mainPanel.setDividerSize(9);
383
- mainPanel.setResizeWeight(0);
407
+ mainPanel.setDividerLocation(0.5); //1.0);
408
+ mainPanel.setResizeWeight(0.5);
384409
385410 //ctrlPanel.setLayout(new GridLayout(4, 1, 5, 5));
386411 //mainPanel.setLayout(new GridBagLayout());
387412 toolbarPanel.setLayout(new FlowLayout(FlowLayout.LEFT));
388
- treePanel.setLayout(new GridBagLayout());
389
- ctrlPanel.setLayout(new GridBagLayout());
390
- materialPanel.setLayout(new GridBagLayout());
413
+// treePanel.setLayout(new GridBagLayout());
414
+ //ctrlPanel.setLayout(new GridBagLayout());
415
+ //materialPanel.setLayout(new GridBagLayout());
391416
392417 aConstraints = new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0,
393418 GridBagConstraints.NORTHEAST, GridBagConstraints.BOTH, new Insets(1, 1, 1, 1), 0, 0);
....@@ -426,7 +451,7 @@
426451 static String newline = "\n";
427452 protected static final String buttonString = "JButton";
428453 StyledDocument doc;
429
- JTextArea infoarea;
454
+ JTextPane infoarea;
430455
431456 void ClearInfo()
432457 {
....@@ -493,7 +518,10 @@
493518 }
494519
495520 if (full)
496
- si.SendInfo(" BBox: " + minima + " - " + maxima, "regular");
521
+ {
522
+ si.SendInfo(" BBox min: " + minima, "regular");
523
+ si.SendInfo(" BBox max: " + maxima, "regular");
524
+ }
497525
498526 if (sel.bRep != null)
499527 {
....@@ -591,6 +619,9 @@
591619 {
592620 CameraPane.pointflow = (PointFlow) sel;
593621 }
622
+
623
+ si.SendInfo("_____________________", "regular");
624
+ si.SendInfo("", "regular");
594625 }
595626 }
596627
....@@ -622,52 +653,52 @@
622653 cameraView.ToggleFullScreen();
623654 }
624655
625
- private JTextArea createTextPane()
656
+ private JTextPane createTextPane()
626657 {
627
- String[] initString =
628
- {
629
- "This is an editable JTextPane, ", //regular
630
- "another ", //italic
631
- "styled ", //bold
632
- "text ", //small
633
- "component, ", //large
634
- "which supports embedded components..." + newline,//regular
635
- " " + newline, //button
636
- "...and embedded icons..." + newline, //regular
637
- " ", //icon
638
- newline + "JTextPane is a subclass of JEditorPane that "
639
- + "uses a StyledEditorKit and StyledDocument, and provides "
640
- + "cover methods for interacting with those objects."
641
- };
658
+// TEXTAREA String[] initString =
659
+// {
660
+// "This is an editable JTextPane, ", //regular
661
+// "another ", //italic
662
+// "styled ", //bold
663
+// "text ", //small
664
+// "component, ", //large
665
+// "which supports embedded components..." + newline,//regular
666
+// " " + newline, //button
667
+// "...and embedded icons..." + newline, //regular
668
+// " ", //icon
669
+// newline + "JTextPane is a subclass of JEditorPane that "
670
+// + "uses a StyledEditorKit and StyledDocument, and provides "
671
+// + "cover methods for interacting with those objects."
672
+// };
673
+//
674
+// String[] initStyles =
675
+// {
676
+// "regular", "italic", "bold", "small", "large",
677
+// "regular", "button", "regular", "icon",
678
+// "regular"
679
+// };
680
+//
681
+// JTextPane textPane = new JTextPane();
682
+// textPane.setEditable(true);
683
+// /*StyledDocument*/ doc = textPane.getStyledDocument();
684
+// addStylesToDocument(doc);
685
+//
686
+// try
687
+// {
688
+// for (int j = 0; j < 2; j++)
689
+// {
690
+// for (int i = 0; i < initString.length; i++)
691
+// {
692
+// doc.insertString(doc.getLength(), initString[i],
693
+// doc.getStyle(initStyles[i]));
694
+// }
695
+// }
696
+// } catch (BadLocationException ble)
697
+// {
698
+// System.err.println("Couldn't insert initial text into text pane.");
699
+// }
642700
643
- String[] initStyles =
644
- {
645
- "regular", "italic", "bold", "small", "large",
646
- "regular", "button", "regular", "icon",
647
- "regular"
648
- };
649
-
650
- JTextPane textPane = new JTextPane();
651
- textPane.setEditable(true);
652
- /*StyledDocument*/ doc = textPane.getStyledDocument();
653
- addStylesToDocument(doc);
654
-
655
- try
656
- {
657
- for (int j = 0; j < 2; j++)
658
- {
659
- for (int i = 0; i < initString.length; i++)
660
- {
661
- doc.insertString(doc.getLength(), initString[i],
662
- doc.getStyle(initStyles[i]));
663
- }
664
- }
665
- } catch (BadLocationException ble)
666
- {
667
- System.err.println("Couldn't insert initial text into text pane.");
668
- }
669
-
670
- return new JTextArea(); // textPane;
701
+ return new JTextPane(); // textPane;
671702 }
672703
673704 protected void addStylesToDocument(StyledDocument doc)
....@@ -767,115 +798,83 @@
767798 JButton slowerButton;
768799 JButton fasterButton;
769800 JButton remarkButton;
801
+
802
+ cGridBag namePanel;
803
+ cGridBag setupPanel;
804
+ cGridBag commandsPanel;
805
+ cGridBag pushPanel;
806
+ cGridBag fillPanel;
770807
771
- JCheckBox AddCheckBox(ObjEditor oe, String label, boolean on)
808
+ JCheckBox AddCheckBox(cGridBag panel, String label, boolean on)
772809 {
773810 JCheckBox cb;
774811
775
- oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;
776
- oe.aConstraints.gridwidth = 1; // 3;
777
-// oe.aConstraints.weightx = 1;
778
-// oe.aConstraints.anchor = GridBagConstraints.WEST;
779
- oe.ctrlPanel.add(cb = new JCheckBox(label, on), oe.aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
812
+ panel.add(cb = new JCheckBox(label, on)); //, oe.aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
780813 cb.addItemListener(this);
781
-// oe.aConstraints.anchor = GridBagConstraints.EAST;
782
- oe.aConstraints.gridwidth = 1;
783
- oe.aConstraints.gridx += 1;
784814
785815 return cb;
786816 }
787817
788
- cButton AddButton(ObjEditor oe, String label)
818
+ cButton AddButton(cGridBag panel, String label)
789819 {
790820 cButton cb;
791821
792
- oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;
793
- oe.aConstraints.gridwidth = 1;
794
-// oe.aConstraints.weightx = 1;
795
-// oe.aConstraints.anchor = GridBagConstraints.WEST;
796
- oe.ctrlPanel.add(cb = new cButton(label), oe.aConstraints, oe.ctrlPanel.getComponentCount() - 1);
822
+ panel.add(cb = new cButton(label)); //, oe.aConstraints, oe.ctrlPanel.getComponentCount() - 1);
797823 cb.addActionListener(this);
798
-// oe.aConstraints.anchor = GridBagConstraints.EAST;
799
- oe.aConstraints.gridwidth = 1;
800
- oe.aConstraints.gridx += 1;
801824
802825 return cb;
803826 }
804827
805
- JComboBox AddCombo(ObjEditor oe, java.util.Vector list, int item)
828
+ JComboBox AddCombo(cGridBag panel, java.util.Vector list, int item)
806829 {
807830 JComboBox combo;
808831
809
- oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;
810
- oe.ctrlPanel.add(combo = new JComboBox(new cListModel(list, item)), oe.aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
811
- oe.aConstraints.gridx += 1;
832
+ panel.add(combo = new JComboBox(new cListModel(list, item))); //, oe.aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
812833 combo.addActionListener(this);
813834
814835 return combo;
815836 }
816837
817
- NumberSlider AddSlider(JPanel ctrlPanel, String label, double min, double max, double current, double pow)
838
+ cGridBag AddSlider(cGridBag panel, String label, double min, double max, double current, double pow)
818839 {
819
- NumberSlider combo;
840
+ cGridBag control = new cGridBag();
841
+
842
+ cNumberSlider combo;
820843
821844 JLabel jlabel = new JLabel(label);
822
-
823
- aConstraints.fill = GridBagConstraints.VERTICAL;
824845 jlabel.setHorizontalAlignment(SwingConstants.TRAILING);
825
- aConstraints.gridwidth = 1;
826
- ctrlPanel.add(jlabel, aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
827
- aConstraints.gridx += 1;
828
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
829
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
830
- ctrlPanel.add(combo = new NumberSlider(min, max, pow), aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
831
- aConstraints.gridx += 1;
832
- aConstraints.gridwidth = 1;
833
-
846
+ control.add(jlabel); //, aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
847
+ control.add(combo = new cNumberSlider(this, min, max, pow)); //, aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
834848 combo.setFloat(current);
835
-
836
- combo.label = jlabel;
837
-
838
- combo.addChangeListener(this);
839
-
840
- return combo;
849
+
850
+ panel.add(control);
851
+
852
+ return control;
841853 }
842854
843
- NumberSlider AddSlider(JPanel ctrlPanel, String label, int min, int max, int current)
855
+ cGridBag AddSlider(cGridBag panel, String label, int min, int max, int current)
844856 {
845
- NumberSlider combo;
857
+ cGridBag control = new cGridBag();
858
+
859
+ cNumberSlider combo;
846860
847861 JLabel jlabel = new JLabel(label);
848
-
849
- aConstraints.fill = GridBagConstraints.VERTICAL;
850862 jlabel.setHorizontalAlignment(SwingConstants.TRAILING);
851
- aConstraints.gridwidth = 2;
852
- ctrlPanel.add(jlabel, aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
853
- aConstraints.gridx += 1;
854
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
855
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
856
- ctrlPanel.add(combo = new NumberSlider(min, max), aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
857
- aConstraints.gridx += 1;
858
- aConstraints.gridwidth = 1;
859
-
863
+ control.add(jlabel); //, aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
864
+ control.add(combo = new cNumberSlider(this, min, max)); //, aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
860865 combo.setInteger(current);
861866
862
- combo.label = jlabel;
863
-
864
- combo.addChangeListener(this);
865
-
866
- return combo;
867
+ panel.add(control);
868
+
869
+ return control;
867870 }
868871
869
- JTextArea AddText(JPanel ctrlPanel, String name)
872
+ JTextArea AddText(cGridBag ctrlPanel, String name)
870873 {
871874 JTextArea text;
872875
873
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
874
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
875
- ctrlPanel.add(text = new JTextArea(name), aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
876
+ ctrlPanel.add(text = new JTextArea(name)); //, aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
876877 text.addCaretListener(this);
877
- aConstraints.gridx += 1;
878
- aConstraints.gridwidth = 1;
879878
880879 return text;
881880 }
....@@ -905,9 +904,16 @@
905904 objEditor.ctrlPanel.remove(j);
906905 }
907906
907
+ void Remove(cNumberSlider j)
908
+ {
909
+ j.removeChangeListener(this);
910
+ //objEditor.ctrlPanel.remove(j.label);
911
+ objEditor.ctrlPanel.remove(j);
912
+ }
913
+
908914 /*
909915 */
910
- void Return() // ObjEditor oe)
916
+ void Return0() // ObjEditor oe)
911917 {
912918 aConstraints.gridy += 1;
913919 aConstraints.gridx = 0;
....@@ -962,37 +968,70 @@
962968
963969 void SetupUI2(ObjEditor oe)
964970 {
965
-// oe.aConstraints.weightx = 0;
966
-// oe.aConstraints.weighty = 0;
967
-// oe.aConstraints.gridx = 0;
968
-// oe.aConstraints.gridy = 0;
969
- SetupName(oe);
971
+ //SetupName(oe);
972
+
973
+ namePanel = new cGridBag();
974
+
975
+ nameField = AddText(namePanel, copy.GetName());
976
+ namePanel.add(nameField);
977
+ oe.ctrlPanel.add(namePanel);
978
+
979
+ oe.ctrlPanel.Return();
970980
971981 if (!GroupEditor.allparams)
972982 return;
973983
974
- liveCB = AddCheckBox(oe, "Live", copy.live);
975
- link2masterCB = AddCheckBox(oe, "Supp", copy.link2master);
976
- hideCB = AddCheckBox(oe, "Hide", copy.hide);
984
+ setupPanel = new cGridBag().setVertical(false);
985
+
986
+ liveCB = AddCheckBox(setupPanel, "Live", copy.live);
987
+ liveCB.setToolTipText("Animate object");
988
+ hideCB = AddCheckBox(setupPanel, "Hide", copy.hide);
989
+ hideCB.setToolTipText("Hide object");
977990 // Return();
978
- markCB = AddCheckBox(oe, "Mark", copy.marked);
979
- rewindCB = AddCheckBox(oe, "Rew", copy.rewind);
980
- randomCB = AddCheckBox(oe, "Rand", copy.random);
981
- Return();
982
- resetButton = AddButton(oe, "Reset");
983
- stepButton = AddButton(oe, "Step");
991
+ markCB = AddCheckBox(setupPanel, "Mark", copy.marked);
992
+ markCB.setToolTipText("Set the animation target transform");
993
+
994
+ rewindCB = AddCheckBox(setupPanel, "Rewind", copy.rewind);
995
+ rewindCB.setToolTipText("Rewind animation");
996
+
997
+ randomCB = AddCheckBox(setupPanel, "Random", copy.random);
998
+ randomCB.setToolTipText("Option for switch node");
999
+
1000
+ if (Globals.ADVANCED)
1001
+ {
1002
+ link2masterCB = AddCheckBox(setupPanel, "Support", copy.link2master);
1003
+ link2masterCB.setToolTipText("Attach to support");
1004
+ speedupCB = AddCheckBox(setupPanel, "Speed", copy.speedup);
1005
+ speedupCB.setToolTipText("Option motion capture");
1006
+ }
1007
+
1008
+ oe.ctrlPanel.add(setupPanel);
1009
+ oe.ctrlPanel.Return();
1010
+
1011
+ commandsPanel = new cGridBag().setVertical(false);
1012
+
1013
+ resetButton = AddButton(commandsPanel, "Reset");
1014
+ resetButton.setToolTipText("Jump to frame zero");
1015
+ stepButton = AddButton(commandsPanel, "Step");
1016
+ stepButton.setToolTipText("Step one frame");
9841017 // resetAllButton = AddButton(oe, "Reset All");
9851018 // stepAllButton = AddButton(oe, "Step All");
986
- speedupCB = AddCheckBox(oe, "Speed", copy.speedup);
9871019 // Return();
988
- slowerButton = AddButton(oe, "Slow");
989
- fasterButton = AddButton(oe, "Fast");
990
- remarkButton = AddButton(oe, "Rem");
1020
+ slowerButton = AddButton(commandsPanel, "Slow");
1021
+ slowerButton.setToolTipText("Decrease animation speed");
1022
+ fasterButton = AddButton(commandsPanel, "Fast");
1023
+ fasterButton.setToolTipText("Increase animation speed");
1024
+ remarkButton = AddButton(commandsPanel, "Remark");
1025
+ remarkButton.setToolTipText("Set the current transform as the target");
9911026
992
- Return();
1027
+ oe.ctrlPanel.add(commandsPanel);
1028
+ oe.ctrlPanel.Return();
9931029
994
- normalpushField = AddSlider(oe.ctrlPanel, "Push", -10, 10, 0, -1);
995
- Return();
1030
+ pushPanel = AddSlider(oe.ctrlPanel, "Push", -10, 10, 0, 1);
1031
+ normalpushField = (cNumberSlider)pushPanel.getComponent(1);
1032
+ //Return();
1033
+
1034
+ oe.ctrlPanel.Return();
9961035
9971036 // oe.ctrlPanel.add(stepButton = new cButton("Step"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2);
9981037 // ObjEditor.aConstraints.gridx += 1;
....@@ -1087,7 +1126,7 @@
10871126 oe.aConstraints.gridwidth = 1;
10881127 /**/
10891128 nameField = AddText(oe.ctrlPanel, copy.GetName());
1090
- Return();
1129
+ oe.ctrlPanel.Return();
10911130
10921131 //ctrlPanel.add(textureButton = new Button("Texture..."));
10931132 //textureButton.setEnabled(false);
....@@ -1264,10 +1303,11 @@
12641303 //JScrollPane tmp = new JScrollPane(ctrlPanel, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
12651304 //tmp.setName("Edit");
12661305 objectPanel.add(materialPanel);
1267
- JPanel north = new JPanel(new BorderLayout());
1268
- north.setName("Edit");
1269
- north.add(ctrlPanel, BorderLayout.NORTH);
1270
- objectPanel.add(north);
1306
+// JPanel north = new JPanel(new BorderLayout());
1307
+// north.setName("Edit");
1308
+// north.add(ctrlPanel, BorderLayout.NORTH);
1309
+// objectPanel.add(north);
1310
+ objectPanel.add(ctrlPanel);
12711311 objectPanel.add(infoPanel);
12721312
12731313 /*
....@@ -1296,11 +1336,11 @@
12961336
12971337 tabbedPane.add(FSPane = new cFileSystemPane(this));
12981338
1299
- optionsPanel = new JPanel(new GridBagLayout());
1339
+ optionsPanel = new cGridBag().setVertical(true);
13001340
13011341 optionsPanel.setName("Options");
13021342
1303
- AddOptions(optionsPanel, aConstraints);
1343
+ AddOptions(optionsPanel); //, aConstraints);
13041344
13051345 tabbedPane.add(optionsPanel);
13061346
....@@ -1411,7 +1451,7 @@
14111451 });
14121452 }
14131453
1414
- void AddOptions(JPanel panel, GridBagConstraints constraints)
1454
+ void AddOptions(cGridBag panel) //, GridBagConstraints constraints)
14151455 {
14161456 }
14171457
....@@ -1426,260 +1466,173 @@
14261466 ctrlPanel.removeAll();
14271467 }
14281468
1429
- void SetupMaterial(JPanel ctrlPanel)
1469
+ void SetupMaterial(cGridBag panel)
14301470 {
1431
- aConstraints.weighty = 0;
1432
- //aConstraints.weightx = 1;
1433
- /*
1471
+ /*
14341472 ctrlPanel.add(materialLabel = new JLabel("MATERIAL : "), aConstraints);
14351473 materialLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1436
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1437
- aConstraints.gridx += 1;
14381474 */
14391475
1440
- aConstraints.gridwidth = 1;
1441
- ctrlPanel.add(createMaterialButton = new cButton("Create"), aConstraints);
1442
- aConstraints.gridx += 1;
1443
- aConstraints.weighty = 0;
1444
- aConstraints.gridwidth = 1;
1476
+ cGridBag editBar = new cGridBag().setVertical(false);
1477
+
1478
+ editBar.add(createMaterialButton = new cButton("Create", !GrafreeD.NIMBUSLAF)); // , aConstraints);
1479
+ createMaterialButton.setToolTipText("Create material");
14451480
14461481 /*
14471482 ctrlPanel.add(resetSlidersButton = new cButton("Reset All"), aConstraints);
1448
- aConstraints.gridx += 1;
1449
- aConstraints.weighty = 0;
1450
- aConstraints.gridwidth = 1;
14511483 */
14521484
1453
- ctrlPanel.add(clearMaterialButton = new cButton("Clear"), aConstraints);
1454
- aConstraints.gridx += 1;
1485
+ editBar.add(clearMaterialButton = new cButton("Clear", !GrafreeD.NIMBUSLAF)); // , aConstraints);
1486
+ clearMaterialButton.setToolTipText("Clear material");
1487
+
1488
+ if (Globals.ADVANCED)
1489
+ {
1490
+ editBar.add(resetSlidersButton = new cButton("Reset", !GrafreeD.NIMBUSLAF)); // , aConstraints);
1491
+ editBar.add(propagateToggle = new cCheckBox("Prop", propagate)); // , aConstraints);
1492
+ editBar.add(multiplyToggle = new cCheckBox("Mult", false)); // , aConstraints);
1493
+ }
14551494
1456
- ctrlPanel.add(resetSlidersButton = new cButton("Reset"), aConstraints);
1457
-
1458
- aConstraints.gridx += 1;
1459
-
1460
- ctrlPanel.add(propagateToggle = new cCheckBox("Prop", propagate), aConstraints);
1461
-
1462
- aConstraints.gridx += 1;
1463
-
1464
- ctrlPanel.add(multiplyToggle = new cCheckBox("Mult", false), aConstraints);
1465
-
1466
- aConstraints.gridx = 0;
1467
- aConstraints.gridy += 1;
1468
- aConstraints.weighty = 0;
1469
- aConstraints.gridwidth = 1;
1495
+ editBar.preferredHeight = 15;
1496
+
1497
+ panel.add(editBar);
1498
+
14701499 /**/
14711500 //aConstraints.weighty = 0;
14721501 ////aConstraints.weightx = 1;
14731502 //aConstraints.weighty = 1;
14741503 aConstraints.gridwidth = ObjEditor.GRIDWIDTH; // 100;
14751504 //aConstraints.gridx += 1;
1476
- ctrlPanel.add(new JLabel("----------------------------------"), aConstraints);
1477
- aConstraints.weighty = 0;
1478
- aConstraints.gridx = 0;
1479
- aConstraints.gridy += 1;
1480
- aConstraints.gridwidth = 1;
1505
+ //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
14811506
1482
- ctrlPanel.add(colorLabel = new JLabel("Color/hue"), aConstraints);
1483
- colorLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1484
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1485
- aConstraints.gridx += 1;
1486
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1487
- //aConstraints.weightx = 0;
1488
- ctrlPanel.add(colorField = new NumberSlider(0.001, 1, -0.5), aConstraints);
1489
- aConstraints.gridx = 0;
1490
- aConstraints.gridy += 1;
1491
- aConstraints.gridwidth = 1;
1507
+ cGridBag colorSection = new cGridBag().setVertical(true);
1508
+
1509
+ cGridBag color = new cGridBag();
1510
+ color.add(colorLabel = new JLabel("Color/hue")); // , aConstraints);
1511
+ colorLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1512
+ color.add(colorField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1513
+ //colorField.preferredWidth = 200;
1514
+ colorSection.add(color);
14921515
1493
- ctrlPanel.add(modulationLabel = new JLabel("Saturation"), aConstraints);
1494
- modulationLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1495
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1496
- aConstraints.gridx += 1;
1497
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1498
- ctrlPanel.add(modulationField = new NumberSlider(0.001, 1, -0.5), aConstraints);
1499
- aConstraints.gridx = 0;
1500
- aConstraints.gridy += 1;
1501
- aConstraints.gridwidth = 1;
1516
+ cGridBag modulation = new cGridBag();
1517
+ modulation.add(modulationLabel = new JLabel("Saturation")); // , aConstraints);
1518
+ modulationLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1519
+ modulation.add(modulationField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1520
+ colorSection.add(modulation);
15021521
1503
- ctrlPanel.add(textureLabel = new JLabel("Texture"), aConstraints);
1504
- textureLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1505
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1506
- aConstraints.gridx += 1;
1507
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1508
- ctrlPanel.add(textureField = new NumberSlider(0.001, 1, -0.5), aConstraints);
1509
- aConstraints.gridx = 0;
1510
- aConstraints.gridy += 1;
1511
- aConstraints.gridwidth = 1;
1522
+ cGridBag texture = new cGridBag();
1523
+ texture.add(textureLabel = new JLabel("Texture")); // , aConstraints);
1524
+ textureLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1525
+ texture.add(textureField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1526
+ colorSection.add(texture);
15121527
1513
- ctrlPanel.add(anisoLabel = new JLabel("AnisoU"), aConstraints);
1514
- anisoLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1515
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1516
- aConstraints.gridx += 1;
1517
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1518
- ctrlPanel.add(anisoField = new NumberSlider(0.001, 1, -0.5), aConstraints);
1519
- aConstraints.gridx = 0;
1520
- aConstraints.gridy += 1;
1521
- aConstraints.gridwidth = 1;
1528
+ cGridBag anisoU = new cGridBag();
1529
+ anisoU.add(anisoLabel = new JLabel("AnisoU")); // , aConstraints);
1530
+ anisoLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1531
+ anisoU.add(anisoField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1532
+ colorSection.add(anisoU);
15221533
1523
- ctrlPanel.add(anisoVLabel = new JLabel("AnisoV"), aConstraints);
1524
- anisoVLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1525
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1526
- aConstraints.gridx += 1;
1527
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1528
- ctrlPanel.add(anisoVField = new NumberSlider(0.001, 1, -0.5), aConstraints);
1529
- aConstraints.gridx = 0;
1530
- aConstraints.gridy += 1;
1531
- aConstraints.gridwidth = 1;
1534
+ cGridBag anisoV = new cGridBag();
1535
+ anisoV.add(anisoVLabel = new JLabel("AnisoV")); // , aConstraints);
1536
+ anisoVLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1537
+ anisoV.add(anisoVField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1538
+ colorSection.add(anisoV);
15321539
1533
- ctrlPanel.add(shadowbiasLabel = new JLabel("Shadowbias"), aConstraints);
1534
- shadowbiasLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1535
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1536
- aConstraints.gridx += 1;
1537
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1538
- ctrlPanel.add(shadowbiasField = new NumberSlider(0.001, 50, -1), aConstraints);
1539
- aConstraints.gridx = 0;
1540
- aConstraints.gridy += 1;
1541
- aConstraints.gridwidth = 1;
1540
+ cGridBag shadowbias = new cGridBag();
1541
+ shadowbias.add(shadowbiasLabel = new JLabel("Shadowbias")); // , aConstraints);
1542
+ shadowbiasLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1543
+ shadowbias.add(shadowbiasField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1544
+ colorSection.add(shadowbias);
15421545
1543
- //aConstraints.weighty = 1;
1544
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH; // 100;
1545
- //aConstraints.gridx += 1;
1546
- ctrlPanel.add(new JLabel("----------------------------------"), aConstraints);
1547
- aConstraints.weighty = 0;
1548
- aConstraints.gridx = 0;
1549
- aConstraints.gridy += 1;
1550
- aConstraints.gridwidth = 1;
1546
+ panel.add(new JSeparator());
1547
+
1548
+ panel.add(colorSection);
1549
+
1550
+ //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
1551
+
1552
+ cGridBag diffuseSection = new cGridBag().setVertical(true);
1553
+
1554
+ cGridBag diffuse = new cGridBag();
1555
+ diffuse.add(diffuseLabel = new JLabel("Diffuse")); // , aConstraints);
1556
+ diffuseLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1557
+ diffuse.add(diffuseField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1558
+ diffuseSection.add(diffuse);
15511559
1552
- ctrlPanel.add(diffuseLabel = new JLabel("Diffuse"), aConstraints);
1553
- diffuseLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1554
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1555
- aConstraints.gridx += 1;
1556
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1557
- ctrlPanel.add(diffuseField = new NumberSlider(0.001, 50, -1), aConstraints);
1558
- aConstraints.gridx = 0;
1559
- aConstraints.gridy += 1;
1560
- aConstraints.gridwidth = 1;
1560
+ cGridBag diffuseness = new cGridBag();
1561
+ diffuseness.add(diffusenessLabel = new JLabel("Diffusion")); // , aConstraints);
1562
+ diffusenessLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1563
+ diffuseness.add(diffusenessField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1564
+ diffuseSection.add(diffuseness);
15611565
1562
- ctrlPanel.add(diffusenessLabel = new JLabel("Diffusion"), aConstraints);
1563
- diffusenessLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1564
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1565
- aConstraints.gridx += 1;
1566
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1567
- ctrlPanel.add(diffusenessField = new NumberSlider(0.001, 50, -1), aConstraints);
1568
- aConstraints.gridx = 0;
1569
- aConstraints.gridy += 1;
1570
- aConstraints.gridwidth = 1;
1566
+ cGridBag selfshadow = new cGridBag();
1567
+ selfshadow.add(selfshadowLabel = new JLabel("Selfshadow")); // , aConstraints);
1568
+ selfshadowLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1569
+ selfshadow.add(selfshadowField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1570
+ diffuseSection.add(selfshadow);
15711571
1572
- ctrlPanel.add(selfshadowLabel = new JLabel("Selfshadow"), aConstraints);
1573
- selfshadowLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1574
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1575
- aConstraints.gridx += 1;
1576
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1577
- ctrlPanel.add(selfshadowField = new NumberSlider(0.001, 50, -1), aConstraints);
1578
- aConstraints.gridx = 0;
1579
- aConstraints.gridy += 1;
1580
- aConstraints.gridwidth = 1;
1572
+ cGridBag sheen = new cGridBag();
1573
+ sheen.add(sheenLabel = new JLabel("Sheen")); // , aConstraints);
1574
+ sheenLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1575
+ sheen.add(sheenField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1576
+ diffuseSection.add(sheen);
15811577
1582
- ctrlPanel.add(sheenLabel = new JLabel("Sheen"), aConstraints);
1583
- sheenLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1584
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1585
- aConstraints.gridx += 1;
1586
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1587
- ctrlPanel.add(sheenField = new NumberSlider(0.001, 50, -1), aConstraints);
1588
- aConstraints.gridx = 0;
1589
- aConstraints.gridy += 1;
1590
- aConstraints.gridwidth = 1;
1578
+ cGridBag subsurface = new cGridBag();
1579
+ subsurface.add(subsurfaceLabel = new JLabel("Subsurface")); // , aConstraints);
1580
+ subsurfaceLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1581
+ subsurface.add(subsurfaceField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1582
+ diffuseSection.add(subsurface);
15911583
1592
- ctrlPanel.add(subsurfaceLabel = new JLabel("Subsurface"), aConstraints);
1593
- subsurfaceLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1594
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1595
- aConstraints.gridx += 1;
1596
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1597
- ctrlPanel.add(subsurfaceField = new NumberSlider(0.001, 1, -0.5), aConstraints);
1598
- aConstraints.gridx = 0;
1599
- aConstraints.gridy += 1;
1600
- aConstraints.gridwidth = 1;
1584
+ cGridBag shadow = new cGridBag();
1585
+ shadow.add(shadowLabel = new JLabel("Shadowing")); // , aConstraints);
1586
+ shadowLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1587
+ shadow.add(shadowField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1588
+ diffuseSection.add(shadow);
16011589
1602
- ctrlPanel.add(shadowLabel = new JLabel("Shadowing"), aConstraints);
1603
- shadowLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1604
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1605
- aConstraints.gridx += 1;
1606
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1607
- ctrlPanel.add(shadowField = new NumberSlider(0.001, 50, -1), aConstraints);
1608
- aConstraints.gridx = 0;
1609
- aConstraints.gridy += 1;
1610
- aConstraints.gridwidth = 1;
1590
+ cGridBag fakedepth = new cGridBag();
1591
+ fakedepth.add(fakedepthLabel = new JLabel("Fakedepth")); // , aConstraints);
1592
+ fakedepthLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1593
+ fakedepth.add(fakedepthField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1594
+ diffuseSection.add(fakedepth);
16111595
1612
- ctrlPanel.add(fakedepthLabel = new JLabel("Fakedepth"), aConstraints);
1613
- fakedepthLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1614
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1615
- aConstraints.gridx += 1;
1616
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1617
- ctrlPanel.add(fakedepthField = new NumberSlider(0.001, 50, -1), aConstraints);
1618
- aConstraints.gridx = 0;
1619
- aConstraints.gridy += 1;
1620
- aConstraints.gridwidth = 1;
1596
+ panel.add(new JSeparator());
1597
+
1598
+ panel.add(diffuseSection);
1599
+
1600
+ //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
1601
+
1602
+ cGridBag specularSection = new cGridBag().setVertical(true);
16211603
1622
- //aConstraints.weighty = 1;
1623
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH; // 100;
1624
- //aConstraints.gridx += 1;
1625
- ctrlPanel.add(new JLabel("----------------------------------"), aConstraints);
1626
- aConstraints.weighty = 0;
1627
- aConstraints.gridx = 0;
1628
- aConstraints.gridy += 1;
1629
- aConstraints.gridwidth = 1;
1604
+ cGridBag specular = new cGridBag();
1605
+ specular.add(specularLabel = new JLabel("Specular")); // , aConstraints);
1606
+ specularLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1607
+ specular.add(specularField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1608
+ specularSection.add(specular);
16301609
1631
- ctrlPanel.add(specularLabel = new JLabel("Specular"), aConstraints);
1632
- specularLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1633
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1634
- aConstraints.gridx += 1;
1635
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1636
- ctrlPanel.add(specularField = new NumberSlider(0.001, 50, -1), aConstraints);
1637
- aConstraints.gridx = 0;
1638
- aConstraints.gridy += 1;
1639
- aConstraints.gridwidth = 1;
1610
+ cGridBag lightarea = new cGridBag();
1611
+ lightarea.add(lightareaLabel = new JLabel("Lightarea")); // , aConstraints);
1612
+ lightareaLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1613
+ lightarea.add(lightareaField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1614
+ specularSection.add(lightarea);
16401615
1641
- ctrlPanel.add(lightareaLabel = new JLabel("Lightarea"), aConstraints);
1642
- lightareaLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1643
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1644
- aConstraints.gridx += 1;
1645
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1646
- ctrlPanel.add(lightareaField = new NumberSlider(0.001, 50, -1), aConstraints);
1647
- aConstraints.gridx = 0;
1648
- aConstraints.gridy += 1;
1649
- aConstraints.gridwidth = 1;
1616
+ cGridBag shininess = new cGridBag();
1617
+ shininess.add(shininessLabel = new JLabel("Roughness")); // , aConstraints);
1618
+ shininessLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1619
+ shininess.add(shininessField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1620
+ specularSection.add(shininess);
16501621
1651
- ctrlPanel.add(shininessLabel = new JLabel("Roughness"), aConstraints);
1652
- shininessLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1653
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1654
- aConstraints.gridx += 1;
1655
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1656
- ctrlPanel.add(shininessField = new NumberSlider(0.001, 50, -1), aConstraints);
1657
- aConstraints.gridx = 0;
1658
- aConstraints.gridy += 1;
1659
- aConstraints.gridwidth = 1;
1622
+ cGridBag metalness = new cGridBag();
1623
+ metalness.add(metalnessLabel = new JLabel("Metalness")); // , aConstraints);
1624
+ metalnessLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1625
+ metalness.add(metalnessField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1626
+ specularSection.add(metalness);
16601627
1661
- ctrlPanel.add(metalnessLabel = new JLabel("Metalness"), aConstraints);
1662
- metalnessLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1663
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1664
- aConstraints.gridx += 1;
1665
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1666
- ctrlPanel.add(metalnessField = new NumberSlider(0.001, 1, -0.5), aConstraints);
1667
- aConstraints.gridx = 0;
1668
- aConstraints.gridy += 1;
1669
- aConstraints.gridwidth = 1;
1628
+ cGridBag velvet = new cGridBag();
1629
+ velvet.add(velvetLabel = new JLabel("Velvet")); // , aConstraints);
1630
+ velvetLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1631
+ velvet.add(velvetField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1632
+ specularSection.add(velvet);
16701633
1671
- ctrlPanel.add(velvetLabel = new JLabel("Velvet"), aConstraints);
1672
- velvetLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1673
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1674
- aConstraints.gridx += 1;
1675
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1676
- ctrlPanel.add(velvetField = new NumberSlider(0.001, 50, -1), aConstraints);
1677
- aConstraints.gridx = 0;
1678
- aConstraints.gridy += 1;
1679
- aConstraints.gridwidth = 1;
1680
-
1681
- shiftField = AddSlider(ctrlPanel, "Shift", 0.001, 50, copy.material.shift, -1);
1682
- Return();
1634
+ shiftField = (cNumberSlider)AddSlider(specularSection, "Shift", 0.001, 50, copy.material.shift, -1).getComponent(1);
1635
+ //Return();
16831636 // ctrlPanel.add(shiftLabel = new JLabel("Shift"), aConstraints);
16841637 // shiftLabel.setHorizontalAlignment(SwingConstants.TRAILING);
16851638 // aConstraints.fill = GridBagConstraints.HORIZONTAL;
....@@ -1690,130 +1643,93 @@
16901643 // aConstraints.gridy += 1;
16911644 // aConstraints.gridwidth = 1;
16921645
1693
- //aConstraints.weighty = 1;
1694
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH; // 100;
1695
- //aConstraints.gridx += 1;
1696
- ctrlPanel.add(new JLabel("----------------------------------"), aConstraints);
1697
- aConstraints.weighty = 0;
1698
- aConstraints.gridx = 0;
1699
- aConstraints.gridy += 1;
1700
- aConstraints.gridwidth = 1;
17011646
1702
- ctrlPanel.add(cameraLabel = new JLabel("GlobalLight"), aConstraints);
1703
- cameraLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1704
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1705
- aConstraints.gridx += 1;
1706
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1707
- ctrlPanel.add(cameraField = new NumberSlider(0.001, 50, -1), aConstraints);
1708
- aConstraints.gridx = 0;
1709
- aConstraints.gridy += 1;
1710
- aConstraints.gridwidth = 1;
1647
+ panel.add(new JSeparator());
1648
+
1649
+ panel.add(specularSection);
1650
+
1651
+ //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
1652
+
1653
+ cGridBag globalSection = new cGridBag().setVertical(true);
17111654
1712
- ctrlPanel.add(ambientLabel = new JLabel("Ambient"), aConstraints);
1713
- ambientLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1714
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1715
- aConstraints.gridx += 1;
1716
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1717
- ctrlPanel.add(ambientField = new NumberSlider(0.001, 50, -1), aConstraints);
1718
- aConstraints.gridx = 0;
1719
- aConstraints.gridy += 1;
1720
- aConstraints.gridwidth = 1;
1655
+ cGridBag camera = new cGridBag();
1656
+ camera.add(cameraLabel = new JLabel("GlobalLight")); // , aConstraints);
1657
+ cameraLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1658
+ camera.add(cameraField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1659
+ globalSection.add(camera);
17211660
1722
- ctrlPanel.add(backlitLabel = new JLabel("Backlit"), aConstraints);
1723
- backlitLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1724
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1725
- aConstraints.gridx += 1;
1726
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1727
- ctrlPanel.add(backlitField = new NumberSlider(0.001, 50, -1), aConstraints);
1728
- aConstraints.gridx = 0;
1729
- aConstraints.gridy += 1;
1730
- aConstraints.gridwidth = 1;
1661
+ cGridBag ambient = new cGridBag();
1662
+ ambient.add(ambientLabel = new JLabel("Ambient")); // , aConstraints);
1663
+ ambientLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1664
+ ambient.add(ambientField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1665
+ globalSection.add(ambient);
17311666
1732
- ctrlPanel.add(opacityLabel = new JLabel("Opacity"), aConstraints);
1733
- opacityLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1734
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1735
- aConstraints.gridx += 1;
1736
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1737
- ctrlPanel.add(opacityField = new NumberSlider(0.001, 1, -0.5), aConstraints);
1738
- aConstraints.gridx = 0;
1739
- aConstraints.gridy += 1;
1740
- aConstraints.gridwidth = 1;
1741
- aConstraints.weighty = 0;
1667
+ cGridBag backlit = new cGridBag();
1668
+ backlit.add(backlitLabel = new JLabel("Backlit")); // , aConstraints);
1669
+ backlitLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1670
+ backlit.add(backlitField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1671
+ globalSection.add(backlit);
17421672
1743
- ctrlPanel.add(bumpLabel = new JLabel("Bump"), aConstraints);
1744
- bumpLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1745
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1746
- aConstraints.gridx += 1;
1747
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1748
- ctrlPanel.add(bumpField = new NumberSlider(0.0, 2), aConstraints);
1749
- aConstraints.gridx = 0;
1750
- aConstraints.gridy += 1;
1751
- aConstraints.gridwidth = 1;
1673
+ cGridBag opacity = new cGridBag();
1674
+ opacity.add(opacityLabel = new JLabel("Opacity")); // , aConstraints);
1675
+ opacityLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1676
+ opacity.add(opacityField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1677
+ globalSection.add(opacity);
17521678
1753
- ctrlPanel.add(noiseLabel = new JLabel("Noise"), aConstraints);
1754
- noiseLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1755
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1756
- aConstraints.gridx += 1;
1757
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1758
- ctrlPanel.add(noiseField = new NumberSlider(0.0, 1/*5*/), aConstraints);
1759
- aConstraints.gridx = 0;
1760
- aConstraints.gridy += 1;
1761
- aConstraints.gridwidth = 1;
1679
+ panel.add(new JSeparator());
1680
+
1681
+ panel.add(globalSection);
1682
+
1683
+ //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
1684
+
1685
+ cGridBag textureSection = new cGridBag().setVertical(true);
17621686
1763
- ctrlPanel.add(powerLabel = new JLabel("Turbulance"), aConstraints);
1764
- powerLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1765
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1766
- aConstraints.gridx += 1;
1767
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1768
- ctrlPanel.add(powerField = new NumberSlider(0.0, 5), aConstraints);
1769
- aConstraints.gridx = 0;
1770
- aConstraints.gridy += 1;
1771
- aConstraints.gridwidth = 1;
1687
+ cGridBag bump = new cGridBag();
1688
+ bump.add(bumpLabel = new JLabel("Bump")); // , aConstraints);
1689
+ bumpLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1690
+ bump.add(bumpField = new cNumberSlider(this, 0.0, 2)); // , aConstraints);
1691
+ textureSection.add(bump);
17721692
1773
- ctrlPanel.add(borderfadeLabel = new JLabel("Borderfade"), aConstraints);
1774
- borderfadeLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1775
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1776
- aConstraints.gridx += 1;
1777
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1778
- ctrlPanel.add(borderfadeField = new NumberSlider(0.0, 2), aConstraints);
1779
- aConstraints.gridx = 0;
1780
- aConstraints.gridy += 1;
1781
- aConstraints.gridwidth = 1;
1693
+ cGridBag noise = new cGridBag();
1694
+ noise.add(noiseLabel = new JLabel("Noise")); // , aConstraints);
1695
+ noiseLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1696
+ noise.add(noiseField = new cNumberSlider(this, 0.0, 1/*5*/)); // , aConstraints);
1697
+ textureSection.add(noise);
17821698
1783
- ctrlPanel.add(fogLabel = new JLabel("Punch"), aConstraints);
1784
- fogLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1785
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1786
- aConstraints.gridx += 1;
1787
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1788
- ctrlPanel.add(fogField = new NumberSlider(0.0, 20), aConstraints);
1789
- aConstraints.gridx = 0;
1790
- aConstraints.gridy += 1;
1791
- aConstraints.gridwidth = 1;
1699
+ cGridBag power = new cGridBag();
1700
+ power.add(powerLabel = new JLabel("Turbulance")); // , aConstraints);
1701
+ powerLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1702
+ power.add(powerField = new cNumberSlider(this, 0.0, 5)); // , aConstraints);
1703
+ textureSection.add(power);
17921704
1793
- ctrlPanel.add(opacityPowerLabel = new JLabel("Halo"), aConstraints);
1794
- opacityPowerLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1795
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1796
- aConstraints.gridx += 1;
1797
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1798
- ctrlPanel.add(opacityPowerField = new NumberSlider(0.0, 10 /*10 dec 2013*/), aConstraints);
1799
- aConstraints.gridx = 0;
1800
- aConstraints.gridy += 1;
1801
- aConstraints.gridwidth = 1;
1705
+ cGridBag borderfade = new cGridBag();
1706
+ borderfade.add(borderfadeLabel = new JLabel("Borderfade")); // , aConstraints);
1707
+ borderfadeLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1708
+ borderfade.add(borderfadeField = new cNumberSlider(this, 0.0, 2)); // , aConstraints);
1709
+ textureSection.add(borderfade);
18021710
1803
- //aConstraints.weighty = 1;
1804
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH; // 100;
1805
- //aConstraints.gridx += 1;
1806
- ctrlPanel.add(new JLabel("----------------------------------"), aConstraints);
1807
- aConstraints.weighty = 0;
1711
+ cGridBag fog = new cGridBag();
1712
+ fog.add(fogLabel = new JLabel("Punch")); // , aConstraints);
1713
+ fogLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1714
+ fog.add(fogField = new cNumberSlider(this, 0.0, 20)); // , aConstraints);
1715
+ textureSection.add(fog);
18081716
1809
- aConstraints.gridx = 0;
1810
- aConstraints.gridy = 0;
1811
- aConstraints.gridwidth = 1;
1717
+ cGridBag opacityPower = new cGridBag();
1718
+ opacityPower.add(opacityPowerLabel = new JLabel("Halo")); // , aConstraints);
1719
+ opacityPowerLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1720
+ opacityPower.add(opacityPowerField = new cNumberSlider(this, 0.0, 10 /*10 dec 2013*/)); // , aConstraints);
1721
+ textureSection.add(opacityPower);
1722
+
1723
+ panel.add(new JSeparator());
1724
+
1725
+ panel.add(textureSection);
1726
+
1727
+ //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
18121728
18131729 SetMaterial(copy); // .GetMaterial());
18141730
1815
- colorField.addChangeListener(this);
1816
- modulationField.addChangeListener(this);
1731
+ //colorField.addChangeListener(this);
1732
+// modulationField.addChangeListener(this);
18171733 metalnessField.addChangeListener(this);
18181734 diffuseField.addChangeListener(this);
18191735 specularField.addChangeListener(this);
....@@ -1843,12 +1759,15 @@
18431759 opacityPowerField.addChangeListener(this);
18441760 /**/
18451761
1846
- resetSlidersButton.addActionListener(this);
18471762 clearMaterialButton.addActionListener(this);
18481763 createMaterialButton.addActionListener(this);
1849
-
1850
- propagateToggle.addItemListener(this);
1851
- multiplyToggle.addItemListener(this);
1764
+
1765
+ if (Globals.ADVANCED)
1766
+ {
1767
+ resetSlidersButton.addActionListener(this);
1768
+ propagateToggle.addItemListener(this);
1769
+ multiplyToggle.addItemListener(this);
1770
+ }
18521771 }
18531772
18541773 void DropFile(java.io.File[] files, boolean textures)
....@@ -2625,6 +2544,7 @@
26252544 }
26262545 if (input == null)
26272546 {
2547
+ new Exception().printStackTrace();
26282548 System.exit(0);
26292549 }
26302550
....@@ -2839,7 +2759,8 @@
28392759 return;
28402760 }
28412761
2842
- multiplyToggle.setSelected(mat.multiply);
2762
+ if (multiplyToggle != null)
2763
+ multiplyToggle.setSelected(mat.multiply);
28432764
28442765 assert (object.projectedVertices != null);
28452766
....@@ -3054,7 +2975,7 @@
30542975 frame.validate();
30552976
30562977 return;
3057
- } else if (event.getSource() == toggleRandomItem)
2978
+ } else if (event.getSource() == toggleSwitchItem)
30582979 {
30592980 cameraView.ToggleRandom();
30602981 cameraView.repaint();
....@@ -3099,6 +3020,7 @@
30993020 if (event.getSource() == randomCB)
31003021 {
31013022 copy.random ^= true;
3023
+ objEditor.refreshContents();
31023024 return;
31033025 }
31043026 if (event.getSource() == speedupCB)
....@@ -3322,7 +3244,7 @@
33223244 if (!Globals.ANIMATION)
33233245 {
33243246 FileDialog browser = new FileDialog(frame, "Save Animation As...", FileDialog.SAVE);
3325
- browser.show();
3247
+ browser.setVisible(true);
33263248 String filename = browser.getFile();
33273249 if (filename != null && filename.length() > 0)
33283250 {
....@@ -3354,6 +3276,7 @@
33543276 callee.refreshContents();
33553277 } else
33563278 {
3279
+ new Exception().printStackTrace();
33573280 System.exit(0);
33583281 }
33593282 }
....@@ -3383,7 +3306,7 @@
33833306 void CreateMaterial()
33843307 {
33853308 //copy.ClearMaterial(); // PATCH
3386
- copy.CreateMaterialS(multiplyToggle.isSelected());
3309
+ copy.CreateMaterialS(multiplyToggle != null && multiplyToggle.isSelected());
33873310 if (copy.selection.size() > 0)
33883311 //SetMaterial(copy);
33893312 {
....@@ -3442,11 +3365,11 @@
34423365 {
34433366 copy.ResetBlockLoop(); // temporary problem
34443367
3445
- boolean random = CameraPane.RANDOM;
3446
- CameraPane.RANDOM = false; // parse everything
3368
+ boolean random = CameraPane.SWITCH;
3369
+ CameraPane.SWITCH = false; // parse everything
34473370 copy.ResetDisplayList();
34483371 copy.HardTouch();
3449
- CameraPane.RANDOM = random;
3372
+ CameraPane.SWITCH = random;
34503373 }
34513374
34523375 // public void applySelf()
....@@ -3516,7 +3439,7 @@
35163439 current.fakedepth = (float) fakedepthField.getFloat();
35173440 current.shadowbias = (float) shadowbiasField.getFloat();
35183441
3519
- if (!NumberSlider.frozen)
3442
+ if (!cNumberSlider.frozen)
35203443 {
35213444 //System.out.println("Propagate = " + propagate);
35223445 copy.UpdateMaterial(anchor, current, propagate);
....@@ -3564,6 +3487,7 @@
35643487 || e.getSource() == apertureField
35653488 || e.getSource() == shadowblurField)
35663489 {
3490
+ new Exception().printStackTrace();
35673491 System.exit(0);
35683492 cameraView.options1[0] = (float) focusField.getFloat() * 10;
35693493 cameraView.options1[1] = (float) apertureField.getFloat() / 1000;
....@@ -3889,7 +3813,7 @@
38893813
38903814 radioPanel.revalidate();
38913815 radioPanel.repaint();
3892
- ctrlPanel.revalidate(); // ? new
3816
+ ctrlPanel.validate(); // ? new
38933817 ctrlPanel.repaint();
38943818 }
38953819 }
....@@ -4535,8 +4459,8 @@
45354459 //MenuItem normalLensItem;
45364460 MenuItem editCameraItem;
45374461 MenuItem revertCameraItem;
4538
- CheckboxMenuItem toggleLiveItem;
45394462 MenuItem stepItem;
4463
+ CheckboxMenuItem toggleLiveItem;
45404464 CheckboxMenuItem toggleFullScreenItem;
45414465 CheckboxMenuItem toggleTimelineItem;
45424466 CheckboxMenuItem toggleRenderItem;
....@@ -4545,7 +4469,7 @@
45454469 CheckboxMenuItem toggleFootContactItem;
45464470 CheckboxMenuItem toggleDLItem;
45474471 CheckboxMenuItem toggleTextureItem;
4548
- CheckboxMenuItem toggleRandomItem;
4472
+ CheckboxMenuItem toggleSwitchItem;
45494473 CheckboxMenuItem toggleRootItem;
45504474 CheckboxMenuItem animationItem;
45514475 CheckboxMenuItem toggleHandleItem;
....@@ -4553,13 +4477,13 @@
45534477 JSplitPane mainPanel;
45544478 JScrollPane scrollpane;
45554479 JPanel toolbarPanel;
4556
- JPanel treePanel;
4480
+ cGridBag treePanel;
45574481 JPanel radioPanel;
45584482 ButtonGroup buttonGroup;
4559
- JPanel ctrlPanel;
4560
- JPanel materialPanel;
4483
+ cGridBag ctrlPanel;
4484
+ cGridBag materialPanel;
45614485 JScrollPane infoPanel;
4562
- JPanel optionsPanel;
4486
+ cGridBag optionsPanel;
45634487 JTabbedPane objectPanel;
45644488 cGridBag XYZPanel;
45654489 JSplitPane gridPanel;
....@@ -4619,67 +4543,67 @@
46194543 // MATERIAL
46204544 JLabel materialLabel;
46214545 JLabel colorLabel;
4622
- NumberSlider colorField;
4546
+ cNumberSlider colorField;
46234547 JLabel modulationLabel;
4624
- NumberSlider modulationField;
4548
+ cNumberSlider modulationField;
46254549 JLabel metalnessLabel;
4626
- NumberSlider metalnessField;
4550
+ cNumberSlider metalnessField;
46274551 JLabel diffuseLabel;
4628
- NumberSlider diffuseField;
4552
+ cNumberSlider diffuseField;
46294553 JLabel specularLabel;
4630
- NumberSlider specularField;
4554
+ cNumberSlider specularField;
46314555 JLabel shininessLabel;
4632
- NumberSlider shininessField;
4556
+ cNumberSlider shininessField;
46334557 JLabel shiftLabel;
4634
- NumberSlider shiftField;
4558
+ cNumberSlider shiftField;
46354559 JLabel ambientLabel;
4636
- NumberSlider ambientField;
4560
+ cNumberSlider ambientField;
46374561 JLabel lightareaLabel;
4638
- NumberSlider lightareaField;
4562
+ cNumberSlider lightareaField;
46394563 JLabel diffusenessLabel;
4640
- NumberSlider diffusenessField;
4564
+ cNumberSlider diffusenessField;
46414565 JLabel velvetLabel;
4642
- NumberSlider velvetField;
4566
+ cNumberSlider velvetField;
46434567 JLabel sheenLabel;
4644
- NumberSlider sheenField;
4568
+ cNumberSlider sheenField;
46454569 JLabel subsurfaceLabel;
4646
- NumberSlider subsurfaceField;
4570
+ cNumberSlider subsurfaceField;
46474571 //JLabel bumpLabel;
46484572 //NumberSlider bumpField;
46494573 JLabel backlitLabel;
4650
- NumberSlider backlitField;
4574
+ cNumberSlider backlitField;
46514575 JLabel anisoLabel;
4652
- NumberSlider anisoField;
4576
+ cNumberSlider anisoField;
46534577 JLabel anisoVLabel;
4654
- NumberSlider anisoVField;
4578
+ cNumberSlider anisoVField;
46554579 JLabel cameraLabel;
4656
- NumberSlider cameraField;
4580
+ cNumberSlider cameraField;
46574581 JLabel selfshadowLabel;
4658
- NumberSlider selfshadowField;
4582
+ cNumberSlider selfshadowField;
46594583 JLabel shadowLabel;
4660
- NumberSlider shadowField;
4584
+ cNumberSlider shadowField;
46614585 JLabel textureLabel;
4662
- NumberSlider textureField;
4586
+ cNumberSlider textureField;
46634587 JLabel opacityLabel;
4664
- NumberSlider opacityField;
4588
+ cNumberSlider opacityField;
46654589 JLabel fakedepthLabel;
4666
- NumberSlider fakedepthField;
4590
+ cNumberSlider fakedepthField;
46674591 JLabel shadowbiasLabel;
4668
- NumberSlider shadowbiasField;
4592
+ cNumberSlider shadowbiasField;
46694593 JLabel bumpLabel;
4670
- NumberSlider bumpField;
4594
+ cNumberSlider bumpField;
46714595 JLabel noiseLabel;
4672
- NumberSlider noiseField;
4596
+ cNumberSlider noiseField;
46734597 JLabel powerLabel;
4674
- NumberSlider powerField;
4598
+ cNumberSlider powerField;
46754599 JLabel borderfadeLabel;
4676
- NumberSlider borderfadeField;
4600
+ cNumberSlider borderfadeField;
46774601 JLabel fogLabel;
4678
- NumberSlider fogField;
4602
+ cNumberSlider fogField;
46794603 JLabel opacityPowerLabel;
4680
- NumberSlider opacityPowerField;
4604
+ cNumberSlider opacityPowerField;
46814605 JTree jTree;
46824606 //ObjectUI parent;
46834607
4684
- NumberSlider normalpushField;
4608
+ cNumberSlider normalpushField;
46854609 }