Changeset 2744 for trunk/gui/scripts/field3dresult.tcl
- Timestamp:
- Dec 27, 2011, 2:45:13 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/field3dresult.tcl
r2730 r2744 56 56 array set flags $args 57 57 switch -- $flags(-mode) { 58 59 60 61 62 63 64 65 66 67 68 69 70 71 } 58 "auto" - "nanovis" - "flowvis" { 59 set servers [Rappture::VisViewer::GetServerList "nanovis"] 60 } 61 "vtkcontour" - "vtkstreamlines" - "vtkvolume" - "vtkviewer" { 62 set servers [Rappture::VisViewer::GetServerList "vtkvis"] 63 } 64 "vtk" { 65 # Old vtk contour widget 66 set servers "" 67 } 68 default { 69 puts stderr "unknown render mode \"$flags(-mode)\"" 70 } 71 } 72 72 if {"" != $servers && $flags(-mode) != "vtk"} { 73 73 switch -- $flags(-mode) { … … 83 83 } 84 84 "vtkvolume" { 85 85 catch { 86 86 itk_component add renderer { 87 87 Rappture::VtkVolumeViewer $itk_interior.ren $servers 88 88 } 89 90 89 } errs 90 puts stderr errs=$errs 91 91 } 92 92 "vtkstreamlines" { … … 98 98 puts stderr "unknown render mode \"$flags(-mode)\"" 99 99 } 100 } 100 } 101 101 pack $itk_component(renderer) -expand yes -fill both 102 102
Note: See TracChangeset
for help on using the changeset viewer.