j3d.org Code

org.j3d.terrain
Interface StaticTerrainData

All Superinterfaces:
HeightDataSource, TerrainData
All Known Implementing Classes:
AbstractStaticTerrainData, HeightMapTerrainData

public interface StaticTerrainData
extends TerrainData

Terrain data that represents a static collection of information.

A static terrain representation contains points that can all be loaded at setup time. Typically used to represent smaller datasets, this interface provides the representation of the data all at once and assumes a single texture object covers the entire dataset. However, don't forget that Java3D Texture object does allow multi-level mip-mapping within the texture instance.

TerrainData.getSourceDataType() always returns TerrainData.STATIC_DATA.

Version:
$Revision: 1.2 $
Author:
Justin Couch

Field Summary
 
Fields inherited from interface org.j3d.terrain.TerrainData
FREEFORM_DATA, STATIC_DATA, TILED_DATA
 
Method Summary
 int getGridDepth()
          Get the depth (number of points on the X axis) of the grid.
 int getGridWidth()
          Get the width (number of points on the Y axis) of the grid.
 java.awt.image.BufferedImage getTexture()
          Fetch the Texture that is used to cover the entire terrain.
 
Methods inherited from interface org.j3d.terrain.TerrainData
getCoordinate, getCoordinate, getCoordinateWithColor, getCoordinateWithTexture, getGridXStep, getGridYStep, getHeightFromGrid, getSourceDataType, hasColor, hasTexture
 
Methods inherited from interface org.j3d.ui.navigation.HeightDataSource
getHeight
 

Method Detail

getTexture

java.awt.image.BufferedImage getTexture()
Fetch the Texture that is used to cover the entire terrain. If no texture is used, then return null. Assumes a single large texture for the entire terrain.

Returns:
The texture instance to use or null

getGridWidth

int getGridWidth()
Get the width (number of points on the Y axis) of the grid.

Returns:
The number of points in the width if the grid

getGridDepth

int getGridDepth()
Get the depth (number of points on the X axis) of the grid.

Returns:
The number of points in the depth of the grid

j3d.org Code

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