Changeset 3392 for trunk/gui/scripts/nanovisviewer.tcl
- Timestamp:
- Feb 28, 2013, 8:27:50 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/nanovisviewer.tcl
r3371 r3392 889 889 } 890 890 891 set _width [winfo width $itk_component(3dview)] 892 set _height [winfo height $itk_component(3dview)] 893 DoResize 894 891 if { $_reset } { 892 set _width [winfo width $itk_component(3dview)] 893 set _height [winfo height $itk_component(3dview)] 894 DoResize 895 if 1 { 896 # Tell the server the name of the tool, the version, and 897 # dataset that we are rendering. Have to do it here because 898 # we don't know what data objects are using the renderer until 899 # be get here. 900 global env 901 902 set info {} 903 set user "???" 904 if { [info exists env(USER)] } { 905 set user $env(USER) 906 } 907 set session "???" 908 if { [info exists env(SESSION)] } { 909 set session $env(SESSION) 910 } 911 lappend info "hub" [exec hostname] 912 lappend info "client" "nanovisviewer" 913 lappend info "user" $user 914 lappend info "session" $session 915 SendCmd "clientinfo [list $info]" 916 } 917 } 895 918 foreach dataobj [get] { 896 919 foreach cname [$dataobj components] { … … 900 923 set data [$dataobj values $cname] 901 924 set nbytes [string length $data] 925 if 1 { 926 set info {} 927 lappend info "tool_id" [$dataobj hints toolId] 928 lappend info "tool_name" [$dataobj hints toolName] 929 lappend info "tool_version" [$dataobj hints toolRevision] 930 lappend info "tool_title" [$dataobj hints toolTitle] 931 lappend info "dataset_label" [$dataobj hints label] 932 lappend info "dataset_size" $nbytes 933 SendCmd "clientinfo [list $info]" 934 } 902 935 append _outbuf "volume data follows $nbytes $tag\n" 903 936 append _outbuf $data … … 949 982 if { $location != "" } { 950 983 array set _view $location 951 }952 if 1 {953 # Tell the server the name of the tool, the version, and954 # dataset that we are rendering. Have to do it here because955 # we don't know what data objects are using the renderer until956 # be get here.957 global env958 959 lappend out "hub" [exec hostname]960 lappend out "viewer" "nanovisviewer"961 if { [info exists env(USER)] } {962 lappend out "user" $env(USER)963 }964 if { [info exists env(SESSION)] } {965 lappend out "session" $env(SESSION)966 }967 lappend out "tool_id" [$_first hints toolId]968 lappend out "tool_name" [$_first hints toolName]969 lappend out "tool_version" [$_first hints toolRevision]970 lappend out "tool_title" [$_first hints toolTitle]971 lappend out "tool_dataset" [$_first hints label]972 SendCmd "clientinfo [list $out]"973 984 } 974 985 }
Note: See TracChangeset
for help on using the changeset viewer.