Changeset 6379
- Timestamp:
- Jun 12, 2016, 1:54:48 AM (8 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/vtkglyphviewer.tcl
r6377 r6379 3108 3108 $itk_component(field) value $_curFldLabel 3109 3109 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] 3112 3113 } else { 3113 3114 if { ![info exists _limits($_curFldName)] } { 3114 3115 SendCmd "dataset maprange all" 3115 3116 } 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 1747 1747 set bmax [expr $bmax - $bmin] 1748 1748 set bmin 0 1749 SendCmd [list dataset maprange explicit $ _limits($_curFldName)$_curFldName]1749 SendCmd [list dataset maprange explicit $vmin $vmax $_curFldName] 1750 1750 SendCmd "axis bounds z $bmin $bmax" 1751 1751 SendCmd "axis range z $_limits($_curFldName)" -
trunk/gui/scripts/vtkisosurfaceviewer.tcl
r6377 r6379 3136 3136 $itk_component(field) value $_curFldLabel 3137 3137 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] 3140 3142 if { $limits != $_currentLimits } { 3141 3143 set _currentLimits $limits … … 3146 3148 SendCmd "dataset maprange all" 3147 3149 } 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] 3150 3153 if { $limits != $_currentLimits } { 3151 3154 set _currentLimits $limits -
trunk/gui/scripts/vtkstreamlinesviewer.tcl
r6377 r6379 1352 1352 SendCmd "dataset maprange all" 1353 1353 } 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] 1355 1356 } 1356 1357 SendCmd [list streamlines colormode $_colorMode $_curFldName] -
trunk/gui/scripts/vtksurfaceviewer.tcl
r6377 r6379 1298 1298 SendCmd "dataset maprange all" 1299 1299 } 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] 1301 1302 } 1302 1303 #SendCmd [list contour2d colormode $_colorMode $_curFldName]
Note: See TracChangeset
for help on using the changeset viewer.