Re: ScalarMaps

Hi BIGJEFF,

Before you call clearMaps, save a reference to the ContourControl
(that you get from getControl() applied to the ScalarMap to
IsoContour). Then, after you addMap() the new one, I think you
can call newContourControl.syncControl(oldContourControl).
Another approach is:

  String save = oldContourControl.getSaveString();
  newContourControl.setSaveString(save);

Good luck,
Bill
----------------------------------------------------------
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html


On Mon, 8 Jul 2002, BIGJEFF wrote:

> Hi.
>
> Ive got these RealTypes:
>      time->( ( xCoord, yCoord, zCoord)-> concentration[])
>
> where concentration[] is the concentration of  a pollutant. Since ive 5
> pollutant, ive got 5 function like the one of above.
>
> These RealTypes are mapped this way:
>    time - Animation
>    xCoord - XAxis
>    yCoord - YAxis
>    zCood - ZAxis
>    Concentration[] - IsoContour
>
> These way im able to visualize some contours in the same display.
>
> But theres one problem. The IsoContour Map is added to display when the
> user (via interface) click s on a button (like Vis5D) and, since the
> user can click on other buttons like "Volume" (with another ScalarMap),
>  the IsoContour Map must be removed from the display too.
>
> So, when i must remove one map, i refresh my display removing all
> references and all maps, and, then, adding all the maps (including the
> new one) and all the references.
>
> The problem is when i do this, the ContourWidgets i prevously got  go
> disabled, and im not abled to use them.
> How can i solve my problem. Many thanks.
>
>
>
>
>


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