Re: [idvusers] Better flow vector arrow rendering, how?

Hi Ken-

I was hoping someone else would answer your question. ;-) I think the main issue is anti-aliasing. The vector is just 3 lines (2 for the arrow head, 1 for the arrow shaft). You could also try setting the line width so the aliasing is not as much of a factor.

An alternative to changing the VisAD code would be to create your own DataRenderer and override the getDataRenderer method of ucar.visad.display.FlowDisplayable. That's what I did to change the default behavior of WindBarbDisplayable.

There are examples of other flow DataRenderers (e.g. SwellRendererJ3D()) in the visad.bom class.

Don

On 7/31/13 12:16 PM, Ken Ellinwood wrote:
Answering my own question... the relevant code appears to be in 
visad.ShadowType.makeFlow().  I'll switch to the visad mailing list for 
anything else on this issue.

Ken



________________________________
  From: Ken Ellinwood <kellinwood@xxxxxxxxx>
To: "idvusers@xxxxxxxxxxxxxxxx" <idvusers@xxxxxxxxxxxxxxxx>
Sent: Friday, July 26, 2013 3:32 PM
Subject: [idvusers] Better flow vector arrow rendering, how?


See the attached image which shows wind speed in a colored filled contour 
display and the wind direction via a vector plan view.  I'm hoping to get 
better quality arrow rendering in the vector plan view.  When the arrows are 
oriented horizontally the arrow heads disappear and I'm hoping to fix this 
somehow, even if it means modifying the code.  I've got the IDV, Visad, and 
NetCDF code for the the 4.0u1 release loaded into my IDE.  I've been searching 
and setting breakpoints hoping to figure out where the arrows are rendered, but 
haven't stubled up on it yet.  Any clues?

Thanks,

Ken
_______________________________________________
idvusers mailing list
idvusers@xxxxxxxxxxxxxxxx
For list information, to unsubscribe, visit: 
http://www.unidata.ucar.edu/mailing_lists/
_______________________________________________
idvusers mailing list
idvusers@xxxxxxxxxxxxxxxx
For list information, to unsubscribe, visit: 
http://www.unidata.ucar.edu/mailing_lists/


--
Don Murray
NOAA/ESRL/PSD and CIRES
303-497-3596
http://www.esrl.noaa.gov/psd/people/don.murray/



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