ShapeSet

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        |
*----------------------------------------------------------------------*


  • 2001 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: