Re: [visad] Put random text on top of 3D display

  • To: 'Tom Whittaker' <whittaker@xxxxxxxx>
  • Subject: Re: [visad] Put random text on top of 3D display
  • From: Nguyen Tam Chinh <chinh@xxxxxxxxxx>
  • Date: Thu, 5 Aug 2010 10:22:52 +0800
Dear Tom, 

Thank you so much. I'm using Java, not Jython. Actually I started with Jython 
because I was more familiar with Python, but seems we're using all Java 
libraries, it'd better to go with all Java :)
I'll poke around the examples that you suggested!

With best regards,
Chinh Nguyen

-----Original Message-----
From: Tom Whittaker [mailto:whittaker@xxxxxxxx] 
Sent: Wednesday, August 04, 2010 10:26 PM
To: Nguyen Tam Chinh
Cc: visad@xxxxxxxxxxxxxxxx
Subject: Re: [visad] Put random text on top of 3D display

Hi --

I would suggest looking at these VisAD examples:

If you are using Jython, however, I suggest you look in the module at 
the "drawString()" method (plus the init() method that does the scalar 

I will have to let others comment on how to tie these to the cursor position....

Hope this helps.


On Wed, Aug 4, 2010 at 4:59 AM, Nguyen Tam Chinh <chinh@xxxxxxxxxx> wrote:
> Dear All,
> I just started with Visad programming recently so quite new to everything. 
> There is one problem that cracks my head for the last 2 days is to control 
> the text on the 2D or 3D display.
> For example I have DisplayImplJ3D showing a 3D plot from netcdf. I'd like to 
> put a of text or label/annotation ontop but seems it's not straight-forward 
> to do. I'd like to be able to control the text content so that I can 
> manipulate the content according to the current cursor position.
> Would you please kindly advise what is the best way to do this? I'm using 
> SWT_AWT bridge.
> Thank you so much!
> --
> With best regards,
> Chinh
> PS. Seems not many people use visad around, Google hardly gives me good 
> search result ...
> _______________________________________________
> visad mailing list
> visad@xxxxxxxxxxxxxxxx
> For list information, to unsubscribe, visit: 

Tom Whittaker
University of Wisconsin-Madison
Space Science & Engineering Center (SSEC) Cooperative Institute for 
Meteorological Satellite Studies (CIMSS)
1225 W. Dayton Street
Madison, WI  53706  USA
ph: +1 608 262 2759

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