Changeset 2736
- Timestamp:
- Dec 27, 2011 8:55:00 AM (11 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/field.tcl
r2732 r2736 696 696 set element [$_xmlobj element -as type $path] 697 697 if { $element == "unirect2d" } { 698 global env699 698 set _comp2dims($cname) "2D" 700 699 set _comp2unirect2d($cname) \ … … 702 701 $extents] 703 702 set _comp2style($cname) [$_field get $cname.style] 704 if { [info exists env(VTKHEIGHTMAP)] } {705 set type "vtkheightmap"706 } else {707 703 if {[$_field element $cname.flow] != ""} { 708 704 set _comp2flowhints($cname) \ 709 705 [Rappture::FlowHints ::\#auto $_field $cname $_units] 710 706 } 711 }712 707 incr _counter 713 708 } elseif { $element == "unirect3d" } { -
trunk/gui/scripts/resultviewer.tcl
r2732 r2736 266 266 if { [$dataobj hints type] == "contour" } { 267 267 set resultMode "vtkcontour" 268 } elseif { [info exists env(VTKHEIGHTMAP)] } { 269 set resultMode "vtkheightmap" 268 270 } else { 269 set resultMode " vtkheightmap"271 set resultMode "heightmap" 270 272 } 271 273 } else { -
trunk/gui/scripts/sequenceresult.tcl
r2732 r2736 471 471 2D { 472 472 if { [$dataobj isunirect2d] } { 473 global env 473 474 if { [$dataobj hints type] == "contour" } { 474 475 set mode "vtkcontour" 476 } elseif { [info exists env(VTKHEIGHTMAP)] } { 477 set resultMode "vtkheightmap" 475 478 } else { 476 set mode "vtkheightmap"479 set resultMode "heightmap" 477 480 } 478 481 } else { -
trunk/gui/scripts/vtkheightmapviewer.tcl
r2732 r2736 228 228 xpan 0 229 229 ypan 0 230 ortho 0230 ortho 1 231 231 } 232 232 set _arcball [blt::arcball create 100 100] … … 993 993 # 994 994 set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)] 995 $_arcball quaternion $q 996 if {$_view(ortho)} { 995 $_arcball quaternion $q 996 SendCmd "camera mode persp" 997 if {$_view(ortho)} { 997 998 SendCmd "camera mode ortho" 998 999 } else { … … 1021 1022 if { ![info exists _datasets($tag)] } { 1022 1023 set bytes [ConvertToVtkData $dataobj $comp] 1023 puts stderr contents=$bytes1024 puts stderr [GetVtkData] 1024 1025 set length [string length $bytes] 1025 1026 append _outbuf "dataset add $tag data follows $length\n" … … 1082 1083 } 1083 1084 foreach { name title units } [$_first hints scalars] { 1085 set _scalarFields($title) $name 1086 $itk_component(field) choices insert end "$name" "$title" 1087 $itk_component(fieldmenu) add radiobutton -label "$title" \ 1088 -value $title -variable [itcl::scope _currentField] \ 1089 -selectcolor red \ 1090 -activebackground black \ 1091 -activeforeground white \ 1092 -font "Arial 8" \ 1093 -command [itcl::code $this Combo invoke] 1094 set _fields($name) [list $title $units] 1095 } 1096 foreach { name title units } { default Default ??? } { 1084 1097 set _scalarFields($title) $name 1085 1098 $itk_component(field) choices insert end "$name" "$title" … … 2331 2344 append out "SPACING 1 1 1 \n" 2332 2345 append out "POINT_DATA [expr $xN * $yN] \n" 2333 append out "SCALARS fieldfloat 1 \n"2346 append out "SCALARS default float 1 \n" 2334 2347 append out "LOOKUP_TABLE default \n" 2335 2348 append out [join $values "\n"] … … 2345 2358 set tag $dataobj-$comp 2346 2359 set contents [ConvertToVtkData $dataobj $comp] 2347 puts stderr contents=$contents2348 2360 #set contents [$dataobj vtkdata $comp] 2349 2361 append bytes "$contents\n\n" … … 2423 2435 array set settings $style 2424 2436 SendCmd "heightmap add $tag" 2425 SendCmd "cutplane add $tag"2426 SendCmd "cutplane edges 0 $tag"2427 SendCmd "cutplane wireframe 0 $tag"2428 SendCmd "cutplane lighting 1 $tag"2429 SendCmd "cutplane linewidth 1 $tag"2437 #SendCmd "cutplane add $tag" 2438 #SendCmd "cutplane edges 0 $tag" 2439 #SendCmd "cutplane wireframe 0 $tag" 2440 #SendCmd "cutplane lighting 1 $tag" 2441 #SendCmd "cutplane linewidth 1 $tag" 2430 2442 #SendCmd "cutplane linecolor 1 1 1 $tag" 2431 2443 #SendCmd "cutplane visible $tag" 2432 2444 foreach axis { x y z } { 2433 SendCmd "cutplane slice $axis 1.0 $tag"2434 SendCmd "cutplane axis $axis 0 $tag"2445 #SendCmd "cutplane slice $axis 1.0 $tag" 2446 #SendCmd "cutplane axis $axis 0 $tag" 2435 2447 } 2436 2448
Note: See TracChangeset
for help on using the changeset viewer.