Changeset 6447
- Timestamp:
- Jul 27, 2016, 2:13:02 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/vtkviewer.tcl
r6445 r6447 1432 1432 "glyphs-colormap" { 1433 1433 set colormap [$itk_component(glyphscolormap) value] 1434 set colormap [$itk_component(glyphscolormap) translate $colormap] 1434 1435 set _settings($what) $colormap 1435 1436 foreach dataset [CurrentDatasets -visible $_first] { … … 1503 1504 } 1504 1505 "polydata-colormap" { 1505 set colormap [$itk_component(meshcolormap) value] 1506 set colormap [$itk_component(polydatacolormap) value] 1507 set colormap [$itk_component(polydatacolormap) translate $colormap] 1506 1508 set _settings($what) $colormap 1507 1509 foreach dataset [CurrentDatasets -visible $_first] { … … 1576 1578 "molecule-colormap" { 1577 1579 set colormap [$itk_component(moleculecolormap) value] 1580 set colormap [$itk_component(moleculecolormap) translate $colormap] 1578 1581 set _settings($what) $colormap 1579 1582 foreach dataset [CurrentDatasets -visible $_first] { … … 2010 2013 } 2011 2014 $inner.colormap choices insert end [GetColormapList] 2012 $itk_component(glyphscolormap) value "BCGYR"2015 $itk_component(glyphscolormap) value [$itk_component(glyphscolormap) label $_settings(glyphs-colormap)] 2013 2016 bind $inner.colormap <<Value>> \ 2014 2017 [itcl::code $this AdjustSetting glyphs-colormap] … … 2078 2081 2079 2082 label $inner.colormap_l -text "Colormap" -font "Arial 9" -anchor w 2080 itk_component add meshcolormap {2083 itk_component add polydatacolormap { 2081 2084 Rappture::Combobox $inner.colormap -width 10 -editable 0 2082 2085 } 2083 2086 $inner.colormap choices insert end [GetColormapList] 2084 $itk_component( meshcolormap) value "BCGYR"2087 $itk_component(polydatacolormap) value [$itk_component(polydatacolormap) label $_settings(polydata-colormap)] 2085 2088 bind $inner.colormap <<Value>> \ 2086 2089 [itcl::code $this AdjustSetting polydata-colormap] … … 2456 2459 } 2457 2460 $inner.colormap choices insert end [GetColormapList -includeElementDefault] 2458 $itk_component(moleculecolormap) value "elementDefault"2461 $itk_component(moleculecolormap) value [$itk_component(moleculecolormap) label $_settings(molecule-colormap)] 2459 2462 bind $inner.colormap <<Value>> \ 2460 2463 [itcl::code $this AdjustSetting molecule-colormap] … … 2675 2678 SendCmd "glyphs color [Color2RGB $settings(-constcolor)] $tag" 2676 2679 #SendCmd "glyphs colormode constant {} $tag" 2680 # Colormap is set by call to SetColormap below 2681 set _settings(glyphs-colormap) $settings(-color) 2682 $itk_component(glyphscolormap) value [$itk_component(glyphscolormap) label $settings(-color)] 2677 2683 # Omitting field name for gorient and smode commands 2678 2684 # defaults to active scalars or vectors depending on mode … … 2815 2821 # Colormap is set by call to SetColormap below 2816 2822 set _settings(molecule-colormap) $settings(-color) 2817 $itk_component(moleculecolormap) value $settings(-color)2823 $itk_component(moleculecolormap) value [$itk_component(moleculecolormap) label $settings(-color)] 2818 2824 SendCmd [list molecule colormode $settings(-colormode) $settings(-colorfield) $tag] 2819 2825 set _settings(molecule-colormode) $settings(-colormode) … … 2861 2867 SendCmd "polydata color [Color2RGB $settings(-constcolor)] $tag" 2862 2868 #SendCmd "polydata colormode constant {} $tag" 2869 # Colormap is set by call to SetColormap below 2870 set _settings(polydata-colormap) $settings(-color) 2871 $itk_component(polydatacolormap) value [$itk_component(polydatacolormap) label $settings(-color)] 2863 2872 SendCmd "polydata lighting $settings(-lighting) $tag" 2864 2873 set _settings(polydata-lighting) $settings(-lighting)
Note: See TracChangeset
for help on using the changeset viewer.