- Timestamp:
- Apr 23, 2015, 3:37:58 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/nanovisviewer.tcl
r5294 r5298 2252 2252 itcl::body Rappture::NanovisViewer::SetObjectStyle { dataobj cname } { 2253 2253 array set style { 2254 -opacity 2254 -opacity 0.5 2255 2255 } 2256 2256 array set style [lindex [$dataobj components -style $cname] 0] … … 2258 2258 # override the requested opacity for now 2259 2259 set style(-opacity) 0.5 2260 set _settings($cname-opacity) $style(-opacity)2260 set _settings($cname-opacity) [expr $style(-opacity) * 100.0] 2261 2261 set tag $dataobj-$cname 2262 SendCmd "volume shading opacity $ _settings($cname-opacity) $tag"2262 SendCmd "volume shading opacity $style(-opacity) $tag" 2263 2263 NameTransferFunction $dataobj $cname 2264 2264 }
Note: See TracChangeset
for help on using the changeset viewer.