Re: [OpenMap Users] RE: Number Of Colors in RPF Layer

From: Don Dietrick <dietrick_at_bbn.com>
Date: Fri, 13 Jan 2006 11:05:58 -0500

It looks like a bug, kinda. It looks like the RpfFrameCacheHandler
gets its RpfColorTable replaced with the frame's version that it last
loaded. The frame's colortable object is created with the default
settings, so you lose the properties settings.

I'm starting to remember why the code does this - originially, a
single colortable was used across all of the frames, and that
colortable was set via the properties. This worked because the
colortable was supposed to be the same across all frames, even though
each frame contains colortable information as well. The problems
started when RPF was being created without a consistent colortable
for a product (GNC, JNC, etc) and you'd get weird colors for some
frames when you mixed and matched data created at different times.
The solution to this was to just have each frame use the colortable
it has, and I think the API made it hard to pass the numberColors
property to the RpfFrame when it's colortable object is created.

And so this is the way it's been for years, and you're the first to
mention it. :)

- Don


On Jan 12, 2006, at 12:24 PM, Chase Barrett wrote:

> Any thoughts?
>
>
>
> From: Chase Barrett [mailto:chase.barrett_at_issinc.com]
> Sent: Thursday, January 05, 2006 2:04 PM
> To: 'openmap-users_at_bbn.com'
> Subject: Number Of Colors in RPF Layer
>
>
>
> Hello all,
>
>
>
> Iíve been looking at some ONC and JNC charts with the numberColors
> property set to various values. It seems that no matter what value
> I choose, thereís no impact on the image appearance. So if I
> select 16, 32, or 216, the chart images appear identical.
>
>
>
> I placed a breakpoint in RpfColortable.setNumColors(), and it seems
> that this method is always passed a value of 216, even though the
> RpfLayer that the color table belongs to has an RpfViewAttributes
> object with a value of 16 in its numberOfColors field.
>
>
>
> Is this a bug?
>
>
>
> Thanks,
>
> Chase
>
>

--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Fri Jan 13 2006 - 11:09:29 EST

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:07 EDT