Changeset 3592 for trunk/gui/scripts/flowvisviewer.tcl
- Timestamp:
- Mar 27, 2013 2:01:06 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/flowvisviewer.tcl
r3555 r3592 860 860 set result [VisViewer::Connect $_hosts] 861 861 if { $result } { 862 if { $_reportClientInfo } { 863 # Tell the server the viewer, hub, user and session. 864 # Do this immediately on connect before buffing any commands 865 global env 866 867 set info {} 868 set user "???" 869 if { [info exists env(USER)] } { 870 set user $env(USER) 871 } 872 set session "???" 873 if { [info exists env(SESSION)] } { 874 set session $env(SESSION) 875 } 876 lappend info "hub" [exec hostname] 877 lappend info "client" "flowvisviewer" 878 lappend info "user" $user 879 lappend info "session" $session 880 SendCmd "clientinfo [list $info]" 881 } 882 862 883 set w [winfo width $itk_component(3dview)] 863 884 set h [winfo height $itk_component(3dview)] … … 1185 1206 1186 1207 set _first "" 1187 1188 if { $_reset } {1189 if { $_reportClientInfo } {1190 # Tell the server the name of the tool, the version, and1191 # dataset that we are rendering. Have to do it here because1192 # we don't know what data objects are using the renderer until1193 # be get here.1194 global env1195 1196 set info {}1197 set user "???"1198 if { [info exists env(USER)] } {1199 set user $env(USER)1200 }1201 set session "???"1202 if { [info exists env(SESSION)] } {1203 set session $env(SESSION)1204 }1205 lappend info "hub" [exec hostname]1206 lappend info "client" "flowvisviewer"1207 lappend info "user" $user1208 lappend info "session" $session1209 SendCmd "clientinfo [list $info]"1210 }1211 }1212 1208 foreach dataobj [get] { 1213 1209 foreach comp [$dataobj components] {
Note: See TracChangeset
for help on using the changeset viewer.