C# Class Universe.Framework.SceneInfo.TerrainChannel

A new version of the old Channel class, simplified
Inheritance: ITerrainChannel
ファイルを表示 Open project: Virtual-Universe/Virtual-Universe Class Usage Examples

Public Methods

Method Description
GenerateTerrain ( string terrainType, float min, float max, int smoothing, IScene scene ) : void

Generates new terrain based upon supplied parameters.

GetNormalizedGroundHeight ( int x, int y ) : float

Gets the average height of the area +2 in both the X and Y directions from the given position

GetNormalizedLandHeight ( int x, int y ) : float

Gets the average height of land above the waterline at the specified point.

GetSerialized ( ) : short[]
MakeCopy ( ) : ITerrainChannel
ReCalcLandArea ( ) : void
Tainted ( int x, int y ) : bool
TerrainChannel ( IScene scene ) : OpenMetaverse
TerrainChannel ( bool createMap, IScene scene ) : OpenMetaverse
TerrainChannel ( int w, int h, IScene scene ) : OpenMetaverse
TerrainChannel ( short import, IScene scene ) : OpenMetaverse
TerrainChannel ( string terrainType, IScene scene ) : OpenMetaverse
this ( int x, int y ) : float

Private Methods

Method Description
CalcLandArea ( ) : void

Calculates the land area.

CreateAtolIslandTerrain ( ) : void
CreateDefaultTerrain ( string terrainType ) : void

Creates the default terrain, default is 'Flatland'

CreateFlatlandTerrain ( ) : void
CreateIslandTerrain ( ) : void
CreateIslandTerrain ( float minHeight, float maxHeight, int smoothing ) : void
CreateMainlandTerrain ( float minHeight, float maxHeight, int smoothing ) : void
CreateMainlandTerrain ( int smoothing ) : void
CreateNullSpaceTerrain ( ) : void

Method Details

GenerateTerrain() public method

Generates new terrain based upon supplied parameters.
public GenerateTerrain ( string terrainType, float min, float max, int smoothing, IScene scene ) : void
terrainType string Land type.
min float Minimum.
max float Max.
smoothing int Smoothing.
scene IScene Scene.
return void

GetNormalizedGroundHeight() public method

Gets the average height of the area +2 in both the X and Y directions from the given position
public GetNormalizedGroundHeight ( int x, int y ) : float
x int
y int
return float

GetNormalizedLandHeight() public method

Gets the average height of land above the waterline at the specified point.
public GetNormalizedLandHeight ( int x, int y ) : float
x int The x coordinate.
y int The y coordinate.
return float

GetSerialized() public method

public GetSerialized ( ) : short[]
return short[]

MakeCopy() public method

public MakeCopy ( ) : ITerrainChannel
return ITerrainChannel

ReCalcLandArea() public method

public ReCalcLandArea ( ) : void
return void

Tainted() public method

public Tainted ( int x, int y ) : bool
x int
y int
return bool

TerrainChannel() public method

public TerrainChannel ( IScene scene ) : OpenMetaverse
scene IScene
return OpenMetaverse

TerrainChannel() public method

public TerrainChannel ( bool createMap, IScene scene ) : OpenMetaverse
createMap bool
scene IScene
return OpenMetaverse

TerrainChannel() public method

public TerrainChannel ( int w, int h, IScene scene ) : OpenMetaverse
w int
h int
scene IScene
return OpenMetaverse

TerrainChannel() public method

public TerrainChannel ( short import, IScene scene ) : OpenMetaverse
import short
scene IScene
return OpenMetaverse

TerrainChannel() public method

public TerrainChannel ( string terrainType, IScene scene ) : OpenMetaverse
terrainType string
scene IScene
return OpenMetaverse

this() public method

public this ( int x, int y ) : float
x int
y int
return float