Changeset 4557 for branches/1.3/gui
- Timestamp:
- Jul 17, 2014, 9:52:43 PM (10 years ago)
- Location:
- branches/1.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3
-
branches/1.3/gui/scripts/flowvisviewer.tcl
r4556 r4557 716 716 # ---------------------------------------------------------------------- 717 717 itcl::body Rappture::FlowvisViewer::scale {args} { 718 array set style {718 array set styles { 719 719 -color BCGYR 720 720 -levels 6 721 -markers "" 721 722 -opacity 1.0 722 -markers ""723 723 } 724 724 array unset _limits … … 731 731 if { ![info exists _volcomponents($cname)] } { 732 732 lappend _componentsList $cname 733 array set style [lindex [$dataobj components -style $cname] 0]734 set cmap [ColorsToColormap $style (-color)]733 array set styles [lindex [$dataobj components -style $cname] 0] 734 set cmap [ColorsToColormap $styles(-color)] 735 735 set _cname2defaultcolormap($cname) $cmap 736 set _settings($cname-colormap) $style (-color)736 set _settings($cname-colormap) $styles(-color) 737 737 } 738 738 lappend _volcomponents($cname) $dataobj-$cname … … 1255 1255 foreach key [array names _serverObjs *-*] { 1256 1256 if {[string match $_first-* $key]} { 1257 array set style {1257 array set styles { 1258 1258 -cutplanes 1 1259 1259 } 1260 1260 foreach {dataobj comp} [split $key -] break 1261 array set style [lindex [$dataobj components -style $comp] 0]1262 if {$what != "-cutplanes" || $style (-cutplanes)} {1261 array set styles [lindex [$dataobj components -style $comp] 0] 1262 if {$what != "-cutplanes" || $styles(-cutplanes)} { 1263 1263 lappend rlist $_serverObjs($key) 1264 1264 } … … 1703 1703 # 1704 1704 itcl::body Rappture::FlowvisViewer::NameTransferFunc { dataobj cname } { 1705 array set style {1705 array set styles { 1706 1706 -color BCGYR 1707 1707 -levels 6 … … 1710 1710 -transp 50 1711 1711 } 1712 array set style [lindex [$dataobj components -style $cname] 0]1713 set _settings($this-light) $style (-light)1714 set _settings($this-transp) $style (-transp)1715 set _settings($this-opacity) [expr $style (-opacity) * 100]1712 array set styles [lindex [$dataobj components -style $cname] 0] 1713 set _settings($this-light) $styles(-light) 1714 set _settings($this-transp) $styles(-transp) 1715 set _settings($this-opacity) [expr $styles(-opacity) * 100] 1716 1716 set _obj2style($dataobj-$cname) $cname 1717 1717 lappend _style2objs($cname) $dataobj $cname … … 1729 1729 # 1730 1730 itcl::body Rappture::FlowvisViewer::ComputeTransferFunc { tf } { 1731 array set style {1731 array set styles { 1732 1732 -color BCGYR 1733 1733 -levels 6 … … 1741 1741 return 0 1742 1742 } 1743 array set style [lindex [$dataobj components -style $comp] 0]1743 array set styles [lindex [$dataobj components -style $comp] 0] 1744 1744 1745 1745 … … 1759 1759 if { ![info exists _isomarkers($tf)] } { 1760 1760 # Have to defer creation of isomarkers until we have data limits 1761 if { [info exists style (-markers)] &&1762 [llength $style (-markers)] > 0 } {1763 ParseMarkersOption $tf $style (-markers)1761 if { [info exists styles(-markers)] && 1762 [llength $styles(-markers)] > 0 } { 1763 ParseMarkersOption $tf $styles(-markers) 1764 1764 } else { 1765 ParseLevelsOption $tf $style (-levels)1766 } 1767 } 1768 if { [info exists style (-nonuniformcolors)] } {1769 foreach { value color } $style (-nonuniformcolors) {1765 ParseLevelsOption $tf $styles(-levels) 1766 } 1767 } 1768 if { [info exists styles(-nonuniformcolors)] } { 1769 foreach { value color } $styles(-nonuniformcolors) { 1770 1770 append cmap "$value [Color2RGB $color] " 1771 1771 } 1772 1772 } else { 1773 set cmap [ColorsToColormap $style (-color)]1773 set cmap [ColorsToColormap $styles(-color)] 1774 1774 } 1775 1775 set tag $this-$tf 1776 1776 if { ![info exists _settings($tag-opacity)] } { 1777 set _settings($tag-opacity) $style (-opacity)1777 set _settings($tag-opacity) $styles(-opacity) 1778 1778 } 1779 1779 set max 1.0 ;#$_settings($tag-opacity)
Note: See TracChangeset
for help on using the changeset viewer.