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.
Ji Julien, > Thanks for pointing me towards the main methods in > > BarbManipulationRendererJ2D > BarbManipulationRendererJ3D > BarbRendererJ2D > BarbRendererJ3D > > Indeed, there are main methods that display wind barbs. > > My next question/comment: > > What I would ideally like to find is a method that returns a > VisADGeometryArray of a wind barb. This array would then easily allow the > creation of a shape object for display. > > Does anyone know of such a method? The barbs are "drawn" into float[] arrays in the staic methods visad/bom/ShadowBarbRealTupleTypeJ*D.makeBarb(). You could invoke one of those methods, then use the float[] arrays to create VisADLineArrays and VisADTriangleArrays (for the 50 kt flags), as is done in the static staticMakeFlow() methods of the same classes. Note however that these include some complex logic for adjusting for coordinate transforms. I'm a little curious why you want to render barb gemetries into VisAD shapes, rather than just rendering barbs as is done from BarbRendererJ*D.main()? Cheers, Bill Hibbard hibbard@xxxxxxxxxxxxxxxxx
visad
archives: