C# Класс Revise.Files.HIM.HeightmapFile

Provides the ability to create, open and save HIM files for height data.
Наследование: FileLoader
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
GenerateQuadPatches ( int index, int level, int quadSize, int x, int y ) : void

Generates the quad patches.

Описание методов

GeneratePatches() публичный Метод

Generates the patches and quad patches from the current height data.
public GeneratePatches ( ) : void
Результат void

HeightmapFile() публичный Метод

Initializes a new instance of the HeightmapFile class.
public HeightmapFile ( ) : System.IO
Результат System.IO

Load() публичный Метод

Loads the file from the specified stream.
public Load ( Stream stream ) : void
stream System.IO.Stream The stream to read from.
Результат void

Reset() публичный Метод

Resets properties to their default values.
public Reset ( ) : void
Результат void

Save() публичный Метод

Saves the file to the specified stream.
public Save ( Stream stream ) : void
stream System.IO.Stream The stream to save to.
Результат void

this() публичный Метод

Gets the height value of the specified coordinates.
public this ( int x, int y ) : float
x int
y int
Результат float