Ignore:
Timestamp:
May 27, 2015, 3:24:03 PM (9 years ago)
Author:
ldelgass
Message:

Use type method of field in flowvisviewer to determine data format

File:
1 edited

Legend:

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

    r5599 r5612  
    11391139        foreach cname [$dataobj components] {
    11401140            set tag $dataobj-$cname
    1141             set isvtk 0
    1142             # FIXME: Would like to use the type method of the dataobj
    1143             # but the returned value isn't well defined now
    1144             if {[catch {
    1145                 # Send the data as one huge base64-encoded mess -- yuck!
     1141            if {[$dataobj type] == "dx"} {
    11461142                set data [$dataobj blob $cname]
    1147             }]} {
     1143            } else {
    11481144                set data [$dataobj vtkdata $cname]
    1149                 set isvtk 1
    11501145            }
    11511146            set nbytes [string length $data]
Note: See TracChangeset for help on using the changeset viewer.