OpenSim::Region::OptionalModules::Scripting::Minimodule::IHeightmap Interface Reference

Inheritance diagram for OpenSim::Region::OptionalModules::Scripting::Minimodule::IHeightmap:

OpenSim::Region::OptionalModules::Scripting::Minimodule::Heightmap

List of all members.

Properties

double this [int x, int y] [get, set]
 Returns [or sets] the heightmap value at specified coordinates.
int Length [get]
 The maximum length of the region (Y axis), exclusive. (eg Height = 256, max Y = 255). Minimum is always 0 inclusive.
int Width [get]
 The maximum width of the region (X axis), exclusive. (eg Width = 256, max X = 255). Minimum is always 0 inclusive.


Property Documentation

double OpenSim::Region::OptionalModules::Scripting::Minimodule::IHeightmap::this[int x, int y] [get, set]

Returns [or sets] the heightmap value at specified coordinates.

Parameters:
x X Coordinate
y Y Coordinate
Returns:
A value in meters representing height. Can be negative. Value correlates with Z parameter in world coordinates
double heightVal = World.Heightmap[128,128]; World.Heightmap[128,128] *= 5.0; World.Heightmap[128,128] = 25;

Implemented in OpenSim::Region::OptionalModules::Scripting::Minimodule::Heightmap.

int OpenSim::Region::OptionalModules::Scripting::Minimodule::IHeightmap::Length [get]

The maximum length of the region (Y axis), exclusive. (eg Height = 256, max Y = 255). Minimum is always 0 inclusive.

Host.Console.Info("The terrain length of this region is " + World.Heightmap.Length);

Implemented in OpenSim::Region::OptionalModules::Scripting::Minimodule::Heightmap.

int OpenSim::Region::OptionalModules::Scripting::Minimodule::IHeightmap::Width [get]

The maximum width of the region (X axis), exclusive. (eg Width = 256, max X = 255). Minimum is always 0 inclusive.

Host.Console.Info("The terrain width of this region is " + World.Heightmap.Width);

Implemented in OpenSim::Region::OptionalModules::Scripting::Minimodule::Heightmap.


The documentation for this interface was generated from the following file:

Generated on Thu Sep 2 01:01:10 2010 for OpenSim by  doxygen 1.5.6