- Timestamp:
- May 16, 2016, 7:41:22 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/vtksurfaceviewer.tcl
r6338 r6343 1315 1315 set _changed($what) 1 1316 1316 set color [$itk_component(isolinecolor) value] 1317 set _settings($what) $color 1318 SendCmd "contour2d linecolor [Color2RGB $color]" 1317 if { $color == "none" } { 1318 if { $_settings(-isolinesvisible) } { 1319 set _changed(-isolinesvisible) 1 1320 foreach tag [CurrentDatasets -visible] { 1321 SendCmd "contour2d visible 0 $tag" 1322 } 1323 set _settings(-isolinesvisible) 0 1324 } 1325 } else { 1326 set _settings($what) $color 1327 if { !$_settings(-isolinesvisible) } { 1328 set _changed(-isolinesvisible) 1 1329 foreach tag [CurrentDatasets -visible] { 1330 SendCmd "contour2d visible 0 $tag" 1331 } 1332 set _settings(-isolinesvisible) 1 1333 } 1334 SendCmd "contour2d linecolor [Color2RGB $color]" 1335 } 1319 1336 DrawLegend 1320 1337 } … … 1324 1341 SendCmd "contour2d visible 0" 1325 1342 if { $bool } { 1343 if { [$itk_component(isolinecolor) value] != $_settings(-isolinecolor)} { 1344 $itk_component(isolinecolor) value $_settings(-isolinecolor) 1345 } 1326 1346 foreach tag [CurrentDatasets -visible] { 1327 1347 SendCmd "contour2d visible $bool $tag"
Note: See TracChangeset
for help on using the changeset viewer.