Changeset 5288 for branches/1.4/gui/scripts
- Timestamp:
- Apr 21, 2015, 11:03:47 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.4/gui/scripts/nanovisviewer.tcl
r5283 r5288 1644 1644 #set bfg [option get $itk_component(hull) boldFont Font] 1645 1645 1646 label $inner.shading -text "Shading:" -font $fg 1646 label $inner.lighting_l \ 1647 -text "Lighting / Material Properties" \ 1648 -font "Arial 9 bold" 1647 1649 1648 1650 checkbutton $inner.light2side -text "Two-sided lighting" -font $fg \ … … 1657 1659 ::scale $inner.light -from 0 -to 100 -orient horizontal \ 1658 1660 -variable [itcl::scope _settings(-light)] \ 1659 - width 10\1660 - showvalue off -command [itcl::code $this AdjustSetting -light]1661 -showvalue off -command [itcl::code $this AdjustSetting -light] \ 1662 -troughcolor grey92 1661 1663 label $inner.bright -text "Surface" -font $fg 1662 1664 1663 1665 # Opacity 1664 label $inner. fog -text "Clear" -font $fg1665 ::scale $inner. transp-from 0 -to 100 -orient horizontal \1666 label $inner.opacity_l -text "Opacity" -font $fg 1667 ::scale $inner.opacity -from 0 -to 100 -orient horizontal \ 1666 1668 -variable [itcl::scope _widget(-volumeopacity)] \ 1667 -width 10 \ 1668 -showvalue off -command [itcl::code $this AdjustSetting -volumeopacity] 1669 label $inner.plastic -text "Opaque" -font $fg 1669 -showvalue off \ 1670 -command [itcl::code $this AdjustSetting -volumeopacity] \ 1671 -troughcolor grey92 1672 1673 label $inner.transferfunction_l \ 1674 -text "Transfer Function" -font "Arial 9 bold" 1670 1675 1671 1676 # Tooth thickness … … 1673 1678 ::scale $inner.thickness -from 0 -to 1000 -orient horizontal \ 1674 1679 -variable [itcl::scope _settings(-thickness)] \ 1675 - width 10\1676 - showvalue off -command [itcl::code $this AdjustSetting -thickness]1680 -showvalue off -command [itcl::code $this AdjustSetting -thickness] \ 1681 -troughcolor grey92 1677 1682 label $inner.thick -text "Thick" -font $fg 1678 1683 … … 1700 1705 0,0 $inner.volcomponents_l -anchor e -cspan 2 \ 1701 1706 0,2 $inner.volcomponents -cspan 3 -fill x \ 1702 1,0 $inner.shading -cspan 4 -anchor w -pady {10 2} \ 1703 2,0 $inner.light2side -cspan 4 -anchor w -pady 2 \ 1704 3,0 $inner.visibility -cspan 4 -anchor w -pady 2 \ 1705 4,0 $inner.dim -anchor e -pady 2 \ 1706 4,1 $inner.light -cspan 2 -pady 2 -fill x \ 1707 4,3 $inner.bright -anchor w -pady 2 \ 1708 5,0 $inner.fog -anchor e -pady 2 \ 1709 5,1 $inner.transp -cspan 2 -pady 2 -fill x \ 1710 5,3 $inner.plastic -anchor w -pady 2 \ 1711 6,0 $inner.thin -anchor e -pady 2 \ 1712 6,1 $inner.thickness -cspan 2 -pady 2 -fill x\ 1713 6,3 $inner.thick -anchor w -pady 2 1714 1715 blt::table configure $inner c0 c1 c3 r* -resize none 1716 blt::table configure $inner r7 -resize expand 1707 1,1 $inner.lighting_l -anchor w -cspan 4 \ 1708 2,1 $inner.dim -anchor e \ 1709 2,2 $inner.light -cspan 2 -fill x \ 1710 2,4 $inner.bright -anchor w \ 1711 3,1 $inner.light2side -cspan 3 -anchor w \ 1712 4,1 $inner.visibility -cspan 3 -anchor w \ 1713 5,1 $inner.transferfunction_l -cspan 4 -anchor w \ 1714 6,1 $inner.opacity_l -anchor e -pady 2 \ 1715 6,2 $inner.opacity -cspan 3 -fill x \ 1716 7,1 $inner.colormap_l -anchor e \ 1717 7,2 $inner.colormap -padx 2 -cspan 3 -fill x \ 1718 8,1 $inner.thin -anchor e \ 1719 8,2 $inner.thickness -cspan 2 -fill x \ 1720 8,4 $inner.thick -anchor w 1721 1722 blt::table configure $inner c* r* -resize none 1723 blt::table configure $inner r* -pady { 2 0 } 1724 blt::table configure $inner c2 c3 r9 -resize expand 1725 blt::table configure $inner c0 -width .1i 1717 1726 } 1718 1727 … … 2255 2264 } 2256 2265 array set style [lindex [$dataobj components -style $cname] 0] 2266 # Some tools erroneously set -opacity to 1 in style, so 2267 # override the requested opacity for now 2268 set style(-opacity) 0.5 2257 2269 set _settings($cname-volumeopacity) $style(-opacity) 2258 2270 set tag $dataobj-$cname
Note: See TracChangeset
for help on using the changeset viewer.