Ignore:
Timestamp:
Jan 3, 2008, 1:18:00 PM (17 years ago)
Author:
gah
Message:

changes for surface plots

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/field3dresult.tcl

    r766 r839  
    3939    public method parameters {title args} { # do nothing }
    4040    public method download {option args}
    41 
    42     # resources file tells us the nanovis server
    43     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 $namelist
    47         } else {
    48             error "bad nanovis server address \"$namelist\": should be host:port,host:port,..."
    49         }
    50     }
    5141}
    5242
     
    5444proc field3d_init_resources {} {
    5545    Rappture::resources::register \
    56         nanovis_server Rappture::Field3DResult::setNanovisServer
     46        nanovis_server Rappture::NanovisServer::setServer
    5747}
    5848
     
    7161    array set flags $args
    7262
    73     if {"" != $_nanovisHosts && $flags(-mode) != "vtk"} {
     63    set servers [Rappture::NanovisServer::getServer]
     64    if {"" != $servers && $flags(-mode) != "vtk"} {
    7465        itk_component add renderer {
    75             Rappture::NanovisViewer $itk_interior.ren $_nanovisHosts
     66            Rappture::NanovisViewer $itk_interior.ren $servers
    7667        }
    7768        pack $itk_component(renderer) -expand yes -fill both
Note: See TracChangeset for help on using the changeset viewer.