Changeset 2405 for trunk/gui


Ignore:
Timestamp:
Aug 23, 2011, 10:37:59 AM (13 years ago)
Author:
ldelgass
Message:

Remove redundant send/receive echo (already handled in visviewer.tcl)

Location:
trunk/gui/scripts
Files:
2 edited

Legend:

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

    r2194 r2405  
    1515package require BLT
    1616package require Img
    17                                        
     17
    1818option add *VtkContourViewer.width 4i widgetDefault
    1919option add *VtkContourViewer*cursor crosshair widgetDefault
     
    673673        append _outbuf $string "\n"
    674674    } else {
    675         foreach line [split $string \n] {
    676             SendEcho >>line $line
    677         }
    678675        SendBytes "$string\n"
    679676    }
     
    695692    array set info $args
    696693    set bytes [ReceiveBytes $info(-bytes)]
    697     ReceiveEcho <<line "<read $info(-bytes) bytes"
    698694    if { $info(-type) == "image" } {
    699695        $_image(plot) configure -data $bytes
  • trunk/gui/scripts/vtkviewer.tcl

    r2403 r2405  
    692692        append _outbuf $string "\n"
    693693    } else {
    694         foreach line [split $string \n] {
    695             SendEcho >>line $line
    696         }
    697694        SendBytes "$string\n"
    698695    }
     
    714711    array set info $args
    715712    set bytes [ReceiveBytes $info(-bytes)]
    716     ReceiveEcho <<line "<read $info(-bytes) bytes"
    717713    if { $info(-type) == "image" } {
    718714        if 0 {
     
    12361232            set arr [vtkCharArray $tag-xvtkCharArray]
    12371233            $arr SetArray $data [string length $data] 1
    1238             set reader [vtkPolyDataReader $tag-xvtkPolyDataReader]
     1234            set reader [vtkDataSetReader $tag-xvtkDataSetReader]
    12391235            $reader SetInputArray $arr
    12401236            $reader ReadFromInputStringOn
    1241             set mapper [vtkPolyDataMapper $tag-xvtkPolyDataMapper]
    1242             $mapper SetInput [$reader GetOutput]
    1243             set actor [vtkActor $tag-xvthActor]
    1244             $actor SetMapper $mapper
    1245             set _limits($tag) [$actor GetBounds]
    1246             rename $actor ""
     1237            set _limits($tag) [[$reader GetOutput] GetBounds]
    12471238            rename $reader ""
    12481239            rename $arr ""
    1249             rename $mapper ""
    12501240        }
    12511241        foreach { xMin xMax yMin yMax zMin zMax} $_limits($tag) break
Note: See TracChangeset for help on using the changeset viewer.