Changeset 4652
- Timestamp:
- Oct 17, 2014, 10:59:12 AM (10 years ago)
- Location:
- branches/1.3/gui/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3/gui/scripts/bugreport.tcl
r4571 r4652 490 490 package require http 491 491 package require tls 492 http::register https 443 ::tls::socket492 http::register https 443 [list ::tls::socket -tls1 1] 493 493 494 494 set report $details(stackTrace) -
branches/1.3/gui/scripts/vtkisosurfaceviewer.tcl
r4533 r4652 105 105 private method SetLegendTip { x y } 106 106 private method SetObjectStyle { dataobj comp } 107 private method SetCurrentFieldName { dataobj } 107 108 private method SetOrientation { side } 108 109 private method Slice {option args} … … 1000 1001 set _first "" 1001 1002 SendCmd "dataset visible 0" 1003 eval scale $_dlist 1002 1004 foreach dataobj [get -objects] { 1003 1005 if { [info exists _obj2ovride($dataobj-raise)] && $_first == "" } { 1004 1006 set _first $dataobj 1007 SetCurrentFieldName $dataobj 1005 1008 } 1006 1009 set _obj2datasets($dataobj) "" … … 1038 1041 } 1039 1042 1040 if { $_first != "" } {1041 $itk_component(field) choices delete 0 end1042 $itk_component(fieldmenu) delete 0 end1043 array unset _fields1044 set _curFldName ""1045 foreach cname [$_first components] {1046 foreach fname [$_first fieldnames $cname] {1047 if { [info exists _fields($fname)] } {1048 continue1049 }1050 foreach { label units components } \1051 [$_first fieldinfo $fname] break1052 $itk_component(field) choices insert end "$fname" "$label"1053 $itk_component(fieldmenu) add radiobutton -label "$label" \1054 -value $label -variable [itcl::scope _curFldLabel] \1055 -selectcolor red \1056 -activebackground $itk_option(-plotbackground) \1057 -activeforeground $itk_option(-plotforeground) \1058 -font "Arial 8" \1059 -command [itcl::code $this Combo invoke]1060 set _fields($fname) [list $label $units $components]1061 if { $_curFldName == "" } {1062 set _curFldName $fname1063 set _curFldLabel $label1064 }1065 }1066 }1067 $itk_component(field) value $_curFldLabel1068 1069 if { ![info exists _limits($_curFldName)] } {1070 SendCmd "dataset maprange all"1071 } else {1072 set limits $_limits($_curFldName)1073 SendCmd "dataset maprange explicit $limits $_curFldName"1074 if { $limits != $_currentLimits } {1075 set _currentLimits $limits1076 EventuallyChangeContourLevels1077 }1078 }1079 }1080 1043 InitSettings -cutplanesvisible -isosurfacevisible -outline 1081 1044 if { $_reset } { … … 2624 2587 set _contourList(values) $values 2625 2588 } 2589 2590 itcl::body Rappture::VtkIsosurfaceViewer::SetCurrentFieldName { dataobj } { 2591 set _first $dataobj 2592 $itk_component(field) choices delete 0 end 2593 $itk_component(fieldmenu) delete 0 end 2594 array unset _fields 2595 set _curFldName "" 2596 foreach cname [$_first components] { 2597 foreach fname [$_first fieldnames $cname] { 2598 if { [info exists _fields($fname)] } { 2599 continue 2600 } 2601 foreach { label units components } \ 2602 [$_first fieldinfo $fname] break 2603 $itk_component(field) choices insert end "$fname" "$label" 2604 $itk_component(fieldmenu) add radiobutton -label "$label" \ 2605 -value $label -variable [itcl::scope _curFldLabel] \ 2606 -selectcolor red \ 2607 -activebackground $itk_option(-plotbackground) \ 2608 -activeforeground $itk_option(-plotforeground) \ 2609 -font "Arial 8" \ 2610 -command [itcl::code $this Combo invoke] 2611 set _fields($fname) [list $label $units $components] 2612 if { $_curFldName == "" } { 2613 set _curFldName $fname 2614 set _curFldLabel $label 2615 } 2616 } 2617 } 2618 $itk_component(field) value $_curFldLabel 2619 if { ![info exists _limits($_curFldName)] } { 2620 SendCmd "dataset maprange all" 2621 } else { 2622 set limits $_limits($_curFldName) 2623 SendCmd "dataset maprange explicit $limits $_curFldName" 2624 if { $limits != $_currentLimits } { 2625 set _currentLimits $limits 2626 EventuallyChangeContourLevels 2627 } 2628 } 2629 }
Note: See TracChangeset
for help on using the changeset viewer.