Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

Re: shapes

Hi Igor,

>     is it possible to create a set with, for example, the following values: 
> {1, 2, 3, 4}, and then somehow link it to a VisADGeometryArray[]
> in such a way that a different shape would be used for certain points?
> In other words:
> I need certain points to use certain shapes depending on some variable 
> (point_id). For example, if point_id = 1 it would be displayed as a
> cross, and if point_id = 2 as a triangle. point_id chages randomly.
> Could it be done by creating a RealType and mapping i to something?

This is exactly how VisAD works. map your RealType to
Display.Shape, get the ShapeControl, then pass the Set to
shapeControl.setShapeSet(), and pass an VisADGeometryArray[]
to shapeControl.setShapes().

Good luck,
Bill
----------------------------------------------------------
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html


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