Ignore:
Timestamp:
Apr 2, 2015, 9:35:24 AM (10 years ago)
Author:
ldelgass
Message:

merge r5187 from 1.4 branch

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/gui/scripts/flowvisviewer.tcl

    r5184 r5188  
    732732# ----------------------------------------------------------------------
    733733itcl::body Rappture::FlowvisViewer::scale {args} {
    734     array set styles {
     734    array set style {
    735735        -color BCGYR
    736736        -levels 6
     
    747747            if { ![info exists _volcomponents($cname)] } {
    748748                lappend _componentsList $cname
    749                 array set styles [lindex [$dataobj components -style $cname] 0]
    750                 set cmap [ColorsToColormap $styles(-color)]
     749                array set style [lindex [$dataobj components -style $cname] 0]
     750                set cmap [ColorsToColormap $style(-color)]
    751751                set _cname2defaultcolormap($cname) $cmap
    752                 set _settings($cname-colormap) $styles(-color)
     752                set _settings($cname-colormap) $style(-color)
    753753            }
    754754            lappend _volcomponents($cname) $dataobj-$cname
     
    12761276    foreach key [array names _serverObjs *-*] {
    12771277        if {[string match $_first-* $key]} {
    1278             array set styles {
     1278            array set style {
    12791279                -cutplanes 1
    12801280            }
    12811281            foreach {dataobj comp} [split $key -] break
    1282             array set styles [lindex [$dataobj components -style $comp] 0]
    1283             if {$what != "-cutplanes" || $styles(-cutplanes)} {
     1282            array set style [lindex [$dataobj components -style $comp] 0]
     1283            if {$what != "-cutplanes" || $style(-cutplanes)} {
    12841284                lappend rlist $_serverObjs($key)
    12851285            }
     
    17451745#
    17461746itcl::body Rappture::FlowvisViewer::NameTransferFunc { dataobj cname } {
    1747     array set styles {
     1747    array set style {
    17481748        -color BCGYR
    17491749        -levels 6
    17501750        -opacity 0.5
    17511751    }
    1752     array set styles [lindex [$dataobj components -style $cname] 0]
    1753     set _settings($this-opacity) [expr $styles(-opacity) * 100]
     1752    array set style [lindex [$dataobj components -style $cname] 0]
     1753    set _settings($this-opacity) [expr $style(-opacity) * 100]
    17541754    set _obj2style($dataobj-$cname) $cname
    17551755    lappend _style2objs($cname) $dataobj $cname
     
    17671767#
    17681768itcl::body Rappture::FlowvisViewer::ComputeTransferFunc { tf } {
    1769     array set styles {
     1769    array set style {
    17701770        -color BCGYR
    17711771        -levels 6
     
    17771777        return 0
    17781778    }
    1779     array set styles [lindex [$dataobj components -style $comp] 0]
     1779    array set style [lindex [$dataobj components -style $comp] 0]
    17801780
    17811781    # We have to parse the style attributes for a volume using this
     
    17941794    if { ![info exists _isomarkers($tf)] } {
    17951795        # Have to defer creation of isomarkers until we have data limits
    1796         if { [info exists styles(-markers)] &&
    1797              [llength $styles(-markers)] > 0  } {
    1798             ParseMarkersOption $tf $styles(-markers)
     1796        if { [info exists style(-markers)] &&
     1797             [llength $style(-markers)] > 0  } {
     1798            ParseMarkersOption $tf $style(-markers)
    17991799        } else {
    1800             ParseLevelsOption $tf $styles(-levels)
    1801         }
    1802     }
    1803     if { [info exists styles(-nonuniformcolors)] } {
    1804         foreach { value color } $styles(-nonuniformcolors) {
     1800            ParseLevelsOption $tf $style(-levels)
     1801        }
     1802    }
     1803    if { [info exists style(-nonuniformcolors)] } {
     1804        foreach { value color } $style(-nonuniformcolors) {
    18051805            append cmap "$value [Color2RGB $color] "
    18061806        }
    18071807    } else {
    1808         set cmap [ColorsToColormap $styles(-color)]
     1808        set cmap [ColorsToColormap $style(-color)]
    18091809    }
    18101810
    18111811    if { ![info exists _settings($this-opacity)] } {
    1812         set _settings($this-opacity) [expr $styles(-opacity) * 100]
     1812        set _settings($this-opacity) [expr $style(-opacity) * 100]
    18131813    }
    18141814
Note: See TracChangeset for help on using the changeset viewer.