Ignore:
Timestamp:
Mar 25, 2013, 10:12:31 AM (12 years ago)
Author:
gah
Message:

These was are all related to the omenwire example.

o Added validity test for fields, meshes, clouds, and unirect2ds. There is

now a "isvalid" method that viewers should use to verify that the data object
can be plotted.

In some cases with fields this means that the widget won't even be created.
The resultviewer tests for the dimensionality which is by default 0.

o Thanks to Leif for pointing this out, it's not enough to check if the field

is valid. Individual components of the field may be invalid. Added check so
that viewers are never passed the names of invalid field components.

o Changed many "error" commands to just print to stderr and tolerantly deal

with the error.

File:
1 edited

Legend:

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

    r3551 r3571  
    19691969    append out "SPACING 1 1 1 \n"
    19701970    append out "POINT_DATA [expr $xN * $yN] \n"
    1971     append out "SCALARS field float 1 \n"
     1971    append out "SCALARS field double 1\n"
    19721972    append out "LOOKUP_TABLE default \n"
    19731973    append out [join $values "\n"]
Note: See TracChangeset for help on using the changeset viewer.