Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: another wind barb question

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


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690