- Timestamp:
- Jun 4, 2006, 8:04:15 PM (18 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/field.tcl
r459 r460 152 152 # ---------------------------------------------------------------------- 153 153 itcl::body Rappture::Field::mesh {{what -overall}} { 154 if {$what == " component0"} {154 if {$what == "-overall" || $what == "component0"} { 155 155 set what "component" 156 156 } -
trunk/gui/scripts/field3dresult.tcl
r436 r460 27 27 itcl::class Rappture::Field3DResult { 28 28 inherit itk::Widget 29 30 itk_option define -mode mode Mode "auto" 29 31 30 32 constructor {args} { # defined below } … … 65 67 # ---------------------------------------------------------------------- 66 68 itcl::body Rappture::Field3DResult::constructor {args} { 67 if {"" != $_nanovisHost && "" != $_nanovisPort} { 69 array set flags { 70 -mode auto 71 } 72 array set flags $args 73 74 if {"" != $_nanovisHost && "" != $_nanovisPort && $flags(-mode) != "vtk"} { 68 75 itk_component add renderer { 69 76 Rappture::NanovisViewer $itk_interior.ren \ -
trunk/gui/scripts/resultviewer.tcl
r436 r460 228 228 set mode "field3D" 229 229 if {![info exists _mode2widget($mode)]} { 230 set mesh [$dataobj mesh] 231 set mode [expr {("" != $mesh) ? "vtk" : "nanovis"}] 230 232 set w $itk_interior.field3D 231 Rappture::Field3DResult $w 233 Rappture::Field3DResult $w -mode $mode 232 234 set _mode2widget($mode) $w 233 235 }
Note: See TracChangeset
for help on using the changeset viewer.