NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Amaral:First off, since the default box size is ~.7 (meaning about 70% of the window/frame size) you might not be able to see any difference. However, you probably also should put in the code to handle the 3D DisplayImpl as well...something like this (uses 90% so the change is obvious):
ProjectionControl pc = disp.getProjectionControl(); double[] mat = pc.getMatrix(); if (mat.length > 10) { mat[0] = .9; mat[5] = .9; mat[1] = .9; } else { mat[0] = .9/.64; mat[3] = -.9/.64; } pc.setMatrix(mat); Works nicely in my test... Hope that helps. tom Amaral wrote:
I would like to chage the box size using java (not Jython). I tried the code below ( inspired by file subs.py) but something is missing because I could not get done. I appreciate some help: ProjectionControl pc;pc = display.getProjectionControl(); double[] mat = pc.getMatrix(); mat[0] = .70/.64; mat[3] = -.70/.64; pc.setMatrix(mat);
-- Tom Whittaker (tomw@xxxxxxxxxxxxx) University of Wisconsin-Madison Space Science and Engineering Center Cooperative Institute for Meteorological Satellite Studies Phone/VoiceMail: 608.262.2759
visad
archives: