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/nanovisviewer.tcl

    r5184 r5188  
    560560# ----------------------------------------------------------------------
    561561itcl::body Rappture::NanovisViewer::scale {args} {
    562     array set styles {
     562    array set style {
    563563        -color    BCGYR
    564564        -levels   6
     
    574574            if { ![info exists _volcomponents($cname)] } {
    575575                lappend _componentsList $cname
    576                 array set styles [lindex [$dataobj components -style $cname] 0]
    577                 set cmap [ColorsToColormap $styles(-color)]
     576                array set style [lindex [$dataobj components -style $cname] 0]
     577                set cmap [ColorsToColormap $style(-color)]
    578578                set _cname2defaultcolormap($cname) $cmap
    579                 set _settings($cname-colormap) $styles(-color)
     579                set _settings($cname-colormap) $style(-color)
    580580            }
    581581            lappend _volcomponents($cname) $dataobj-$cname
     
    10381038        set tag $_first-$cname
    10391039        if { [info exists _serverDatasets($tag)] && $_serverDatasets($tag) } {
    1040             array set styles {
     1040            array set style {
    10411041                -cutplanes 1
    10421042            }
    1043             array set styles [lindex [$_first components -style $cname] 0]
    1044             if { $what != "-cutplanes" || $styles(-cutplanes) } {
     1043            array set style [lindex [$_first components -style $cname] 0]
     1044            if { $what != "-cutplanes" || $style(-cutplanes) } {
    10451045                lappend rlist $tag
    10461046            }
     
    14131413#
    14141414itcl::body Rappture::NanovisViewer::NameTransferFunction { dataobj cname } {
    1415     array set styles {
     1415    array set style {
    14161416        -color BCGYR
    14171417        -levels 6
     
    14191419    }
    14201420    set tag $dataobj-$cname
    1421     array set styles [lindex [$dataobj components -style $cname] 0]
     1421    array set style [lindex [$dataobj components -style $cname] 0]
    14221422    if { ![info exists _cname2transferFunction($cname)] } {
    14231423        # Get the colormap right now, since it doesn't change with marker
    14241424        # changes.
    1425         set cmap [ColorsToColormap $styles(-color)]
     1425        set cmap [ColorsToColormap $style(-color)]
    14261426        set amap [list 0.0 0.0 1.0 1.0]
    14271427        set _cname2transferFunction($cname) [list $cmap $amap]
     
    14591459    # reference.
    14601460    if { ![info exists _parsedFunction($cname)] } {
    1461         array set styles {
     1461        array set style {
    14621462            -color BCGYR
    14631463            -levels 6
     
    14671467        foreach tag [GetDatasetsWithComponent $cname] {
    14681468            foreach {dataobj cname} [split [lindex $tag 0] -] break
    1469             array set styles [lindex [$dataobj components -style $cname] 0]
     1469            array set style [lindex [$dataobj components -style $cname] 0]
    14701470        }
    14711471        eval $_transferFunctionEditors($cname) limits $_limits($cname)
    14721472        # Have to defer creation of isomarkers until we have data limits
    1473         if { [info exists styles(-markers)] &&
    1474              [llength $styles(-markers)] > 0 } {
    1475             ParseMarkersOption $cname $styles(-markers)
     1473        if { [info exists style(-markers)] &&
     1474             [llength $style(-markers)] > 0 } {
     1475            ParseMarkersOption $cname $style(-markers)
    14761476        } else {
    1477             ParseLevelsOption $cname $styles(-levels)
     1477            ParseLevelsOption $cname $style(-levels)
    14781478        }
    14791479
Note: See TracChangeset for help on using the changeset viewer.