NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
I've always use an Integer1DSet for ShapeControl.setShapeSet() such that my Field range values are effectively indices into the VisADGeometryArray[] used for setShapes(), to minimize confusion if nothing else. I now need to represent an observation as a shape with multiple VisADGeometryArrays, i.e. a VisADGeometryArray[]. Instead of making a Field with the same domain values repeated and range values from 0 to n for each of the n GeometryArrays, I thought there ought to be a clever way to make use of the ShapeSet. My Field has a single sample with a range value of 0. My ShapeSet is a Linear1DSet( 0.0, 0.0, n ). This works if n = 1, but I see nothing on the display when n > 1. More surprising, perhaps, I don't even see any Exceptions. Should this approach work? If not, are there any other ideas? Is there a case where it makes sense to use anything other than an Integer1DSet for the ShapeSet? It's an extra level of complexity in an already complex API for making shapes. Thanks, Doug -- *----------------------------------------------------------------------* | Doug Lindholm, Software Engineer | E-mail: lind@xxxxxxxx | | Research Applications Program | Phone: 303-497-8374 | | National Center for Atmospheric Research | | | P.O. Box 3000 | There's no place | | Boulder, Colorado 80307-3000 | like $HOME | *----------------------------------------------------------------------*
visad
archives: