C# 클래스 LibNoise.Renderer.AbstractHeightmapRenderer

Abstract base class for an heightmap renderer
상속: AbstractRenderer
파일 보기 프로젝트 열기: everbytes/LibNoise

보호된 프로퍼티들

프로퍼티 타입 설명
_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