Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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 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
>

==============================================================================
To unsubscribe visad, visit:
http://www.unidata.ucar.edu/mailing-list-delete-form.html
==============================================================================


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690