Changeset 3758 for trunk/gui


Ignore:
Timestamp:
Jul 6, 2013, 6:25:02 PM (11 years ago)
Author:
ldelgass
Message:

Fixes for glyph viewer: Field drop down controls colormode only, not vector
field. Scalar fields can appear in list and be used to color glyphs. Don't use
explicit maprange setting, since limits are currently wrong for vector
fields.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/vtkglyphviewer.tcl

    r3723 r3758  
    13921392            if { $color == "none" } {
    13931393                if { $_settings(colormapVisible) } {
    1394                     SendCmd "glyphs surface 0"
     1394                    SendCmd "glyphs colormode ccolor {}"
    13951395                    set _settings(colormapVisible) 0
    13961396                }
    13971397            } else {
    13981398                if { !$_settings(colormapVisible) } {
    1399                     SendCmd "glyphs surface 1"
     1399                    SendCmd "glyphs colormode $_colorMode $_curFldName"
    14001400                    set _settings(colormapVisible) 1
    14011401                }
     
    14551455                return
    14561456            }
    1457             SendCmd "dataset vector $_curFldName"
    1458             SendCmd "dataset maprange explicit $_limits($_curFldName) $_curFldName"
     1457            #SendCmd "dataset maprange explicit $_limits($_curFldName) $_curFldName"
    14591458            #SendCmd "cutplane colormode $_colorMode $_curFldName"
    14601459            SendCmd "glyphs colormode $_colorMode $_curFldName"
     
    15211520    if { $_currentColormap != ""  } {
    15221521        set cmap $_currentColormap
    1523         SendCmdNoWait "legend $cmap vmag $_curFldName {} $w $h 0"
     1522        SendCmdNoWait "legend $cmap $_colorMode $_curFldName {} $w $h 0"
    15241523    }
    15251524}
     
    16281627
    16291628    itk_component add field_l {
    1630         label $inner.field_l -text "Field" -font "Arial 9"
     1629        label $inner.field_l -text "Color By" -font "Arial 9"
    16311630    } {
    16321631        ignore -font
Note: See TracChangeset for help on using the changeset viewer.