Re: Rubber band at desired height

Hi Antonio,

I was able to change the height of the rubber band box,
in the main() method of,
by adding a ConstantMap to ZAxis in the addReferences()
call for the rubber band box. Specifically, I changed:

  display.addReferences(new RubberBandBoxRendererJ3D(x, y, m, m), ref);


  ConstantMap[] maps = {new ConstantMap(0.5, Display.ZAxis)};
  display.addReferences(new RubberBandBoxRendererJ3D(x, y, m, m), ref, maps);

and got a rubber band box sitting above the colored square.

Good luck,

On Mon, 4 Sep 2006, Antonio Benvenuti wrote:

> Hi
> following the example, I have implemented a
> simple zoom function for maps plotted on a 2D display. Now I am trying to
> extend the function to a 3D display, but I am not able to set the altitude
> of the box. I always get the box at altitude 0, which means it is rendered
> mostly under the terrain map.
> Could you help me with a hint?
> Thanks.
> Antonio Benvenuti

To unsubscribe visad, visit: