Changeset 6448 for branches/1.7


Ignore:
Timestamp:
Jul 27, 2016 2:23:31 PM (8 years ago)
Author:
ldelgass
Message:

merge r6447 from trunk to 1.7 branch (init colormap dropdown)

Location:
branches/1.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.7

    • Property svn:mergeinfo changed
      /trunkmerged: 6447
  • branches/1.7/gui/scripts/vtkviewer.tcl

    r6446 r6448  
    14321432        "glyphs-colormap" {
    14331433            set colormap [$itk_component(glyphscolormap) value]
     1434            set colormap [$itk_component(glyphscolormap) translate $colormap]
    14341435            set _settings($what) $colormap
    14351436            foreach dataset [CurrentDatasets -visible $_first] {
     
    15031504        }
    15041505        "polydata-colormap" {
    1505             set colormap [$itk_component(meshcolormap) value]
     1506            set colormap [$itk_component(polydatacolormap) value]
     1507            set colormap [$itk_component(polydatacolormap) translate $colormap]
    15061508            set _settings($what) $colormap
    15071509            foreach dataset [CurrentDatasets -visible $_first] {
     
    15761578        "molecule-colormap" {
    15771579            set colormap [$itk_component(moleculecolormap) value]
     1580            set colormap [$itk_component(moleculecolormap) translate $colormap]
    15781581            set _settings($what) $colormap
    15791582            foreach dataset [CurrentDatasets -visible $_first] {
     
    20102013    }
    20112014    $inner.colormap choices insert end [GetColormapList]
    2012     $itk_component(glyphscolormap) value "BCGYR"
     2015    $itk_component(glyphscolormap) value [$itk_component(glyphscolormap) label $_settings(glyphs-colormap)]
    20132016    bind $inner.colormap <<Value>> \
    20142017        [itcl::code $this AdjustSetting glyphs-colormap]
     
    20782081
    20792082    label $inner.colormap_l -text "Colormap" -font "Arial 9" -anchor w
    2080     itk_component add meshcolormap {
     2083    itk_component add polydatacolormap {
    20812084        Rappture::Combobox $inner.colormap -width 10 -editable 0
    20822085    }
    20832086    $inner.colormap choices insert end [GetColormapList]
    2084     $itk_component(meshcolormap) value "BCGYR"
     2087    $itk_component(polydatacolormap) value [$itk_component(polydatacolormap) label $_settings(polydata-colormap)]
    20852088    bind $inner.colormap <<Value>> \
    20862089        [itcl::code $this AdjustSetting polydata-colormap]
     
    24562459    }
    24572460    $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)]
    24592462    bind $inner.colormap <<Value>> \
    24602463        [itcl::code $this AdjustSetting molecule-colormap]
     
    26752678            SendCmd "glyphs color [Color2RGB $settings(-constcolor)] $tag"
    26762679            #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)]
    26772683            # Omitting field name for gorient and smode commands
    26782684            # defaults to active scalars or vectors depending on mode
     
    28152821            # Colormap is set by call to SetColormap below
    28162822            set _settings(molecule-colormap) $settings(-color)
    2817             $itk_component(moleculecolormap) value $settings(-color)
     2823            $itk_component(moleculecolormap) value [$itk_component(moleculecolormap) label $settings(-color)]
    28182824            SendCmd [list molecule colormode $settings(-colormode) $settings(-colorfield) $tag]
    28192825            set _settings(molecule-colormode) $settings(-colormode)
     
    28612867            SendCmd "polydata color [Color2RGB $settings(-constcolor)] $tag"
    28622868            #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)]
    28632872            SendCmd "polydata lighting $settings(-lighting) $tag"
    28642873            set _settings(polydata-lighting) $settings(-lighting)
Note: See TracChangeset for help on using the changeset viewer.