Hi Jim-
Jim Koutsovasilis wrote:
I have written a renderer that keeps text locked to its
initial position on the screen, even while you zoom and
pan the display.
If you would like to use this renderer, you will need to
copy the following 3 files:
- ScreenLockedRendererJ3D.java
- ShadowScreenLockedFunctionTypeJ3D.java
- ShadowScreenLockedTupleTypeJ3D.java
from the following FTP site:
ftp://ftp.ssec.wisc.edu/pub/visad-2.0/untested/
and place them in the visad/bom directory of your
visad source tree.
To see a demo of the renderer, compile the files and change
to the parent directory of your visad source tree, and type:
java visad.bom.ScreenLockedRendererJ3D
This will display a square with labels at each corner
of the square. You can rotate and pan the display, but
the text will not move. The square will behave as
expected though, as it is not locked to the screen.
Please note that for this renderer to work, you need:
- a tuple type with a domain component mapped to Display.Text.
For example: (latitude, longitude, text)
or
- a function type with a component in the range mapped
to Display.Text.
For example: ((latitude, longitude)->(text))
Please pass on any feedback you may have.
Nice addition. how hard would it be to allow
XAxis, YAxis instead of lat, lon? I would venture
to guess that most people use spatial displays and
not georeferenced ones.
Thanks again.
Don
*************************************************************
Don Murray UCAR Unidata Program
dmurray@xxxxxxxxxxxxxxxx P.O. Box 3000
(303) 497-8628 Boulder, CO 80307
http://www.unidata.ucar.edu/staff/donm
*************************************************************