.. | .. |
---|
19 | 19 | import //weka.core. |
---|
20 | 20 | matrix.Matrix; |
---|
21 | 21 | |
---|
| 22 | +import grafeme.ui.*; |
---|
| 23 | + |
---|
22 | 24 | class ObjEditor /*extends JFrame*/ implements iCallBack, ObjectUI, |
---|
23 | 25 | ActionListener, ChangeListener, |
---|
24 | 26 | InputMethodListener, |
---|
.. | .. |
---|
28 | 30 | iSendInfo |
---|
29 | 31 | //KeyListener |
---|
30 | 32 | { |
---|
| 33 | + boolean timeline; |
---|
| 34 | + boolean wasFullScreen; |
---|
31 | 35 | |
---|
| 36 | + GroupEditor callee; |
---|
| 37 | + JFrame frame; |
---|
| 38 | + |
---|
32 | 39 | // SCRIPT |
---|
33 | 40 | |
---|
34 | 41 | transient JFrame textpanel = null; |
---|
.. | .. |
---|
119 | 126 | void keyPressed(int key, int modifiers) |
---|
120 | 127 | { |
---|
121 | 128 | System.out.println("KEY PRESSED"); |
---|
122 | | - CameraPane.theRenderer.keyPressed(key, modifiers); |
---|
| 129 | + Globals.theRenderer.keyPressed(key, modifiers); |
---|
123 | 130 | } |
---|
124 | 131 | */ |
---|
125 | 132 | |
---|
126 | 133 | static GridBagConstraints aConstraints; |
---|
127 | 134 | static GridBagConstraints aWindowConstraints; |
---|
128 | | - GroupEditor callee; |
---|
129 | | - JFrame frame; |
---|
| 135 | + |
---|
130 | 136 | static int GRIDWIDTH = 100; // 4; |
---|
131 | 137 | |
---|
132 | 138 | public void closeUI() |
---|
133 | 139 | { |
---|
134 | 140 | //new Exception().printStackTrace(); |
---|
135 | | - System.out.println("this = " + this); |
---|
136 | | - System.out.println("objEditor = " + objEditor); |
---|
| 141 | +// System.out.println("this = " + this); |
---|
| 142 | +// System.out.println("objEditor = " + objEditor); |
---|
137 | 143 | //nameField.removeActionListener(this); |
---|
138 | | - objEditor.ctrlPanel.remove(nameField); |
---|
| 144 | +// objEditor.ctrlPanel.remove(nameField); |
---|
| 145 | + |
---|
| 146 | + objEditor.ctrlPanel.remove(namePanel); |
---|
139 | 147 | |
---|
140 | 148 | if (!GroupEditor.allparams) |
---|
141 | 149 | return; |
---|
142 | 150 | |
---|
143 | | - objEditor.ctrlPanel.remove(liveCB); |
---|
144 | | - objEditor.ctrlPanel.remove(hideCB); |
---|
145 | | - objEditor.ctrlPanel.remove(markCB); |
---|
146 | | - |
---|
147 | | - objEditor.ctrlPanel.remove(randomCB); |
---|
148 | | - objEditor.ctrlPanel.remove(speedupCB); |
---|
149 | | - objEditor.ctrlPanel.remove(rewindCB); |
---|
150 | | - |
---|
151 | | - objEditor.ctrlPanel.remove(resetButton); |
---|
152 | | - objEditor.ctrlPanel.remove(stepButton); |
---|
153 | | -// objEditor.ctrlPanel.remove(stepAllButton); |
---|
154 | | -// objEditor.ctrlPanel.remove(resetAllButton); |
---|
155 | | - objEditor.ctrlPanel.remove(link2masterCB); |
---|
156 | | - //objEditor.ctrlPanel.remove(flipVCB); |
---|
157 | | - //objEditor.ctrlPanel.remove(texresMenu); |
---|
158 | | - objEditor.ctrlPanel.remove(slowerButton); |
---|
159 | | - objEditor.ctrlPanel.remove(fasterButton); |
---|
160 | | - 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); |
---|
| 169 | + |
---|
| 170 | + objEditor.ctrlPanel.remove(setupPanel); |
---|
| 171 | + objEditor.ctrlPanel.remove(commandsPanel); |
---|
| 172 | + objEditor.ctrlPanel.remove(pushPanel); |
---|
| 173 | + //objEditor.ctrlPanel.remove(fillPanel); |
---|
| 174 | + |
---|
| 175 | + //Remove(normalpushField); |
---|
161 | 176 | } |
---|
162 | 177 | |
---|
163 | 178 | public ObjEditor GetEditor() |
---|
164 | 179 | { |
---|
165 | 180 | return objEditor; //.GetEditor(); |
---|
166 | 181 | } |
---|
| 182 | + |
---|
| 183 | + // Sometimes myself, sometimes my callee's. |
---|
167 | 184 | ObjEditor objEditor; |
---|
168 | 185 | |
---|
169 | 186 | /* |
---|
.. | .. |
---|
238 | 255 | //if (!isDisplayable()) |
---|
239 | 256 | //setUndecorated(true); |
---|
240 | 257 | |
---|
241 | | - System.out.println("getFullScreenWindow? " + gd.getFullScreenWindow()); |
---|
| 258 | + //System.out.println("getFullScreenWindow? " + gd.getFullScreenWindow()); |
---|
242 | 259 | client = inClient; |
---|
243 | 260 | copy = localCopy; |
---|
244 | 261 | copy.editWindow = this; |
---|
.. | .. |
---|
292 | 309 | //normalLensItem.addActionListener(this); |
---|
293 | 310 | cameraMenu.add(revertCameraItem = new MenuItem("Revert Camera")); |
---|
294 | 311 | revertCameraItem.addActionListener(this); |
---|
| 312 | + |
---|
295 | 313 | cameraMenu.add(toggleFullScreenItem = new CheckboxMenuItem("Full Screen")); |
---|
296 | 314 | toggleFullScreenItem.addItemListener(this); |
---|
297 | 315 | toggleFullScreenItem.setState(CameraPane.FULLSCREEN); |
---|
298 | | - cameraMenu.add(toggleTimelineItem = new CheckboxMenuItem("Timeline")); |
---|
299 | | - toggleTimelineItem.addItemListener(this); |
---|
300 | 316 | cameraMenu.add("-"); |
---|
| 317 | + |
---|
301 | 318 | cameraMenu.add(toggleTextureItem = new CheckboxMenuItem("Texture")); |
---|
302 | 319 | toggleTextureItem.addItemListener(this); |
---|
303 | 320 | toggleTextureItem.setState(CameraPane.textureon); |
---|
304 | | - cameraMenu.add(toggleLiveItem = new CheckboxMenuItem("Live")); |
---|
305 | | - toggleLiveItem.addItemListener(this); |
---|
306 | | - toggleLiveItem.setState(CameraPane.isLIVE()); |
---|
307 | | - cameraMenu.add(stepItem = new MenuItem("Step")); |
---|
308 | | - stepItem.addActionListener(this); |
---|
309 | | -// cameraMenu.add(toggleDLItem = new CheckboxMenuItem("Display List")); |
---|
310 | | -// toggleDLItem.addItemListener(this); |
---|
311 | | -// toggleDLItem.setState(false); |
---|
312 | | - cameraMenu.add(toggleRenderItem = new CheckboxMenuItem("Render")); |
---|
313 | | - toggleRenderItem.addItemListener(this); |
---|
314 | | - toggleRenderItem.setState(!CameraPane.frozen); |
---|
315 | | - cameraMenu.add(toggleDebugItem = new CheckboxMenuItem("Debug")); |
---|
316 | | - toggleDebugItem.addItemListener(this); |
---|
317 | | - toggleDebugItem.setState(CameraPane.DEBUG); |
---|
318 | | - cameraMenu.add(toggleFrustumItem = new CheckboxMenuItem("Frustum")); |
---|
319 | | - toggleFrustumItem.addItemListener(this); |
---|
320 | | - toggleFrustumItem.setState(CameraPane.FRUSTUM); |
---|
321 | | - cameraMenu.add(toggleFootContactItem = new CheckboxMenuItem("Foot contact")); |
---|
322 | | - toggleFootContactItem.addItemListener(this); |
---|
323 | | - toggleFootContactItem.setState(CameraPane.FOOTCONTACT); |
---|
324 | | - cameraMenu.add(toggleRandomItem = new CheckboxMenuItem("Random")); |
---|
325 | | - toggleRandomItem.addItemListener(this); |
---|
326 | | - toggleRandomItem.setState(CameraPane.RANDOM); |
---|
| 321 | + |
---|
| 322 | + cameraMenu.add(toggleSwitchItem = new CheckboxMenuItem("Switch")); |
---|
| 323 | + toggleSwitchItem.addItemListener(this); |
---|
| 324 | + toggleSwitchItem.setState(CameraPane.SWITCH); |
---|
| 325 | + |
---|
327 | 326 | cameraMenu.add(toggleHandleItem = new CheckboxMenuItem("Handles")); |
---|
328 | 327 | toggleHandleItem.addItemListener(this); |
---|
329 | 328 | toggleHandleItem.setState(CameraPane.HANDLES); |
---|
| 329 | + |
---|
330 | 330 | cameraMenu.add(togglePaintItem = new CheckboxMenuItem("Paint mode")); |
---|
331 | 331 | togglePaintItem.addItemListener(this); |
---|
332 | 332 | togglePaintItem.setState(CameraPane.PAINTMODE); |
---|
| 333 | + |
---|
| 334 | + if (Globals.ADVANCED) |
---|
| 335 | + { |
---|
| 336 | + cameraMenu.add("-"); |
---|
| 337 | + cameraMenu.add(toggleLiveItem = new CheckboxMenuItem("Live")); |
---|
| 338 | + toggleLiveItem.addItemListener(this); |
---|
| 339 | + toggleLiveItem.setState(Globals.isLIVE()); |
---|
| 340 | + |
---|
| 341 | + cameraMenu.add(stepItem = new MenuItem("Step")); |
---|
| 342 | + stepItem.addActionListener(this); |
---|
| 343 | + // cameraMenu.add(toggleDLItem = new CheckboxMenuItem("Display List")); |
---|
| 344 | + // toggleDLItem.addItemListener(this); |
---|
| 345 | + // toggleDLItem.setState(false); |
---|
| 346 | + |
---|
| 347 | + cameraMenu.add(toggleRenderItem = new CheckboxMenuItem("Render")); |
---|
| 348 | + toggleRenderItem.addItemListener(this); |
---|
| 349 | + toggleRenderItem.setState(!CameraPane.frozen); |
---|
| 350 | + |
---|
| 351 | + cameraMenu.add(toggleDebugItem = new CheckboxMenuItem("Debug")); |
---|
| 352 | + toggleDebugItem.addItemListener(this); |
---|
| 353 | + toggleDebugItem.setState(CameraPane.DEBUG); |
---|
| 354 | + |
---|
| 355 | + cameraMenu.add(toggleFrustumItem = new CheckboxMenuItem("Frustum")); |
---|
| 356 | + toggleFrustumItem.addItemListener(this); |
---|
| 357 | + toggleFrustumItem.setState(CameraPane.FRUSTUM); |
---|
| 358 | + |
---|
| 359 | + cameraMenu.add(toggleFootContactItem = new CheckboxMenuItem("Foot contact")); |
---|
| 360 | + toggleFootContactItem.addItemListener(this); |
---|
| 361 | + toggleFootContactItem.setState(CameraPane.FOOTCONTACT); |
---|
| 362 | + |
---|
| 363 | + cameraMenu.add(toggleTimelineItem = new CheckboxMenuItem("Timeline")); |
---|
| 364 | + toggleTimelineItem.addItemListener(this); |
---|
| 365 | + } |
---|
| 366 | + |
---|
333 | 367 | // cameraMenu.add(toggleRootItem = new CheckboxMenuItem("Alternate Root")); |
---|
334 | 368 | // toggleRootItem.addItemListener(this); |
---|
335 | 369 | // toggleRootItem.setState(false); |
---|
.. | .. |
---|
343 | 377 | objectPanel = new JTabbedPane(); |
---|
344 | 378 | toolbarPanel = new JPanel(); |
---|
345 | 379 | toolbarPanel.setName("Toolbar"); |
---|
346 | | - treePanel = new JPanel(); |
---|
| 380 | + treePanel = new cGridBag(); |
---|
347 | 381 | treePanel.setName("Tree"); |
---|
348 | | - ctrlPanel = new JPanel(); // new GridBagLayout()); |
---|
| 382 | + ctrlPanel = new cGridBag().setVertical(false); // new GridBagLayout()); |
---|
349 | 383 | ctrlPanel.setName("Edit"); |
---|
350 | | - materialPanel = new JPanel(); |
---|
| 384 | + materialPanel = new cGridBag().setVertical(true); |
---|
351 | 385 | materialPanel.setName("Material"); |
---|
352 | 386 | /*JTextPane*/ |
---|
353 | 387 | infoarea = createTextPane(); |
---|
| 388 | + doc = infoarea.getStyledDocument(); |
---|
| 389 | + |
---|
354 | 390 | infoarea.setEditable(true); |
---|
355 | 391 | SetText(); |
---|
356 | 392 | // infoarea.setFont(infoarea.getFont().deriveFont(10, 14f)); |
---|
357 | 393 | // infoarea.setOpaque(false); |
---|
358 | 394 | // //infoarea.setForeground(textcolor); |
---|
359 | | - infoarea.setLineWrap(true); |
---|
360 | | - infoarea.setWrapStyleWord(true); |
---|
| 395 | +// TEXTAREA infoarea.setLineWrap(true); |
---|
| 396 | +// TEXTAREA infoarea.setWrapStyleWord(true); |
---|
361 | 397 | infoPanel = new JScrollPane(infoarea, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //AS_NEEDED); |
---|
362 | 398 | infoPanel.setPreferredSize(new Dimension(50, 200)); |
---|
363 | 399 | infoPanel.setName("Info"); |
---|
.. | .. |
---|
368 | 404 | mainPanel.setName("Main"); |
---|
369 | 405 | mainPanel.setContinuousLayout(true); |
---|
370 | 406 | mainPanel.setOneTouchExpandable(true); |
---|
371 | | - mainPanel.setDividerLocation(1.0); |
---|
372 | 407 | mainPanel.setDividerSize(9); |
---|
373 | | - mainPanel.setResizeWeight(0); |
---|
| 408 | + mainPanel.setDividerLocation(0.5); //1.0); |
---|
| 409 | + mainPanel.setResizeWeight(0.5); |
---|
374 | 410 | |
---|
375 | 411 | //ctrlPanel.setLayout(new GridLayout(4, 1, 5, 5)); |
---|
376 | 412 | //mainPanel.setLayout(new GridBagLayout()); |
---|
377 | 413 | toolbarPanel.setLayout(new FlowLayout(FlowLayout.LEFT)); |
---|
378 | | - treePanel.setLayout(new GridBagLayout()); |
---|
379 | | - ctrlPanel.setLayout(new GridBagLayout()); |
---|
380 | | - materialPanel.setLayout(new GridBagLayout()); |
---|
| 414 | +// treePanel.setLayout(new GridBagLayout()); |
---|
| 415 | + //ctrlPanel.setLayout(new GridBagLayout()); |
---|
| 416 | + //materialPanel.setLayout(new GridBagLayout()); |
---|
381 | 417 | |
---|
382 | 418 | aConstraints = new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0, |
---|
383 | 419 | GridBagConstraints.NORTHEAST, GridBagConstraints.BOTH, new Insets(1, 1, 1, 1), 0, 0); |
---|
.. | .. |
---|
416 | 452 | static String newline = "\n"; |
---|
417 | 453 | protected static final String buttonString = "JButton"; |
---|
418 | 454 | StyledDocument doc; |
---|
419 | | - JTextArea infoarea; |
---|
| 455 | + JTextPane infoarea; |
---|
420 | 456 | |
---|
421 | 457 | void ClearInfo() |
---|
422 | 458 | { |
---|
.. | .. |
---|
465 | 501 | //SendInfo("Name:", "bold"); |
---|
466 | 502 | if (sel.GetTextures() != null || debug) |
---|
467 | 503 | { |
---|
468 | | - si.SendInfo(sel.toString(), "bold"); |
---|
| 504 | + si.SendInfo(sel.toString() + (Globals.ADVANCED?"":" " + System.identityHashCode(sel)), "bold"); |
---|
469 | 505 | //SendInfo("#children virtual = " + sel.size() + "; real = " + sel.Size() + newline, "regular"); |
---|
470 | 506 | if (sel.Size() > 0) |
---|
471 | 507 | { |
---|
472 | 508 | si.SendInfo("#children = " + sel.Size(), "regular"); |
---|
473 | 509 | } |
---|
474 | | - si.SendInfo((debug ? " Parent: " : " ") + sel.parent, "regular"); |
---|
| 510 | + si.SendInfo((debug ? " Parent: " : " ") + sel.parent + (Globals.ADVANCED?"":" " + System.identityHashCode(sel.parent)), "regular"); |
---|
475 | 511 | if (debug) |
---|
476 | 512 | { |
---|
477 | 513 | try |
---|
.. | .. |
---|
483 | 519 | } |
---|
484 | 520 | |
---|
485 | 521 | if (full) |
---|
486 | | - si.SendInfo(" BBox: " + minima + " - " + maxima, "regular"); |
---|
| 522 | + { |
---|
| 523 | + si.SendInfo(" BBox min: " + minima, "regular"); |
---|
| 524 | + si.SendInfo(" BBox max: " + maxima, "regular"); |
---|
| 525 | + } |
---|
487 | 526 | |
---|
488 | 527 | if (sel.bRep != null) |
---|
489 | 528 | { |
---|
.. | .. |
---|
510 | 549 | } |
---|
511 | 550 | if (sel.support != null) |
---|
512 | 551 | { |
---|
513 | | - si.SendInfo(" support: " + sel.support, "regular"); |
---|
| 552 | + si.SendInfo(" support: " + sel.support + (Globals.ADVANCED?"":" " + System.identityHashCode(sel.support)), "regular"); |
---|
514 | 553 | } |
---|
515 | 554 | if (sel.scriptnode != null) |
---|
516 | 555 | { |
---|
.. | .. |
---|
581 | 620 | { |
---|
582 | 621 | CameraPane.pointflow = (PointFlow) sel; |
---|
583 | 622 | } |
---|
| 623 | + |
---|
| 624 | + si.SendInfo("_____________________", "regular"); |
---|
| 625 | + si.SendInfo("", "regular"); |
---|
584 | 626 | } |
---|
585 | 627 | } |
---|
586 | 628 | |
---|
.. | .. |
---|
596 | 638 | } |
---|
597 | 639 | } |
---|
598 | 640 | |
---|
599 | | - private JTextArea createTextPane() |
---|
600 | | - { |
---|
601 | | - String[] initString = |
---|
| 641 | + void ToggleFullScreen() |
---|
602 | 642 | { |
---|
603 | | - "This is an editable JTextPane, ", //regular |
---|
604 | | - "another ", //italic |
---|
605 | | - "styled ", //bold |
---|
606 | | - "text ", //small |
---|
607 | | - "component, ", //large |
---|
608 | | - "which supports embedded components..." + newline,//regular |
---|
609 | | - " " + newline, //button |
---|
610 | | - "...and embedded icons..." + newline, //regular |
---|
611 | | - " ", //icon |
---|
612 | | - newline + "JTextPane is a subclass of JEditorPane that " |
---|
613 | | - + "uses a StyledEditorKit and StyledDocument, and provides " |
---|
614 | | - + "cover methods for interacting with those objects." |
---|
615 | | - }; |
---|
616 | | - |
---|
617 | | - String[] initStyles = |
---|
618 | | - { |
---|
619 | | - "regular", "italic", "bold", "small", "large", |
---|
620 | | - "regular", "button", "regular", "icon", |
---|
621 | | - "regular" |
---|
622 | | - }; |
---|
623 | | - |
---|
624 | | - JTextPane textPane = new JTextPane(); |
---|
625 | | - textPane.setEditable(true); |
---|
626 | | - /*StyledDocument*/ doc = textPane.getStyledDocument(); |
---|
627 | | - addStylesToDocument(doc); |
---|
628 | | - |
---|
629 | | - try |
---|
630 | | - { |
---|
631 | | - for (int j = 0; j < 2; j++) |
---|
632 | | - { |
---|
633 | | - for (int i = 0; i < initString.length; i++) |
---|
| 643 | + if (CameraPane.FULLSCREEN) |
---|
634 | 644 | { |
---|
635 | | - doc.insertString(doc.getLength(), initString[i], |
---|
636 | | - doc.getStyle(initStyles[i])); |
---|
| 645 | + frame.getContentPane().remove(/*"Center",*/bigThree); |
---|
| 646 | + framePanel.add(bigThree); |
---|
| 647 | + frame.getContentPane().add(/*"Center",*/framePanel); |
---|
| 648 | + } else |
---|
| 649 | + { |
---|
| 650 | + frame.getContentPane().remove(/*"Center",*/framePanel); |
---|
| 651 | + framePanel.remove(bigThree); |
---|
| 652 | + frame.getContentPane().add(/*"Center",*/bigThree); |
---|
637 | 653 | } |
---|
638 | | - } |
---|
639 | | - } catch (BadLocationException ble) |
---|
640 | | - { |
---|
641 | | - System.err.println("Couldn't insert initial text into text pane."); |
---|
| 654 | + cameraView.ToggleFullScreen(); |
---|
642 | 655 | } |
---|
643 | 656 | |
---|
644 | | - return new JTextArea(); // textPane; |
---|
| 657 | + private JTextPane createTextPane() |
---|
| 658 | + { |
---|
| 659 | +// TEXTAREA String[] initString = |
---|
| 660 | +// { |
---|
| 661 | +// "This is an editable JTextPane, ", //regular |
---|
| 662 | +// "another ", //italic |
---|
| 663 | +// "styled ", //bold |
---|
| 664 | +// "text ", //small |
---|
| 665 | +// "component, ", //large |
---|
| 666 | +// "which supports embedded components..." + newline,//regular |
---|
| 667 | +// " " + newline, //button |
---|
| 668 | +// "...and embedded icons..." + newline, //regular |
---|
| 669 | +// " ", //icon |
---|
| 670 | +// newline + "JTextPane is a subclass of JEditorPane that " |
---|
| 671 | +// + "uses a StyledEditorKit and StyledDocument, and provides " |
---|
| 672 | +// + "cover methods for interacting with those objects." |
---|
| 673 | +// }; |
---|
| 674 | +// |
---|
| 675 | +// String[] initStyles = |
---|
| 676 | +// { |
---|
| 677 | +// "regular", "italic", "bold", "small", "large", |
---|
| 678 | +// "regular", "button", "regular", "icon", |
---|
| 679 | +// "regular" |
---|
| 680 | +// }; |
---|
| 681 | +// |
---|
| 682 | +// JTextPane textPane = new JTextPane(); |
---|
| 683 | +// textPane.setEditable(true); |
---|
| 684 | +// /*StyledDocument*/ doc = textPane.getStyledDocument(); |
---|
| 685 | +// addStylesToDocument(doc); |
---|
| 686 | +// |
---|
| 687 | +// try |
---|
| 688 | +// { |
---|
| 689 | +// for (int j = 0; j < 2; j++) |
---|
| 690 | +// { |
---|
| 691 | +// for (int i = 0; i < initString.length; i++) |
---|
| 692 | +// { |
---|
| 693 | +// doc.insertString(doc.getLength(), initString[i], |
---|
| 694 | +// doc.getStyle(initStyles[i])); |
---|
| 695 | +// } |
---|
| 696 | +// } |
---|
| 697 | +// } catch (BadLocationException ble) |
---|
| 698 | +// { |
---|
| 699 | +// System.err.println("Couldn't insert initial text into text pane."); |
---|
| 700 | +// } |
---|
| 701 | + |
---|
| 702 | + return new JTextPane(); // textPane; |
---|
645 | 703 | } |
---|
646 | 704 | |
---|
647 | 705 | protected void addStylesToDocument(StyledDocument doc) |
---|
.. | .. |
---|
694 | 752 | protected static ImageIcon createImageIcon(String path, |
---|
695 | 753 | String description) |
---|
696 | 754 | { |
---|
697 | | - java.net.URL imgURL = GrafreeD.class.getResource(path); |
---|
| 755 | + java.net.URL imgURL = Grafreed.class.getResource(path); |
---|
698 | 756 | if (imgURL != null) |
---|
699 | 757 | { |
---|
700 | 758 | return new ImageIcon(imgURL, description); |
---|
.. | .. |
---|
726 | 784 | // NumberSlider vDivsField; |
---|
727 | 785 | // JCheckBox endcaps; |
---|
728 | 786 | JCheckBox liveCB; |
---|
| 787 | + JCheckBox selectCB; |
---|
729 | 788 | JCheckBox hideCB; |
---|
730 | 789 | JCheckBox link2masterCB; |
---|
731 | 790 | JCheckBox markCB; |
---|
.. | .. |
---|
741 | 800 | JButton slowerButton; |
---|
742 | 801 | JButton fasterButton; |
---|
743 | 802 | JButton remarkButton; |
---|
| 803 | + |
---|
| 804 | + cGridBag namePanel; |
---|
| 805 | + cGridBag setupPanel; |
---|
| 806 | + cGridBag commandsPanel; |
---|
| 807 | + cGridBag pushPanel; |
---|
| 808 | + cGridBag fillPanel; |
---|
744 | 809 | |
---|
745 | | - JCheckBox AddCheckBox(ObjEditor oe, String label, boolean on) |
---|
| 810 | + JCheckBox AddCheckBox(cGridBag panel, String label, boolean on) |
---|
746 | 811 | { |
---|
747 | 812 | JCheckBox cb; |
---|
748 | 813 | |
---|
749 | | - oe.aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
750 | | - oe.aConstraints.gridwidth = 1; // 3; |
---|
751 | | -// oe.aConstraints.weightx = 1; |
---|
752 | | -// oe.aConstraints.anchor = GridBagConstraints.WEST; |
---|
753 | | - oe.ctrlPanel.add(cb = new JCheckBox(label, on), oe.aConstraints); //, oe.ctrlPanel.getComponentCount()-1); |
---|
| 814 | + panel.add(cb = new JCheckBox(label, on)); //, oe.aConstraints); //, oe.ctrlPanel.getComponentCount()-1); |
---|
754 | 815 | cb.addItemListener(this); |
---|
755 | | -// oe.aConstraints.anchor = GridBagConstraints.EAST; |
---|
756 | | - oe.aConstraints.gridwidth = 1; |
---|
757 | | - oe.aConstraints.gridx += 1; |
---|
758 | 816 | |
---|
759 | 817 | return cb; |
---|
760 | 818 | } |
---|
761 | 819 | |
---|
762 | | - cButton AddButton(ObjEditor oe, String label) |
---|
| 820 | + cButton AddButton(cGridBag panel, String label) |
---|
763 | 821 | { |
---|
764 | 822 | cButton cb; |
---|
765 | 823 | |
---|
766 | | - oe.aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
767 | | - oe.aConstraints.gridwidth = 1; |
---|
768 | | -// oe.aConstraints.weightx = 1; |
---|
769 | | -// oe.aConstraints.anchor = GridBagConstraints.WEST; |
---|
770 | | - oe.ctrlPanel.add(cb = new cButton(label), oe.aConstraints, oe.ctrlPanel.getComponentCount() - 1); |
---|
| 824 | + panel.add(cb = new cButton(label)); //, oe.aConstraints, oe.ctrlPanel.getComponentCount() - 1); |
---|
771 | 825 | cb.addActionListener(this); |
---|
772 | | -// oe.aConstraints.anchor = GridBagConstraints.EAST; |
---|
773 | | - oe.aConstraints.gridwidth = 1; |
---|
774 | | - oe.aConstraints.gridx += 1; |
---|
775 | 826 | |
---|
776 | 827 | return cb; |
---|
777 | 828 | } |
---|
778 | 829 | |
---|
779 | | - JComboBox AddCombo(ObjEditor oe, java.util.Vector list, int item) |
---|
| 830 | + JComboBox AddCombo(cGridBag panel, java.util.Vector list, int item) |
---|
780 | 831 | { |
---|
781 | 832 | JComboBox combo; |
---|
782 | 833 | |
---|
783 | | - oe.aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
784 | | - oe.ctrlPanel.add(combo = new JComboBox(new cListModel(list, item)), oe.aConstraints); //, oe.ctrlPanel.getComponentCount()-1); |
---|
785 | | - oe.aConstraints.gridx += 1; |
---|
| 834 | + panel.add(combo = new JComboBox(new cListModel(list, item))); //, oe.aConstraints); //, oe.ctrlPanel.getComponentCount()-1); |
---|
786 | 835 | combo.addActionListener(this); |
---|
787 | 836 | |
---|
788 | 837 | return combo; |
---|
789 | 838 | } |
---|
790 | 839 | |
---|
791 | | - NumberSlider AddSlider(JPanel ctrlPanel, String label, double min, double max, double current, double pow) |
---|
| 840 | + cGridBag AddSlider(cGridBag panel, String label, double min, double max, double current, double pow) |
---|
792 | 841 | { |
---|
793 | | - NumberSlider combo; |
---|
| 842 | + cGridBag control = new cGridBag(); |
---|
| 843 | + |
---|
| 844 | + cNumberSlider combo; |
---|
794 | 845 | |
---|
795 | 846 | JLabel jlabel = new JLabel(label); |
---|
796 | | - |
---|
797 | | - aConstraints.fill = GridBagConstraints.VERTICAL; |
---|
798 | 847 | jlabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
799 | | - aConstraints.gridwidth = 2; |
---|
800 | | - ctrlPanel.add(jlabel, aConstraints); //, oe.ctrlPanel.getComponentCount()-1); |
---|
801 | | - aConstraints.gridx += 1; |
---|
802 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
803 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
804 | | - ctrlPanel.add(combo = new NumberSlider(min, max, pow), aConstraints); //, oe.ctrlPanel.getComponentCount()-1); |
---|
805 | | - aConstraints.gridx += 1; |
---|
806 | | - aConstraints.gridwidth = 1; |
---|
807 | | - |
---|
| 848 | + control.add(jlabel); //, aConstraints); //, oe.ctrlPanel.getComponentCount()-1); |
---|
| 849 | + control.add(combo = new cNumberSlider(this, min, max, pow)); //, aConstraints); //, oe.ctrlPanel.getComponentCount()-1); |
---|
808 | 850 | combo.setFloat(current); |
---|
809 | | - |
---|
810 | | - combo.label = jlabel; |
---|
811 | | - |
---|
812 | | - combo.addChangeListener(this); |
---|
813 | | - |
---|
814 | | - return combo; |
---|
| 851 | + |
---|
| 852 | + panel.add(control); |
---|
| 853 | + |
---|
| 854 | + return control; |
---|
815 | 855 | } |
---|
816 | 856 | |
---|
817 | | - NumberSlider AddSlider(JPanel ctrlPanel, String label, int min, int max, int current) |
---|
| 857 | + cGridBag AddSlider(cGridBag panel, String label, int min, int max, int current) |
---|
818 | 858 | { |
---|
819 | | - NumberSlider combo; |
---|
| 859 | + cGridBag control = new cGridBag(); |
---|
| 860 | + |
---|
| 861 | + cNumberSlider combo; |
---|
820 | 862 | |
---|
821 | 863 | JLabel jlabel = new JLabel(label); |
---|
822 | | - |
---|
823 | | - aConstraints.fill = GridBagConstraints.VERTICAL; |
---|
824 | 864 | jlabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
825 | | - aConstraints.gridwidth = 2; |
---|
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), aConstraints); //, oe.ctrlPanel.getComponentCount()-1); |
---|
831 | | - aConstraints.gridx += 1; |
---|
832 | | - aConstraints.gridwidth = 1; |
---|
833 | | - |
---|
| 865 | + control.add(jlabel); //, aConstraints); //, oe.ctrlPanel.getComponentCount()-1); |
---|
| 866 | + control.add(combo = new cNumberSlider(this, min, max)); //, aConstraints); //, oe.ctrlPanel.getComponentCount()-1); |
---|
834 | 867 | combo.setInteger(current); |
---|
835 | 868 | |
---|
836 | | - combo.label = jlabel; |
---|
837 | | - |
---|
838 | | - combo.addChangeListener(this); |
---|
839 | | - |
---|
840 | | - return combo; |
---|
| 869 | + panel.add(control); |
---|
| 870 | + |
---|
| 871 | + return control; |
---|
841 | 872 | } |
---|
842 | 873 | |
---|
843 | | - JTextArea AddText(JPanel ctrlPanel, String name) |
---|
| 874 | + JTextArea AddText(cGridBag ctrlPanel, String name) |
---|
844 | 875 | { |
---|
845 | 876 | JTextArea text; |
---|
846 | 877 | |
---|
847 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
848 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
849 | | - ctrlPanel.add(text = new JTextArea(name), aConstraints); //, oe.ctrlPanel.getComponentCount()-1); |
---|
| 878 | + ctrlPanel.add(text = new JTextArea(name)); //, aConstraints); //, oe.ctrlPanel.getComponentCount()-1); |
---|
850 | 879 | text.addCaretListener(this); |
---|
851 | | - aConstraints.gridx += 1; |
---|
852 | | - aConstraints.gridwidth = 1; |
---|
853 | 880 | |
---|
854 | 881 | return text; |
---|
855 | 882 | } |
---|
.. | .. |
---|
879 | 906 | objEditor.ctrlPanel.remove(j); |
---|
880 | 907 | } |
---|
881 | 908 | |
---|
| 909 | + void Remove(cNumberSlider j) |
---|
| 910 | + { |
---|
| 911 | + j.removeChangeListener(this); |
---|
| 912 | + //objEditor.ctrlPanel.remove(j.label); |
---|
| 913 | + objEditor.ctrlPanel.remove(j); |
---|
| 914 | + } |
---|
| 915 | + |
---|
882 | 916 | /* |
---|
883 | 917 | */ |
---|
884 | | - void Return() // ObjEditor oe) |
---|
| 918 | + void Return0() // ObjEditor oe) |
---|
885 | 919 | { |
---|
886 | 920 | aConstraints.gridy += 1; |
---|
887 | 921 | aConstraints.gridx = 0; |
---|
.. | .. |
---|
936 | 970 | |
---|
937 | 971 | void SetupUI2(ObjEditor oe) |
---|
938 | 972 | { |
---|
939 | | -// oe.aConstraints.weightx = 0; |
---|
940 | | -// oe.aConstraints.weighty = 0; |
---|
941 | | -// oe.aConstraints.gridx = 0; |
---|
942 | | -// oe.aConstraints.gridy = 0; |
---|
943 | | - SetupName(oe); |
---|
| 973 | + //SetupName(oe); |
---|
| 974 | + |
---|
| 975 | + namePanel = new cGridBag(); |
---|
| 976 | + |
---|
| 977 | + nameField = AddText(namePanel, copy.GetName()); |
---|
| 978 | + namePanel.add(nameField); |
---|
| 979 | + oe.ctrlPanel.add(namePanel); |
---|
| 980 | + |
---|
| 981 | + oe.ctrlPanel.Return(); |
---|
944 | 982 | |
---|
945 | 983 | if (!GroupEditor.allparams) |
---|
946 | 984 | return; |
---|
947 | 985 | |
---|
948 | | - liveCB = AddCheckBox(oe, "Live", copy.live); |
---|
949 | | - link2masterCB = AddCheckBox(oe, "Supp", copy.link2master); |
---|
950 | | - hideCB = AddCheckBox(oe, "Hide", copy.hide); |
---|
| 986 | + setupPanel = new cGridBag().setVertical(false); |
---|
| 987 | + |
---|
| 988 | + liveCB = AddCheckBox(setupPanel, "Live", copy.live); |
---|
| 989 | + liveCB.setToolTipText("Animate object"); |
---|
| 990 | + selectCB = AddCheckBox(setupPanel, "Select", !copy.dontselect); |
---|
| 991 | + selectCB.setToolTipText("Make object selectable"); |
---|
951 | 992 | // Return(); |
---|
952 | | - markCB = AddCheckBox(oe, "Mark", copy.marked); |
---|
953 | | - rewindCB = AddCheckBox(oe, "Rew", copy.rewind); |
---|
954 | | - randomCB = AddCheckBox(oe, "Rand", copy.random); |
---|
955 | | - Return(); |
---|
956 | | - resetButton = AddButton(oe, "Reset"); |
---|
957 | | - stepButton = AddButton(oe, "Step"); |
---|
| 993 | + hideCB = AddCheckBox(setupPanel, "Hide", copy.hide); |
---|
| 994 | + hideCB.setToolTipText("Hide object"); |
---|
| 995 | + markCB = AddCheckBox(setupPanel, "Mark", copy.marked); |
---|
| 996 | + markCB.setToolTipText("Set the animation target transform"); |
---|
| 997 | + |
---|
| 998 | + rewindCB = AddCheckBox(setupPanel, "Rewind", copy.rewind); |
---|
| 999 | + rewindCB.setToolTipText("Rewind animation"); |
---|
| 1000 | + |
---|
| 1001 | + randomCB = AddCheckBox(setupPanel, "Random", copy.random); |
---|
| 1002 | + randomCB.setToolTipText("Option for switch node"); |
---|
| 1003 | + |
---|
| 1004 | + if (Globals.ADVANCED) |
---|
| 1005 | + { |
---|
| 1006 | + link2masterCB = AddCheckBox(setupPanel, "Support", copy.link2master); |
---|
| 1007 | + link2masterCB.setToolTipText("Attach to support"); |
---|
| 1008 | + speedupCB = AddCheckBox(setupPanel, "Speed", copy.speedup); |
---|
| 1009 | + speedupCB.setToolTipText("Option motion capture"); |
---|
| 1010 | + } |
---|
| 1011 | + |
---|
| 1012 | + oe.ctrlPanel.add(setupPanel); |
---|
| 1013 | + oe.ctrlPanel.Return(); |
---|
| 1014 | + |
---|
| 1015 | + commandsPanel = new cGridBag().setVertical(false); |
---|
| 1016 | + |
---|
| 1017 | + resetButton = AddButton(commandsPanel, "Reset"); |
---|
| 1018 | + resetButton.setToolTipText("Jump to frame zero"); |
---|
| 1019 | + stepButton = AddButton(commandsPanel, "Step"); |
---|
| 1020 | + stepButton.setToolTipText("Step one frame"); |
---|
958 | 1021 | // resetAllButton = AddButton(oe, "Reset All"); |
---|
959 | 1022 | // stepAllButton = AddButton(oe, "Step All"); |
---|
960 | | - speedupCB = AddCheckBox(oe, "Speed", copy.speedup); |
---|
961 | 1023 | // Return(); |
---|
962 | | - slowerButton = AddButton(oe, "Slow"); |
---|
963 | | - fasterButton = AddButton(oe, "Fast"); |
---|
964 | | - remarkButton = AddButton(oe, "Rem"); |
---|
| 1024 | + slowerButton = AddButton(commandsPanel, "Slow"); |
---|
| 1025 | + slowerButton.setToolTipText("Decrease animation speed"); |
---|
| 1026 | + fasterButton = AddButton(commandsPanel, "Fast"); |
---|
| 1027 | + fasterButton.setToolTipText("Increase animation speed"); |
---|
| 1028 | + remarkButton = AddButton(commandsPanel, "Remark"); |
---|
| 1029 | + remarkButton.setToolTipText("Set the current transform as the target"); |
---|
965 | 1030 | |
---|
966 | | - Return(); |
---|
| 1031 | + oe.ctrlPanel.add(commandsPanel); |
---|
| 1032 | + oe.ctrlPanel.Return(); |
---|
967 | 1033 | |
---|
| 1034 | + pushPanel = AddSlider(oe.ctrlPanel, "Push", -1, 1, copy.NORMALPUSH, 1.1); // To have the buttons |
---|
| 1035 | + normalpushField = (cNumberSlider)pushPanel.getComponent(1); |
---|
| 1036 | + //Return(); |
---|
| 1037 | + |
---|
| 1038 | + oe.ctrlPanel.Return(); |
---|
| 1039 | + |
---|
968 | 1040 | // oe.ctrlPanel.add(stepButton = new cButton("Step"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); |
---|
969 | 1041 | // ObjEditor.aConstraints.gridx += 1; |
---|
970 | 1042 | |
---|
.. | .. |
---|
1058 | 1130 | oe.aConstraints.gridwidth = 1; |
---|
1059 | 1131 | /**/ |
---|
1060 | 1132 | nameField = AddText(oe.ctrlPanel, copy.GetName()); |
---|
1061 | | - Return(); |
---|
| 1133 | + oe.ctrlPanel.Return(); |
---|
1062 | 1134 | |
---|
1063 | 1135 | //ctrlPanel.add(textureButton = new Button("Texture...")); |
---|
1064 | 1136 | //textureButton.setEnabled(false); |
---|
.. | .. |
---|
1160 | 1232 | //JPanel worldPanel = |
---|
1161 | 1233 | // new gov.nasa.worldwind.examples.ApplicationTemplate.AppPanel(null, true); |
---|
1162 | 1234 | //worldPanel.setName("World"); |
---|
1163 | | - centralPanel = new JPanel(new BorderLayout()); |
---|
| 1235 | + centralPanel = new cGridBag(); |
---|
| 1236 | + centralPanel.preferredWidth = 20; |
---|
1164 | 1237 | timelinePanel = new JPanel(new BorderLayout()); |
---|
1165 | 1238 | timelineMenubar = new timeflow.app.TimeflowApp().TimeFlowWindow(timelinePanel); |
---|
1166 | 1239 | |
---|
| 1240 | + cameraPanel = new JSplitPane(JSplitPane.VERTICAL_SPLIT, cameraView, timelinePanel); |
---|
| 1241 | + cameraPanel.setContinuousLayout(true); |
---|
| 1242 | + cameraPanel.setOneTouchExpandable(true); |
---|
| 1243 | +// cameraPanel.setDividerLocation(0.9); |
---|
| 1244 | +// cameraPanel.setDividerSize(9); |
---|
| 1245 | + cameraPanel.setResizeWeight(1.0); |
---|
| 1246 | + |
---|
1167 | 1247 | centralPanel.add(cameraView); |
---|
1168 | 1248 | //frame.setJMenuBar(timelineMenubar); |
---|
1169 | 1249 | //centralPanel.add(timelinePanel); |
---|
.. | .. |
---|
1183 | 1263 | //frontView.object = copy; |
---|
1184 | 1264 | //sideView.object = copy; |
---|
1185 | 1265 | |
---|
1186 | | - XYZPanel = new JPanel(); |
---|
1187 | | - XYZPanel.setLayout(new GridLayout(3, 1, 5, 5)); |
---|
| 1266 | + XYZPanel = new cGridBag().setVertical(true); |
---|
| 1267 | + //XYZPanel.setLayout(new GridLayout(3, 1, 5, 5)); |
---|
1188 | 1268 | |
---|
1189 | | - XYZPanel.add(/*BorderLayout.SOUTH,*/sideView); // Scroll); |
---|
1190 | | - XYZPanel.add(/*BorderLayout.CENTER,*/frontView); // Scroll); |
---|
1191 | | - XYZPanel.add(/*BorderLayout.NORTH,*/topView); // Scroll); |
---|
| 1269 | + XYZPanel.preferredWidth = 5; |
---|
| 1270 | + XYZPanel.addComponent(/*BorderLayout.SOUTH,*/sideView); // Scroll); |
---|
| 1271 | + XYZPanel.addComponent(/*BorderLayout.CENTER,*/frontView); // Scroll); |
---|
| 1272 | + XYZPanel.addComponent(/*BorderLayout.NORTH,*/topView); // Scroll); |
---|
1192 | 1273 | |
---|
1193 | 1274 | /* |
---|
1194 | 1275 | gridPanel = new JPanel(); //new BorderLayout()); |
---|
.. | .. |
---|
1226 | 1307 | //JScrollPane tmp = new JScrollPane(ctrlPanel, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); |
---|
1227 | 1308 | //tmp.setName("Edit"); |
---|
1228 | 1309 | objectPanel.add(materialPanel); |
---|
1229 | | - JPanel north = new JPanel(new BorderLayout()); |
---|
1230 | | - north.setName("Edit"); |
---|
1231 | | - north.add(ctrlPanel, BorderLayout.NORTH); |
---|
1232 | | - objectPanel.add(north); |
---|
| 1310 | +// JPanel north = new JPanel(new BorderLayout()); |
---|
| 1311 | +// north.setName("Edit"); |
---|
| 1312 | +// north.add(ctrlPanel, BorderLayout.NORTH); |
---|
| 1313 | +// objectPanel.add(north); |
---|
| 1314 | + objectPanel.add(ctrlPanel); |
---|
1233 | 1315 | objectPanel.add(infoPanel); |
---|
1234 | 1316 | |
---|
1235 | 1317 | /* |
---|
.. | .. |
---|
1250 | 1332 | scrollpane.setWheelScrollingEnabled(true); |
---|
1251 | 1333 | scrollpane.addMouseWheelListener(this); // Default not fast enough |
---|
1252 | 1334 | |
---|
1253 | | - /*JTabbedPane*/ scenePanel = new JTabbedPane(); |
---|
1254 | | - scenePanel.add(scrollpane); |
---|
| 1335 | + /*JTabbedPane*/ scenePanel = new cGridBag(); |
---|
| 1336 | + scenePanel.preferredWidth = 6; |
---|
| 1337 | + |
---|
| 1338 | + JTabbedPane tabbedPane = new JTabbedPane(); |
---|
| 1339 | + tabbedPane.add(scrollpane); |
---|
1255 | 1340 | |
---|
1256 | | - scenePanel.add(FSPane = new cFileSystemPane(this)); |
---|
| 1341 | + tabbedPane.add(FSPane = new cFileSystemPane(this)); |
---|
1257 | 1342 | |
---|
1258 | | - optionsPanel = new JPanel(new GridBagLayout()); |
---|
| 1343 | + optionsPanel = new cGridBag().setVertical(true); |
---|
1259 | 1344 | |
---|
1260 | 1345 | optionsPanel.setName("Options"); |
---|
1261 | | - scenePanel.add(optionsPanel); |
---|
1262 | | - |
---|
| 1346 | + |
---|
| 1347 | + AddOptions(optionsPanel); //, aConstraints); |
---|
| 1348 | + |
---|
| 1349 | + tabbedPane.add(optionsPanel); |
---|
| 1350 | + |
---|
| 1351 | + scenePanel.add(tabbedPane); |
---|
1263 | 1352 | |
---|
1264 | 1353 | /* |
---|
1265 | 1354 | cTree jTree = new cTree(null); |
---|
.. | .. |
---|
1293 | 1382 | //bigPanel.setSize(new Dimension(10,10)); |
---|
1294 | 1383 | //bigPanel.add(ctrlPanel); |
---|
1295 | 1384 | //bigPanel.add(gridPanel); |
---|
| 1385 | + /** |
---|
1296 | 1386 | bigThree = new JPanel(); |
---|
1297 | 1387 | //big.setLayout(new FlowLayout(FlowLayout.LEFT)); |
---|
1298 | 1388 | bigThree.setLayout(new GridBagLayout()); //1,3,5,5)); |
---|
.. | .. |
---|
1316 | 1406 | // aConstraints.gridheight = 3; |
---|
1317 | 1407 | aWindowConstraints.fill = GridBagConstraints.VERTICAL; |
---|
1318 | 1408 | bigThree.add(XYZPanel, aWindowConstraints); |
---|
| 1409 | + /**/ |
---|
1319 | 1410 | |
---|
| 1411 | + bigThree = new cGridBag(); |
---|
| 1412 | + bigThree.addComponent(scenePanel); |
---|
| 1413 | + bigThree.addComponent(centralPanel); |
---|
| 1414 | + bigThree.addComponent(XYZPanel); |
---|
| 1415 | + |
---|
1320 | 1416 | // // SIDE EFFECT!!! |
---|
1321 | 1417 | // aConstraints.gridx = 0; |
---|
1322 | 1418 | // aConstraints.gridy = 0; |
---|
.. | .. |
---|
1337 | 1433 | //worldPane.add(bigPanel); |
---|
1338 | 1434 | //worldPane.add(worldPanel); |
---|
1339 | 1435 | /**/ |
---|
1340 | | - frame.getContentPane().add(/*"Center",*/framePanel); |
---|
| 1436 | + //frame.getContentPane().add(/*"Center",*/framePanel); |
---|
| 1437 | + frame.add(/*"Center",*/framePanel); |
---|
1341 | 1438 | //frame.getContentPane().add(/*"Center",*/ worldPane); |
---|
1342 | 1439 | |
---|
1343 | 1440 | // aConstraints = gbc; // (GridBagConstraints) GrafreeD.clone(gbc); |
---|
1344 | 1441 | |
---|
1345 | | - frame.setSize(1024, 768); |
---|
1346 | | - frame.show(); |
---|
| 1442 | + frame.setSize(1280, 860); |
---|
| 1443 | + frame.setVisible(true); |
---|
1347 | 1444 | |
---|
1348 | 1445 | gridPanel.setDividerLocation(1.0); |
---|
1349 | 1446 | |
---|
.. | .. |
---|
1358 | 1455 | }); |
---|
1359 | 1456 | } |
---|
1360 | 1457 | |
---|
| 1458 | + void AddOptions(cGridBag panel) //, GridBagConstraints constraints) |
---|
| 1459 | + { |
---|
| 1460 | + } |
---|
| 1461 | + |
---|
1361 | 1462 | JTree GetTree() |
---|
1362 | 1463 | { |
---|
1363 | 1464 | return objEditor.jTree; |
---|
.. | .. |
---|
1369 | 1470 | ctrlPanel.removeAll(); |
---|
1370 | 1471 | } |
---|
1371 | 1472 | |
---|
1372 | | - void SetupMaterial(JPanel ctrlPanel) |
---|
| 1473 | + void SetupMaterial(cGridBag panel) |
---|
1373 | 1474 | { |
---|
1374 | | - aConstraints.weighty = 0; |
---|
1375 | | - //aConstraints.weightx = 1; |
---|
1376 | | - /* |
---|
| 1475 | + /* |
---|
1377 | 1476 | ctrlPanel.add(materialLabel = new JLabel("MATERIAL : "), aConstraints); |
---|
1378 | 1477 | materialLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1379 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1380 | | - aConstraints.gridx += 1; |
---|
1381 | 1478 | */ |
---|
1382 | 1479 | |
---|
1383 | | - aConstraints.gridwidth = 1; |
---|
1384 | | - ctrlPanel.add(createMaterialButton = new cButton("Create"), aConstraints); |
---|
1385 | | - aConstraints.gridx += 1; |
---|
1386 | | - aConstraints.weighty = 0; |
---|
1387 | | - aConstraints.gridwidth = 1; |
---|
| 1480 | + cGridBag editBar = new cGridBag().setVertical(false); |
---|
| 1481 | + |
---|
| 1482 | + editBar.add(createMaterialButton = new cButton("Create", !Grafreed.NIMBUSLAF)); // , aConstraints); |
---|
| 1483 | + createMaterialButton.setToolTipText("Create material"); |
---|
1388 | 1484 | |
---|
1389 | 1485 | /* |
---|
1390 | 1486 | ctrlPanel.add(resetSlidersButton = new cButton("Reset All"), aConstraints); |
---|
1391 | | - aConstraints.gridx += 1; |
---|
1392 | | - aConstraints.weighty = 0; |
---|
1393 | | - aConstraints.gridwidth = 1; |
---|
1394 | 1487 | */ |
---|
1395 | 1488 | |
---|
1396 | | - ctrlPanel.add(clearMaterialButton = new cButton("Clear"), aConstraints); |
---|
1397 | | - aConstraints.gridx += 1; |
---|
| 1489 | + editBar.add(clearMaterialButton = new cButton("Clear", !Grafreed.NIMBUSLAF)); // , aConstraints); |
---|
| 1490 | + clearMaterialButton.setToolTipText("Clear material"); |
---|
| 1491 | + |
---|
| 1492 | + if (Globals.ADVANCED) |
---|
| 1493 | + { |
---|
| 1494 | + editBar.add(resetSlidersButton = new cButton("Reset", !Grafreed.NIMBUSLAF)); // , aConstraints); |
---|
| 1495 | + editBar.add(propagateToggle = new cCheckBox("Prop", propagate)); // , aConstraints); |
---|
| 1496 | + editBar.add(multiplyToggle = new cCheckBox("Mult", false)); // , aConstraints); |
---|
| 1497 | + } |
---|
1398 | 1498 | |
---|
1399 | | - ctrlPanel.add(resetSlidersButton = new cButton("Reset"), aConstraints); |
---|
1400 | | - |
---|
1401 | | - aConstraints.gridx += 1; |
---|
1402 | | - |
---|
1403 | | - ctrlPanel.add(propagateToggle = new cCheckBox("Prop", propagate), aConstraints); |
---|
1404 | | - |
---|
1405 | | - aConstraints.gridx += 1; |
---|
1406 | | - |
---|
1407 | | - ctrlPanel.add(multiplyToggle = new cCheckBox("Mult", false), aConstraints); |
---|
1408 | | - |
---|
1409 | | - aConstraints.gridx = 0; |
---|
1410 | | - aConstraints.gridy += 1; |
---|
1411 | | - aConstraints.weighty = 0; |
---|
1412 | | - aConstraints.gridwidth = 1; |
---|
| 1499 | + editBar.preferredHeight = 15; |
---|
| 1500 | + |
---|
| 1501 | + panel.add(editBar); |
---|
| 1502 | + |
---|
1413 | 1503 | /**/ |
---|
1414 | 1504 | //aConstraints.weighty = 0; |
---|
1415 | 1505 | ////aConstraints.weightx = 1; |
---|
1416 | 1506 | //aConstraints.weighty = 1; |
---|
1417 | 1507 | aConstraints.gridwidth = ObjEditor.GRIDWIDTH; // 100; |
---|
1418 | 1508 | //aConstraints.gridx += 1; |
---|
1419 | | - ctrlPanel.add(new JLabel("----------------------------------"), aConstraints); |
---|
1420 | | - aConstraints.weighty = 0; |
---|
1421 | | - aConstraints.gridx = 0; |
---|
1422 | | - aConstraints.gridy += 1; |
---|
1423 | | - aConstraints.gridwidth = 1; |
---|
| 1509 | + //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints); |
---|
1424 | 1510 | |
---|
1425 | | - ctrlPanel.add(colorLabel = new JLabel("Color/hue"), aConstraints); |
---|
1426 | | - colorLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1427 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1428 | | - aConstraints.gridx += 1; |
---|
1429 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1430 | | - //aConstraints.weightx = 0; |
---|
1431 | | - ctrlPanel.add(colorField = new NumberSlider(0.001, 1, -0.1), aConstraints); |
---|
1432 | | - aConstraints.gridx = 0; |
---|
1433 | | - aConstraints.gridy += 1; |
---|
1434 | | - aConstraints.gridwidth = 1; |
---|
| 1511 | + cGridBag colorSection = new cGridBag().setVertical(true); |
---|
| 1512 | + |
---|
| 1513 | + cGridBag color = new cGridBag(); |
---|
| 1514 | + color.add(colorLabel = new JLabel("Color/hue")); // , aConstraints); |
---|
| 1515 | + colorLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1516 | + color.add(colorField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints); |
---|
| 1517 | + //colorField.preferredWidth = 200; |
---|
| 1518 | + colorSection.add(color); |
---|
1435 | 1519 | |
---|
1436 | | - ctrlPanel.add(modulationLabel = new JLabel("Saturation"), aConstraints); |
---|
1437 | | - modulationLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1438 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1439 | | - aConstraints.gridx += 1; |
---|
1440 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1441 | | - ctrlPanel.add(modulationField = new NumberSlider(0.001, 1, -0.1), aConstraints); |
---|
1442 | | - aConstraints.gridx = 0; |
---|
1443 | | - aConstraints.gridy += 1; |
---|
1444 | | - aConstraints.gridwidth = 1; |
---|
| 1520 | + cGridBag modulation = new cGridBag(); |
---|
| 1521 | + modulation.add(modulationLabel = new JLabel("Saturation")); // , aConstraints); |
---|
| 1522 | + modulationLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1523 | + modulation.add(modulationField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints); |
---|
| 1524 | + colorSection.add(modulation); |
---|
1445 | 1525 | |
---|
1446 | | - ctrlPanel.add(textureLabel = new JLabel("Texture"), aConstraints); |
---|
1447 | | - textureLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1448 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1449 | | - aConstraints.gridx += 1; |
---|
1450 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1451 | | - ctrlPanel.add(textureField = new NumberSlider(0.001, 1, -0.1), aConstraints); |
---|
1452 | | - aConstraints.gridx = 0; |
---|
1453 | | - aConstraints.gridy += 1; |
---|
1454 | | - aConstraints.gridwidth = 1; |
---|
| 1526 | + cGridBag texture = new cGridBag(); |
---|
| 1527 | + texture.add(textureLabel = new JLabel("Texture")); // , aConstraints); |
---|
| 1528 | + textureLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1529 | + texture.add(textureField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints); |
---|
| 1530 | + colorSection.add(texture); |
---|
1455 | 1531 | |
---|
1456 | | - ctrlPanel.add(anisoLabel = new JLabel("AnisoU"), aConstraints); |
---|
1457 | | - anisoLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1458 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1459 | | - aConstraints.gridx += 1; |
---|
1460 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1461 | | - ctrlPanel.add(anisoField = new NumberSlider(0.001, 1, -0.1), aConstraints); |
---|
1462 | | - aConstraints.gridx = 0; |
---|
1463 | | - aConstraints.gridy += 1; |
---|
1464 | | - aConstraints.gridwidth = 1; |
---|
| 1532 | + cGridBag anisoU = new cGridBag(); |
---|
| 1533 | + anisoU.add(anisoLabel = new JLabel("AnisoU")); // , aConstraints); |
---|
| 1534 | + anisoLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1535 | + anisoU.add(anisoField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints); |
---|
| 1536 | + colorSection.add(anisoU); |
---|
1465 | 1537 | |
---|
1466 | | - ctrlPanel.add(anisoVLabel = new JLabel("AnisoV"), aConstraints); |
---|
1467 | | - anisoVLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1468 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1469 | | - aConstraints.gridx += 1; |
---|
1470 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1471 | | - ctrlPanel.add(anisoVField = new NumberSlider(0.001, 1, -0.1), aConstraints); |
---|
1472 | | - aConstraints.gridx = 0; |
---|
1473 | | - aConstraints.gridy += 1; |
---|
1474 | | - aConstraints.gridwidth = 1; |
---|
| 1538 | + cGridBag anisoV = new cGridBag(); |
---|
| 1539 | + anisoV.add(anisoVLabel = new JLabel("AnisoV")); // , aConstraints); |
---|
| 1540 | + anisoVLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1541 | + anisoV.add(anisoVField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints); |
---|
| 1542 | + colorSection.add(anisoV); |
---|
1475 | 1543 | |
---|
1476 | | - ctrlPanel.add(shadowbiasLabel = new JLabel("Shadowbias"), aConstraints); |
---|
1477 | | - shadowbiasLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1478 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1479 | | - aConstraints.gridx += 1; |
---|
1480 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1481 | | - ctrlPanel.add(shadowbiasField = new NumberSlider(0.001, 50, -1), aConstraints); |
---|
1482 | | - aConstraints.gridx = 0; |
---|
1483 | | - aConstraints.gridy += 1; |
---|
1484 | | - aConstraints.gridwidth = 1; |
---|
| 1544 | + cGridBag shadowbias = new cGridBag(); |
---|
| 1545 | + shadowbias.add(shadowbiasLabel = new JLabel("Shadowbias")); // , aConstraints); |
---|
| 1546 | + shadowbiasLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1547 | + shadowbias.add(shadowbiasField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints); |
---|
| 1548 | + colorSection.add(shadowbias); |
---|
1485 | 1549 | |
---|
1486 | | - //aConstraints.weighty = 1; |
---|
1487 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; // 100; |
---|
1488 | | - //aConstraints.gridx += 1; |
---|
1489 | | - ctrlPanel.add(new JLabel("----------------------------------"), aConstraints); |
---|
1490 | | - aConstraints.weighty = 0; |
---|
1491 | | - aConstraints.gridx = 0; |
---|
1492 | | - aConstraints.gridy += 1; |
---|
1493 | | - aConstraints.gridwidth = 1; |
---|
| 1550 | + panel.add(new JSeparator()); |
---|
| 1551 | + |
---|
| 1552 | + panel.add(colorSection); |
---|
| 1553 | + |
---|
| 1554 | + //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints); |
---|
| 1555 | + |
---|
| 1556 | + cGridBag diffuseSection = new cGridBag().setVertical(true); |
---|
| 1557 | + |
---|
| 1558 | + cGridBag diffuse = new cGridBag(); |
---|
| 1559 | + diffuse.add(diffuseLabel = new JLabel("Diffuse")); // , aConstraints); |
---|
| 1560 | + diffuseLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1561 | + diffuse.add(diffuseField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints); |
---|
| 1562 | + diffuseSection.add(diffuse); |
---|
1494 | 1563 | |
---|
1495 | | - ctrlPanel.add(diffuseLabel = new JLabel("Diffuse"), aConstraints); |
---|
1496 | | - diffuseLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1497 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1498 | | - aConstraints.gridx += 1; |
---|
1499 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1500 | | - ctrlPanel.add(diffuseField = new NumberSlider(0.001, 50, -1), aConstraints); |
---|
1501 | | - aConstraints.gridx = 0; |
---|
1502 | | - aConstraints.gridy += 1; |
---|
1503 | | - aConstraints.gridwidth = 1; |
---|
| 1564 | + cGridBag diffuseness = new cGridBag(); |
---|
| 1565 | + diffuseness.add(diffusenessLabel = new JLabel("Diffusion")); // , aConstraints); |
---|
| 1566 | + diffusenessLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1567 | + diffuseness.add(diffusenessField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints); |
---|
| 1568 | + diffuseSection.add(diffuseness); |
---|
1504 | 1569 | |
---|
1505 | | - ctrlPanel.add(diffusenessLabel = new JLabel("Diffusion"), aConstraints); |
---|
1506 | | - diffusenessLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1507 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1508 | | - aConstraints.gridx += 1; |
---|
1509 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1510 | | - ctrlPanel.add(diffusenessField = new NumberSlider(0.001, 50, -1), aConstraints); |
---|
1511 | | - aConstraints.gridx = 0; |
---|
1512 | | - aConstraints.gridy += 1; |
---|
1513 | | - aConstraints.gridwidth = 1; |
---|
| 1570 | + cGridBag selfshadow = new cGridBag(); |
---|
| 1571 | + selfshadow.add(selfshadowLabel = new JLabel("Selfshadow")); // , aConstraints); |
---|
| 1572 | + selfshadowLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1573 | + selfshadow.add(selfshadowField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints); |
---|
| 1574 | + diffuseSection.add(selfshadow); |
---|
1514 | 1575 | |
---|
1515 | | - ctrlPanel.add(selfshadowLabel = new JLabel("Selfshadow"), aConstraints); |
---|
1516 | | - selfshadowLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1517 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1518 | | - aConstraints.gridx += 1; |
---|
1519 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1520 | | - ctrlPanel.add(selfshadowField = new NumberSlider(0.001, 50, -1), aConstraints); |
---|
1521 | | - aConstraints.gridx = 0; |
---|
1522 | | - aConstraints.gridy += 1; |
---|
1523 | | - aConstraints.gridwidth = 1; |
---|
| 1576 | + cGridBag sheen = new cGridBag(); |
---|
| 1577 | + sheen.add(sheenLabel = new JLabel("Sheen")); // , aConstraints); |
---|
| 1578 | + sheenLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1579 | + sheen.add(sheenField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints); |
---|
| 1580 | + diffuseSection.add(sheen); |
---|
1524 | 1581 | |
---|
1525 | | - ctrlPanel.add(sheenLabel = new JLabel("Sheen"), aConstraints); |
---|
1526 | | - sheenLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1527 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1528 | | - aConstraints.gridx += 1; |
---|
1529 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1530 | | - ctrlPanel.add(sheenField = new NumberSlider(0.001, 50, -1), aConstraints); |
---|
1531 | | - aConstraints.gridx = 0; |
---|
1532 | | - aConstraints.gridy += 1; |
---|
1533 | | - aConstraints.gridwidth = 1; |
---|
| 1582 | + cGridBag subsurface = new cGridBag(); |
---|
| 1583 | + subsurface.add(subsurfaceLabel = new JLabel("Subsurface")); // , aConstraints); |
---|
| 1584 | + subsurfaceLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1585 | + subsurface.add(subsurfaceField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints); |
---|
| 1586 | + diffuseSection.add(subsurface); |
---|
1534 | 1587 | |
---|
1535 | | - ctrlPanel.add(subsurfaceLabel = new JLabel("Subsurface"), aConstraints); |
---|
1536 | | - subsurfaceLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1537 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1538 | | - aConstraints.gridx += 1; |
---|
1539 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1540 | | - ctrlPanel.add(subsurfaceField = new NumberSlider(0.001, 1, -0.1), aConstraints); |
---|
1541 | | - aConstraints.gridx = 0; |
---|
1542 | | - aConstraints.gridy += 1; |
---|
1543 | | - aConstraints.gridwidth = 1; |
---|
| 1588 | + cGridBag shadow = new cGridBag(); |
---|
| 1589 | + shadow.add(shadowLabel = new JLabel("Shadowing")); // , aConstraints); |
---|
| 1590 | + shadowLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1591 | + shadow.add(shadowField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints); |
---|
| 1592 | + diffuseSection.add(shadow); |
---|
1544 | 1593 | |
---|
1545 | | - ctrlPanel.add(shadowLabel = new JLabel("Shadowing"), aConstraints); |
---|
1546 | | - shadowLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1547 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1548 | | - aConstraints.gridx += 1; |
---|
1549 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1550 | | - ctrlPanel.add(shadowField = new NumberSlider(0.001, 50, -1), aConstraints); |
---|
1551 | | - aConstraints.gridx = 0; |
---|
1552 | | - aConstraints.gridy += 1; |
---|
1553 | | - aConstraints.gridwidth = 1; |
---|
| 1594 | + cGridBag fakedepth = new cGridBag(); |
---|
| 1595 | + fakedepth.add(fakedepthLabel = new JLabel("Fakedepth")); // , aConstraints); |
---|
| 1596 | + fakedepthLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1597 | + fakedepth.add(fakedepthField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints); |
---|
| 1598 | + diffuseSection.add(fakedepth); |
---|
1554 | 1599 | |
---|
1555 | | - ctrlPanel.add(fakedepthLabel = new JLabel("Fakedepth"), aConstraints); |
---|
1556 | | - fakedepthLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1557 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1558 | | - aConstraints.gridx += 1; |
---|
1559 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1560 | | - ctrlPanel.add(fakedepthField = new NumberSlider(0.001, 50, -1), aConstraints); |
---|
1561 | | - aConstraints.gridx = 0; |
---|
1562 | | - aConstraints.gridy += 1; |
---|
1563 | | - aConstraints.gridwidth = 1; |
---|
| 1600 | + panel.add(new JSeparator()); |
---|
| 1601 | + |
---|
| 1602 | + panel.add(diffuseSection); |
---|
| 1603 | + |
---|
| 1604 | + //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints); |
---|
| 1605 | + |
---|
| 1606 | + cGridBag specularSection = new cGridBag().setVertical(true); |
---|
1564 | 1607 | |
---|
1565 | | - //aConstraints.weighty = 1; |
---|
1566 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; // 100; |
---|
1567 | | - //aConstraints.gridx += 1; |
---|
1568 | | - ctrlPanel.add(new JLabel("----------------------------------"), aConstraints); |
---|
1569 | | - aConstraints.weighty = 0; |
---|
1570 | | - aConstraints.gridx = 0; |
---|
1571 | | - aConstraints.gridy += 1; |
---|
1572 | | - aConstraints.gridwidth = 1; |
---|
| 1608 | + cGridBag specular = new cGridBag(); |
---|
| 1609 | + specular.add(specularLabel = new JLabel("Specular")); // , aConstraints); |
---|
| 1610 | + specularLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1611 | + specular.add(specularField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints); |
---|
| 1612 | + specularSection.add(specular); |
---|
1573 | 1613 | |
---|
1574 | | - ctrlPanel.add(specularLabel = new JLabel("Specular"), aConstraints); |
---|
1575 | | - specularLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1576 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1577 | | - aConstraints.gridx += 1; |
---|
1578 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1579 | | - ctrlPanel.add(specularField = new NumberSlider(0.001, 50, -1), aConstraints); |
---|
1580 | | - aConstraints.gridx = 0; |
---|
1581 | | - aConstraints.gridy += 1; |
---|
1582 | | - aConstraints.gridwidth = 1; |
---|
| 1614 | + cGridBag lightarea = new cGridBag(); |
---|
| 1615 | + lightarea.add(lightareaLabel = new JLabel("Lightarea")); // , aConstraints); |
---|
| 1616 | + lightareaLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1617 | + lightarea.add(lightareaField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints); |
---|
| 1618 | + specularSection.add(lightarea); |
---|
1583 | 1619 | |
---|
1584 | | - ctrlPanel.add(lightareaLabel = new JLabel("Lightarea"), aConstraints); |
---|
1585 | | - lightareaLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1586 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1587 | | - aConstraints.gridx += 1; |
---|
1588 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1589 | | - ctrlPanel.add(lightareaField = new NumberSlider(0.001, 50, -1), aConstraints); |
---|
1590 | | - aConstraints.gridx = 0; |
---|
1591 | | - aConstraints.gridy += 1; |
---|
1592 | | - aConstraints.gridwidth = 1; |
---|
| 1620 | + cGridBag shininess = new cGridBag(); |
---|
| 1621 | + shininess.add(shininessLabel = new JLabel("Roughness")); // , aConstraints); |
---|
| 1622 | + shininessLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1623 | + shininess.add(shininessField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints); |
---|
| 1624 | + specularSection.add(shininess); |
---|
1593 | 1625 | |
---|
1594 | | - ctrlPanel.add(shininessLabel = new JLabel("Roughness"), aConstraints); |
---|
1595 | | - shininessLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1596 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1597 | | - aConstraints.gridx += 1; |
---|
1598 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1599 | | - ctrlPanel.add(shininessField = new NumberSlider(0.001, 50, -1), aConstraints); |
---|
1600 | | - aConstraints.gridx = 0; |
---|
1601 | | - aConstraints.gridy += 1; |
---|
1602 | | - aConstraints.gridwidth = 1; |
---|
| 1626 | + cGridBag metalness = new cGridBag(); |
---|
| 1627 | + metalness.add(metalnessLabel = new JLabel("Metalness")); // , aConstraints); |
---|
| 1628 | + metalnessLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1629 | + metalness.add(metalnessField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints); |
---|
| 1630 | + specularSection.add(metalness); |
---|
1603 | 1631 | |
---|
1604 | | - ctrlPanel.add(metalnessLabel = new JLabel("Metalness"), aConstraints); |
---|
1605 | | - metalnessLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1606 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1607 | | - aConstraints.gridx += 1; |
---|
1608 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1609 | | - ctrlPanel.add(metalnessField = new NumberSlider(0.001, 1, -0.1), aConstraints); |
---|
1610 | | - aConstraints.gridx = 0; |
---|
1611 | | - aConstraints.gridy += 1; |
---|
1612 | | - aConstraints.gridwidth = 1; |
---|
| 1632 | + cGridBag velvet = new cGridBag(); |
---|
| 1633 | + velvet.add(velvetLabel = new JLabel("Velvet")); // , aConstraints); |
---|
| 1634 | + velvetLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1635 | + velvet.add(velvetField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints); |
---|
| 1636 | + specularSection.add(velvet); |
---|
1613 | 1637 | |
---|
1614 | | - ctrlPanel.add(velvetLabel = new JLabel("Velvet"), aConstraints); |
---|
1615 | | - velvetLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1616 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1617 | | - aConstraints.gridx += 1; |
---|
1618 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1619 | | - ctrlPanel.add(velvetField = new NumberSlider(0.001, 50, -1), aConstraints); |
---|
1620 | | - aConstraints.gridx = 0; |
---|
1621 | | - aConstraints.gridy += 1; |
---|
1622 | | - aConstraints.gridwidth = 1; |
---|
1623 | | - |
---|
1624 | | - shiftField = AddSlider(ctrlPanel, "Shift", 0.001, 50, copy.material.shift, -1); |
---|
1625 | | - Return(); |
---|
| 1638 | + shiftField = (cNumberSlider)AddSlider(specularSection, "Shift", 0.001, 50, copy.material.shift, -1).getComponent(1); |
---|
| 1639 | + //Return(); |
---|
1626 | 1640 | // ctrlPanel.add(shiftLabel = new JLabel("Shift"), aConstraints); |
---|
1627 | 1641 | // shiftLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1628 | 1642 | // aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
.. | .. |
---|
1633 | 1647 | // aConstraints.gridy += 1; |
---|
1634 | 1648 | // aConstraints.gridwidth = 1; |
---|
1635 | 1649 | |
---|
1636 | | - //aConstraints.weighty = 1; |
---|
1637 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; // 100; |
---|
1638 | | - //aConstraints.gridx += 1; |
---|
1639 | | - ctrlPanel.add(new JLabel("----------------------------------"), aConstraints); |
---|
1640 | | - aConstraints.weighty = 0; |
---|
1641 | | - aConstraints.gridx = 0; |
---|
1642 | | - aConstraints.gridy += 1; |
---|
1643 | | - aConstraints.gridwidth = 1; |
---|
1644 | 1650 | |
---|
1645 | | - ctrlPanel.add(cameraLabel = new JLabel("GlobalLight"), aConstraints); |
---|
1646 | | - cameraLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1647 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1648 | | - aConstraints.gridx += 1; |
---|
1649 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1650 | | - ctrlPanel.add(cameraField = new NumberSlider(0.001, 50, -1), aConstraints); |
---|
1651 | | - aConstraints.gridx = 0; |
---|
1652 | | - aConstraints.gridy += 1; |
---|
1653 | | - aConstraints.gridwidth = 1; |
---|
| 1651 | + panel.add(new JSeparator()); |
---|
| 1652 | + |
---|
| 1653 | + panel.add(specularSection); |
---|
| 1654 | + |
---|
| 1655 | + //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints); |
---|
| 1656 | + |
---|
| 1657 | + cGridBag globalSection = new cGridBag().setVertical(true); |
---|
1654 | 1658 | |
---|
1655 | | - ctrlPanel.add(ambientLabel = new JLabel("Ambient"), aConstraints); |
---|
1656 | | - ambientLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1657 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1658 | | - aConstraints.gridx += 1; |
---|
1659 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1660 | | - ctrlPanel.add(ambientField = new NumberSlider(0.001, 50, -1), aConstraints); |
---|
1661 | | - aConstraints.gridx = 0; |
---|
1662 | | - aConstraints.gridy += 1; |
---|
1663 | | - aConstraints.gridwidth = 1; |
---|
| 1659 | + cGridBag camera = new cGridBag(); |
---|
| 1660 | + camera.add(cameraLabel = new JLabel("GlobalLight")); // , aConstraints); |
---|
| 1661 | + cameraLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1662 | + camera.add(cameraField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints); |
---|
| 1663 | + globalSection.add(camera); |
---|
1664 | 1664 | |
---|
1665 | | - ctrlPanel.add(backlitLabel = new JLabel("Backlit"), aConstraints); |
---|
1666 | | - backlitLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1667 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1668 | | - aConstraints.gridx += 1; |
---|
1669 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1670 | | - ctrlPanel.add(backlitField = new NumberSlider(0.001, 50, -1), aConstraints); |
---|
1671 | | - aConstraints.gridx = 0; |
---|
1672 | | - aConstraints.gridy += 1; |
---|
1673 | | - aConstraints.gridwidth = 1; |
---|
| 1665 | + cGridBag ambient = new cGridBag(); |
---|
| 1666 | + ambient.add(ambientLabel = new JLabel("Ambient")); // , aConstraints); |
---|
| 1667 | + ambientLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1668 | + ambient.add(ambientField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints); |
---|
| 1669 | + globalSection.add(ambient); |
---|
1674 | 1670 | |
---|
1675 | | - ctrlPanel.add(opacityLabel = new JLabel("Opacity"), aConstraints); |
---|
1676 | | - opacityLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1677 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1678 | | - aConstraints.gridx += 1; |
---|
1679 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1680 | | - ctrlPanel.add(opacityField = new NumberSlider(0.001, 1, -0.1), aConstraints); |
---|
1681 | | - aConstraints.gridx = 0; |
---|
1682 | | - aConstraints.gridy += 1; |
---|
1683 | | - aConstraints.gridwidth = 1; |
---|
1684 | | - aConstraints.weighty = 0; |
---|
| 1671 | + cGridBag backlit = new cGridBag(); |
---|
| 1672 | + backlit.add(backlitLabel = new JLabel("Backlit")); // , aConstraints); |
---|
| 1673 | + backlitLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1674 | + backlit.add(backlitField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints); |
---|
| 1675 | + globalSection.add(backlit); |
---|
1685 | 1676 | |
---|
1686 | | - ctrlPanel.add(bumpLabel = new JLabel("Bump"), aConstraints); |
---|
1687 | | - bumpLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1688 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1689 | | - aConstraints.gridx += 1; |
---|
1690 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1691 | | - ctrlPanel.add(bumpField = new NumberSlider(0.0, 2), aConstraints); |
---|
1692 | | - aConstraints.gridx = 0; |
---|
1693 | | - aConstraints.gridy += 1; |
---|
1694 | | - aConstraints.gridwidth = 1; |
---|
| 1677 | + cGridBag opacity = new cGridBag(); |
---|
| 1678 | + opacity.add(opacityLabel = new JLabel("Opacity")); // , aConstraints); |
---|
| 1679 | + opacityLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1680 | + opacity.add(opacityField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints); |
---|
| 1681 | + globalSection.add(opacity); |
---|
1695 | 1682 | |
---|
1696 | | - ctrlPanel.add(noiseLabel = new JLabel("Noise"), aConstraints); |
---|
1697 | | - noiseLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1698 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1699 | | - aConstraints.gridx += 1; |
---|
1700 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1701 | | - ctrlPanel.add(noiseField = new NumberSlider(0.0, 1/*5*/), aConstraints); |
---|
1702 | | - aConstraints.gridx = 0; |
---|
1703 | | - aConstraints.gridy += 1; |
---|
1704 | | - aConstraints.gridwidth = 1; |
---|
| 1683 | + panel.add(new JSeparator()); |
---|
| 1684 | + |
---|
| 1685 | + panel.add(globalSection); |
---|
| 1686 | + |
---|
| 1687 | + //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints); |
---|
| 1688 | + |
---|
| 1689 | + cGridBag textureSection = new cGridBag().setVertical(true); |
---|
1705 | 1690 | |
---|
1706 | | - ctrlPanel.add(powerLabel = new JLabel("Turbulance"), aConstraints); |
---|
1707 | | - powerLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1708 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1709 | | - aConstraints.gridx += 1; |
---|
1710 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1711 | | - ctrlPanel.add(powerField = new NumberSlider(0.0, 5), aConstraints); |
---|
1712 | | - aConstraints.gridx = 0; |
---|
1713 | | - aConstraints.gridy += 1; |
---|
1714 | | - aConstraints.gridwidth = 1; |
---|
| 1691 | + cGridBag bump = new cGridBag(); |
---|
| 1692 | + bump.add(bumpLabel = new JLabel("Bump")); // , aConstraints); |
---|
| 1693 | + bumpLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1694 | + bump.add(bumpField = new cNumberSlider(this, 0.0, 2)); // , aConstraints); |
---|
| 1695 | + textureSection.add(bump); |
---|
1715 | 1696 | |
---|
1716 | | - ctrlPanel.add(borderfadeLabel = new JLabel("Borderfade"), aConstraints); |
---|
1717 | | - borderfadeLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1718 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1719 | | - aConstraints.gridx += 1; |
---|
1720 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1721 | | - ctrlPanel.add(borderfadeField = new NumberSlider(0.0, 2), aConstraints); |
---|
1722 | | - aConstraints.gridx = 0; |
---|
1723 | | - aConstraints.gridy += 1; |
---|
1724 | | - aConstraints.gridwidth = 1; |
---|
| 1697 | + cGridBag noise = new cGridBag(); |
---|
| 1698 | + noise.add(noiseLabel = new JLabel("Noise")); // , aConstraints); |
---|
| 1699 | + noiseLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1700 | + noise.add(noiseField = new cNumberSlider(this, 0.0, 1/*5*/)); // , aConstraints); |
---|
| 1701 | + textureSection.add(noise); |
---|
1725 | 1702 | |
---|
1726 | | - ctrlPanel.add(fogLabel = new JLabel("Punch"), aConstraints); |
---|
1727 | | - fogLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1728 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1729 | | - aConstraints.gridx += 1; |
---|
1730 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1731 | | - ctrlPanel.add(fogField = new NumberSlider(0.0, 20), aConstraints); |
---|
1732 | | - aConstraints.gridx = 0; |
---|
1733 | | - aConstraints.gridy += 1; |
---|
1734 | | - aConstraints.gridwidth = 1; |
---|
| 1703 | + cGridBag power = new cGridBag(); |
---|
| 1704 | + power.add(powerLabel = new JLabel("Turbulance")); // , aConstraints); |
---|
| 1705 | + powerLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1706 | + power.add(powerField = new cNumberSlider(this, 0.0, 5)); // , aConstraints); |
---|
| 1707 | + textureSection.add(power); |
---|
1735 | 1708 | |
---|
1736 | | - ctrlPanel.add(opacityPowerLabel = new JLabel("Halo"), aConstraints); |
---|
1737 | | - opacityPowerLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1738 | | - aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1739 | | - aConstraints.gridx += 1; |
---|
1740 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1741 | | - ctrlPanel.add(opacityPowerField = new NumberSlider(0.0, 10 /*10 dec 2013*/), aConstraints); |
---|
1742 | | - aConstraints.gridx = 0; |
---|
1743 | | - aConstraints.gridy += 1; |
---|
1744 | | - aConstraints.gridwidth = 1; |
---|
| 1709 | + cGridBag borderfade = new cGridBag(); |
---|
| 1710 | + borderfade.add(borderfadeLabel = new JLabel("Borderfade")); // , aConstraints); |
---|
| 1711 | + borderfadeLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1712 | + borderfade.add(borderfadeField = new cNumberSlider(this, 0.0, 2)); // , aConstraints); |
---|
| 1713 | + textureSection.add(borderfade); |
---|
1745 | 1714 | |
---|
1746 | | - //aConstraints.weighty = 1; |
---|
1747 | | - aConstraints.gridwidth = ObjEditor.GRIDWIDTH; // 100; |
---|
1748 | | - //aConstraints.gridx += 1; |
---|
1749 | | - ctrlPanel.add(new JLabel("----------------------------------"), aConstraints); |
---|
1750 | | - aConstraints.weighty = 0; |
---|
| 1715 | + cGridBag fog = new cGridBag(); |
---|
| 1716 | + fog.add(fogLabel = new JLabel("Punch")); // , aConstraints); |
---|
| 1717 | + fogLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1718 | + fog.add(fogField = new cNumberSlider(this, 0.0, 20)); // , aConstraints); |
---|
| 1719 | + textureSection.add(fog); |
---|
1751 | 1720 | |
---|
1752 | | - aConstraints.gridx = 0; |
---|
1753 | | - aConstraints.gridy = 0; |
---|
1754 | | - aConstraints.gridwidth = 1; |
---|
| 1721 | + cGridBag opacityPower = new cGridBag(); |
---|
| 1722 | + opacityPower.add(opacityPowerLabel = new JLabel("Halo")); // , aConstraints); |
---|
| 1723 | + opacityPowerLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1724 | + opacityPower.add(opacityPowerField = new cNumberSlider(this, 0.0, 10 /*10 dec 2013*/)); // , aConstraints); |
---|
| 1725 | + textureSection.add(opacityPower); |
---|
| 1726 | + |
---|
| 1727 | + panel.add(new JSeparator()); |
---|
| 1728 | + |
---|
| 1729 | + panel.add(textureSection); |
---|
| 1730 | + |
---|
| 1731 | + //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints); |
---|
1755 | 1732 | |
---|
1756 | 1733 | SetMaterial(copy); // .GetMaterial()); |
---|
1757 | 1734 | |
---|
1758 | | - colorField.addChangeListener(this); |
---|
1759 | | - modulationField.addChangeListener(this); |
---|
| 1735 | + //colorField.addChangeListener(this); |
---|
| 1736 | +// modulationField.addChangeListener(this); |
---|
1760 | 1737 | metalnessField.addChangeListener(this); |
---|
1761 | 1738 | diffuseField.addChangeListener(this); |
---|
1762 | 1739 | specularField.addChangeListener(this); |
---|
.. | .. |
---|
1786 | 1763 | opacityPowerField.addChangeListener(this); |
---|
1787 | 1764 | /**/ |
---|
1788 | 1765 | |
---|
1789 | | - resetSlidersButton.addActionListener(this); |
---|
1790 | 1766 | clearMaterialButton.addActionListener(this); |
---|
1791 | 1767 | createMaterialButton.addActionListener(this); |
---|
1792 | | - |
---|
1793 | | - propagateToggle.addItemListener(this); |
---|
1794 | | - multiplyToggle.addItemListener(this); |
---|
| 1768 | + |
---|
| 1769 | + if (Globals.ADVANCED) |
---|
| 1770 | + { |
---|
| 1771 | + resetSlidersButton.addActionListener(this); |
---|
| 1772 | + propagateToggle.addItemListener(this); |
---|
| 1773 | + multiplyToggle.addItemListener(this); |
---|
| 1774 | + } |
---|
1795 | 1775 | } |
---|
1796 | 1776 | |
---|
1797 | 1777 | void DropFile(java.io.File[] files, boolean textures) |
---|
.. | .. |
---|
1962 | 1942 | |
---|
1963 | 1943 | //? flashIt = false; |
---|
1964 | 1944 | CameraPane pane = (CameraPane) cameraView; |
---|
1965 | | - pane.clickStart(location.x, location.y, 0); |
---|
| 1945 | + pane.clickStart(location.x, location.y, 0, 0); |
---|
1966 | 1946 | pane.clickEnd(location.x, location.y, 0, true); |
---|
1967 | 1947 | |
---|
1968 | 1948 | if (group.selection.size() == 1) |
---|
.. | .. |
---|
2419 | 2399 | |
---|
2420 | 2400 | void ImportJME(com.jmex.model.converters.FormatConverter converter, String ext, String dialogName) |
---|
2421 | 2401 | { |
---|
2422 | | - if (GrafreeD.standAlone) |
---|
| 2402 | + if (Grafreed.standAlone) |
---|
2423 | 2403 | { |
---|
2424 | 2404 | /**/ |
---|
2425 | 2405 | FileDialog browser = new FileDialog(frame, dialogName, FileDialog.LOAD); |
---|
2426 | | - browser.show(); |
---|
| 2406 | + browser.setVisible(true); |
---|
2427 | 2407 | String filename = browser.getFile(); |
---|
2428 | 2408 | if (filename != null && filename.length() > 0) |
---|
2429 | 2409 | { |
---|
.. | .. |
---|
2568 | 2548 | } |
---|
2569 | 2549 | if (input == null) |
---|
2570 | 2550 | { |
---|
| 2551 | + new Exception().printStackTrace(); |
---|
2571 | 2552 | System.exit(0); |
---|
2572 | 2553 | } |
---|
2573 | 2554 | |
---|
.. | .. |
---|
2782 | 2763 | return; |
---|
2783 | 2764 | } |
---|
2784 | 2765 | |
---|
2785 | | - multiplyToggle.setSelected(mat.multiply); |
---|
| 2766 | + if (multiplyToggle != null) |
---|
| 2767 | + multiplyToggle.setSelected(mat.multiply); |
---|
2786 | 2768 | |
---|
2787 | 2769 | assert (object.projectedVertices != null); |
---|
2788 | 2770 | |
---|
.. | .. |
---|
2966 | 2948 | return; |
---|
2967 | 2949 | } else if (event.getSource() == toggleTimelineItem) |
---|
2968 | 2950 | { |
---|
2969 | | - copy.timeline ^= true; |
---|
| 2951 | + timeline ^= true; |
---|
2970 | 2952 | |
---|
2971 | | - if (copy.timeline) |
---|
| 2953 | + if (timeline) |
---|
2972 | 2954 | { |
---|
2973 | 2955 | centralPanel.remove(cameraView); |
---|
2974 | | - centralPanel.add(timelinePanel); |
---|
| 2956 | + cameraPanel.add(cameraView); |
---|
| 2957 | + centralPanel.add(cameraPanel); |
---|
2975 | 2958 | frame.setJMenuBar(timelineMenubar); |
---|
| 2959 | + wasFullScreen = CameraPane.FULLSCREEN; |
---|
| 2960 | + if (!CameraPane.FULLSCREEN) |
---|
| 2961 | + ToggleFullScreen(); |
---|
| 2962 | + toggleFullScreenItem.setEnabled(false); |
---|
2976 | 2963 | } |
---|
2977 | 2964 | else |
---|
2978 | 2965 | { |
---|
2979 | | - centralPanel.remove(timelinePanel); |
---|
| 2966 | + centralPanel.remove(cameraPanel); |
---|
2980 | 2967 | centralPanel.add(cameraView); |
---|
2981 | 2968 | frame.setJMenuBar(null); |
---|
| 2969 | + if (!wasFullScreen) |
---|
| 2970 | + ToggleFullScreen(); |
---|
| 2971 | + toggleFullScreenItem.setEnabled(true); |
---|
2982 | 2972 | } |
---|
2983 | 2973 | |
---|
2984 | 2974 | frame.validate(); |
---|
2985 | 2975 | return; |
---|
2986 | 2976 | } else if (event.getSource() == toggleFullScreenItem) |
---|
2987 | 2977 | { |
---|
2988 | | - if (CameraPane.FULLSCREEN) |
---|
2989 | | - { |
---|
2990 | | - frame.getContentPane().remove(/*"Center",*/bigThree); |
---|
2991 | | - framePanel.add(bigThree); |
---|
2992 | | - frame.getContentPane().add(/*"Center",*/framePanel); |
---|
2993 | | - } else |
---|
2994 | | - { |
---|
2995 | | - frame.getContentPane().remove(/*"Center",*/framePanel); |
---|
2996 | | - frame.getContentPane().add(/*"Center",*/bigThree); |
---|
2997 | | - } |
---|
| 2978 | + ToggleFullScreen(); |
---|
2998 | 2979 | frame.validate(); |
---|
2999 | | - cameraView.ToggleFullScreen(); |
---|
3000 | 2980 | |
---|
3001 | 2981 | return; |
---|
3002 | | - } else if (event.getSource() == toggleRandomItem) |
---|
| 2982 | + } else if (event.getSource() == toggleSwitchItem) |
---|
3003 | 2983 | { |
---|
3004 | 2984 | cameraView.ToggleRandom(); |
---|
3005 | 2985 | cameraView.repaint(); |
---|
.. | .. |
---|
3030 | 3010 | { |
---|
3031 | 3011 | copy.live ^= true; |
---|
3032 | 3012 | return; |
---|
| 3013 | + } else if (event.getSource() == selectCB) |
---|
| 3014 | + { |
---|
| 3015 | + copy.dontselect ^= true; |
---|
| 3016 | + return; |
---|
3033 | 3017 | } else if (event.getSource() == hideCB) |
---|
3034 | 3018 | { |
---|
3035 | 3019 | copy.hide ^= true; |
---|
.. | .. |
---|
3044 | 3028 | if (event.getSource() == randomCB) |
---|
3045 | 3029 | { |
---|
3046 | 3030 | copy.random ^= true; |
---|
| 3031 | + objEditor.refreshContents(); |
---|
3047 | 3032 | return; |
---|
3048 | 3033 | } |
---|
3049 | 3034 | if (event.getSource() == speedupCB) |
---|
.. | .. |
---|
3106 | 3091 | objEditor.refreshContents(); |
---|
3107 | 3092 | } else if (event.getSource() == stepItem) |
---|
3108 | 3093 | { |
---|
3109 | | - cameraView.ONESTEP = true; |
---|
| 3094 | + //cameraView.ONESTEP = true; |
---|
| 3095 | + Globals.ONESTEP = true; |
---|
3110 | 3096 | cameraView.repaint(); |
---|
3111 | 3097 | return; |
---|
3112 | 3098 | } else if (event.getSource() == stepButton) |
---|
.. | .. |
---|
3263 | 3249 | |
---|
3264 | 3250 | void ToggleAnimation() |
---|
3265 | 3251 | { |
---|
3266 | | - if (!CameraPane.ANIMATION) |
---|
| 3252 | + if (!Globals.ANIMATION) |
---|
3267 | 3253 | { |
---|
3268 | 3254 | FileDialog browser = new FileDialog(frame, "Save Animation As...", FileDialog.SAVE); |
---|
3269 | | - browser.show(); |
---|
| 3255 | + browser.setVisible(true); |
---|
3270 | 3256 | String filename = browser.getFile(); |
---|
3271 | 3257 | if (filename != null && filename.length() > 0) |
---|
3272 | 3258 | { |
---|
3273 | | - CameraPane.filename = browser.getDirectory() + filename; |
---|
| 3259 | + Globals.filename = browser.getDirectory() + filename; |
---|
3274 | 3260 | //CameraPane.framecount = 0; |
---|
3275 | | - CameraPane.imagecount = 0; |
---|
| 3261 | + Globals.imagecount = 0; |
---|
3276 | 3262 | |
---|
3277 | | - CameraPane.ANIMATION ^= true; |
---|
| 3263 | + Globals.ANIMATION ^= true; |
---|
3278 | 3264 | |
---|
3279 | | - GrafreeD.wav.cursor = 0; |
---|
3280 | | - GrafreeD.wav.loop = 0; |
---|
| 3265 | + Grafreed.wav.cursor = 0; |
---|
| 3266 | + Grafreed.wav.loop = 0; |
---|
3281 | 3267 | } |
---|
3282 | 3268 | } else |
---|
3283 | 3269 | { |
---|
3284 | | - CameraPane.ANIMATION ^= true; |
---|
| 3270 | + Globals.ANIMATION ^= true; |
---|
3285 | 3271 | } |
---|
3286 | 3272 | } |
---|
3287 | 3273 | |
---|
.. | .. |
---|
3327 | 3313 | void CreateMaterial() |
---|
3328 | 3314 | { |
---|
3329 | 3315 | //copy.ClearMaterial(); // PATCH |
---|
3330 | | - copy.CreateMaterialS(multiplyToggle.isSelected()); |
---|
| 3316 | + copy.CreateMaterialS(multiplyToggle != null && multiplyToggle.isSelected()); |
---|
3331 | 3317 | if (copy.selection.size() > 0) |
---|
3332 | 3318 | //SetMaterial(copy); |
---|
3333 | 3319 | { |
---|
.. | .. |
---|
3386 | 3372 | { |
---|
3387 | 3373 | copy.ResetBlockLoop(); // temporary problem |
---|
3388 | 3374 | |
---|
3389 | | - boolean random = CameraPane.RANDOM; |
---|
3390 | | - CameraPane.RANDOM = false; // parse everything |
---|
| 3375 | + boolean random = CameraPane.SWITCH; |
---|
| 3376 | + CameraPane.SWITCH = false; // parse everything |
---|
3391 | 3377 | copy.ResetDisplayList(); |
---|
3392 | 3378 | copy.HardTouch(); |
---|
3393 | | - CameraPane.RANDOM = random; |
---|
| 3379 | + CameraPane.SWITCH = random; |
---|
3394 | 3380 | } |
---|
3395 | 3381 | |
---|
3396 | 3382 | // public void applySelf() |
---|
.. | .. |
---|
3460 | 3446 | current.fakedepth = (float) fakedepthField.getFloat(); |
---|
3461 | 3447 | current.shadowbias = (float) shadowbiasField.getFloat(); |
---|
3462 | 3448 | |
---|
3463 | | - if (!NumberSlider.frozen) |
---|
| 3449 | + if (!cNumberSlider.frozen) |
---|
3464 | 3450 | { |
---|
3465 | 3451 | //System.out.println("Propagate = " + propagate); |
---|
3466 | 3452 | copy.UpdateMaterial(anchor, current, propagate); |
---|
| 3453 | + |
---|
| 3454 | + if (copy.material != null) |
---|
| 3455 | + { |
---|
| 3456 | + cMaterial mat = copy.material; |
---|
| 3457 | + |
---|
| 3458 | + colorField.SetToolTipValue((mat.color)); |
---|
| 3459 | + modulationField.SetToolTipValue((mat.modulation)); |
---|
| 3460 | + metalnessField.SetToolTipValue((mat.metalness)); |
---|
| 3461 | + diffuseField.SetToolTipValue((mat.diffuse)); |
---|
| 3462 | + specularField.SetToolTipValue((mat.specular)); |
---|
| 3463 | + shininessField.SetToolTipValue((mat.shininess)); |
---|
| 3464 | + shiftField.SetToolTipValue((mat.shift)); |
---|
| 3465 | + ambientField.SetToolTipValue((mat.ambient)); |
---|
| 3466 | + lightareaField.SetToolTipValue((mat.lightarea)); |
---|
| 3467 | + diffusenessField.SetToolTipValue((mat.factor)); |
---|
| 3468 | + velvetField.SetToolTipValue((mat.velvet)); |
---|
| 3469 | + sheenField.SetToolTipValue((mat.sheen)); |
---|
| 3470 | + subsurfaceField.SetToolTipValue((mat.subsurface)); |
---|
| 3471 | + backlitField.SetToolTipValue((mat.bump)); |
---|
| 3472 | + anisoField.SetToolTipValue((mat.aniso)); |
---|
| 3473 | + anisoVField.SetToolTipValue((mat.anisoV)); |
---|
| 3474 | + cameraField.SetToolTipValue((mat.cameralight)); |
---|
| 3475 | + selfshadowField.SetToolTipValue((mat.diffuseness)); |
---|
| 3476 | + shadowField.SetToolTipValue((mat.shadow)); |
---|
| 3477 | + textureField.SetToolTipValue((mat.texture)); |
---|
| 3478 | + opacityField.SetToolTipValue((mat.opacity)); |
---|
| 3479 | + fakedepthField.SetToolTipValue((mat.fakedepth)); |
---|
| 3480 | + shadowbiasField.SetToolTipValue((mat.shadowbias)); |
---|
| 3481 | + } |
---|
| 3482 | + |
---|
3467 | 3483 | if (copy.material != null && copy.projectedVertices.length > 0 && copy.projectedVertices[0] != null) |
---|
3468 | 3484 | { |
---|
3469 | 3485 | copy.projectedVertices[0].x = (int) (bumpField.getFloat() * 1000); |
---|
.. | .. |
---|
3508 | 3524 | || e.getSource() == apertureField |
---|
3509 | 3525 | || e.getSource() == shadowblurField) |
---|
3510 | 3526 | { |
---|
| 3527 | + new Exception().printStackTrace(); |
---|
3511 | 3528 | System.exit(0); |
---|
3512 | 3529 | cameraView.options1[0] = (float) focusField.getFloat() * 10; |
---|
3513 | 3530 | cameraView.options1[1] = (float) apertureField.getFloat() / 1000; |
---|
.. | .. |
---|
3534 | 3551 | //System.out.println("PARENT = " + parent); |
---|
3535 | 3552 | //if (parent != null) |
---|
3536 | 3553 | // parent.applySelf(); |
---|
3537 | | - refreshContents(); |
---|
| 3554 | + if (e.getSource() == normalpushField) |
---|
| 3555 | + { |
---|
| 3556 | + objEditor.refreshContents(); |
---|
| 3557 | + //Refresh(); |
---|
| 3558 | + } |
---|
| 3559 | + else |
---|
| 3560 | + refreshContents(); |
---|
3538 | 3561 | // ??? client.refreshEditWindow(); |
---|
3539 | 3562 | } |
---|
3540 | 3563 | //else |
---|
.. | .. |
---|
3546 | 3569 | //group.name = nameField.getText(); |
---|
3547 | 3570 | //objEditor.applySelf(); |
---|
3548 | 3571 | |
---|
3549 | | - assert (objEditor == this); |
---|
| 3572 | + // OCT2018: assert (objEditor == this); |
---|
3550 | 3573 | if (copy.selection == null || copy.selection.size() == 0) |
---|
3551 | 3574 | //super.applySelf() |
---|
3552 | 3575 | ; else |
---|
.. | .. |
---|
3570 | 3593 | objEditor.copy = keep; |
---|
3571 | 3594 | } |
---|
3572 | 3595 | } |
---|
| 3596 | + |
---|
| 3597 | + if (normalpushField != null) |
---|
| 3598 | + copy.NORMALPUSH = (float)normalpushField.getFloat()/100; |
---|
3573 | 3599 | } |
---|
3574 | 3600 | |
---|
3575 | 3601 | void SnapObject() |
---|
3576 | 3602 | { |
---|
3577 | | - Object3D obj = (Object3D)copy.selection.elementAt(0); |
---|
3578 | | - SnapObject(obj); |
---|
| 3603 | + if (copy.selection.size() > 0) |
---|
| 3604 | + { |
---|
| 3605 | + Object3D obj = (Object3D)copy.selection.elementAt(0); |
---|
| 3606 | + SnapObject(obj); |
---|
| 3607 | + } |
---|
3579 | 3608 | } |
---|
3580 | 3609 | |
---|
3581 | 3610 | void SnapObject(Object3D obj) |
---|
.. | .. |
---|
3821 | 3850 | |
---|
3822 | 3851 | radioPanel.revalidate(); |
---|
3823 | 3852 | radioPanel.repaint(); |
---|
3824 | | - ctrlPanel.revalidate(); // ? new |
---|
| 3853 | + ctrlPanel.validate(); // ? new |
---|
3825 | 3854 | ctrlPanel.repaint(); |
---|
3826 | 3855 | } |
---|
3827 | 3856 | } |
---|
.. | .. |
---|
4178 | 4207 | |
---|
4179 | 4208 | void load() // throws ClassNotFoundException |
---|
4180 | 4209 | { |
---|
4181 | | - if (GrafreeD.standAlone) |
---|
| 4210 | + if (Grafreed.standAlone) |
---|
4182 | 4211 | { |
---|
4183 | 4212 | FileDialog browser = new FileDialog(frame, "Load", FileDialog.LOAD); |
---|
4184 | 4213 | browser.show(); |
---|
.. | .. |
---|
4283 | 4312 | |
---|
4284 | 4313 | void saveAs() |
---|
4285 | 4314 | { |
---|
4286 | | - if (GrafreeD.standAlone) |
---|
| 4315 | + if (Grafreed.standAlone) |
---|
4287 | 4316 | { |
---|
4288 | 4317 | FileDialog browser = new FileDialog(frame, "Save As", FileDialog.SAVE); |
---|
4289 | 4318 | browser.setVisible(true); |
---|
.. | .. |
---|
4394 | 4423 | Object3D objectparent = obj.parent; |
---|
4395 | 4424 | obj.parent = null; |
---|
4396 | 4425 | |
---|
4397 | | - Object3D object = (Object3D) GrafreeD.clone(obj); |
---|
| 4426 | + Object3D object = (Object3D) Grafreed.clone(obj); |
---|
4398 | 4427 | |
---|
4399 | 4428 | obj.parent = objectparent; |
---|
4400 | 4429 | |
---|
.. | .. |
---|
4428 | 4457 | buffer.append("background { color rgb <0.8,0.8,0.8> }\n\n"); |
---|
4429 | 4458 | cameraView.renderCamera.generatePOV(buffer, bnds.width, bnds.height); |
---|
4430 | 4459 | copy.generatePOV(buffer); |
---|
4431 | | - if (GrafreeD.standAlone) |
---|
| 4460 | + if (Grafreed.standAlone) |
---|
4432 | 4461 | { |
---|
4433 | 4462 | FileDialog browser = new FileDialog(frame, "Export POV", 1); |
---|
4434 | 4463 | browser.show(); |
---|
.. | .. |
---|
4467 | 4496 | //MenuItem normalLensItem; |
---|
4468 | 4497 | MenuItem editCameraItem; |
---|
4469 | 4498 | MenuItem revertCameraItem; |
---|
4470 | | - CheckboxMenuItem toggleLiveItem; |
---|
4471 | 4499 | MenuItem stepItem; |
---|
| 4500 | + CheckboxMenuItem toggleLiveItem; |
---|
4472 | 4501 | CheckboxMenuItem toggleFullScreenItem; |
---|
4473 | 4502 | CheckboxMenuItem toggleTimelineItem; |
---|
4474 | 4503 | CheckboxMenuItem toggleRenderItem; |
---|
.. | .. |
---|
4477 | 4506 | CheckboxMenuItem toggleFootContactItem; |
---|
4478 | 4507 | CheckboxMenuItem toggleDLItem; |
---|
4479 | 4508 | CheckboxMenuItem toggleTextureItem; |
---|
4480 | | - CheckboxMenuItem toggleRandomItem; |
---|
| 4509 | + CheckboxMenuItem toggleSwitchItem; |
---|
4481 | 4510 | CheckboxMenuItem toggleRootItem; |
---|
4482 | 4511 | CheckboxMenuItem animationItem; |
---|
4483 | 4512 | CheckboxMenuItem toggleHandleItem; |
---|
.. | .. |
---|
4485 | 4514 | JSplitPane mainPanel; |
---|
4486 | 4515 | JScrollPane scrollpane; |
---|
4487 | 4516 | JPanel toolbarPanel; |
---|
4488 | | - JPanel treePanel; |
---|
| 4517 | + cGridBag treePanel; |
---|
4489 | 4518 | JPanel radioPanel; |
---|
4490 | 4519 | ButtonGroup buttonGroup; |
---|
4491 | | - JPanel ctrlPanel; |
---|
4492 | | - JPanel materialPanel; |
---|
| 4520 | + cGridBag ctrlPanel; |
---|
| 4521 | + cGridBag materialPanel; |
---|
4493 | 4522 | JScrollPane infoPanel; |
---|
4494 | | - JPanel optionsPanel; |
---|
| 4523 | + cGridBag optionsPanel; |
---|
4495 | 4524 | JTabbedPane objectPanel; |
---|
4496 | | - JPanel XYZPanel; |
---|
| 4525 | + cGridBag XYZPanel; |
---|
4497 | 4526 | JSplitPane gridPanel; |
---|
4498 | 4527 | JSplitPane bigPanel; |
---|
4499 | | - JPanel bigThree; |
---|
4500 | | - JTabbedPane scenePanel; |
---|
4501 | | - JPanel centralPanel; |
---|
| 4528 | + cGridBag bigThree; |
---|
| 4529 | + cGridBag scenePanel; |
---|
| 4530 | + cGridBag centralPanel; |
---|
| 4531 | + JSplitPane cameraPanel; |
---|
4502 | 4532 | JPanel timelinePanel; |
---|
4503 | 4533 | JMenuBar timelineMenubar; |
---|
4504 | 4534 | JSplitPane framePanel; |
---|
.. | .. |
---|
4550 | 4580 | // MATERIAL |
---|
4551 | 4581 | JLabel materialLabel; |
---|
4552 | 4582 | JLabel colorLabel; |
---|
4553 | | - NumberSlider colorField; |
---|
| 4583 | + cNumberSlider colorField; |
---|
4554 | 4584 | JLabel modulationLabel; |
---|
4555 | | - NumberSlider modulationField; |
---|
| 4585 | + cNumberSlider modulationField; |
---|
4556 | 4586 | JLabel metalnessLabel; |
---|
4557 | | - NumberSlider metalnessField; |
---|
| 4587 | + cNumberSlider metalnessField; |
---|
4558 | 4588 | JLabel diffuseLabel; |
---|
4559 | | - NumberSlider diffuseField; |
---|
| 4589 | + cNumberSlider diffuseField; |
---|
4560 | 4590 | JLabel specularLabel; |
---|
4561 | | - NumberSlider specularField; |
---|
| 4591 | + cNumberSlider specularField; |
---|
4562 | 4592 | JLabel shininessLabel; |
---|
4563 | | - NumberSlider shininessField; |
---|
| 4593 | + cNumberSlider shininessField; |
---|
4564 | 4594 | JLabel shiftLabel; |
---|
4565 | | - NumberSlider shiftField; |
---|
| 4595 | + cNumberSlider shiftField; |
---|
4566 | 4596 | JLabel ambientLabel; |
---|
4567 | | - NumberSlider ambientField; |
---|
| 4597 | + cNumberSlider ambientField; |
---|
4568 | 4598 | JLabel lightareaLabel; |
---|
4569 | | - NumberSlider lightareaField; |
---|
| 4599 | + cNumberSlider lightareaField; |
---|
4570 | 4600 | JLabel diffusenessLabel; |
---|
4571 | | - NumberSlider diffusenessField; |
---|
| 4601 | + cNumberSlider diffusenessField; |
---|
4572 | 4602 | JLabel velvetLabel; |
---|
4573 | | - NumberSlider velvetField; |
---|
| 4603 | + cNumberSlider velvetField; |
---|
4574 | 4604 | JLabel sheenLabel; |
---|
4575 | | - NumberSlider sheenField; |
---|
| 4605 | + cNumberSlider sheenField; |
---|
4576 | 4606 | JLabel subsurfaceLabel; |
---|
4577 | | - NumberSlider subsurfaceField; |
---|
| 4607 | + cNumberSlider subsurfaceField; |
---|
4578 | 4608 | //JLabel bumpLabel; |
---|
4579 | 4609 | //NumberSlider bumpField; |
---|
4580 | 4610 | JLabel backlitLabel; |
---|
4581 | | - NumberSlider backlitField; |
---|
| 4611 | + cNumberSlider backlitField; |
---|
4582 | 4612 | JLabel anisoLabel; |
---|
4583 | | - NumberSlider anisoField; |
---|
| 4613 | + cNumberSlider anisoField; |
---|
4584 | 4614 | JLabel anisoVLabel; |
---|
4585 | | - NumberSlider anisoVField; |
---|
| 4615 | + cNumberSlider anisoVField; |
---|
4586 | 4616 | JLabel cameraLabel; |
---|
4587 | | - NumberSlider cameraField; |
---|
| 4617 | + cNumberSlider cameraField; |
---|
4588 | 4618 | JLabel selfshadowLabel; |
---|
4589 | | - NumberSlider selfshadowField; |
---|
| 4619 | + cNumberSlider selfshadowField; |
---|
4590 | 4620 | JLabel shadowLabel; |
---|
4591 | | - NumberSlider shadowField; |
---|
| 4621 | + cNumberSlider shadowField; |
---|
4592 | 4622 | JLabel textureLabel; |
---|
4593 | | - NumberSlider textureField; |
---|
| 4623 | + cNumberSlider textureField; |
---|
4594 | 4624 | JLabel opacityLabel; |
---|
4595 | | - NumberSlider opacityField; |
---|
| 4625 | + cNumberSlider opacityField; |
---|
4596 | 4626 | JLabel fakedepthLabel; |
---|
4597 | | - NumberSlider fakedepthField; |
---|
| 4627 | + cNumberSlider fakedepthField; |
---|
4598 | 4628 | JLabel shadowbiasLabel; |
---|
4599 | | - NumberSlider shadowbiasField; |
---|
| 4629 | + cNumberSlider shadowbiasField; |
---|
4600 | 4630 | JLabel bumpLabel; |
---|
4601 | | - NumberSlider bumpField; |
---|
| 4631 | + cNumberSlider bumpField; |
---|
4602 | 4632 | JLabel noiseLabel; |
---|
4603 | | - NumberSlider noiseField; |
---|
| 4633 | + cNumberSlider noiseField; |
---|
4604 | 4634 | JLabel powerLabel; |
---|
4605 | | - NumberSlider powerField; |
---|
| 4635 | + cNumberSlider powerField; |
---|
4606 | 4636 | JLabel borderfadeLabel; |
---|
4607 | | - NumberSlider borderfadeField; |
---|
| 4637 | + cNumberSlider borderfadeField; |
---|
4608 | 4638 | JLabel fogLabel; |
---|
4609 | | - NumberSlider fogField; |
---|
| 4639 | + cNumberSlider fogField; |
---|
4610 | 4640 | JLabel opacityPowerLabel; |
---|
4611 | | - NumberSlider opacityPowerField; |
---|
| 4641 | + cNumberSlider opacityPowerField; |
---|
4612 | 4642 | JTree jTree; |
---|
4613 | 4643 | //ObjectUI parent; |
---|
| 4644 | + |
---|
| 4645 | + cNumberSlider normalpushField; |
---|
4614 | 4646 | } |
---|