Ignore:
Timestamp:
Mar 27, 2013, 2:01:06 PM (11 years ago)
Author:
ldelgass
Message:

Report clientinfo first thing after connecting to visualization server.

File:
1 edited

Legend:

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

    r3571 r3592  
    802802    set result [VisViewer::Connect $_hosts]
    803803    if { $result } {
     804        if { $_reportClientInfo }  {
     805            # Tell the server the viewer, hub, user and session.
     806            # Do this immediately on connect before buffing any commands
     807            global env
     808
     809            set info {}
     810            set user "???"
     811            if { [info exists env(USER)] } {
     812                set user $env(USER)
     813            }
     814            set session "???"
     815            if { [info exists env(SESSION)] } {
     816                set session $env(SESSION)
     817            }
     818            lappend info "hub" [exec hostname]
     819            lappend info "client" "vtkstreamlinesviewer"
     820            lappend info "user" $user
     821            lappend info "session" $session
     822            SendCmd "clientinfo [list $info]"
     823        }
     824
    804825        set w [winfo width $itk_component(view)]
    805826        set h [winfo height $itk_component(view)]
     
    957978    set _first ""
    958979    if { $_reset } {
    959         if { $_reportClientInfo }  {
    960             # Tell the server the name of the tool, the version, and dataset
    961             # that we are rendering.  Have to do it here because we don't know
    962             # what data objects are using the renderer until be get here.
    963             global env
    964 
    965             set info {}
    966             set user "???"
    967             if { [info exists env(USER)] } {
    968                 set user $env(USER)
    969             }
    970             set session "???"
    971             if { [info exists env(SESSION)] } {
    972                 set session $env(SESSION)
    973             }
    974             lappend info "hub" [exec hostname]
    975             lappend info "client" "vtkstreamlinesviewer"
    976             lappend info "user" $user
    977             lappend info "session" $session
    978             SendCmd "clientinfo [list $info]"
    979         }
    980980        set _width $w
    981981        set _height $h
Note: See TracChangeset for help on using the changeset viewer.