Changeset 6379


Ignore:
Timestamp:
Jun 12, 2016, 1:54:48 AM (8 years ago)
Author:
ldelgass
Message:

Fix limits in protocol

Location:
trunk/gui/scripts
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/vtkglyphviewer.tcl

    r6377 r6379  
    31083108    $itk_component(field) value $_curFldLabel
    31093109    if { $_settings(-customrange) } {
    3110         set limits [list [$itk_component(min) value] [$itk_component(max) value]]
    3111         SendCmd [list dataset maprange explicit $limits $_curFldName point_data $_curFldComp]
     3110        set vmin [$itk_component(min) value]
     3111        set vmax [$itk_component(max) value]
     3112        SendCmd [list dataset maprange explicit $vmin $vmax $_curFldName point_data $_curFldComp]
    31123113    } else {
    31133114        if { ![info exists _limits($_curFldName)] } {
    31143115            SendCmd "dataset maprange all"
    31153116        } else {
    3116             set limits $_limits($_curFldName)
    3117             SendCmd [list dataset maprange explicit $limits $_curFldName point_data $_curFldComp]
    3118         }
    3119     }
    3120 }
     3117            foreach { vmin vmax } $_limits($_curFldName) break
     3118            SendCmd [list dataset maprange explicit $vmin $vmax $_curFldName point_data $_curFldComp]
     3119        }
     3120    }
     3121}
  • trunk/gui/scripts/vtkheightmapviewer.tcl

    r6377 r6379  
    17471747    set bmax [expr $bmax - $bmin]
    17481748    set bmin 0
    1749     SendCmd [list dataset maprange explicit $_limits($_curFldName) $_curFldName]
     1749    SendCmd [list dataset maprange explicit $vmin $vmax $_curFldName]
    17501750    SendCmd "axis bounds z $bmin $bmax"
    17511751    SendCmd "axis range z $_limits($_curFldName)"
  • trunk/gui/scripts/vtkisosurfaceviewer.tcl

    r6377 r6379  
    31363136    $itk_component(field) value $_curFldLabel
    31373137    if { $_settings(-customrange) } {
    3138         set limits [list [$itk_component(min) value] [$itk_component(max) value]]
    3139         SendCmd [list dataset maprange explicit $limits $_curFldName]
     3138        set vmin [$itk_component(min) value]
     3139        set vmax [$itk_component(max) value]
     3140        SendCmd [list dataset maprange explicit $vmin $vmax $_curFldName]
     3141        set limits [list $vmin $vmax]
    31403142        if { $limits != $_currentLimits } {
    31413143            set _currentLimits $limits
     
    31463148            SendCmd "dataset maprange all"
    31473149        } else {
    3148             set limits $_limits($_curFldName)
    3149             SendCmd [list dataset maprange explicit $limits $_curFldName]
     3150            foreach { vmin vmax } $_limits($_curFldName) break
     3151            SendCmd [list dataset maprange explicit $vmin $vmax $_curFldName]
     3152            set limits [list $vmin $vmax]
    31503153            if { $limits != $_currentLimits } {
    31513154                set _currentLimits $limits
  • trunk/gui/scripts/vtkstreamlinesviewer.tcl

    r6377 r6379  
    13521352                SendCmd "dataset maprange all"
    13531353            } else {
    1354                 SendCmd [list dataset maprange explicit $_limits($_curFldName) $_curFldName]
     1354                foreach { vmin vmax } $_limits($_curFldName) break
     1355                SendCmd [list dataset maprange explicit $vmin $vmax $_curFldName]
    13551356            }
    13561357            SendCmd [list streamlines colormode $_colorMode $_curFldName]
  • trunk/gui/scripts/vtksurfaceviewer.tcl

    r6377 r6379  
    12981298                SendCmd "dataset maprange all"
    12991299            } else {
    1300                 SendCmd [list dataset maprange explicit $_limits($_curFldName) $_curFldName]
     1300                foreach { vmin vmax } $_limits($_curFldName) break
     1301                SendCmd [list dataset maprange explicit $vmin $vmax $_curFldName]
    13011302            }
    13021303            #SendCmd [list contour2d colormode $_colorMode $_curFldName]
Note: See TracChangeset for help on using the changeset viewer.