.. | .. |
---|
330 | 330 | objEditor.ctrlPanel.remove(pushPanel); |
---|
331 | 331 | if (versionPanel != null) |
---|
332 | 332 | objEditor.ctrlPanel.remove(versionPanel); |
---|
| 333 | + if (countPanel != null) |
---|
| 334 | + objEditor.ctrlPanel.remove(countPanel); |
---|
333 | 335 | //objEditor.ctrlPanel.remove(fillPanel); |
---|
334 | 336 | |
---|
335 | 337 | //Remove(normalpushField); |
---|
.. | .. |
---|
727 | 729 | si.SendInfo("#children = " + sel.Size(), "regular"); |
---|
728 | 730 | } |
---|
729 | 731 | si.SendInfo((debug ? " Parent: " : " ") + sel.parent + (Globals.ADVANCED?"":" " + System.identityHashCode(sel.parent)), "regular"); |
---|
730 | | - if (debug) |
---|
731 | | - { |
---|
732 | | - try |
---|
733 | | - { |
---|
734 | | - sel.getBounds(minima, maxima, true); |
---|
735 | | - } catch (Exception e) |
---|
736 | | - { |
---|
737 | | - e.printStackTrace(); |
---|
738 | | - } |
---|
739 | | - |
---|
740 | | - if (full) |
---|
741 | | - { |
---|
742 | | - si.SendInfo(" BBox min: " + minima, "regular"); |
---|
743 | | - si.SendInfo(" BBox max: " + maxima, "regular"); |
---|
744 | | - } |
---|
745 | | - |
---|
746 | | - if (sel.bRep != null) |
---|
747 | | - { |
---|
748 | | - si.SendInfo(" BRep: " + sel.bRep.hashCode(), "regular"); |
---|
749 | | - si.SendInfo(" Geo: " + sel.bRep.FaceCount() + " triangles, " + sel.bRep.VertexCount() |
---|
750 | | - + " vertices; ", "regular"); |
---|
751 | | - si.SendInfo(" Storage: " + sel.bRep, "regular"); |
---|
752 | | - si.SendInfo(" Display list: " + sel.bRep.displaylist, "regular"); |
---|
753 | | - if (sel.bRep.vertextable != null) |
---|
754 | | - { |
---|
755 | | - si.SendInfo(" ... has vertextable. ", "regular"); |
---|
756 | | - } |
---|
757 | | - if (sel.bRep.support != null) |
---|
758 | | - { |
---|
759 | | - si.SendInfo(" bRep support: " + sel.bRep.support, "regular"); |
---|
760 | | - } |
---|
761 | | - } |
---|
762 | | - if (sel.transientrep != null) |
---|
763 | | - { |
---|
764 | | - si.SendInfo(" transientrep: " + sel.transientrep.hashCode(), "regular"); |
---|
765 | | - si.SendInfo(" Geo: " + sel.transientrep.FaceCount() + " triangles;" + sel.transientrep.VertexCount() |
---|
766 | | - + " vertices; ", "regular"); |
---|
767 | | - si.SendInfo(" Storage: " + sel.transientrep, "regular"); |
---|
768 | | - } |
---|
769 | | - if (sel.support != null) |
---|
770 | | - { |
---|
771 | | - si.SendInfo(" support: " + sel.support + (Globals.ADVANCED?"":" " + System.identityHashCode(sel.support)), "regular"); |
---|
772 | | - } |
---|
773 | | - if (sel.scriptnode != null) |
---|
774 | | - { |
---|
775 | | - si.SendInfo(" script: " + sel.scriptnode.scripttext, "regular"); |
---|
776 | | - } |
---|
| 732 | + si.SendInfo((debug ? " Complete path: " : " ") + sel.GetPath(), "regular"); |
---|
| 733 | + si.SendInfo((debug ? " Texture: " : " ") + sel.GetTextures(), "bold"); |
---|
| 734 | + if (sel.GetTextures().pigmentdata != null) |
---|
| 735 | + si.SendInfo(" EMBEDDED ", "regular"); |
---|
777 | 736 | if (sel.toParent != null) |
---|
778 | 737 | { |
---|
779 | 738 | sel.GlobalTransformInv(); |
---|
.. | .. |
---|
802 | 761 | si.SendInfo(" Max count: " + sel.maxcount, "regular"); |
---|
803 | 762 | // SendInfo(" countdown: " + sel.countdown + newline, "regular"); |
---|
804 | 763 | // SendInfo(" delay: " + sel.delay + newline, "regular"); |
---|
| 764 | + if (debug) |
---|
| 765 | + { |
---|
| 766 | + try |
---|
| 767 | + { |
---|
| 768 | + sel.getBounds(minima, maxima, true); |
---|
| 769 | + } catch (Exception e) |
---|
| 770 | + { |
---|
| 771 | + e.printStackTrace(); |
---|
| 772 | + } |
---|
| 773 | + |
---|
| 774 | + if (full) |
---|
| 775 | + { |
---|
| 776 | + si.SendInfo(" BBox min: " + minima, "regular"); |
---|
| 777 | + si.SendInfo(" BBox max: " + maxima, "regular"); |
---|
| 778 | + } |
---|
| 779 | + |
---|
| 780 | + if (sel.bRep != null) |
---|
| 781 | + { |
---|
| 782 | + si.SendInfo(" Mesh: " + sel.bRep.hashCode(), "regular"); |
---|
| 783 | + si.SendInfo(" Size: " + sel.bRep.FaceCount() + " triangles, " + sel.bRep.VertexCount() |
---|
| 784 | + + " vertices; ", "regular"); |
---|
| 785 | + si.SendInfo(" Storage: " + sel.bRep, "regular"); |
---|
| 786 | + if (Globals.ADVANCED) |
---|
| 787 | + { |
---|
| 788 | + si.SendInfo(" Display list: " + sel.bRep.displaylist, "regular"); |
---|
| 789 | + if (sel.bRep.vertextable != null) |
---|
| 790 | + { |
---|
| 791 | + si.SendInfo(" ... has vertextable. ", "regular"); |
---|
| 792 | + } |
---|
| 793 | + } |
---|
| 794 | + if (sel.bRep.support != null) |
---|
| 795 | + { |
---|
| 796 | + si.SendInfo(" Mesh support: " + sel.bRep.hashCode() + " " + sel.bRep.support, "regular"); |
---|
| 797 | + } |
---|
| 798 | + } |
---|
| 799 | + if (sel.transientrep != null) |
---|
| 800 | + { |
---|
| 801 | + si.SendInfo(" transient mesh: " + sel.transientrep.hashCode(), "regular"); |
---|
| 802 | + si.SendInfo(" Size: " + sel.transientrep.FaceCount() + " triangles;" + sel.transientrep.VertexCount() |
---|
| 803 | + + " vertices; ", "regular"); |
---|
| 804 | + si.SendInfo(" Storage: " + sel.transientrep, "regular"); |
---|
| 805 | + } |
---|
| 806 | + if (sel.support != null) |
---|
| 807 | + { |
---|
| 808 | + si.SendInfo(" support: " + sel.support + (Globals.ADVANCED?"":" " + System.identityHashCode(sel.support)), "regular"); |
---|
| 809 | + } |
---|
| 810 | + if (sel.scriptnode != null) |
---|
| 811 | + { |
---|
| 812 | + si.SendInfo(" script: " + sel.scriptnode.scripttext, "regular"); |
---|
| 813 | + } |
---|
805 | 814 | // live, hide, ... |
---|
806 | 815 | //?? SendInfo(" Orig: " + maxima + newline, "regular"); |
---|
807 | | - if (sel.GetTextures().pigmentdata != null) |
---|
808 | | - si.SendInfo(" EMBEDDED ", "regular"); |
---|
809 | | - si.SendInfo((debug ? " Texture: " : " ") + sel.GetTextures(), "bold"); |
---|
810 | 816 | // SendInfo((debug ? " Material: " : " ") + sel.material + newline, "regular"); |
---|
811 | 817 | if (sel instanceof cMesh) |
---|
812 | 818 | { |
---|
.. | .. |
---|
838 | 844 | SwitchNode sn = (SwitchNode) sel; |
---|
839 | 845 | si.SendInfo(" Switch Object: " + sn.switchobject, "regular"); |
---|
840 | 846 | } |
---|
841 | | - |
---|
842 | | - si.SendInfo((debug ? " Path: " : " ") + sel.GetPath(), "regular"); |
---|
843 | 847 | |
---|
844 | 848 | // System.err.println("info : " + sel.GetPath()); |
---|
845 | 849 | if (sel instanceof PointFlow) |
---|
.. | .. |
---|
1210 | 1214 | cGridBag objectCommandsPanel; |
---|
1211 | 1215 | cGridBag pushPanel; |
---|
1212 | 1216 | cGridBag versionPanel; |
---|
| 1217 | + cGridBag countPanel; |
---|
1213 | 1218 | cGridBag fillPanel; |
---|
1214 | 1219 | |
---|
| 1220 | + cNumberSlider countField; |
---|
| 1221 | + |
---|
1215 | 1222 | JCheckBox AddCheckBox(cGridBag panel, String label, boolean on) |
---|
1216 | 1223 | { |
---|
1217 | 1224 | JCheckBox cb; |
---|
.. | .. |
---|
1466 | 1473 | |
---|
1467 | 1474 | pushPanel = AddSlider(oe.ctrlPanel, "Push", -1, 1, copy.NORMALPUSH * 100, 1.1); // To have the buttons |
---|
1468 | 1475 | normalpushField = (cNumberSlider)pushPanel.getComponent(1); |
---|
| 1476 | + if (copy instanceof Composite && !(copy instanceof cGroup)) |
---|
| 1477 | + { |
---|
| 1478 | + oe.ctrlPanel.Return(); |
---|
| 1479 | + countPanel = AddSlider(oe.ctrlPanel, "Count", 0, 50, copy.count); |
---|
| 1480 | + countField = (cNumberSlider)countPanel.getComponent(1); |
---|
| 1481 | + } |
---|
1469 | 1482 | if (false && copy.versionlist != null && copy.versionindex != -1) |
---|
1470 | 1483 | { |
---|
1471 | 1484 | oe.ctrlPanel.Return(); |
---|
.. | .. |
---|
2244 | 2257 | { |
---|
2245 | 2258 | objectTabbedPane.add(infoPanel); |
---|
2246 | 2259 | objectTabbedPane.setIconAt(objectTabCount, GetIcon("icons/info.png")); |
---|
2247 | | - objectTabbedPane.setToolTipTextAt(objectTabCount++, "Information"); |
---|
| 2260 | + objectTabbedPane.setToolTipTextAt(objectTabCount++, "Information (advanced)"); |
---|
2248 | 2261 | } |
---|
2249 | 2262 | |
---|
2250 | 2263 | /* |
---|
.. | .. |
---|
5526 | 5539 | //copy.Touch(); |
---|
5527 | 5540 | } |
---|
5528 | 5541 | |
---|
5529 | | - cNumberSlider versionSlider; |
---|
5530 | | - cNumberSlider versionField; |
---|
| 5542 | + cNumberSlider versionSlider; // Main |
---|
| 5543 | + cNumberSlider versionField; // selection (off) |
---|
5531 | 5544 | |
---|
5532 | 5545 | cNumberSlider scaleSlider; |
---|
5533 | 5546 | |
---|
.. | .. |
---|
5573 | 5586 | return; |
---|
5574 | 5587 | } |
---|
5575 | 5588 | |
---|
| 5589 | + if (e.getSource() == countField) |
---|
| 5590 | + { |
---|
| 5591 | + copy.count = countField.getInteger(); |
---|
| 5592 | + Globals.lighttouched = true; |
---|
| 5593 | + objEditor.refreshContents(); |
---|
| 5594 | + return; |
---|
| 5595 | + } |
---|
| 5596 | + |
---|
5576 | 5597 | if (e.getSource() == scaleSlider) |
---|
5577 | 5598 | { |
---|
5578 | 5599 | int scale = scaleSlider.getInteger(); |
---|