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

Re: FrontDrawer

>       Firstly, thank you very much for your reply.
>
> > > I would like to ask, using VisAD, is there any method, to draw
> > > symbols like TC, High, or Low, on the image? Like those shown on
> > > the weather map, Thanks. I've tried to use Display.Shape, but I
> > > fail to do so.
> >
> > Shape will work for this, and you can find examples in the
> > Test46.java and Test47.java programs in visad/examples.
>
>       Yes, I have tried these examples, but I found that, say, the cross in 
> the example, I've to specify the 4 coordinate of the cross. In my 
> application, say, I want to draw a TC symbol (which I know how to get it from 
> the WeatherSymbols.java) on a particular 2D Field, say, at position (10, 50). 
> What I should do to draw it at there? I do not know how to specify the 
> coordinate of where the symbol I should put.

You need to come up with your own coordinates for whatever
shape you want to draw. If the shape is a text font, then
you can use a ScalarMap to Text, or call the render_label()
or render_font() methods in visad/PlotText.java.

> > > I would also like to know who to use VisAD to draw cold front, etc?
> > > I find that the API have FrontDrawer, but I don't know how to use it.
> > > Are there any sample codes on that? Thank you.
> >
> > The main() method in FrontDrawer.java gives an example.
>
>       I've run the java FrontDrawer, and I don't know how it is used. I can 
> not draw any front on that.

Draw with the right mouse button held down.

Good luck,
Bill


 
 
  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