Changeset 5612


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

Location:
trunk/gui/scripts
Files:
2 edited

Legend:

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

    r5611 r5612  
    10821082# Returns the data storage type of the field.
    10831083#
    1084 # FIXME: What are the valid types?
     1084# Types:
     1085#   1D,cloud,dicom,dx,mesh,ucd,unirect2d,unirect3d,vtk
    10851086#
    10861087itcl::body Rappture::Field::type {} {
  • 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.