Changeset 6445 for trunk/gui


Ignore:
Timestamp:
Jul 27, 2016, 1:30:08 PM (8 years ago)
Author:
ldelgass
Message:

Fix "-color" setting for setting the colormap name for glyphs or polydata in the
vtkviewer. Make the constant colormode setting "-constcolor".

File:
1 edited

Legend:

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

    r6442 r6445  
    26312631        "glyphs" {
    26322632            array set settings {
    2633                 -color white
     2633                -color BCGYR
     2634                -constcolor white
    26342635                -edgecolor black
    26352636                -edges 0
     
    26642665            }
    26652666            SendCmd "outline add $tag"
    2666             SendCmd "outline color [Color2RGB $settings(-color)] $tag"
     2667            SendCmd "outline color [Color2RGB $settings(-constcolor)] $tag"
    26672668            SendCmd "outline visible $settings(-outline) $tag"
    26682669            set _settings(glyphs-outline) $settings(-outline)
     
    26722673            SendCmd "glyphs gscale $settings(-gscale) $tag"
    26732674            SendCmd "glyphs wireframe $settings(-wireframe) $tag"
    2674             SendCmd "glyphs color [Color2RGB $settings(-color)] $tag"
     2675            SendCmd "glyphs color [Color2RGB $settings(-constcolor)] $tag"
    26752676            #SendCmd "glyphs colormode constant {} $tag"
    26762677            # Omitting field name for gorient and smode commands
     
    28342835            array set settings {
    28352836                -cloudstyle "mesh"
    2836                 -color white
     2837                -color BCGYR
     2838                -constcolor white
    28372839                -edgecolor black
    28382840                -edges 1
     
    28472849
    28482850            SendCmd "outline add $tag"
    2849             SendCmd "outline color [Color2RGB $settings(-color)] $tag"
     2851            SendCmd "outline color [Color2RGB $settings(-constcolor)] $tag"
    28502852            SendCmd "outline visible $settings(-outline) $tag"
    28512853            set _settings(polydata-outline) $settings(-outline)
     
    28572859            set _settings(polydata-edges) $settings(-edges)
    28582860            SendCmd "polydata cloudstyle $settings(-cloudstyle) $tag"
    2859             SendCmd "polydata color [Color2RGB $settings(-color)] $tag"
     2861            SendCmd "polydata color [Color2RGB $settings(-constcolor)] $tag"
    28602862            #SendCmd "polydata colormode constant {} $tag"
    28612863            SendCmd "polydata lighting $settings(-lighting) $tag"
Note: See TracChangeset for help on using the changeset viewer.