Xj3D 2.0 VRML/X3D Code API

org.web3d.vrml.nodes
Interface VRMLTerrainSource


public interface VRMLTerrainSource

Representation of a node that supplies terrain data.

Version:
$Revision: 1.2 $
Author:
Alan Hudson

Method Summary
 double[] getGeoOrigin()
          Get the origin of this source in GC coordinates.
 double[] getHeight()
          Get the height data.
 double[] getSpacing()
          Get the spacing data.
 float[][][] getTextureCoords()
           
 int getXSize()
          Get the xSize.
 int getZSize()
          Get the zSize.
 boolean useRoam()
          Should we use Roam to display this terrain.
 

Method Detail

getHeight

double[] getHeight()
Get the height data. Provide a direct reference to the height data to avoid a copy. Height data is usually a field, no listeners needed for changes.

Returns:
The height data

getSpacing

double[] getSpacing()
Get the spacing data.

Returns:
The spacing data

getXSize

int getXSize()
Get the xSize.

Returns:
the number of points in the x direction.

getZSize

int getZSize()
Get the zSize.

Returns:
the number of points in the z direction.

useRoam

boolean useRoam()
Should we use Roam to display this terrain.


getGeoOrigin

double[] getGeoOrigin()
Get the origin of this source in GC coordinates.


getTextureCoords

float[][][] getTextureCoords()

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium