Changeset 5317 for trunk/gui


Ignore:
Timestamp:
Apr 25, 2015, 3:40:43 PM (10 years ago)
Author:
ldelgass
Message:

In field::blob method, try the supported formats first. Currently, parsing
DX as VTK can fill in xy data and that was causing blob to return an empty
string.

File:
1 edited

Legend:

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

    r5159 r5317  
    376376        set cname "component"
    377377    }
    378     if {[info exists _comp2xy($cname)]} {
    379         return ""
    380     }
    381     if { [info exists _comp2vtk($cname)] } {
    382         error "blob not implemented for VTK file data"
    383     }
    384378    if {[info exists _comp2dx($cname)]} {
    385379        return $_comp2dx($cname)  ;# return gzipped, base64-encoded DX data
     
    392386    if {[info exists _comp2unirect3d($cname)]} {
    393387        return [$_comp2unirect3d($cname) blob]
     388    }
     389    if { [info exists _comp2vtk($cname)] } {
     390        error "blob not implemented for VTK file data"
     391    }
     392    if {[info exists _comp2xy($cname)]} {
     393        error "blob not implemented for XY data"
    394394    }
    395395    error "can't get field blob: Unknown component \"$cname\": should be one of [join [lsort [array names _comp2dims]] {, }]"
Note: See TracChangeset for help on using the changeset viewer.