Re: Text on display

Hi Andris,

> I'm very new in visad and Java.
> 
> I have a display of data like (latitude, longitude)-> (RGB), and I want to
> display a text on this. The problem is that the display puts the
> text back, and I don't know how to send it to front.

You can do it by using a DisplayImplJ3D, and passing a
ConstantMap to ZAxis in the call to display.addReference().
If you don't want 3-D perspective, do something like:

  GraphicsModeControl mode = display.getGraphicsModeControl();
  mode.setProjectionPolicy(DisplayImplJ3D.PARALLEL_PROJECTION);

Cheers,
Bill
----------------------------------------------------------
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html


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