How to display block data?

Jim Koutsovasilis J.Koutsovasilis at bom.gov.au
Wed Jan 3 20:15:02 MST 2007


Hello Lizhi,

just some quick notes related to your problem.

Did you want to change your display to a parallel projection instead of
a (default) perspective projection? You can do this by adding the call
to GraphicsModeControl.setProjectionPolicy() as follows:

> DisplayImplJ3D display = new DisplayImplJ3D( "Display" );
> GraphicsModeControl dispGMC =
(GraphicsModeControl)display.getGraphicsModeControl();
> dispGMC.setScaleEnable( true );
+ dispGMC.setProjectionPolicy(DisplayImplJ3D.PARALLEL_PROJECTION);

After this, you'll notice that the 'white box' which surrounds your data
will be displayed as a rectangle, rather than a cube.

To turn the 'box' off, you can use:

+ DisplayRenderer displayRenderer = display.getDisplayRenderer();
+ displayRenderer.setBoxOn(false);

Regards,
Jim.

---
Jim Koutsovasilis
Australian Bureau of Meteorology


-----Original Message-----
From: owner-visad at unidata.ucar.edu on behalf of Wang Lizhi
Sent: Thu 4/01/2007 12:11 PM
To: visad at unidata.ucar.edu
Subject: How to display block data?

Hi,

I'm confused by the Gridded2DSet. I don't know how to use visad to
display the blocks.
My block data is very simple:   NX = 3, with DX[3] = { 2, 3, 2 },
NY=2 with DY[2]={2,1}. I think the picture should be the first pic
at the website http://wlz.tea.ac.cn/study/visad/3d-1.htm , but when I
use the visad with Gridded2DSet, I get the second pic.  How can I draw
the data?

    thanks

lizhi


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



More information about the visad mailing list