Main Page | Compound List | Compound Members

VUETerrain Class Reference


Your Ad Here


List of all members.

Public Member Functions

int Height ()
 Returns the height of the terrain.
None SetTerrainAltitudes (array_of_floats pnaltitudes)
 Sets the terrain altitude map.
None SetTerrainResolution (int nNewWidth, int nNewHeight)
 Sets the resolution of the terrain.
array_of_floats TerrainAltitudes ()
 Retrieves the terrain altitude map.
int Width ()
 Returns the width of the terrain.

Member Function Documentation

int Height  ) 
 

Returns the height of the terrain.

See also:
Width, SetTerrainResolution.

None SetTerrainAltitudes array_of_floats  pnaltitudes  ) 
 

Sets the terrain altitude map.

Parameters:
pnaltitudes list of new terrain altitudes. The list must contain Width()*Height() numbers. altitudes must be in the range of 0 to 1.
You can use this function to set the altitudes of the terrain. For instance, retrieve current altitudes using TerrainAltitudes(), modify the altitude map as required and then call SetTerrainAltitudes() to modify the geometry of the terrain.
See also:
Width, Height, Terrainaltitudes.

None SetTerrainResolution int  nNewWidth,
int  nNewHeight
 

Sets the resolution of the terrain.

array_of_floats TerrainAltitudes  ) 
 

Retrieves the terrain altitude map.

altitudes are in the range of 0 to 1.

Returns:
a list of numbers representing the altitudes of the terrain. The list contains Width()*Height() values.
See also:
Width, Height, SetTerrainaltitudes.

int Width  ) 
 

Returns the width of the terrain.

See also:
Height, SetTerrainResolution.


Generated using doxygen on Wed Nov 29 17:50:20 2006.
©2003 e-on software, inc. All rights reserved.

Return to Vue Index


Your Ad Here