Changeset 4140 for trunk/gui


Ignore:
Timestamp:
Jan 20, 2014 5:45:13 PM (10 years ago)
Author:
ldelgass
Message:

Support mesh axis labels (with 'labels' tag), units, and use 'color' tag for
mesh if present.

Location:
trunk/gui/scripts
Files:
2 edited

Legend:

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

    r4138 r4140  
    277277#
    278278itcl::body Rappture::Mesh::label { axis } {
    279     if { ![info exists axis2label($axis)] } {
     279    if { ![info exists _axis2labels($axis)] } {
    280280        return ""
    281281    }
    282     return $axis2label($axis)
     282    return $_axis2labels($axis)
    283283}
    284284
  • trunk/gui/scripts/vtkmeshviewer.tcl

    r4136 r4140  
    891891
    892892        foreach axis { x y z } {
    893             set label [$_first hints ${axis}label]
     893            set label [$_first label ${axis}]
    894894            if { $label != "" } {
    895895                SendCmd "axis name $axis $label"
    896896            }
    897             set units [$_first hints ${axis}units]
     897            set units [$_first units ${axis}]
    898898            if { $units != "" } {
    899899                SendCmd "axis units $axis $units"
     
    17201720    set tag $dataobj
    17211721    set type [$dataobj type]
    1722 #    set style [$dataobj style]
     1722    set color [$dataobj hints color]
    17231723    if { $dataobj != $_first } {
    17241724        set settings(-wireframe) 1
     
    17371737    }
    17381738    # array set settings $style
     1739    if {$color != ""} {
     1740        set settings(-color) $color
     1741    }
    17391742    if {$type == "cloud"} {
    17401743        set settings(-cloudstyle) points
    17411744        set settings(-edges) 0
     1745        set settings(-edgecolor) white
    17421746    }
    17431747    SendCmd "polydata add $tag"
Note: See TracChangeset for help on using the changeset viewer.