RE: your mail

I sent in my last email my VisadAPI.java class and the portion in
SpreadSheet.java that I added. One thing that I didn't menion before is that
the cube image from small.v5d shows up but without any mappings since I
called mySS.myAutoDetect(false) at the beginning to clear Visad's mappings.
However, I expected to see my mappings show up with alt ->radius,
alt->green, lat ->blue, and long->red but they don't appear. I'm also sure
that the mappings I specified are getting stored in myMappings[] from
printouts. I'm just not sure if myBasicSS.setMaps(mySS.myMappings) is
setting them properly.

Thanks for your help,
Michelle

Michelle Kam           (408) 742-2881
Lockheed Martin Space Systems Co. SSM/ATC/MSIS
B/153 O/L922 
1111 Lockheed Martin Way, Sunnyvale, CA 94089




-----Original Message-----
From: Curtis Rueden [mailto:curtis@xxxxxxxxxxxxx]
Sent: Tuesday, June 10, 2003 5:44 PM
To: Kam, Michelle C
Subject: RE: your mail


Hi Michelle,

Somewhere, you are calling BasicSSCell.addDataSource().
Wherever you are doing that, whether by hacking SpreadSheet.java
in your own extension of the SpreadSheet, or some other solution,
that same method can contain the call to BasicSSCell.setMaps()
immediately afterward.

Swells.java does not use the SpreadSheet; it just uses the
general VisAD functionality.  If you want a SpreadSheet cell to
use certain mappings, call BasicSSCell.setMaps().  If you just
want a normal VisAD display (i.e., not a SpreadSheet cell), then
feel free to use DisplayImpl.addMap() repeatedly to add the maps.

-Curtis

At 06:13 PM 6/10/2003, Kam, Michelle C wrote:
>Hi Curtis,
>
>Ok so from my understanding, if I want to change the default mappings that
>first appear or overwrite the default mappings when loading a file, I would
>have to create a new class which creates the array of ScalarMap's and adds
>them to the display  such as with a call to display.addMap(someMap)? 
>
>
>Also, I was looking at Swells.java as an example, and they don't call
>BasicSSCell.setMaps() from within that class so do you recommend trying to
>call it from my own subclass?
>
>Thanks,
>Michelle


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