.. | .. |
---|
160 | 160 | objEditor.ctrlPanel.remove(slowerButton); |
---|
161 | 161 | objEditor.ctrlPanel.remove(fasterButton); |
---|
162 | 162 | objEditor.ctrlPanel.remove(remarkButton); |
---|
| 163 | + |
---|
| 164 | + Remove(normalpushField); |
---|
163 | 165 | } |
---|
164 | 166 | |
---|
165 | 167 | public ObjEditor GetEditor() |
---|
166 | 168 | { |
---|
167 | 169 | return objEditor; //.GetEditor(); |
---|
168 | 170 | } |
---|
| 171 | + |
---|
| 172 | + // Sometimes myself, sometimes my callee's. |
---|
169 | 173 | ObjEditor objEditor; |
---|
170 | 174 | |
---|
171 | 175 | /* |
---|
.. | .. |
---|
814 | 818 | |
---|
815 | 819 | aConstraints.fill = GridBagConstraints.VERTICAL; |
---|
816 | 820 | jlabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
817 | | - aConstraints.gridwidth = 2; |
---|
| 821 | + aConstraints.gridwidth = 1; |
---|
818 | 822 | ctrlPanel.add(jlabel, aConstraints); //, oe.ctrlPanel.getComponentCount()-1); |
---|
819 | 823 | aConstraints.gridx += 1; |
---|
820 | 824 | aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
.. | .. |
---|
983 | 987 | |
---|
984 | 988 | Return(); |
---|
985 | 989 | |
---|
| 990 | + normalpushField = AddSlider(oe.ctrlPanel, "Push", -10, 10, 0, -1); |
---|
| 991 | + Return(); |
---|
| 992 | + |
---|
986 | 993 | // oe.ctrlPanel.add(stepButton = new cButton("Step"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); |
---|
987 | 994 | // ObjEditor.aConstraints.gridx += 1; |
---|
988 | 995 | |
---|
.. | .. |
---|
1182 | 1189 | timelinePanel = new JPanel(new BorderLayout()); |
---|
1183 | 1190 | timelineMenubar = new timeflow.app.TimeflowApp().TimeFlowWindow(timelinePanel); |
---|
1184 | 1191 | |
---|
| 1192 | + cameraPanel = new JSplitPane(JSplitPane.VERTICAL_SPLIT, cameraView, timelinePanel); |
---|
| 1193 | + cameraPanel.setContinuousLayout(true); |
---|
| 1194 | + cameraPanel.setOneTouchExpandable(true); |
---|
| 1195 | +// cameraPanel.setDividerLocation(0.9); |
---|
| 1196 | +// cameraPanel.setDividerSize(9); |
---|
| 1197 | + cameraPanel.setResizeWeight(1.0); |
---|
| 1198 | + |
---|
1185 | 1199 | centralPanel.add(cameraView); |
---|
1186 | 1200 | //frame.setJMenuBar(timelineMenubar); |
---|
1187 | 1201 | //centralPanel.add(timelinePanel); |
---|
.. | .. |
---|
1446 | 1460 | aConstraints.gridx += 1; |
---|
1447 | 1461 | aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1448 | 1462 | //aConstraints.weightx = 0; |
---|
1449 | | - ctrlPanel.add(colorField = new NumberSlider(0.001, 1, -0.1), aConstraints); |
---|
| 1463 | + ctrlPanel.add(colorField = new NumberSlider(0.001, 1, -0.5), aConstraints); |
---|
1450 | 1464 | aConstraints.gridx = 0; |
---|
1451 | 1465 | aConstraints.gridy += 1; |
---|
1452 | 1466 | aConstraints.gridwidth = 1; |
---|
.. | .. |
---|
1456 | 1470 | aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1457 | 1471 | aConstraints.gridx += 1; |
---|
1458 | 1472 | aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1459 | | - ctrlPanel.add(modulationField = new NumberSlider(0.001, 1, -0.1), aConstraints); |
---|
| 1473 | + ctrlPanel.add(modulationField = new NumberSlider(0.001, 1, -0.5), aConstraints); |
---|
1460 | 1474 | aConstraints.gridx = 0; |
---|
1461 | 1475 | aConstraints.gridy += 1; |
---|
1462 | 1476 | aConstraints.gridwidth = 1; |
---|
.. | .. |
---|
1466 | 1480 | aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1467 | 1481 | aConstraints.gridx += 1; |
---|
1468 | 1482 | aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1469 | | - ctrlPanel.add(textureField = new NumberSlider(0.001, 1, -0.1), aConstraints); |
---|
| 1483 | + ctrlPanel.add(textureField = new NumberSlider(0.001, 1, -0.5), aConstraints); |
---|
1470 | 1484 | aConstraints.gridx = 0; |
---|
1471 | 1485 | aConstraints.gridy += 1; |
---|
1472 | 1486 | aConstraints.gridwidth = 1; |
---|
.. | .. |
---|
1476 | 1490 | aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1477 | 1491 | aConstraints.gridx += 1; |
---|
1478 | 1492 | aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1479 | | - ctrlPanel.add(anisoField = new NumberSlider(0.001, 1, -0.1), aConstraints); |
---|
| 1493 | + ctrlPanel.add(anisoField = new NumberSlider(0.001, 1, -0.5), aConstraints); |
---|
1480 | 1494 | aConstraints.gridx = 0; |
---|
1481 | 1495 | aConstraints.gridy += 1; |
---|
1482 | 1496 | aConstraints.gridwidth = 1; |
---|
.. | .. |
---|
1486 | 1500 | aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1487 | 1501 | aConstraints.gridx += 1; |
---|
1488 | 1502 | aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1489 | | - ctrlPanel.add(anisoVField = new NumberSlider(0.001, 1, -0.1), aConstraints); |
---|
| 1503 | + ctrlPanel.add(anisoVField = new NumberSlider(0.001, 1, -0.5), aConstraints); |
---|
1490 | 1504 | aConstraints.gridx = 0; |
---|
1491 | 1505 | aConstraints.gridy += 1; |
---|
1492 | 1506 | aConstraints.gridwidth = 1; |
---|
.. | .. |
---|
1555 | 1569 | aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1556 | 1570 | aConstraints.gridx += 1; |
---|
1557 | 1571 | aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1558 | | - ctrlPanel.add(subsurfaceField = new NumberSlider(0.001, 1, -0.1), aConstraints); |
---|
| 1572 | + ctrlPanel.add(subsurfaceField = new NumberSlider(0.001, 1, -0.5), aConstraints); |
---|
1559 | 1573 | aConstraints.gridx = 0; |
---|
1560 | 1574 | aConstraints.gridy += 1; |
---|
1561 | 1575 | aConstraints.gridwidth = 1; |
---|
.. | .. |
---|
1624 | 1638 | aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1625 | 1639 | aConstraints.gridx += 1; |
---|
1626 | 1640 | aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1627 | | - ctrlPanel.add(metalnessField = new NumberSlider(0.001, 1, -0.1), aConstraints); |
---|
| 1641 | + ctrlPanel.add(metalnessField = new NumberSlider(0.001, 1, -0.5), aConstraints); |
---|
1628 | 1642 | aConstraints.gridx = 0; |
---|
1629 | 1643 | aConstraints.gridy += 1; |
---|
1630 | 1644 | aConstraints.gridwidth = 1; |
---|
.. | .. |
---|
1695 | 1709 | aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1696 | 1710 | aConstraints.gridx += 1; |
---|
1697 | 1711 | aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1698 | | - ctrlPanel.add(opacityField = new NumberSlider(0.001, 1, -0.1), aConstraints); |
---|
| 1712 | + ctrlPanel.add(opacityField = new NumberSlider(0.001, 1, -0.5), aConstraints); |
---|
1699 | 1713 | aConstraints.gridx = 0; |
---|
1700 | 1714 | aConstraints.gridy += 1; |
---|
1701 | 1715 | aConstraints.gridwidth = 1; |
---|
.. | .. |
---|
2989 | 3003 | if (timeline) |
---|
2990 | 3004 | { |
---|
2991 | 3005 | centralPanel.remove(cameraView); |
---|
2992 | | - centralPanel.add(timelinePanel); |
---|
| 3006 | + cameraPanel.add(cameraView); |
---|
| 3007 | + centralPanel.add(cameraPanel); |
---|
2993 | 3008 | frame.setJMenuBar(timelineMenubar); |
---|
2994 | 3009 | wasFullScreen = CameraPane.FULLSCREEN; |
---|
2995 | 3010 | if (!CameraPane.FULLSCREEN) |
---|
.. | .. |
---|
2998 | 3013 | } |
---|
2999 | 3014 | else |
---|
3000 | 3015 | { |
---|
3001 | | - centralPanel.remove(timelinePanel); |
---|
| 3016 | + centralPanel.remove(cameraPanel); |
---|
3002 | 3017 | centralPanel.add(cameraView); |
---|
3003 | 3018 | frame.setJMenuBar(null); |
---|
3004 | 3019 | if (!wasFullScreen) |
---|
.. | .. |
---|
3549 | 3564 | //System.out.println("PARENT = " + parent); |
---|
3550 | 3565 | //if (parent != null) |
---|
3551 | 3566 | // parent.applySelf(); |
---|
3552 | | - refreshContents(); |
---|
| 3567 | + if (e.getSource() == normalpushField) |
---|
| 3568 | + { |
---|
| 3569 | + objEditor.refreshContents(); |
---|
| 3570 | + //Refresh(); |
---|
| 3571 | + } |
---|
| 3572 | + else |
---|
| 3573 | + refreshContents(); |
---|
3553 | 3574 | // ??? client.refreshEditWindow(); |
---|
3554 | 3575 | } |
---|
3555 | 3576 | //else |
---|
.. | .. |
---|
3561 | 3582 | //group.name = nameField.getText(); |
---|
3562 | 3583 | //objEditor.applySelf(); |
---|
3563 | 3584 | |
---|
3564 | | - assert (objEditor == this); |
---|
| 3585 | + // OCT2018: assert (objEditor == this); |
---|
3565 | 3586 | if (copy.selection == null || copy.selection.size() == 0) |
---|
3566 | 3587 | //super.applySelf() |
---|
3567 | 3588 | ; else |
---|
.. | .. |
---|
3585 | 3606 | objEditor.copy = keep; |
---|
3586 | 3607 | } |
---|
3587 | 3608 | } |
---|
| 3609 | + |
---|
| 3610 | + if (normalpushField != null) |
---|
| 3611 | + copy.NORMALPUSH = (float)normalpushField.getFloat()/1000; |
---|
3588 | 3612 | } |
---|
3589 | 3613 | |
---|
3590 | 3614 | void SnapObject() |
---|
.. | .. |
---|
4517 | 4541 | JPanel bigThree; |
---|
4518 | 4542 | JTabbedPane scenePanel; |
---|
4519 | 4543 | JPanel centralPanel; |
---|
| 4544 | + JSplitPane cameraPanel; |
---|
4520 | 4545 | JPanel timelinePanel; |
---|
4521 | 4546 | JMenuBar timelineMenubar; |
---|
4522 | 4547 | JSplitPane framePanel; |
---|
.. | .. |
---|
4629 | 4654 | NumberSlider opacityPowerField; |
---|
4630 | 4655 | JTree jTree; |
---|
4631 | 4656 | //ObjectUI parent; |
---|
| 4657 | + |
---|
| 4658 | + NumberSlider normalpushField; |
---|
4632 | 4659 | } |
---|