- Timestamp:
- Aug 23, 2011, 10:37:59 AM (13 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/vtkcontourviewer.tcl
r2194 r2405 15 15 package require BLT 16 16 package require Img 17 17 18 18 option add *VtkContourViewer.width 4i widgetDefault 19 19 option add *VtkContourViewer*cursor crosshair widgetDefault … … 673 673 append _outbuf $string "\n" 674 674 } else { 675 foreach line [split $string \n] {676 SendEcho >>line $line677 }678 675 SendBytes "$string\n" 679 676 } … … 695 692 array set info $args 696 693 set bytes [ReceiveBytes $info(-bytes)] 697 ReceiveEcho <<line "<read $info(-bytes) bytes"698 694 if { $info(-type) == "image" } { 699 695 $_image(plot) configure -data $bytes -
trunk/gui/scripts/vtkviewer.tcl
r2403 r2405 692 692 append _outbuf $string "\n" 693 693 } else { 694 foreach line [split $string \n] {695 SendEcho >>line $line696 }697 694 SendBytes "$string\n" 698 695 } … … 714 711 array set info $args 715 712 set bytes [ReceiveBytes $info(-bytes)] 716 ReceiveEcho <<line "<read $info(-bytes) bytes"717 713 if { $info(-type) == "image" } { 718 714 if 0 { … … 1236 1232 set arr [vtkCharArray $tag-xvtkCharArray] 1237 1233 $arr SetArray $data [string length $data] 1 1238 set reader [vtk PolyDataReader $tag-xvtkPolyDataReader]1234 set reader [vtkDataSetReader $tag-xvtkDataSetReader] 1239 1235 $reader SetInputArray $arr 1240 1236 $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] 1247 1238 rename $reader "" 1248 1239 rename $arr "" 1249 rename $mapper ""1250 1240 } 1251 1241 foreach { xMin xMax yMin yMax zMin zMax} $_limits($tag) break
Note: See TracChangeset
for help on using the changeset viewer.