Changeset 5108


Ignore:
Timestamp:
Mar 9, 2015 2:58:35 PM (5 years ago)
Author:
ldelgass
Message:

merge r5068:r5069 from trunk

Location:
branches/1.3
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3

  • branches/1.3/gui/scripts/visviewer.tcl

    r5011 r5108  
    5757    protected variable _debugConsole 0
    5858    protected variable _reportClientInfo 1
     59    # Number of milliscends to wait for server reply before displaying wait
     60    # dialog.  If set to 0, dialog is never displayed.
    5961    protected variable _waitTimeout 0
    6062
     
    9698    protected method SendBytes { bytes }
    9799    protected method SendCmd {string}
    98     protected method SendCmdNoWait {string}
    99100    protected method SendEcho { channel {data ""} }
    100101    protected method StartBufferingCommands {}
     
    478479# StartWaiting --
    479480#
    480 #    Read some number of bytes from the visualization server.
    481 #
    482 
     481#    Display a waiting dialog after a timeout has passed
     482#
    483483itcl::body Rappture::VisViewer::StartWaiting {} {
    484484    if { $_waitTimeout > 0 } {
     
    488488}
    489489
     490#
     491# StopWaiting --
     492#
     493#    Take down waiting dialog
     494#
    490495itcl::body Rappture::VisViewer::StopWaiting {} {
    491496    if { $_waitTimeout > 0 } {
     
    11801185    }
    11811186}
    1182 
    1183 #
    1184 # SendCmdNoWait
    1185 #
    1186 #       Send commands off to the rendering server.  If we're currently
    1187 #       sending data objects to the server, buffer the commands to be
    1188 #       sent later.
    1189 #
    1190 itcl::body Rappture::VisViewer::SendCmdNoWait {string} {
    1191     if { $_buffering } {
    1192         append _outbuf $string "\n"
    1193     } else {
    1194         SendBytes "$string\n"
    1195     }
    1196 }
  • branches/1.3/gui/scripts/vtkglyphviewer.tcl

    r5014 r5108  
    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}
  • branches/1.3/gui/scripts/vtkisosurfaceviewer.tcl

    r5086 r5108  
    16941694    if { $_currentColormap != ""  } {
    16951695        set cmap $_currentColormap
    1696         SendCmdNoWait "legend $cmap scalar $_curFldName {} $w $h 0"
     1696        SendCmd "legend $cmap scalar $_curFldName {} $w $h 0"
    16971697    }
    16981698}
  • branches/1.3/gui/scripts/vtkstreamlinesviewer.tcl

    r5011 r5108  
    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;
  • branches/1.3/gui/scripts/vtksurfaceviewer.tcl

    r5011 r5108  
    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}
  • branches/1.3/gui/scripts/vtkvolumeviewer.tcl

    r4928 r5108  
    14641464        foreach {dataobj comp} [split $dataset -] break
    14651465        if { [info exists _dataset2style($dataset)] } {
    1466             SendCmdNoWait \
     1466            SendCmd \
    14671467                "legend $_dataset2style($dataset) $_colorMode $_curFldName {} $w $h 0"
    14681468            break;
Note: See TracChangeset for help on using the changeset viewer.