- Timestamp:
- Aug 23, 2013, 2:10:23 PM (11 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/field.tcl
r3868 r3885 763 763 global env 764 764 if { [info exists env(VTKVOLUME)] } { 765 set type "vtkvolume" 766 } else { 767 set type "opendx" 768 } 765 set viewer "vtkvolume" 766 if { $viewer != "" } { 767 set _viewer $viewer 768 } 769 } 770 set type "opendx" 769 771 } elseif {[$_field element $cname.dx] != ""} { 770 772 global env 771 773 if { [info exists env(VTKVOLUME)] } { 772 set type "vtkvolume" 773 } else { 774 set type "dx" 775 } 774 set viewer "vtkvolume" 775 if { $viewer != "" } { 776 set _viewer $viewer 777 } 778 } 779 set type "dx" 776 780 } elseif {[$_field element $cname.ucd] != ""} { 777 781 set type "ucd" … … 871 875 set _dim 3 872 876 set _comp2dims($cname) "3D" 873 if 0{877 if 1 { 874 878 set vtkdata [$_field get -decode yes $cname.$type] 875 879 if { $vtkdata == "" } { -
trunk/gui/scripts/field3dresult.tcl
r3746 r3885 71 71 } 72 72 } 73 if { "" != $servers && $flags(-mode) != "vtk"} {73 if { "" != $servers && $flags(-mode) != "vtk"} { 74 74 switch -- $flags(-mode) { 75 75 "auto" - "nanovis" { … … 168 168 # ---------------------------------------------------------------------- 169 169 itcl::body Rappture::Field3DResult::delete {args} { 170 eval $itk_component(renderer) delete $args 170 if { [info exists itk_component(renderer)] } { 171 eval $itk_component(renderer) delete $args 172 } 171 173 } 172 174 -
trunk/gui/scripts/xyresult.tcl
r3803 r3885 245 245 set color $attrs(-color) 246 246 } 247 if { ![info exists attrs(-width)] } { 248 set linewidth 1 249 } else { 250 set linewidth $attrs(-width) 251 } 247 252 if { $color == "auto" || $color == "autoreset" } { 248 253 if { $color == "autoreset" } { … … 275 280 set tag $dataobj-$cname 276 281 set elem $_comp2elem($tag) 277 if { $type == "bar" } { 278 $g bar configure $elem -foreground $color -background $color \ 279 -hide no 280 } else { 281 $g line configure $elem -color $color -hide no 282 switch -- $type { 283 "bar" { 284 $g bar configure $elem -foreground $color -background $color \ 285 -hide no 286 } 287 "scatter" { 288 $g line configure $elem -color $color -hide no 289 } 290 default { 291 $g line configure $elem -color $color -hide no \ 292 -linewidth $linewidth 293 } 282 294 } 283 295 if { [lsearch $_viewable $elem] < 0 } { … … 1586 1598 } 1587 1599 if { ![info exists attrs(-width)] } { 1588 set linewidth 1 1600 set linewidth 11 1589 1601 } else { 1590 1602 set linewidth $attrs(-width) … … 1655 1667 } 1656 1668 } else { 1669 if 0 { 1657 1670 set elem $_comp2elem($tag) 1658 1671 switch -- $type { 1672 "scatter" { 1673 $g line configure $elem \ 1674 -symbol $sym \ 1675 -pixels $pixels \ 1676 -linewidth 0 1677 } 1659 1678 "line" { 1660 1679 $g line configure $elem \ … … 1670 1689 } 1671 1690 } 1672 } 1673 } 1674 } 1691 } 1692 } 1693 } 1694 }
Note: See TracChangeset
for help on using the changeset viewer.