Re: Screen-Locked text renderer.

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:


from the following FTP site:

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:


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)


- 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 Murray                               UCAR Unidata Program
dmurray@xxxxxxxxxxxxxxxx                        P.O. Box 3000
(303) 497-8628                              Boulder, CO 80307

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