- Timestamp:
- Nov 2, 2011, 9:23:19 PM (13 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/visviewer.tcl
r2645 r2652 559 559 return 560 560 } 561 label $itk_component(plotarea).view.splash -text "Please wait" 561 label $itk_component(plotarea).view.splash -text "Please wait" \ 562 -bg grey90 -relief solid -bd 2 -padx 20 -pady 20 -font "Arial 10" 562 563 pack $itk_component(plotarea).view.splash -expand yes -anchor c 563 564 } else { -
trunk/gui/scripts/vtkstreamlinesviewer.tcl
r2650 r2652 98 98 private method EventuallyReseed { numPoints } 99 99 private method EventuallyRotate { q } 100 private method EventuallyRequestLegend {} 100 101 private method EventuallySetCutplane { axis args } 101 102 private method GetImage { args } … … 148 149 private variable _rotatePending 0 149 150 private variable _cutplanePending 0 151 private variable _legendPending 0 150 152 private variable _outline 151 153 private variable _vectorFields … … 182 184 $_dispatcher register !rotate 183 185 $_dispatcher dispatch $this !rotate "[itcl::code $this DoRotate]; list" 186 187 # Legend event 188 $_dispatcher register !legend 189 $_dispatcher dispatch $this !legend "[itcl::code $this RequestLegend]; list" 184 190 185 191 # X-Cutplane event … … 473 479 itcl::body Rappture::VtkStreamlinesViewer::destructor {} { 474 480 Disconnect 475 $_dispatcher cancel !rebuild476 $_dispatcher cancel !resize477 $_dispatcher cancel !reseed478 $_dispatcher cancel !rotate479 $_dispatcher cancel !xcutplane480 $_dispatcher cancel !ycutplane481 $_dispatcher cancel !zcutplane482 481 image delete $_image(plot) 483 482 image delete $_image(download) … … 494 493 set _start [clock clicks -milliseconds] 495 494 SendCmd "screen size $_width $_height" 496 RequestLegend495 EventuallyRequestLegend 497 496 498 497 #SendCmd "imgflush" … … 552 551 set _cutplanePending 1 553 552 $_dispatcher event -after 100 !${axis}cutplane 553 } 554 } 555 556 itcl::body Rappture::VtkStreamlinesViewer::EventuallyRequestLegend {} { 557 if { !$_legendPending } { 558 set _legendPending 1 554 559 } 555 560 } … … 845 850 VisViewer::Disconnect 846 851 852 $_dispatcher cancel !rebuild 853 $_dispatcher cancel !resize 854 $_dispatcher cancel !reseed 855 $_dispatcher cancel !rotate 856 $_dispatcher cancel !xcutplane 857 $_dispatcher cancel !ycutplane 858 $_dispatcher cancel !zcutplane 859 $_dispatcher cancel !legend 847 860 # disconnected -- no more data sitting on server 848 861 set _outbuf "" … … 910 923 set tag $this-print-$info(-token) 911 924 set _hardcopy($tag) $bytes 925 } 926 if { $_legendPending } { 927 RequestLegend 912 928 } 913 929 } … … 975 991 # generates a new call to Rebuild). 976 992 set _buffering 1 977 978 993 set _width $w 979 994 set _height $h … … 1085 1100 set _reset 0 1086 1101 } 1087 1088 1102 set _buffering 0; # Turn off buffering. 1089 1103 … … 1482 1496 ChangeColormap $dataobj $comp $palette 1483 1497 } 1484 RequestLegend1498 EventuallyRequestLegend 1485 1499 } 1486 1500 "streamlines-opacity" { … … 1526 1540 SendCmd "cutplane colormode $_colorMode ${name} $dataset" 1527 1541 } 1528 RequestLegend1542 EventuallyRequestLegend 1529 1543 } 1530 1544 default { … … 1542 1556 # 1543 1557 itcl::body Rappture::VtkStreamlinesViewer::RequestLegend {} { 1558 puts stderr "RequestLegend" 1559 set _legendPending 0 1544 1560 set font "Arial 8" 1545 1561 set lineht [font metrics $font -linespace]
Note: See TracChangeset
for help on using the changeset viewer.