C# Class Revise.Files.HIM.HeightmapFile

Provides the ability to create, open and save HIM files for height data.
Inheritance: FileLoader
Show file Open project: osROSE/UnityRose Class Usage Examples

Public Methods

Method Description
GeneratePatches ( ) : void

Generates the patches and quad patches from the current height data.

HeightmapFile ( ) : System.IO

Initializes a new instance of the HeightmapFile class.

Load ( Stream stream ) : void

Loads the file from the specified stream.

Reset ( ) : void

Resets properties to their default values.

Save ( Stream stream ) : void

Saves the file to the specified stream.

this ( int x, int y ) : float

Gets the height value of the specified coordinates.

Private Methods

Method Description
GenerateQuadPatches ( int index, int level, int quadSize, int x, int y ) : void

Generates the quad patches.

Method Details

GeneratePatches() public method

Generates the patches and quad patches from the current height data.
public GeneratePatches ( ) : void
return void

HeightmapFile() public method

Initializes a new instance of the HeightmapFile class.
public HeightmapFile ( ) : System.IO
return System.IO

Load() public method

Loads the file from the specified stream.
public Load ( Stream stream ) : void
stream System.IO.Stream The stream to read from.
return void

Reset() public method

Resets properties to their default values.
public Reset ( ) : void
return void

Save() public method

Saves the file to the specified stream.
public Save ( Stream stream ) : void
stream System.IO.Stream The stream to save to.
return void

this() public method

Gets the height value of the specified coordinates.
public this ( int x, int y ) : float
x int
y int
return float