Rubber band at desired height
Antonio Benvenuti
antonio.benvenuti at gmail.com
Tue Sep 5 01:30:25 MDT 2006
Thanks Bill
for the help and your quick response ;O)
Antonio
2006/9/4, Bill Hibbard <billh at ssec.wisc.edu>:
>
> Hi Antonio,
>
> I was able to change the height of the rubber band box,
> in the main() method of RubberBandBoxRendererJ3D.java,
> 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);
>
> to:
>
> 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,
> Bill
>
> On Mon, 4 Sep 2006, Antonio Benvenuti wrote:
>
> > Hi
> >
> > following the RubberBandBoxRendererJ3D.java 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
> >
>
>
--
Antonio Benvenuti
Via Cardinale Giacomo Lercaro, 36
00123-Roma
Tel. 340-1054802
More information about the visad
mailing list