- Timestamp:
- Mar 4, 2015 9:22:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/vtkisosurfaceviewer.tcl
r5068 r5071 1424 1424 } 1425 1425 "-cutplaneopacity" { 1426 set _changed($what) 1 1426 1427 set _settings($what) [expr $_widget($what) * 0.01] 1427 1428 SendCmd "cutplane opacity $_settings($what)" … … 1524 1525 } 1525 1526 "-isosurfaceopacity" { 1527 set _changed($what) 1 1526 1528 set _settings($what) [expr $_widget($what) * 0.01] 1527 1529 SendCmd "contour3d opacity $_settings($what)" … … 1554 1556 } 1555 1557 "-numcontours" { 1558 set _changed($what) 1 1556 1559 set _settings($what) [$itk_component(numcontours) value] 1557 1560 if { $_contourList(numLevels) != $_settings($what) } { … … 1821 1824 } 1822 1825 itk_component add min { 1823 Rappture::Gauge $inner.min \1826 Rappture::Gauge $inner.min -font "Arial 9" \ 1824 1827 -validatecommand [itcl::code $this LegendRangeValidate "" vmin] 1825 1828 } … … 1831 1834 } 1832 1835 itk_component add max { 1833 Rappture::Gauge $inner.max \1836 Rappture::Gauge $inner.max -font "Arial 9" \ 1834 1837 -validatecommand [itcl::code $this LegendRangeValidate "" vmax] 1835 1838 } … … 2328 2331 SendCmd "cutplane axis $axis $visible $tag" 2329 2332 } 2333 SendCmd "cutplane opacity $_settings(-cutplaneopacity) $tag" 2330 2334 SendCmd "cutplane visible $style(-cutplanesvisible) $tag" 2331 2335 … … 2417 2421 } 2418 2422 2419 2420 2423 # ---------------------------------------------------------------------- 2421 2424 # USAGE: LegendPointToValue <x> <y> … … 2449 2452 } 2450 2453 2451 2452 2454 # ---------------------------------------------------------------------- 2453 2455 # USAGE: LegendProbeSingleContour <x> <y> … … 2461 2463 SendCmd [list contour3d contourlist $value] 2462 2464 } 2463 2464 2465 2465 2466 # … … 2819 2820 } 2820 2821 2821 2822 2822 itcl::body Rappture::VtkIsosurfaceViewer::MouseOver2Which {} { 2823 2823 switch -- $_mouseOver { … … 2834 2834 return $which 2835 2835 } 2836 2837 2836 2838 2837 # ---------------------------------------------------------------------- … … 2926 2925 } 2927 2926 2928 2929 2927 # ---------------------------------------------------------------------- 2930 2928 # USAGE: ToggleCustomRange … … 2983 2981 AdjustSetting -range 2984 2982 } 2985 2986 2983 2987 2984 # ---------------------------------------------------------------------- … … 3019 3016 } 3020 3017 3021 3022 3018 # 3023 3019 # SetCurrentColormap -- … … 3082 3078 set values $_contourList(reqValues) 3083 3079 } else { 3084 # use the field limits to calculate the contour list values 3085 foreach { vmin vmax } $_limits($_curFldName) break 3086 3087 # if custom range has been set and are within the field's 3088 # range, use the custom min and max to generate contour list values 3080 # if custom range has been set, use the custom min and max 3081 # to generate contour list values 3089 3082 if { $_settings(-customrange) } { 3090 if { [$itk_component(min) value] > $vmin } { 3091 set vmin [$itk_component(min) value] 3092 } 3093 if { [$itk_component(max) value] < $vmax } { 3094 set vmax [$itk_component(max) value] 3095 } 3083 set vmin [$itk_component(min) value] 3084 set vmax [$itk_component(max) value] 3085 } else { 3086 # use the field limits to calculate the contour list values 3087 foreach { vmin vmax } $_limits($_curFldName) break 3096 3088 } 3097 3089
Note: See TracChangeset
for help on using the changeset viewer.