C# Class LibNoise.Renderer.AbstractHeightmapRenderer

Abstract base class for an heightmap renderer
Inheritance: AbstractRenderer
Afficher le fichier Open project: everbytes/LibNoise

Protected Properties

Свойство Type Description
_WrapEnabled bool
_lowerHeightBound float
_upperHeightBound float

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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.

Method Details

AbstractHeightmapRenderer() public méthode

template constructor
public AbstractHeightmapRenderer ( ) : System
Résultat System

CheckHeightmap() protected abstract méthode

protected abstract CheckHeightmap ( ) : bool
Résultat bool

ExactFit() public méthode

Find in the noise map the lowest and highest value to define the LowerHeightBound and UpperHeightBound
public ExactFit ( ) : void
Résultat void

Render() public méthode

Renders the destination heightmap using the contents of the source noise map
public Render ( ) : void
Résultat void

RenderHeight() protected abstract méthode

protected abstract RenderHeight ( int x, int y, float source, float boundDiff ) : void
x int
y int
source float
boundDiff float
Résultat void

SetBounds() public méthode

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
Résultat void

SetHeightmapSize() protected abstract méthode

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
Résultat void

Property Details

_WrapEnabled protected_oe property

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
Résultat bool

_lowerHeightBound protected_oe property

Lower height boundary of the heightmap
protected float _lowerHeightBound
Résultat float

_upperHeightBound protected_oe property

Upper height boundary of the heightmap
protected float _upperHeightBound
Résultat float