Changeset 6464
- Timestamp:
- Aug 3, 2016, 11:14:25 PM (8 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/vtkmeshviewer.tcl
r6461 r6464 1505 1505 array set style { 1506 1506 -cloudstyle mesh 1507 -co lor white1507 -constcolor white 1508 1508 -edgecolor black 1509 1509 -edges 1 … … 1524 1524 1525 1525 if {[$dataobj hints color] != ""} { 1526 set style(-co lor) [$dataobj hints color]1526 set style(-constcolor) [$dataobj hints color] 1527 1527 } 1528 1528 SendCmd "outline add $tag" 1529 SendCmd "outline color [Color2RGB $style(-co lor)] $tag"1529 SendCmd "outline color [Color2RGB $style(-constcolor)] $tag" 1530 1530 SendCmd "outline visible $style(-outline) $tag" 1531 1531 set _settings(-outline) $style(-outline) … … 1537 1537 SendCmd "polydata edges $style(-edges) $tag" 1538 1538 set _settings(-polydataedges) $style(-edges) 1539 SendCmd "polydata color [Color2RGB $style(-co lor)] $tag"1539 SendCmd "polydata color [Color2RGB $style(-constcolor)] $tag" 1540 1540 SendCmd "polydata lighting $style(-lighting) $tag" 1541 1541 set _settings(-polydatalighting) $style(-lighting) -
trunk/gui/scripts/vtkviewer.tcl
r6461 r6464 1822 1822 1823 1823 set name "$style(-color)" 1824 if { ![info exists _colormaps($name)] } {1824 if { $name != "none" && ![info exists _colormaps($name)] } { 1825 1825 BuildColormap $name 1826 1826 set _colormaps($name) 1 … … 1829 1829 $_dataset2style($tag) != $name } { 1830 1830 set _dataset2style($tag) $name 1831 switch -- [$dataobj type $comp] { 1832 "polydata" { 1833 SendCmd "polydata colormap $name $tag" 1834 } 1835 "glyphs" { 1836 SendCmd "glyphs colormap $name $tag" 1837 } 1838 "molecule" { 1839 SendCmd "molecule colormap $name $tag" 1831 if { $name != "none" } { 1832 switch -- [$dataobj type $comp] { 1833 "polydata" { 1834 SendCmd "polydata colormap $name $tag" 1835 } 1836 "glyphs" { 1837 SendCmd "glyphs colormap $name $tag" 1838 } 1839 "molecule" { 1840 SendCmd "molecule colormap $name $tag" 1841 } 1840 1842 } 1841 1843 }
Note: See TracChangeset
for help on using the changeset viewer.