Changeset 5188 for trunk/gui/scripts/nanovisviewer.tcl
- Timestamp:
- Apr 2, 2015, 9:35:24 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/1.4 merged: 5187
- Property svn:mergeinfo changed
-
trunk/gui/scripts/nanovisviewer.tcl
r5184 r5188 560 560 # ---------------------------------------------------------------------- 561 561 itcl::body Rappture::NanovisViewer::scale {args} { 562 array set style s{562 array set style { 563 563 -color BCGYR 564 564 -levels 6 … … 574 574 if { ![info exists _volcomponents($cname)] } { 575 575 lappend _componentsList $cname 576 array set style s[lindex [$dataobj components -style $cname] 0]577 set cmap [ColorsToColormap $style s(-color)]576 array set style [lindex [$dataobj components -style $cname] 0] 577 set cmap [ColorsToColormap $style(-color)] 578 578 set _cname2defaultcolormap($cname) $cmap 579 set _settings($cname-colormap) $style s(-color)579 set _settings($cname-colormap) $style(-color) 580 580 } 581 581 lappend _volcomponents($cname) $dataobj-$cname … … 1038 1038 set tag $_first-$cname 1039 1039 if { [info exists _serverDatasets($tag)] && $_serverDatasets($tag) } { 1040 array set style s{1040 array set style { 1041 1041 -cutplanes 1 1042 1042 } 1043 array set style s[lindex [$_first components -style $cname] 0]1044 if { $what != "-cutplanes" || $style s(-cutplanes) } {1043 array set style [lindex [$_first components -style $cname] 0] 1044 if { $what != "-cutplanes" || $style(-cutplanes) } { 1045 1045 lappend rlist $tag 1046 1046 } … … 1413 1413 # 1414 1414 itcl::body Rappture::NanovisViewer::NameTransferFunction { dataobj cname } { 1415 array set style s{1415 array set style { 1416 1416 -color BCGYR 1417 1417 -levels 6 … … 1419 1419 } 1420 1420 set tag $dataobj-$cname 1421 array set style s[lindex [$dataobj components -style $cname] 0]1421 array set style [lindex [$dataobj components -style $cname] 0] 1422 1422 if { ![info exists _cname2transferFunction($cname)] } { 1423 1423 # Get the colormap right now, since it doesn't change with marker 1424 1424 # changes. 1425 set cmap [ColorsToColormap $style s(-color)]1425 set cmap [ColorsToColormap $style(-color)] 1426 1426 set amap [list 0.0 0.0 1.0 1.0] 1427 1427 set _cname2transferFunction($cname) [list $cmap $amap] … … 1459 1459 # reference. 1460 1460 if { ![info exists _parsedFunction($cname)] } { 1461 array set style s{1461 array set style { 1462 1462 -color BCGYR 1463 1463 -levels 6 … … 1467 1467 foreach tag [GetDatasetsWithComponent $cname] { 1468 1468 foreach {dataobj cname} [split [lindex $tag 0] -] break 1469 array set style s[lindex [$dataobj components -style $cname] 0]1469 array set style [lindex [$dataobj components -style $cname] 0] 1470 1470 } 1471 1471 eval $_transferFunctionEditors($cname) limits $_limits($cname) 1472 1472 # Have to defer creation of isomarkers until we have data limits 1473 if { [info exists style s(-markers)] &&1474 [llength $style s(-markers)] > 0 } {1475 ParseMarkersOption $cname $style s(-markers)1473 if { [info exists style(-markers)] && 1474 [llength $style(-markers)] > 0 } { 1475 ParseMarkersOption $cname $style(-markers) 1476 1476 } else { 1477 ParseLevelsOption $cname $style s(-levels)1477 ParseLevelsOption $cname $style(-levels) 1478 1478 } 1479 1479
Note: See TracChangeset
for help on using the changeset viewer.