Re: shape thickness

Hi Leah,

> I tried that earlier and ran into a problem.  I am constantly
> changing the data displayed by my application.  When I change
> the data I removeAllReferences() from my display, reset the
> data and re-add the references.  If I add a constant map in
> addReference(), the second time I add the reference I get
> an exception saying that I can't add the same constant map
> twice.  But, if I don't add a constant map, the data is
> displayed as though a constant map isn't there at all.
>
> I looked through the visad/example code.  The closest
> example creates a new display and then adds all the scalar
> and constant maps.  I'd prefer not to create a new display
> everytime I change the data.
>
> How can I get around this?

No, its much simpler. Instead of removeAllReferences(),
just call removeRefernce() for the one DataReference,
then construct a new ConstantMap (i.e., don't reuse the
old one, but construct a new identical one) and pass it
to the addReference().

Good luck,
Bill



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