Changeset 2613 for trunk/gui/scripts
- Timestamp:
- Oct 12, 2011, 1:01:22 PM (13 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/molvisviewer.tcl
r2606 r2613 697 697 #debug "CACHED: $tag,$cacheid" 698 698 $_image(plot) configure -data $data 699 if 0 { 699 700 $_image(plot) write dummy.jpg -format jpeg 700 701 puts stderr "image width=[image width $_image(plot)] height=[image height $_image(plot)]" 701 702 puts stderr "screen width=$_width height=$_height" 703 } 702 704 set _image(id) $tag 703 705 } … … 969 971 set readyForNextFrame 0; # Don't advance to the next frame 970 972 # until we get an image. 971 SendCmd " bmp"; # Flush the results.973 SendCmd "ppm"; # Flush the results. 972 974 } 973 975 set _buffering 0; # Turn off buffering. -
trunk/gui/scripts/vtkstreamlinesviewer.tcl
r2611 r2613 974 974 set _first "" 975 975 InitSettings axis-xgrid axis-ygrid axis-zgrid axis-mode \ 976 axis-visible axis-labels 976 axis-visible axis-labels cutplane-visible \ 977 cutplane-xposition cutplane-yposition cutplane-zposition \ 978 cutplane-xvisible cutplane-yvisible cutplane-zvisible 977 979 978 980 SendCmd "imgflush" … … 1044 1046 streamlines-numpoints streamlines-lighting \ 1045 1047 streamlines-palette streamlines-field \ 1046 volume-edges volume-lighting volume-opacity volume-wireframe \ 1047 cutplane-xvisible cutplane-yvisible cutplane-zvisible \ 1048 cutplane-xposition cutplane-yposition cutplane-zposition 1048 volume-edges volume-lighting volume-opacity volume-wireframe 1049 1049 Zoom reset 1050 1050 set _reset 0 … … 1472 1472 "streamlines-field" { 1473 1473 set new [$itk_component(field) value] 1474 set value [$itk_component( axismode) translate $new]1474 set value [$itk_component(field) translate $new] 1475 1475 set _settings(streamlines-field) $value 1476 1476 if { [info exists _scalarFields($new)] } { … … 1489 1489 } 1490 1490 foreach dataset [CurrentDatasets -visible] { 1491 SendCmd "dataset ${fieldType} ${name} $dataset" 1492 SendCmd "streamlines colormode $_colorMode $dataset" 1493 SendCmd "cutplane colormode $_colorMode $dataset" 1491 SendCmd "streamlines colormode $_colorMode ${name} $dataset" 1492 SendCmd "cutplane colormode $_colorMode ${name} $dataset" 1494 1493 } 1495 1494 RequestLegend … … 1517 1516 return 1518 1517 } 1518 if { [info exists _scalarFields($_currentField)] } { 1519 set name $_scalarFields($_currentField) 1520 } elseif { [info exists _vectorFields($_currentField)] } { 1521 set name $_vectorFields($_currentField) 1522 } else { 1523 return 1524 } 1519 1525 # Set the legend on the first streamlines dataset. 1520 1526 foreach dataset [CurrentDatasets -visible $_first] { 1521 1527 foreach {dataobj comp} [split $dataset -] break 1522 1528 if { [info exists _dataset2style($dataset)] } { 1523 SendCmd "legend $_dataset2style($dataset) $_colorMode {} $w $h 0"1529 SendCmd "legend $_dataset2style($dataset) $_colorMode $name {} $w $h 0" 1524 1530 break; 1525 1531 }
Note: See TracChangeset
for help on using the changeset viewer.