Changeset 3365
- Timestamp:
- Feb 26, 2013 2:47:04 PM (10 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/field.tcl
r3330 r3365 322 322 } 323 323 if {[info exists _comp2unirect2d($cname)]} { 324 return [$_comp2unirect2d($cname) blob] 324 set blob [$_comp2unirect2d($cname) blob] 325 lappend blob "values" $_values 326 return $blob 325 327 } 326 328 if {[info exists _comp2unirect3d($cname)]} { … … 391 393 } 392 394 2D - 3D { 393 if {[info exists _comp2unirect2d($cname)]} { 394 set limits [$_comp2unirect2d($cname) limits $which] 395 foreach {axisMin axisMax} $limits break 396 set axis v 397 } elseif {[info exists _comp2unirect3d($cname)]} { 395 if {[info exists _comp2unirect3d($cname)]} { 398 396 set limits [$_comp2unirect3d($cname) limits $which] 399 397 foreach {axisMin axisMax} $limits break … … 1193 1191 set _comp2flowhints($cname) \ 1194 1192 [Rappture::FlowHints ::\#auto $_field $cname $_units] 1195 set _values [$_field element $cname.values] 1193 set _values [$_field get $cname.values] 1194 set limits {} 1195 foreach axis { x y } { 1196 lappend limits $axis [$_comp2unirect2d($cname) limits $axis] 1197 } 1198 set xv [blt::vector create \#auto] 1199 $xv set $_values 1200 lappend limits "v" [$xv limits] 1201 blt::vector destroy $xv 1202 set _comp2limits($cname) $limits 1196 1203 incr _counter 1197 1204 return -
trunk/gui/scripts/flowvisviewer.tcl
r3362 r3365 339 339 set _image(legend) [image create photo] 340 340 itk_component add legend { 341 canvas $itk_component(plotarea).legend -height 50 -highlightthickness 0 341 canvas $itk_component(plotarea).legend \ 342 -height 50 -highlightthickness 0 -background black 342 343 } { 343 344 usual … … 729 730 # ---------------------------------------------------------------------- 730 731 itcl::body Rappture::FlowvisViewer::scale {args} { 731 foreach val {xmin xmax ymin ymax zmin zmaxvmin vmax} {732 foreach val {xmin xmax ymin ymax vmin vmax} { 732 733 set _limits($val) "" 733 734 } 734 735 foreach obj $args { 735 foreach axis {x y zv} {736 foreach axis {x y v} { 736 737 737 738 foreach { min max } [$obj limits $axis] break … … 1105 1106 set h [winfo height $c] 1106 1107 set lx 10 1108 # FIXME: I don't know what I have to do this for the 2D flow 1109 # example. Otherwise the canvas background is white. 1110 # I'll get to this when we add background changes into 1111 # nanvis. 1112 $c configure -background black 1107 1113 set ly [expr {$h - 1}] 1108 1114 if {"" == [$c find withtag transfunc]} { -
trunk/gui/scripts/nanovisviewer.tcl
r3362 r3365 691 691 # The volume hasn't reached the server yet. How did we get 692 692 # here? 693 puts stderr "Don't have $ vol in _serverVols"693 puts stderr "Don't have $tag in _serverDatasets" 694 694 continue 695 695 }
Note: See TracChangeset
for help on using the changeset viewer.