j3d.org Code

org.j3d.loaders
Interface HeightMapSource

All Known Implementing Classes:
BTParser, DEMParser

public interface HeightMapSource

A marker interface that describs a parser implementation that produces heightfield information.

Version:
$Revision: 1.1 $
Author:
Justin Couch

Method Summary
 float[] getGridStep()
          Fetch information about the real-world stepping sizes that this grid uses.
 float[][] getHeights()
          Return the height map created for the last stream parsed.
 

Method Detail

getHeights

float[][] getHeights()
Return the height map created for the last stream parsed. If no stream has been parsed yet, this will return null. Height is relative to sea-level which has a value of zero.

Returns:
The array of heights in [row][column] order or null

getGridStep

float[] getGridStep()
Fetch information about the real-world stepping sizes that this grid uses. This array

Returns:
The stepping information for width[0] and depth [1]

j3d.org Code

Latest Info from http://code.j3d.org/
Copyright © 2001 - j3d.org