C# Класс LibNoise.Renderer.AbstractHeightmapRenderer

Abstract base class for an heightmap renderer
Наследование: AbstractRenderer
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_WrapEnabled bool
_lowerHeightBound float
_upperHeightBound float

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

Метод Описание
AbstractHeightmapRenderer ( ) : System

template constructor

ExactFit ( ) : void

Find in the noise map the lowest and highest value to define the LowerHeightBound and UpperHeightBound

Render ( ) : void

Renders the destination heightmap using the contents of the source noise map

SetBounds ( float lowerBound, float upperBound ) : void

Sets the boundaries of the heightmap. @throw ArgumentException if the lower boundary equals the upper boundary or if the lower boundary is greater than upper boundary

Защищенные методы

Метод Описание
CheckHeightmap ( ) : bool

RenderHeight ( int x, int y, float source, float boundDiff ) : void

SetHeightmapSize ( int width, int height ) : void

Sets the new size for the target heightmap.

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

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

template constructor
public AbstractHeightmapRenderer ( ) : System
Результат System

CheckHeightmap() защищенный абстрактный Метод

protected abstract CheckHeightmap ( ) : bool
Результат bool

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

Find in the noise map the lowest and highest value to define the LowerHeightBound and UpperHeightBound
public ExactFit ( ) : void
Результат void

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

Renders the destination heightmap using the contents of the source noise map
public Render ( ) : void
Результат void

RenderHeight() защищенный абстрактный Метод

protected abstract RenderHeight ( int x, int y, float source, float boundDiff ) : void
x int
y int
source float
boundDiff float
Результат void

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

Sets the boundaries of the heightmap. @throw ArgumentException if the lower boundary equals the upper boundary or if the lower boundary is greater than upper boundary
public SetBounds ( float lowerBound, float upperBound ) : void
lowerBound float The lower boundary of the heightmap
upperBound float The upper boundary of the heightmap
Результат void

SetHeightmapSize() защищенный абстрактный Метод

Sets the new size for the target heightmap.
protected abstract SetHeightmapSize ( int width, int height ) : void
width int width The new width for the heightmap
height int height The new height for the heightmap
Результат void

Описание свойств

_WrapEnabled защищенное свойство

If wrapping is/ enabled, and the initial point is on the edge of the noise map, the appropriate neighbors that lie outside of the noise map will "wrap" to the opposite side(s) of the noise map. Enabling wrapping is useful when creating tileable heightmap
protected bool _WrapEnabled
Результат bool

_lowerHeightBound защищенное свойство

Lower height boundary of the heightmap
protected float _lowerHeightBound
Результат float

_upperHeightBound защищенное свойство

Upper height boundary of the heightmap
protected float _upperHeightBound
Результат float