Class MeshGridGeometry
java.lang.Object
repast.simphony.visualization.visualization3D.MeshGridGeometry
- All Implemented Interfaces:
DataGeometry
This uses a terrain drawing algorithm described by Mike Jacobs in JDJ
"When Mars is Too Big to Download",
http://java.sys-con.com/read/46231.htm It departs from that slightly
though. The algorithm calculates terrain cooridinates / colors using the four
corners of a row column. This means that the final column / row doesn't align
with our grids because the values of those row / columns are actually
displayed as part of the preceeding row column. Consequently we add a final
"fake" column and and "fake" row that just duplicates the of the previous row
/ column.
- Version:
- $Revision: 1.1 $ $Date: 2006/01/06 22:35:19 $
- Author:
- Nick Collier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyUpdate
(org.jogamp.java3d.Geometry geometry) org.jogamp.java3d.Geometry
getGeometry
(ValueLayerStyle3D style) void
update
(ValueLayerStyle3D style)
-
Constructor Details
-
MeshGridGeometry
public MeshGridGeometry(int xDim, int zDim, int xOffset, int zOffset)
-
-
Method Details
-
getGeometry
- Specified by:
getGeometry
in interfaceDataGeometry
-
update
- Specified by:
update
in interfaceDataGeometry
-
applyUpdate
public void applyUpdate(org.jogamp.java3d.Geometry geometry) - Specified by:
applyUpdate
in interfaceDataGeometry
-