Changeset 3686 for trunk/gui/scripts


Ignore:
Timestamp:
Jun 14, 2013 2:42:39 PM (11 years ago)
Author:
gah
Message:

add initial implementation of glyph viewer (temporary, to be folded into streamlines viewer)

Location:
trunk/gui/scripts
Files:
2 edited

Legend:

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

    r3684 r3686  
    13421342        append out "$vtkassoc $numValues\n"
    13431343        if { $_comp2type($cname) == "scalar" } {
    1344             set vtktype "SCALARS"
     1344            append out "SCALARS $label double $elemSize\n"
     1345            append out "LOOKUP_TABLE default\n"
    13451346        } elseif { $_comp2type($cname) == "vector" } {
    1346             set vtktype "VECTORS"
     1347            append out "VECTORS $label double $elemSize\n"
    13471348        } else {
    13481349            error "unknown element type \"$_comp2type($cname)\""
    13491350        }
    1350         append out "$vtktype $label double $elemSize\n"
    1351         append out "LOOKUP_TABLE default\n"
    13521351        append out "[$vector range 0 end]\n"
    13531352        if 0 {
  • trunk/gui/scripts/vtkglyphviewer.tcl

    r3685 r3686  
    21172117    SendCmd "glyphs add arrow $tag"
    21182118    SendCmd "glyphs edges $style(-edges) $tag"
    2119     SendCmd "glyphs gscale 10 $tag"
     2119    SendCmd "glyphs gscale 20 $tag"
    21202120    SendCmd "outline add $tag"
    21212121    SendCmd "outline color [Color2RGB $itk_option(-plotforeground)] $tag"
Note: See TracChangeset for help on using the changeset viewer.