Changeset 5230 for branches/1.3
- Timestamp:
- Apr 14, 2015, 10:48:25 PM (10 years ago)
- Location:
- branches/1.3
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3
-
branches/1.3/gui/scripts/flowvisviewer.tcl
r5229 r5230 1866 1866 set first [lindex $isovalues 0] 1867 1867 set last [lindex $isovalues end] 1868 set wmap ""1868 set amap "" 1869 1869 if { $first == "" || $first != 0.0 } { 1870 lappend wmap 0.0 0.01870 lappend amap 0.0 0.0 1871 1871 } 1872 1872 foreach x $isovalues { … … 1896 1896 } 1897 1897 # add spikes in the middle 1898 lappend wmap $x1 0.01899 lappend wmap $x2 $max1900 lappend wmap $x3 $max1901 lappend wmap $x4 0.01898 lappend amap $x1 0.0 1899 lappend amap $x2 $max 1900 lappend amap $x3 $max 1901 lappend amap $x4 0.0 1902 1902 } 1903 1903 if { $last == "" || $last != 1.0 } { 1904 lappend wmap 1.0 0.01905 } 1906 SendCmd "transfunc define $tf { $cmap } { $ wmap }"1904 lappend amap 1.0 0.0 1905 } 1906 SendCmd "transfunc define $tf { $cmap } { $amap }" 1907 1907 return [SendCmd "$dataobj-$comp configure -transferfunction $tf"] 1908 1908 } -
branches/1.3/gui/scripts/nanovisviewer.tcl
r5229 r5230 1409 1409 set first [lindex $isovalues 0] 1410 1410 set last [lindex $isovalues end] 1411 set wmap ""1411 set amap "" 1412 1412 if { $first == "" || $first != 0.0 } { 1413 lappend wmap 0.0 0.01413 lappend amap 0.0 0.0 1414 1414 } 1415 1415 foreach x $isovalues { … … 1439 1439 } 1440 1440 # add spikes in the middle 1441 lappend wmap $x1 0.01442 lappend wmap $x2 $max1443 lappend wmap $x3 $max1444 lappend wmap $x4 0.01441 lappend amap $x1 0.0 1442 lappend amap $x2 $max 1443 lappend amap $x3 $max 1444 lappend amap $x4 0.0 1445 1445 } 1446 1446 if { $last == "" || $last != 1.0 } { 1447 lappend wmap 1.0 0.01448 } 1449 SendCmd "transfunc define $tf { $cmap } { $ wmap }"1447 lappend amap 1.0 0.0 1448 } 1449 SendCmd "transfunc define $tf { $cmap } { $amap }" 1450 1450 } 1451 1451 -
branches/1.3/gui/scripts/vtkglyphviewer.tcl
r5219 r5230 2547 2547 set cmap "0.0 0.0 0.0 0.0 1.0 1.0 1.0 1.0" 2548 2548 } 2549 set wmap "0.0 1.0 1.0 1.0"2550 SendCmd "colormap add $name { $cmap } { $ wmap }"2549 set amap "0.0 1.0 1.0 1.0" 2550 SendCmd "colormap add $name { $cmap } { $amap }" 2551 2551 } 2552 2552 -
branches/1.3/gui/scripts/vtkheightmapviewer.tcl
r5219 r5230 1807 1807 set cmap "0.0 0.0 0.0 0.0 1.0 1.0 1.0 1.0" 1808 1808 } 1809 set wmap "0.0 1.0 1.0 1.0"1810 SendCmd "colormap add $name { $cmap } { $ wmap }"1809 set amap "0.0 1.0 1.0 1.0" 1810 SendCmd "colormap add $name { $cmap } { $amap }" 1811 1811 } 1812 1812 -
branches/1.3/gui/scripts/vtkimageviewer.tcl
r5219 r5230 1594 1594 set cmap "0.0 0.0 0.0 0.0 1.0 1.0 1.0 1.0" 1595 1595 } 1596 set wmap "0.0 1.0 1.0 1.0"1597 SendCmd "colormap add $name { $cmap } { $ wmap }"1596 set amap "0.0 1.0 1.0 1.0" 1597 SendCmd "colormap add $name { $cmap } { $amap }" 1598 1598 } 1599 1599 -
branches/1.3/gui/scripts/vtkisosurfaceviewer.tcl
r5219 r5230 3088 3088 set cmap "0.0 0.0 0.0 0.0 1.0 1.0 1.0 1.0" 3089 3089 } 3090 set wmap "0.0 1.0 1.0 1.0"3091 SendCmd "colormap add $name { $cmap } { $ wmap }"3090 set amap "0.0 1.0 1.0 1.0" 3091 SendCmd "colormap add $name { $cmap } { $amap }" 3092 3092 } 3093 3093 -
branches/1.3/gui/scripts/vtkstreamlinesviewer.tcl
r5219 r5230 1595 1595 set max $_settings(-volumeopacity) 1596 1596 1597 set wmap "0.0 1.0 1.0 1.0"1598 SendCmd "colormap add $name { $cmap } { $ wmap }"1597 set amap "0.0 1.0 1.0 1.0" 1598 SendCmd "colormap add $name { $cmap } { $amap }" 1599 1599 } 1600 1600 -
branches/1.3/gui/scripts/vtksurfaceviewer.tcl
r5219 r5230 2283 2283 set cmap "0.0 0.0 0.0 0.0 1.0 1.0 1.0 1.0" 2284 2284 } 2285 set wmap "0.0 1.0 1.0 1.0"2286 SendCmd "colormap add $name { $cmap } { $ wmap }"2285 set amap "0.0 1.0 1.0 1.0" 2286 SendCmd "colormap add $name { $cmap } { $amap }" 2287 2287 } 2288 2288 -
branches/1.3/gui/scripts/vtkviewer.tcl
r5219 r5230 1878 1878 set max $_settings(polydata-opacity) 1879 1879 1880 set wmap "0.0 1.0 1.0 1.0"1881 SendCmd "colormap add $name { $cmap } { $ wmap }"1880 set amap "0.0 1.0 1.0 1.0" 1881 SendCmd "colormap add $name { $cmap } { $amap }" 1882 1882 } 1883 1883
Note: See TracChangeset
for help on using the changeset viewer.