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.
Hi, Jim, Thanks for you reply. What I want is to display the block's width and height with the value DX[i] and DY[j] one by one. But when I used the Gridded2DSet, it seems that the block's width and height is not equals to the DX[i] and DY[j]. I don't know how the Gridded2DSet discript the block's width and height, or my array DX and DY is not used and only used the summation of DX and DY? Another question: How can I zoom in/out the display? Now the default event of dragged mouse is: BUTTON1 move the display, BUTTON2 give the position's lat/lon, BUTTON3 do nothing. How can I change this event? thanks lizhi ----- Original Message ----- From: "Jim Koutsovasilis" <J.Koutsovasilis@xxxxxxxxxx> To: "Wang Lizhi" <wlz@xxxxxxxxx> Cc: <visad@xxxxxxxxxxxxxxxx> Sent: Thursday, January 04, 2007 11:15 AM Subject: RE: How to display block data? 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@xxxxxxxxxxxxxxxx on behalf of Wang Lizhi Sent: Thu 4/01/2007 12:11 PM To: visad@xxxxxxxxxxxxxxxx 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 ============================================================================== ============================================================================== To unsubscribe visad, visit: http://www.unidata.ucar.edu/mailing-list-delete-form.html ==============================================================================
visad
archives: