Changeset 4736 for branches/1.3/gui/scripts
- Timestamp:
- Nov 17, 2014 2:27:24 AM (10 years ago)
- Location:
- branches/1.3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3
-
branches/1.3/gui/scripts/vtkglyphviewer.tcl
r4714 r4736 1750 1750 0,0 $inner.view_l -anchor e -pady 2 \ 1751 1751 0,1 $inner.view -anchor w -pady 2 1752 blt::table configure $inner r0 -resize none 1752 1753 1753 1754 set labels { qx qy qz qw xpan ypan zoom } … … 1775 1776 incr row 1776 1777 1777 blt::table configure $inner c* r*-resize none1778 blt::table configure $inner c* -resize none 1778 1779 blt::table configure $inner c2 -resize expand 1779 1780 blt::table configure $inner r$row -resize expand -
branches/1.3/gui/scripts/vtkisosurfaceviewer.tcl
r4714 r4736 1829 1829 0,0 $inner.view_l -anchor e -pady 2 \ 1830 1830 0,1 $inner.view -anchor w -pady 2 1831 blt::table configure $inner r0 -resize none 1831 1832 1832 1833 set labels { qx qy qz qw xpan ypan zoom } … … 1854 1855 incr row 1855 1856 1856 blt::table configure $inner c* r*-resize none1857 blt::table configure $inner c* -resize none 1857 1858 blt::table configure $inner c2 -resize expand 1858 1859 blt::table configure $inner r$row -resize expand … … 2128 2129 -edgecolor black 2129 2130 -edges 0 2130 -isosurfaceopacity 0.62131 2131 -isosurfacevisible 1 2132 2132 -levels 10 2133 2133 -lighting 1 2134 2134 -linewidth 1.0 2135 -opacity 0.6 2135 2136 -outline 0 2136 2137 -wireframe 0 … … 2144 2145 array set style [$dataobj style $comp] 2145 2146 if { $dataobj != $_first || $style(-levels) == 1 } { 2146 set style(- isosurfaceopacity) 1.02147 set style(-opacity) 1.0 2147 2148 } 2148 2149 … … 2157 2158 2158 2159 if { $_changed(-isosurfaceopacity) } { 2159 set style(- isosurfaceopacity) $_settings(-isosurfaceopacity)2160 set style(-opacity) $_settings(-isosurfaceopacity) 2160 2161 } 2161 2162 if { $_changed(-numcontours) } { … … 2206 2207 SendCmd "contour3d linecolor [Color2RGB $style(-edgecolor)] $tag" 2207 2208 SendCmd "contour3d linewidth $style(-linewidth) $tag" 2208 SendCmd "contour3d opacity $style(- isosurfaceopacity) $tag"2209 set _settings(-isosurfaceopacity) $style(- isosurfaceopacity)2209 SendCmd "contour3d opacity $style(-opacity) $tag" 2210 set _settings(-isosurfaceopacity) $style(-opacity) 2210 2211 SetCurrentColormap $style(-color) 2211 2212 SendCmd "contour3d wireframe $style(-wireframe) $tag" -
branches/1.3/gui/scripts/vtkvolumeviewer.tcl
r4729 r4736 1518 1518 -color BCGYR 1519 1519 -levels 6 1520 -opacity 1.01521 1520 } 1522 1521 set tag $dataobj-$comp … … 1535 1534 array set style $_style($tag) 1536 1535 1537 set name "$style(-color):$style(-levels) :$style(-opacity)"1536 set name "$style(-color):$style(-levels)" 1538 1537 if { ![info exists _colormaps($name)] } { 1539 1538 BuildColormap $name [array get style] … … 1557 1556 set cmap "0.0 0.0 0.0 0.0 1.0 1.0 1.0 1.0" 1558 1557 } 1559 if { ![info exists _settings(-volumeopacity)] } { 1560 set _settings(-volumeopacity) $style(-opacity) 1561 } 1562 set max $_settings(-volumeopacity) 1558 set max 1.0 1563 1559 1564 1560 set opaqueWmap "0.0 1.0 1.0 1.0" … … 2094 2090 } 2095 2091 2096 itcl::body Rappture::VtkVolumeViewer::SetObjectStyle { dataobj c omp} {2092 itcl::body Rappture::VtkVolumeViewer::SetObjectStyle { dataobj cname } { 2097 2093 # Parse style string. 2098 set tag $dataobj-$comp 2099 set style [$dataobj style $comp] 2100 array set settings { 2101 -color \#808080 2102 -edges 0 2103 -edgecolor black 2104 -linewidth 1.0 2105 -opacity 0.4 2106 -wireframe 0 2107 -lighting 1 2108 -seeds 1 2109 -seedcolor white 2110 -visible 1 2111 } 2112 if { $dataobj != $_first } { 2113 set settings(-opacity) 1 2114 } 2115 array set settings $style 2116 SendCmd "volume add $tag" 2094 set tag $dataobj-$cname 2095 set style [$dataobj style $cname] 2096 array set styles { 2097 -lighting 1 2098 -opacity 0.5 2099 -outline 0 2100 -visible 1 2101 } 2102 array set styles [$dataobj style $cname] 2103 set _settings(-volumelighting) $styles(-lighting) 2104 set _settings(-volumeoutline) $styles(-outline) 2105 set _settings(-volumeopacity) [expr $styles(-opacity) * 100.0] 2106 set _settings(-volumevisible) $styles(-visible) 2107 2108 SendCmd "outline add $tag" 2109 SendCmd "outline visible $styles(-outline) $tag" 2110 2111 SendCmd "outline add $tag" 2112 SendCmd "outline visible $styles(-outline) $tag" 2113 2117 2114 SendCmd "$_cutplaneCmd add $tag" 2118 2115 SendCmd "$_cutplaneCmd visible 0 $tag" 2119 2116 2120 SendCmd "volume lighting $settings(-lighting)$tag"2121 set _settings(-volumelighting) $settings(-lighting)2122 Se tColormap $dataobj $comp2123 SendCmd " outline add$tag"2124 Se ndCmd "outline visible 0 $tag"2117 SendCmd "volume add $tag" 2118 SendCmd "volume lighting $styles(-lighting) $tag" 2119 SendCmd "volume opacity $styles(-opacity) $tag" 2120 SendCmd "volume visible $styles(-visible) $tag" 2121 SetColormap $dataobj $cname 2125 2122 } 2126 2123
Note: See TracChangeset
for help on using the changeset viewer.