Re: ColorControls and images

  • To: Tom Rink <rink@xxxxxxxxxxxxx>
  • Subject: Re: ColorControls and images
  • From: Tennessee James Leeuwenburg <tjl@xxxxxxxxxx>
  • Date: Tue, 12 Oct 2004 11:20:24 +1000
Cheers Tom, that fixed it right up! I guessed it might be something like that, but I didn't see the changeControl() method, so thanks very much for pointing it out.


Tom Rink wrote:
Hi Tennessee,

I've noticed the same thing.  You'll have to do:

to get this to work.  I'd  have to look more closely
to say why initGreyWedge doesn't do this.  Perhaps
someone could comment.  I think the reason it works
in SatDisplay is that the image data reference is
added to the display *after* the initGreyWedge call
so the grey table is picked up on the display transform.


On Mon, 11 Oct 2004 06:23:27 -0500 (CDT)
 Bill Hibbard <billh@xxxxxxxxxxxxx> wrote:

Hi Tennessee,

I've got a satellite pic to render which is an image. As such, the only
visual scalarmap I can use is RGB. I want to display it in greyscale,
but when I try to use initGreyWedge, nothing happens. I've got a code
snippet below. When it executes I see the println of "Greyscale" but
then there is no change.

Would you expect this to work?

Yes, since visad/examples/ uses the same
logic. Try running 'jaava SatDisplay' in the visad/examples
directory. It will read image and map files from the ftp
server at UW, so you may want to modify it to read local
files. Please let us know what you find.


Code Snippet :

         if(scalarMap != null) {
             ColorControl cc = (ColorControl) scalarMap.getControl();

             if(mode == ColorConfigurable.GREYSCALE) {

             if(mode == ColorConfigurable.RGB) {

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