Changeset 5188 for trunk/gui/scripts/flowvisviewer.tcl
- Timestamp:
- Apr 2, 2015, 9:35:24 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/1.4 merged: 5187
- Property svn:mergeinfo changed
-
trunk/gui/scripts/flowvisviewer.tcl
r5184 r5188 732 732 # ---------------------------------------------------------------------- 733 733 itcl::body Rappture::FlowvisViewer::scale {args} { 734 array set style s{734 array set style { 735 735 -color BCGYR 736 736 -levels 6 … … 747 747 if { ![info exists _volcomponents($cname)] } { 748 748 lappend _componentsList $cname 749 array set style s[lindex [$dataobj components -style $cname] 0]750 set cmap [ColorsToColormap $style s(-color)]749 array set style [lindex [$dataobj components -style $cname] 0] 750 set cmap [ColorsToColormap $style(-color)] 751 751 set _cname2defaultcolormap($cname) $cmap 752 set _settings($cname-colormap) $style s(-color)752 set _settings($cname-colormap) $style(-color) 753 753 } 754 754 lappend _volcomponents($cname) $dataobj-$cname … … 1276 1276 foreach key [array names _serverObjs *-*] { 1277 1277 if {[string match $_first-* $key]} { 1278 array set style s{1278 array set style { 1279 1279 -cutplanes 1 1280 1280 } 1281 1281 foreach {dataobj comp} [split $key -] break 1282 array set style s[lindex [$dataobj components -style $comp] 0]1283 if {$what != "-cutplanes" || $style s(-cutplanes)} {1282 array set style [lindex [$dataobj components -style $comp] 0] 1283 if {$what != "-cutplanes" || $style(-cutplanes)} { 1284 1284 lappend rlist $_serverObjs($key) 1285 1285 } … … 1745 1745 # 1746 1746 itcl::body Rappture::FlowvisViewer::NameTransferFunc { dataobj cname } { 1747 array set style s{1747 array set style { 1748 1748 -color BCGYR 1749 1749 -levels 6 1750 1750 -opacity 0.5 1751 1751 } 1752 array set style s[lindex [$dataobj components -style $cname] 0]1753 set _settings($this-opacity) [expr $style s(-opacity) * 100]1752 array set style [lindex [$dataobj components -style $cname] 0] 1753 set _settings($this-opacity) [expr $style(-opacity) * 100] 1754 1754 set _obj2style($dataobj-$cname) $cname 1755 1755 lappend _style2objs($cname) $dataobj $cname … … 1767 1767 # 1768 1768 itcl::body Rappture::FlowvisViewer::ComputeTransferFunc { tf } { 1769 array set style s{1769 array set style { 1770 1770 -color BCGYR 1771 1771 -levels 6 … … 1777 1777 return 0 1778 1778 } 1779 array set style s[lindex [$dataobj components -style $comp] 0]1779 array set style [lindex [$dataobj components -style $comp] 0] 1780 1780 1781 1781 # We have to parse the style attributes for a volume using this … … 1794 1794 if { ![info exists _isomarkers($tf)] } { 1795 1795 # Have to defer creation of isomarkers until we have data limits 1796 if { [info exists style s(-markers)] &&1797 [llength $style s(-markers)] > 0 } {1798 ParseMarkersOption $tf $style s(-markers)1796 if { [info exists style(-markers)] && 1797 [llength $style(-markers)] > 0 } { 1798 ParseMarkersOption $tf $style(-markers) 1799 1799 } else { 1800 ParseLevelsOption $tf $style s(-levels)1801 } 1802 } 1803 if { [info exists style s(-nonuniformcolors)] } {1804 foreach { value color } $style s(-nonuniformcolors) {1800 ParseLevelsOption $tf $style(-levels) 1801 } 1802 } 1803 if { [info exists style(-nonuniformcolors)] } { 1804 foreach { value color } $style(-nonuniformcolors) { 1805 1805 append cmap "$value [Color2RGB $color] " 1806 1806 } 1807 1807 } else { 1808 set cmap [ColorsToColormap $style s(-color)]1808 set cmap [ColorsToColormap $style(-color)] 1809 1809 } 1810 1810 1811 1811 if { ![info exists _settings($this-opacity)] } { 1812 set _settings($this-opacity) [expr $style s(-opacity) * 100]1812 set _settings($this-opacity) [expr $style(-opacity) * 100] 1813 1813 } 1814 1814
Note: See TracChangeset
for help on using the changeset viewer.