Re: Display a series of 2D curves in a 3D display

On Wed, 17 Apr 2002, Mark Thompson wrote:

> for example, what do these lines of code (from Test47.java) do?
>
> ScalarMap shape_map = (ScalarMap )display.getMapVector().lastElement();
> RealType count = (RealType )shape_map.getScalar();
> float[][] counts = new float[][] {{0.0f, 1.0f, 2.0f, 3.0f}};
> Gridded1DSet count_set = new Gridded1DSet(count, counts, counts[0].length);

This gets the last ScalarMap in the display (which the app knows is
to Shape), gets its RealType, creates a float[][] array, and creates
a Gridded1DSet.

I am travelling until the end of April, and will be very busy after
my return, so please try to figure this out on your own. You can
find more examples of Shape in visad/bom and visad/rabin.

Bill


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