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

Re: Aspect of 2D-Displays

Hi Doug,

> How hard would it be to implement an aspect ratio that is independent of
> the projection matrix? (Am I correct in assuming that the box is defined
> by -1 to 1 and the aspect is manipulated by the transformation matrix?)

Your assumption is correct.  I have thought about doing what
you want, because I want it too.  However, there are some nasty
details and I just haven't had time to attack this problem.

One work around is to turn the box off using
DisplayRenderer.setBoxOn(false), then to create your own box
using a ScalarMap to Display.Shape.  You'd also need to figure
the right values for setRange() to (-1, +1) to get the range you
want in your custom box.  Axis scales would be tricky, although
Don Murray is working on something new for them.

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



 
 
  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