Changeset 3454
- Timestamp:
- Mar 5, 2013 3:22:29 PM (11 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/barchartresult.tcl
r3330 r3454 1271 1271 $inner.label delete 0 end 1272 1272 $inner.label insert end $label 1273 bind $inner.label <KeyPress-Return> \ 1273 bind $inner.label <Return> \ 1274 [itcl::code $this _axis changed $axis label] 1275 bind $inner.label <KP_Enter> \ 1274 1276 [itcl::code $this _axis changed $axis label] 1275 1277 bind $inner.label <FocusOut> \ … … 1280 1282 $inner.min delete 0 end 1281 1283 $inner.min insert end $min 1282 bind $inner.min <KeyPress-Return> \ 1284 bind $inner.min <Return> \ 1285 [itcl::code $this _axis changed $axis min] 1286 bind $inner.min <KP_Enter> \ 1283 1287 [itcl::code $this _axis changed $axis min] 1284 1288 bind $inner.min <FocusOut> \ … … 1287 1291 $inner.max delete 0 end 1288 1292 $inner.max insert end $max 1289 bind $inner.max <KeyPress-Return> \ 1293 bind $inner.max <Return> \ 1294 [itcl::code $this _axis changed $axis max] 1295 bind $inner.max <KP_Enter> \ 1290 1296 [itcl::code $this _axis changed $axis max] 1291 1297 bind $inner.max <FocusOut> \ -
trunk/gui/scripts/field.tcl
r3445 r3454 806 806 set _comp2dims($cname) "3D" 807 807 set _comp2dx($cname) [$_fldObj get -decode no $cname.dx] 808 if 0{808 if 1 { 809 809 set data [$_fldObj get -decode yes $cname.dx] 810 810 set file "/tmp/junk.dx" -
trunk/gui/scripts/flowspeed.tcl
r3330 r3454 72 72 bind $itk_component(entry) <KeyPress> \ 73 73 [itcl::code $this _validate %A] 74 bind $itk_component(entry) <KeyPress-Return> \ 74 bind $itk_component(entry) <Return> \ 75 "$this value \[$itk_component(entry) get\]" 76 bind $itk_component(entry) <KP_Enter> \ 75 77 "$this value \[$itk_component(entry) get\]" 76 78 bind $itk_component(entry) <KeyPress-Tab> \ -
trunk/gui/scripts/flowvisviewer.tcl
r3441 r3454 217 217 $_parser alias legend [itcl::code $this ReceiveLegend] 218 218 $_parser alias data [itcl::code $this ReceiveData] 219 $_parser alias viserror [itcl::code $this ReceiveError]220 219 221 220 # Initialize the view to some default parameters. … … 444 443 } 445 444 bind $itk_component(duration) <Return> [itcl::code $this flow duration] 445 bind $itk_component(duration) <KP_Enter> [itcl::code $this flow duration] 446 446 bind $itk_component(duration) <Tab> [itcl::code $this flow duration] 447 447 Rappture::Tooltip::for $itk_component(duration) \ -
trunk/gui/scripts/histogramresult.tcl
r3330 r3454 1250 1250 $inner.label delete 0 end 1251 1251 $inner.label insert end $label 1252 bind $inner.label <KeyPress-Return> \ 1252 bind $inner.label <Return> \ 1253 [itcl::code $this Axis changed $axis label] 1254 bind $inner.label <KP_Enter> \ 1253 1255 [itcl::code $this Axis changed $axis label] 1254 1256 bind $inner.label <FocusOut> \ … … 1259 1261 $inner.min delete 0 end 1260 1262 $inner.min insert end $min 1261 bind $inner.min <KeyPress-Return> \ 1263 bind $inner.min <Return> \ 1264 [itcl::code $this Axis changed $axis min] 1265 bind $inner.min <KP_Enter> \ 1262 1266 [itcl::code $this Axis changed $axis min] 1263 1267 bind $inner.min <FocusOut> \ … … 1266 1270 $inner.max delete 0 end 1267 1271 $inner.max insert end $max 1268 bind $inner.max <KeyPress-Return> \ 1272 bind $inner.max <Return> \ 1273 [itcl::code $this Axis changed $axis max] 1274 bind $inner.max <KP_Enter> \ 1269 1275 [itcl::code $this Axis changed $axis max] 1270 1276 bind $inner.max <FocusOut> \ -
trunk/gui/scripts/molvisviewer.tcl
r3441 r3454 195 195 # the visualization server. 196 196 $_parser alias image [itcl::code $this ReceiveImage] 197 $_parser alias viserror [itcl::code $this ReceiveError]198 197 199 198 set _rocker(dir) 1 … … 1772 1771 blt::table configure $inner r0 -pady 4 1773 1772 blt::table configure $inner r2 -pady 4 1774 bind $inner.cancel <KeyPress-Return> [list $inner.cancel invoke] 1773 bind $inner.cancel <Return> [list $inner.cancel invoke] 1774 bind $inner.cancel <KP_Enter> [list $inner.cancel invoke] 1775 1775 } else { 1776 1776 set inner [$popup component inner] -
trunk/gui/scripts/nanovisviewer.tcl
r3441 r3454 193 193 $_parser alias legend [itcl::code $this ReceiveLegend] 194 194 $_parser alias data [itcl::code $this ReceiveData] 195 $_parser alias viserror [itcl::code $this ReceiveError]196 195 197 196 # Initialize the view to some default parameters. … … 1964 1963 entry $inner.${tag} -font "Arial 9" -bg white \ 1965 1964 -textvariable [itcl::scope _settings($this-$tag)] 1966 bind $inner.${tag} <KeyPress-Return> \ 1965 bind $inner.${tag} <Return> \ 1966 [itcl::code $this camera set ${tag}] 1967 bind $inner.${tag} <KP_Enter> \ 1967 1968 [itcl::code $this camera set ${tag}] 1968 1969 blt::table $inner \ -
trunk/gui/scripts/numberresult.tcl
r3330 r3454 1242 1242 $inner.label delete 0 end 1243 1243 $inner.label insert end $label 1244 bind $inner.label <KeyPress-Return> \ 1244 bind $inner.label <Return> \ 1245 [itcl::code $this Axis changed $axis label] 1246 bind $inner.label <KP_Enter> \ 1245 1247 [itcl::code $this Axis changed $axis label] 1246 1248 bind $inner.label <FocusOut> \ … … 1251 1253 $inner.min delete 0 end 1252 1254 $inner.min insert end $min 1253 bind $inner.min <KeyPress-Return> \ 1255 bind $inner.min <Return> \ 1256 [itcl::code $this Axis changed $axis min] 1257 bind $inner.min <KP_Enter> \ 1254 1258 [itcl::code $this Axis changed $axis min] 1255 1259 bind $inner.min <FocusOut> \ … … 1258 1262 $inner.max delete 0 end 1259 1263 $inner.max insert end $max 1260 bind $inner.max <KeyPress-Return> \ 1264 bind $inner.max <Return> \ 1265 [itcl::code $this Axis changed $axis max] 1266 bind $inner.max <KP_Enter> \ 1261 1267 [itcl::code $this Axis changed $axis max] 1262 1268 bind $inner.max <FocusOut> \ -
trunk/gui/scripts/periodicelement.tcl
r3330 r3454 96 96 pack $itk_component(entry) -side left -expand yes -fill both 97 97 98 bind $itk_component(entry) < KeyPress-Return> \98 bind $itk_component(entry) <Return> \ 99 99 [itcl::code $this _entry apply] 100 bind $itk_component(entry) <KeyPress-Tab> \ 100 bind $itk_component(entry) <KP_Enter> \ 101 [itcl::code $this _entry apply] 102 bind $itk_component(entry) <Tab> \ 101 103 [itcl::code $this _entry apply] 102 104 bind $itk_component(entry) <ButtonPress> \ -
trunk/gui/scripts/periodictable.tcl
r3330 r3454 334 334 # add bindings so the table can react to selections 335 335 bind RappturePeriodicTable-$this <ButtonRelease-1> [itcl::code $this _react] 336 bind RappturePeriodicTable-$this <KeyPress-Return> [itcl::code $this _react] 337 bind RappturePeriodicTable-$this <KeyPress-space> [itcl::code $this _react] 338 bind RappturePeriodicTable-$this <KeyPress-Escape> [itcl::code $this unpost] 336 bind RappturePeriodicTable-$this <Return> [itcl::code $this _react] 337 bind RappturePeriodicTable-$this <KP_Enter> [itcl::code $this _react] 338 bind RappturePeriodicTable-$this <space> [itcl::code $this _react] 339 bind RappturePeriodicTable-$this <Escape> [itcl::code $this unpost] 339 340 340 341 set btags [bindtags $itk_component(table)] -
trunk/gui/scripts/postern.tcl
r3330 r3454 108 108 109 109 bind $inner.area.text <KeyPress-Return> \ 110 [itcl::code $this command execute] 111 bind $inner.area.text <KP_Enter> \ 110 112 [itcl::code $this command execute] 111 113 -
trunk/gui/scripts/spinint.tcl
r3330 r3454 71 71 bind $itk_component(entry) <KeyPress> \ 72 72 [itcl::code $this _validate %A] 73 bind $itk_component(entry) <KeyPress-Return> \ 73 bind $itk_component(entry) <Return> \ 74 "$this value \[$itk_component(entry) get\]" 75 bind $itk_component(entry) <KP_Enter> \ 74 76 "$this value \[$itk_component(entry) get\]" 75 77 -
trunk/gui/scripts/visviewer.tcl
r3446 r3454 54 54 protected variable _debugConsole 0 55 55 protected variable _reportClientInfo 1 56 protected variable _ showWaitDialog056 protected variable _waitTimeout 0 57 57 58 58 constructor { servers args } { … … 68 68 private method SendHelper {} 69 69 private method SendHelper.old {} 70 private method SplashScreen{ state }70 private method WaitDialog { state } 71 71 72 72 protected method ToggleConsole {} … … 77 77 private method SendDebugCommand {} 78 78 79 protected method EnableWaitDialog { bool }80 protected method StartBufferingCommands {}81 protected method StopBufferingCommands {}82 79 protected method CheckConnection {} 83 80 protected method Color2RGB { color } … … 85 82 protected method Connect { servers } 86 83 protected method Disconnect {} 84 protected method EnableWaitDialog { bool } 87 85 protected method Euler2XYZ { theta phi psi } 88 86 protected method Flush {} 87 protected method HandleError { args } 88 protected method HandleOk { args } 89 89 protected method IsConnected {} 90 90 protected method ReceiveBytes { nbytes } 91 91 protected method ReceiveEcho { channel {data ""} } 92 protected method ReceiveError { args }93 92 protected method SendBytes { bytes } 94 protected method SendEcho { channel {data ""} }95 protected method StartWaiting {}96 protected method StopWaiting {}97 93 protected method SendCmd {string} 98 94 protected method SendCmdNoWait {string} 95 protected method SendEcho { channel {data ""} } 96 protected method StartBufferingCommands {} 97 protected method StartWaiting {} 98 protected method StopBufferingCommands {} 99 protected method StopWaiting {} 99 100 100 101 private method Waiting { option widget } … … 166 167 $_parser hide $cmd 167 168 } 169 # Add default handlers for "ok" acknowledgement and server errors. 170 $_parser alias ok [itcl::code $this HandleOk] 171 $_parser alias viserror [itcl::code $this HandleError] 172 168 173 # 169 174 # Set up the widgets in the main body … … 331 336 # CheckConection -- 332 337 # 333 # This routine is called whenever we're about to send/rec ieve data on338 # This routine is called whenever we're about to send/receive data on 334 339 # the socket connection to the visualization server. If we're connected, 335 340 # then reset the timeout event. Otherwise try to reconnect to the … … 463 468 464 469 itcl::body Rappture::VisViewer::StartWaiting {} { 465 if { $_ showWaitDialog} {470 if { $_waitTimeout > 0 } { 466 471 after cancel $_afterId 467 set _afterId [after 2000 [itcl::code $this SplashScreenon]]472 set _afterId [after $_waitTimeout [itcl::code $this WaitDialog on]] 468 473 } 469 474 } 470 475 471 476 itcl::body Rappture::VisViewer::StopWaiting {} { 472 if { $_ showWaitDialog} {473 SplashScreenoff474 } 475 } 476 477 itcl::body Rappture::VisViewer::EnableWaitDialog { bool} {478 set _ showWaitDialog $bool477 if { $_waitTimeout > 0 } { 478 WaitDialog off 479 } 480 } 481 482 itcl::body Rappture::VisViewer::EnableWaitDialog { value } { 483 set _waitTimeout $value 479 484 } 480 485 … … 614 619 } 615 620 616 itcl::body Rappture::VisViewer:: SplashScreen{ state } {621 itcl::body Rappture::VisViewer::WaitDialog { state } { 617 622 after cancel $_afterId 618 623 set _afterId -1 … … 624 629 $inner configure -relief raised -bd 2 625 630 label $inner.text1 -text "Rendering, please wait." \ 626 -font "Arial 10" 631 -font "Arial 10" 627 632 label $inner.icon 628 633 pack $inner -expand yes -anchor c … … 694 699 } 695 700 pack $f.send.e -side left -expand yes -fill x 696 bind $f.send.e <KeyPress-Return> [itcl::code $this SendDebugCommand] 701 bind $f.send.e <Return> [itcl::code $this SendDebugCommand] 702 bind $f.send.e <KP_Enter> [itcl::code $this SendDebugCommand] 697 703 698 704 scrollbar $f.sb -orient vertical -command "$f.comm yview" … … 793 799 } 794 800 795 796 # 797 # ReceiveError -bytes <size> -type <type> -token <token> 798 # 799 itcl::body Rappture::VisViewer::ReceiveError { args } { 801 # 802 # HandleOk -- 803 # 804 # This handles the "ok" response from the server that acknowledges 805 # the reception of a server command, but does not produce and image. 806 # It may pass an argument such as "-token 9" that could be used to 807 # determine how many commands have been processed by the server. 808 # 809 itcl::body Rappture::VisViewer::HandleOk { args } { 810 if { $_waitTimeout > 0 } { 811 StopWaiting 812 } 813 } 814 815 # 816 # HandleError -- 817 # 818 # This handles the "viserror" response from the server that reports 819 # that a client-initiated error has occurred on the server. 820 # 821 itcl::body Rappture::VisViewer::HandleError { args } { 800 822 array set info { 801 823 -token "???" -
trunk/gui/scripts/vtkheightmapviewer.tcl
r3447 r3454 84 84 private method BuildAxisTab {} 85 85 private method BuildCameraTab {} 86 private method BuildColormap { name colors } 87 private method ResetColormap { color } 86 private method BuildColormap { name } 88 87 private method BuildContourTab {} 89 88 private method BuildDownloadPopup { widget command } … … 102 101 private method PanCamera {} 103 102 private method RequestLegend {} 104 private method SetCurrentColormap { stylelist}103 private method SetCurrentColormap { color } 105 104 private method SetLegendTip { x y } 106 105 private method SetObjectStyle { dataobj comp } … … 121 120 # heightmaps displayed. 122 121 private variable _currentColormap "" ; 122 private variable _currentNumIsolines "" ; 123 private variable _currentOpacity "" ; 123 124 124 125 private variable _click ; # info used for rotate operations … … 127 128 private variable _view ; # view params for 3D view 128 129 private variable _settings 130 private variable _changed 129 131 private variable _initialStyle ""; # First found style in dataobjects. 130 132 private variable _reset 1; # Indicates if camera needs to be reset … … 144 146 private variable _legendHeight 0 145 147 private variable _resizePending 0 146 private variable _numIsolinesPending 0147 148 private variable _rotatePending 0 148 149 private variable _legendPending 0 … … 165 166 set _serverType "vtkvis" 166 167 168 EnableWaitDialog 1000 167 169 # Rebuild event 168 170 $_dispatcher register !rebuild … … 187 189 $_parser alias dataset [itcl::code $this ReceiveDataset] 188 190 $_parser alias legend [itcl::code $this ReceiveLegend] 189 $_parser alias viserror [itcl::code $this ReceiveError]190 191 191 192 # Initialize the view to some default parameters. … … 204 205 $_arcball quaternion $q 205 206 206 array set _settings [subst{207 array set _settings { 207 208 axisFlymode "static" 208 209 axisMinorTicks 1 … … 228 229 wireframe 0 229 230 saveOpacity 100 230 }] 231 231 } 232 array set _changed { 233 opacity 0 234 colormap 0 235 numIsolines 0 236 } 232 237 itk_component add view { 233 238 canvas $itk_component(plotarea).view \ … … 986 991 $itk_component(field) value $_curFldLabel 987 992 } 988 InitSettings stretchToFit 993 InitSettings stretchToFit 989 994 990 995 if { $_reset } { … … 1040 1045 InitSettings axisXGrid axisYGrid axisZGrid \ 1041 1046 axisVisible axisLabels 1042 InitSettings opacity heightmapScale lighting edges wireframe \ 1043 colormap field outline isHeightmap 1047 InitSettings heightmapScale field isHeightmap 1044 1048 if { [array size _fields] < 2 } { 1045 1049 blt::table forget $itk_component(field) $itk_component(field_l) … … 1331 1335 } 1332 1336 "colormap" { 1337 set _changed(colormap) 1 1333 1338 StartBufferingCommands 1334 1339 set color [$itk_component(colormap) value] … … 1344 1349 set _settings(colormapVisible) 1 1345 1350 } 1346 ResetColormap $color 1347 SendCmd "heightmap colormap $_currentColormap" 1351 SetCurrentColormap $color 1348 1352 } 1349 1353 #SendCmd "heightmap colormode scalar $_curFldName" … … 1524 1528 } 1525 1529 "numIsolines" { 1530 set _changed(numIsolines) 1 1526 1531 set _settings(numIsolines) [$itk_component(numisolines) value] 1532 set _currentNumIsolines $_settings(numIsolines) 1527 1533 SendCmd "heightmap numcontours $_settings(numIsolines)" 1528 1534 DrawLegend 1529 1535 } 1530 1536 "opacity" { 1537 set _changed(opacity) 1 1531 1538 if { $_settings(isHeightmap) } { 1532 1539 set _settings(saveOpacity) $_settings(opacity) … … 1654 1661 # SetCurrentColormap -- 1655 1662 # 1656 itcl::body Rappture::VtkHeightmapViewer::SetCurrentColormap { stylelist } { 1657 array set style { 1658 -color BCGYR 1659 -levels 10 1660 -opacity 1.0 1661 } 1662 array set style $stylelist 1663 1664 set name "$style(-color):$style(-levels):$style(-opacity)" 1663 itcl::body Rappture::VtkHeightmapViewer::SetCurrentColormap { name } { 1664 # Keep track of the colormaps that we build. 1665 1665 if { ![info exists _colormaps($name)] } { 1666 set stylelist [array get style] 1667 BuildColormap $name $stylelist 1668 set _colormaps($name) $stylelist 1666 BuildColormap $name 1667 set _colormaps($name) 1 1669 1668 } 1670 1669 set _currentColormap $name 1670 SendCmd "heightmap colormap $_currentColormap" 1671 1671 } 1672 1672 … … 1675 1675 # BuildColormap -- 1676 1676 # 1677 itcl::body Rappture::VtkHeightmapViewer::BuildColormap { name stylelist } { 1678 array set style $stylelist 1679 set cmap [ColorsToColormap $style(-color)] 1677 # Build the designated colormap on the server. 1678 # 1679 itcl::body Rappture::VtkHeightmapViewer::BuildColormap { name } { 1680 set cmap [ColorsToColormap $name] 1680 1681 if { [llength $cmap] == 0 } { 1681 1682 set cmap "0.0 0.0 0.0 0.0 1.0 1.0 1.0 1.0" 1682 1683 } 1683 if { ![info exists _settings(opacity)] } {1684 set _settings(opacity) $style(-opacity)1685 }1686 set max $_settings(opacity)1687 1688 1684 set wmap "0.0 1.0 1.0 1.0" 1689 1685 SendCmd "colormap add $name { $cmap } { $wmap }" … … 2010 2006 entry $inner.${tag} -font "Arial 9" -bg white \ 2011 2007 -textvariable [itcl::scope _view($tag)] 2012 bind $inner.${tag} <KeyPress-Return> \ 2008 bind $inner.${tag} <Return> \ 2009 [itcl::code $this camera set ${tag}] 2010 bind $inner.${tag} <KP_Enter> \ 2013 2011 [itcl::code $this camera set ${tag}] 2014 2012 blt::table $inner \ … … 2137 2135 } 2138 2136 2137 # 2138 # SetObjectStyle -- 2139 # 2140 # Set the style of the heightmap/contour object. This gets calls 2141 # for each dataset once as it is loaded. It can overridden by 2142 # the user controls. 2143 # 2144 # 2139 2145 itcl::body Rappture::VtkHeightmapViewer::SetObjectStyle { dataobj comp } { 2140 2146 # Parse style string. … … 2142 2148 array set style { 2143 2149 -color BCGYR 2144 -edges 0 2145 -edgecolor black 2146 -linewidth 1.0 2150 -opacity 100 2147 2151 -levels 10 2148 -visible 1 2152 } 2153 set stylelist [$dataobj style $comp] 2154 if { $stylelist != "" } { 2155 array set style $stylelist 2156 } 2157 # This is too complicated. We want to set the colormap, number of 2158 # isolines and opacity for the object. They can be the default values, 2159 # the style hints set with the dataset, or set by user controls. As 2160 # datasets get loaded, they first use the defaults that are overidden 2161 # by the style hints. If the user changes the global controls, then that 2162 # overrides everything else. I don't know what it means when global 2163 # controls are specified as style hints by each dataset. It complicates 2164 # the code to handle aberrant cases. 2165 2166 if { $_changed(opacity) } { 2167 set style(-opacity) $_settings(opacity) 2168 } 2169 if { $_changed(numIsolines) } { 2170 set style(-levels) $_settings(numIsolines) 2171 } 2172 if { $_changed(colormap) } { 2173 set style(-color) $_settings(colormap) 2149 2174 } 2150 2175 if { $_currentColormap == "" } { 2151 set stylelist [$dataobj style $comp] 2152 if { $stylelist != "" } { 2153 array set style $stylelist 2154 set stylelist [array get style] 2155 SetCurrentColormap $stylelist 2156 } 2157 $itk_component(colormap) value $style(-color) 2176 $itk_component(colormap) value $style(-color) 2177 } 2178 set _currentOpacity $style(-opacity) 2179 if { $_currentNumIsolines != $style(-levels) } { 2180 set _currentNumIsolines $style(-levels) 2181 DrawLegend 2158 2182 } 2159 2183 SendCmd "dataset outline $_settings(outline) $tag" 2160 2184 SendCmd "dataset color [Color2RGB $itk_option(-plotforeground)] $tag" 2161 set _settings(numIsolines) $style(-levels)2162 2185 set scale [GetHeightmapScale] 2163 SendCmd "heightmap add numcontours $_ settings(numIsolines)$scale $tag"2186 SendCmd "heightmap add numcontours $_currentNumIsolines $scale $tag" 2164 2187 set _comp2scale($tag) $_settings(heightmapScale) 2165 2188 SendCmd "heightmap edges $_settings(edges) $tag" 2166 2189 SendCmd "heightmap wireframe $_settings(wireframe) $tag" 2167 Se ndCmd "heightmap colormap $_currentColormap $tag"2190 SetCurrentColormap $style(-color) 2168 2191 set color [$itk_component(isolinecolor) value] 2169 2192 SendCmd "heightmap isolinecolor [Color2RGB $color] $tag" … … 2266 2289 # Draw the isolines on the legend. 2267 2290 if { $color != "none" && [info exists _limits($_curFldName)] && 2268 $_settings(isolinesVisible) && $_ settings(numIsolines)> 0 } {2291 $_settings(isolinesVisible) && $_currentNumIsolines > 0 } { 2269 2292 set pixels [blt::vector create \#auto] 2270 2293 set values [blt::vector create \#auto] 2271 2294 set range [image height $_image(legend)] 2272 2295 # Order of pixels is max to min (max is at top of legend). 2273 $pixels seq $ih 0 $_ settings(numIsolines)2296 $pixels seq $ih 0 $_currentNumIsolines 2274 2297 2275 2298 set offset [expr 2 + $lineht] … … 2281 2304 # Order of values is min to max. 2282 2305 foreach { vmin vmax } $_limits($_curFldName) break 2283 $values seq $vmin $vmax $_ settings(numIsolines)2306 $values seq $vmin $vmax $_currentNumIsolines 2284 2307 set tags "isoline legend" 2285 2308 array unset _isolines … … 2291 2314 } 2292 2315 set id [$c create line $x1 $y1 $x2 $y1 -fill $color -tags $tags] 2293 #$c bind $id <B1-Enter> [itcl::code $this EnterIsoline %x %y $value]2294 #$c bind $id <Leave> [itcl::code $this LeaveIsoline]2295 2316 } 2296 2317 blt::vector destroy $pixels $values … … 2460 2481 } 2461 2482 2462 itcl::body Rappture::VtkHeightmapViewer::ResetColormap { color } { 2463 array set style { 2464 -color BCGYR 2465 -levels 10 2466 -opacity 1.0 2467 } 2468 if { [info exists _colormap($_currentColormap)] } { 2469 array set style $_colormap($_currentColormap) 2470 } 2471 set style(-color) $color 2472 SetCurrentColormap [array get style] 2473 } 2474 2483 2484 2485 -
trunk/gui/scripts/vtkisosurfaceviewer.tcl
r3448 r3454 203 203 $_parser alias dataset [itcl::code $this ReceiveDataset] 204 204 $_parser alias legend [itcl::code $this ReceiveLegend] 205 $_parser alias viserror [itcl::code $this ReceiveError]206 205 207 206 # Initialize the view to some default parameters. -
trunk/gui/scripts/vtkstreamlinesviewer.tcl
r3446 r3454 165 165 set _serverType "vtkvis" 166 166 167 EnableWaitDialog yes167 EnableWaitDialog 2000 168 168 169 169 # Rebuild event … … 208 208 $_parser alias dataset [itcl::code $this ReceiveDataset] 209 209 $_parser alias legend [itcl::code $this ReceiveLegend] 210 $_parser alias viserror [itcl::code $this ReceiveError]211 210 212 211 array set _outline { -
trunk/gui/scripts/vtkviewer.tcl
r3443 r3454 178 178 $_parser alias dataset [itcl::code $this ReceiveDataset] 179 179 $_parser alias legend [itcl::code $this ReceiveLegend] 180 $_parser alias viserror [itcl::code $this ReceiveError]181 180 182 181 array set _outline { -
trunk/gui/scripts/vtkvolumeviewer.tcl
r3443 r3454 201 201 $_parser alias dataset [itcl::code $this ReceiveDataset] 202 202 $_parser alias legend [itcl::code $this ReceiveLegend] 203 $_parser alias viserror [itcl::code $this ReceiveError]204 203 205 204 array set _outline { -
trunk/gui/scripts/xyresult.tcl
r3330 r3454 1266 1266 $inner.label delete 0 end 1267 1267 $inner.label insert end $label 1268 bind $inner.label <KeyPress-Return> \ 1268 bind $inner.label <Return> \ 1269 [itcl::code $this Axis changed $axis label] 1270 bind $inner.label <KP_Enter> \ 1269 1271 [itcl::code $this Axis changed $axis label] 1270 1272 bind $inner.label <FocusOut> \ … … 1275 1277 $inner.min delete 0 end 1276 1278 $inner.min insert end $min 1277 bind $inner.min <KeyPress-Return> \ 1279 bind $inner.min <Return> \ 1280 [itcl::code $this Axis changed $axis min] 1281 bind $inner.min <KP_Enter> \ 1278 1282 [itcl::code $this Axis changed $axis min] 1279 1283 bind $inner.min <FocusOut> \ … … 1282 1286 $inner.max delete 0 end 1283 1287 $inner.max insert end $max 1284 bind $inner.max <KeyPress-Return> \ 1288 bind $inner.max <Return> \ 1289 [itcl::code $this Axis changed $axis max] 1290 bind $inner.max <KP_Enter> \ 1285 1291 [itcl::code $this Axis changed $axis max] 1286 1292 bind $inner.max <FocusOut> \
Note: See TracChangeset
for help on using the changeset viewer.