Changeset 839 for trunk/gui/scripts/field3dresult.tcl
- Timestamp:
- Jan 3, 2008, 1:18:00 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/field3dresult.tcl
r766 r839 39 39 public method parameters {title args} { # do nothing } 40 40 public method download {option args} 41 42 # resources file tells us the nanovis server43 public common _nanovisHosts ""44 public proc setNanovisServer {namelist} {45 if {[regexp {^[a-zA-Z0-9\.]+:[0-9]+(,[a-zA-Z0-9\.]+:[0-9]+)*$} $namelist match]} {46 set _nanovisHosts $namelist47 } else {48 error "bad nanovis server address \"$namelist\": should be host:port,host:port,..."49 }50 }51 41 } 52 42 … … 54 44 proc field3d_init_resources {} { 55 45 Rappture::resources::register \ 56 nanovis_server Rappture:: Field3DResult::setNanovisServer46 nanovis_server Rappture::NanovisServer::setServer 57 47 } 58 48 … … 71 61 array set flags $args 72 62 73 if {"" != $_nanovisHosts && $flags(-mode) != "vtk"} { 63 set servers [Rappture::NanovisServer::getServer] 64 if {"" != $servers && $flags(-mode) != "vtk"} { 74 65 itk_component add renderer { 75 Rappture::NanovisViewer $itk_interior.ren $ _nanovisHosts66 Rappture::NanovisViewer $itk_interior.ren $servers 76 67 } 77 68 pack $itk_component(renderer) -expand yes -fill both
Note: See TracChangeset
for help on using the changeset viewer.