- Timestamp:
- Feb 22, 2013, 4:28:34 PM (11 years ago)
- Location:
- branches/Rappture 1.2/gui/scripts
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Rappture 1.2/gui/scripts/mesh.tcl
r3318 r3323 71 71 private variable _yv "" 72 72 private variable _zv "" 73 private variable _bltmesh ""74 73 private variable _xCoords ""; # For the blt contour only 75 74 private variable _yCoords ""; # For the blt contour only … … 233 232 rename $_points "" 234 233 } 235 if { $_bltmesh != "" } {236 blt::mesh destroy $_bltmesh237 }238 234 } 239 235 … … 310 306 "vtk" { 311 307 return $_vtkgrid 312 }313 "blt" {314 return $_bltmesh315 308 } 316 309 default { … … 532 525 error "curvilinear grid must be 2D or 3D." 533 526 } 534 set data[$xmlobj get $path.grid.points]527 set points [$xmlobj get $path.grid.points] 535 528 if { $points == "" } { 536 529 error "missing <points> from grid description." … … 547 540 if { [info exists zNum] } { 548 541 set _dim 3 549 set _numPoints [expr $xNum * $yNum * zNum]542 set _numPoints [expr $xNum * $yNum * $zNum] 550 543 $all set $points 551 544 if { ($_numPoints*3) != $numCoords } { … … 557 550 $all split $xv $yv $zv 558 551 foreach axis {x y z} { 559 set vector ${axis}v552 set vector [set ${axis}v] 560 553 set _limits($axis) [$vector limits] 561 554 } … … 576 569 } 577 570 foreach axis {x y} { 578 set vector ${axis}v571 set vector [set ${axis}v] 579 572 set _limits($axis) [$vector limits] 580 573 } -
branches/Rappture 1.2/gui/scripts/visviewer.tcl
r3322 r3323 72 72 private method SendDebugCommand {} 73 73 74 protected method ReceiveError { args } 75 protected method SendEcho { channel {data ""} } 76 protected method ReceiveEcho { channel {data ""} } 74 protected method Color2RGB { color } 77 75 protected method Connect { servers } 78 76 protected method Disconnect {} 77 protected method Euler2XYZ { theta phi psi } 78 protected method Flush {} 79 79 protected method IsConnected {} 80 protected method ReceiveBytes { nbytes } 81 protected method ReceiveEcho { channel {data ""} } 82 protected method ReceiveError { args } 80 83 protected method SendBytes { bytes } 81 protected method ReceiveBytes { nbytes } 82 protected method Flush {} 83 protected method Color2RGB { color } 84 protected method Euler2XYZ { theta phi psi } 84 protected method SendEcho { channel {data ""} } 85 85 protected method StartWaiting {} 86 86 protected method StopWaiting {} 87 protected method ReceiveError { args }88 87 89 88 private method Waiting { option widget } -
branches/Rappture 1.2/gui/scripts/vtkheightmapviewer.tcl
r3319 r3323 951 951 if { ![info exists _datasets($tag)] } { 952 952 set bytes [$dataobj vtkdata $comp] 953 if 1{953 if 0 { 954 954 set f [open /tmp/vtkheightmap.vtk "w"] 955 955 puts $f $bytes -
branches/Rappture 1.2/gui/scripts/vtkviewer.tcl
r3321 r3323 183 183 # Populate parser with commands handle incoming requests 184 184 # 185 $_parser alias image [itcl::code $this ReceiveImage]186 $_parser alias dataset [itcl::code $this ReceiveDataset]187 $_parser alias legend [itcl::code $this ReceiveLegend]185 $_parser alias image [itcl::code $this ReceiveImage] 186 $_parser alias dataset [itcl::code $this ReceiveDataset] 187 $_parser alias legend [itcl::code $this ReceiveLegend] 188 188 $_parser alias viserror [itcl::code $this ReceiveError] 189 189
Note: See TracChangeset
for help on using the changeset viewer.