Changeset 5068


Ignore:
Timestamp:
Mar 4, 2015 12:37:57 PM (9 years ago)
Author:
ldelgass
Message:

Change uses of SendCmdNoWait? to SendCmd?. We don't currently have (or need) a
true out-of-band send.

Location:
trunk/gui/scripts
Files:
6 edited

Legend:

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

    r5005 r5068  
    9999    protected method SendBytes { bytes }
    100100    protected method SendCmd {string}
    101     protected method SendCmdNoWait {string}
    102101    protected method SendEcho { channel {data ""} }
    103102    protected method StartBufferingCommands {}
     
    12011200    }
    12021201}
    1203 
    1204 #
    1205 # SendCmdNoWait
    1206 #
    1207 #       Send commands off to the rendering server.  If we're currently
    1208 #       sending data objects to the server, buffer the commands to be
    1209 #       sent later.
    1210 #
    1211 itcl::body Rappture::VisViewer::SendCmdNoWait {string} {
    1212     incr _cmdSeq
    1213     if {$_trace} {
    1214         puts stderr "$_cmdSeq>>[string range $string 0 70]"
    1215     }
    1216     if { $_buffering } {
    1217         append _outbuf $string "\n"
    1218     } else {
    1219         SendBytes "$string\n"
    1220     }
    1221 }
  • trunk/gui/scripts/vtkglyphviewer.tcl

    r4767 r5068  
    15621562    if { $_currentColormap != ""  } {
    15631563        set cmap $_currentColormap
    1564         SendCmdNoWait "legend $cmap $_colorMode $_curFldName {} $w $h 0"
     1564        SendCmd "legend $cmap $_colorMode $_curFldName {} $w $h 0"
    15651565    }
    15661566}
  • trunk/gui/scripts/vtkisosurfaceviewer.tcl

    r5054 r5068  
    16631663    if { $_currentColormap != ""  } {
    16641664        set cmap $_currentColormap
    1665         SendCmdNoWait "legend $cmap scalar $_curFldName {} $w $h 0"
     1665        SendCmd "legend $cmap scalar $_curFldName {} $w $h 0"
    16661666    }
    16671667}
  • trunk/gui/scripts/vtkstreamlinesviewer.tcl

    r5006 r5068  
    12381238itcl::body Rappture::VtkStreamlinesViewer::Pick {x y} {
    12391239    foreach tag [CurrentDatasets -visible] {
    1240         SendCmdNoWait "dataset getscalar pixel $x $y $tag"
     1240        SendCmd "dataset getscalar pixel $x $y $tag"
    12411241    }
    12421242}
     
    15221522        foreach {dataobj comp} [split $dataset -] break
    15231523        if { [info exists _dataset2style($dataset)] } {
    1524             SendCmdNoWait \
     1524            SendCmd \
    15251525                "legend $_dataset2style($dataset) $_colorMode $_curFldName {} $w $h 0"
    15261526            break;
  • trunk/gui/scripts/vtksurfaceviewer.tcl

    r5006 r5068  
    14751475    if { $_currentColormap != ""  } {
    14761476        set cmap $_currentColormap
    1477         SendCmdNoWait "legend $cmap scalar $_curFldName {} $w $h 0"
     1477        SendCmd "legend $cmap scalar $_curFldName {} $w $h 0"
    14781478    }
    14791479}
  • trunk/gui/scripts/vtkvolumeviewer.tcl

    r5024 r5068  
    16401640        foreach {dataobj comp} [split $dataset -] break
    16411641        if { [info exists _dataset2style($dataset)] } {
    1642             SendCmdNoWait \
     1642            SendCmd \
    16431643                "legend2 $_dataset2style($dataset) $w $h"
    16441644                #"legend $_dataset2style($dataset) $_colorMode $_curFldName {} $w $h 0"
Note: See TracChangeset for help on using the changeset viewer.