Changeset 3833


Ignore:
Timestamp:
Jul 24, 2013, 1:24:52 PM (11 years ago)
Author:
ldelgass
Message:

Fix clients to use vtkvis 1.5 protocol

Location:
trunk/gui/scripts
Files:
4 edited

Legend:

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

    r3814 r3833  
    13831383            if { $color == "none" } {
    13841384                if { $_settings(colormapVisible) } {
    1385                     SendCmd "glyphs colormode ccolor {}"
     1385                    SendCmd "glyphs colormode constant {}"
    13861386                    set _settings(colormapVisible) 0
    13871387                }
     
    15321532        SendCmd "axis color all $rgb"
    15331533        SendCmd "outline color $rgb"
    1534         #SendCmd "cutplane ccolor $rgb"
     1534        #SendCmd "cutplane color $rgb"
    15351535    }
    15361536}
  • trunk/gui/scripts/vtkisosurfaceviewer.tcl

    r3814 r3833  
    13891389            if { $color == "none" } {
    13901390                if { $_settings(colormapVisible) } {
    1391                     SendCmd "contour3d colormode ccolor {}"
     1391                    SendCmd "contour3d colormode constant {}"
    13921392                    set _settings(colormapVisible) 0
    13931393                }
     
    15541554        SendCmd "axis color all $rgb"
    15551555        SendCmd "outline color $rgb"
    1556         SendCmd "cutplane ccolor $rgb"
     1556        SendCmd "cutplane color $rgb"
    15571557    }
    15581558}
  • trunk/gui/scripts/vtkstreamlinesviewer.tcl

    r3816 r3833  
    21682168    SendCmd "cutplane add $tag"
    21692169    SendCmd "polydata add $tag"
    2170     #SendCmd "polydata colormode ccolor {} $tag"
     2170    SendCmd "polydata colormode constant {} $tag"
    21712171    set _settings(volumeEdges) $settings(-edges)
    21722172    set _settings(volumeLighting) $settings(-lighting)
  • trunk/gui/scripts/vtkviewer.tcl

    r3817 r3833  
    13761376                if { $type == "polydata" } {
    13771377                    ChangeColormap $dataobj $comp $palette
     1378                    # FIXME: fill in current selected fieldname
    13781379                    #SendCmd "polydata colormode scalar {} $dataset"
    13791380                }
     
    16831684        switch -- [$dataobj type $comp] {
    16841685            "polydata" {
    1685                 # FIXME: Can't colormap a polydata from a scalar field
    1686                 # currently.  If we want to support this, need to use
    1687                 # a pseudocolor instead of a polydata, or add colormap
    1688                 # support to polydata
    1689                 #SendCmd "polydata colormap $name $tag"
     1686                SendCmd "polydata colormap $name $tag"
    16901687            }
    16911688            "glyphs" {
     
    24532450        "glyphs" {
    24542451            array set settings {
    2455                 -color \#808080
     2452                -color \#FFFFFF
    24562453                -gscale 1
    24572454                -edges 0
     
    24692466            SendCmd "glyphs gscale $settings(-gscale) $tag"
    24702467            SendCmd "glyphs wireframe $settings(-wireframe) $tag"
    2471             #SendCmd "glyphs ccolor [Color2RGB $settings(-color)] $tag"
    2472             #SendCmd "glyphs colormode ccolor {} $tag"
     2468            SendCmd "glyphs color [Color2RGB $settings(-color)] $tag"
     2469            #SendCmd "glyphs colormode constant {} $tag"
    24732470            SendCmd "glyphs gorient 0 {} $tag"
    24742471            SendCmd "glyphs smode vcomp {} $tag"
     
    24992496            set _settings(polydata-edges) $settings(-edges)
    25002497            SendCmd "polydata color [Color2RGB $settings(-color)] $tag"
     2498            #SendCmd "polydata colormode constant {} $tag"
    25012499            SendCmd "polydata lighting $settings(-lighting) $tag"
    25022500            set _settings(polydata-lighting) $settings(-lighting)
Note: See TracChangeset for help on using the changeset viewer.