C# Class Procedurality.Channel

Afficher le fichier Open project: N3X15/VoxelSim Class Usage Examples

Méthodes publiques

Свойство Type Description
height int
pixels ].float[
powerof2 bool
width int

Méthodes publiques

Méthode Description
Channel ( int _Width, int _Height ) : System
HeightClamp ( float h ) : Channel
abs ( ) : Channel
add ( float a ) : Channel
addClip ( float add ) : Channel
average ( ) : float
averageConnected ( float value ) : float
boxFit ( float value, int width, int height ) : Channel
brightness ( float brightness ) : Channel
bump ( Channel bumpmap, float lx, float ly, float shadow, float light, float ambient ) : Channel
bumpSpecular ( Channel bumpmap, float lx, float ly, float lz, float shadow, float light, int specular ) : Channel
channelAdd ( Channel channel ) : Channel
channelAddNoClip ( Channel channel ) : Channel
channelAverage ( Channel channel ) : Channel
channelBlend ( Channel channel, Channel alpha ) : Channel
channelBlend ( Channel channel, float alpha ) : Channel
channelBrightest ( Channel channel ) : Channel
channelDarkest ( Channel channel ) : Channel
channelDifference ( Channel channel ) : Channel
channelDivide ( Channel channel ) : Channel
channelMultiply ( Channel channel ) : Channel
channelSubtract ( Channel channel ) : Channel
channelSubtractNoClip ( Channel channel ) : Channel
clip ( ) : Channel
contrast ( float contrast ) : Channel
convolution ( float filter, float divisor, float offset ) : Channel
copy ( ) : Channel
count ( float value ) : int
crop ( int x_lo, int y_lo, int x_hi, int y_hi ) : Channel
cropWrap ( int x_lo, int y_lo, int x_hi, int y_hi ) : Channel
erode ( float talus, int iterations ) : Channel
erodeThermal ( float talus, int iterations ) : Channel
fft ( ) : Procedurality.Channel[]
fftInv ( Channel magni, Channel phase ) : Channel
fill ( float value ) : Channel
fill ( float value, float min, float max ) : Channel
find ( int radius, int x_start, int y_start, float value ) : int[]
findFirst ( float value ) : int[]
findMax ( ) : float
findMin ( ) : float
findMinMax ( ) : float[]
findNoWrap ( int radius, int x_start, int y_start, float value ) : int[]
flipH ( ) : Channel
flipV ( ) : Channel
floodfill ( int init_x, int init_y, float value ) : Channel
gain ( float gain ) : Channel
gamma ( float gamma ) : Channel
gamma2 ( ) : Channel
gamma4 ( ) : Channel
gamma8 ( ) : Channel
getChecksum ( ) : long
getHeight ( ) : int
getMaxDelta ( ) : float

Returns the maximum land height changes.

getPixel ( int x, int y ) : float
getPixelSafe ( int x, int y ) : float
getPixelWrap ( int x, int y ) : float
getPixels ( ) : ].float[
getWidth ( ) : int
grow ( float value, int radius ) : Channel
invert ( ) : Channel
largestConnected ( float value ) : Channel
lineart ( ) : Channel
log ( ) : Channel
multiply ( float factor ) : Channel
normalize ( ) : Channel
normalize ( float new_min, float new_max ) : Channel
normalize ( float min, float max, float new_min, float new_max ) : Channel
normalizeSymmetric ( ) : Channel
offset ( int x_offset, int y_offset ) : Channel
perturb ( Channel channel1, Channel channel2 ) : Channel
perturb ( Channel perturb, float magnitude ) : Channel
place ( Channel sprite, Channel alpha, int x_offset, int y_offset ) : Channel
place ( Channel sprite, int x_offset, int y_offset ) : Channel
placeBrightest ( Channel sprite, int x_offset, int y_offset ) : Channel
placeDarkest ( Channel sprite, int x_offset, int y_offset ) : Channel
power ( float exponent ) : Channel
power2 ( ) : Channel
putPixel ( int x, int y, float value ) : void
putPixelClip ( int x, int y, float v ) : void
putPixelSafe ( int x, int y, float value ) : void
putPixelWrap ( int x, int y, float value ) : void
quadJoin ( Channel channel1, Channel channel2, Channel channel3, Channel channel4 ) : Channel
quadSplit ( ) : Channel[]
relativeIntensity ( int radius ) : Channel
relativeIntensityNormalized ( int radius ) : Channel
rotate ( int degrees ) : Channel
scale ( int new_width, int new_height ) : Channel
scaleCubic ( int new_width, int new_height ) : Channel
scaleDouble ( ) : Channel
scaleFast ( int new_width, int new_height ) : Channel
scaleLinear ( int new_width, int new_height ) : Channel
setMaxDelta ( float max ) : Channel

sharpen ( int radius ) : Channel
shear ( float offset ) : Channel
silt ( float waterlevel, bool beaches ) : Channel

Smooths below-water surfaces and, optionally, adds beaches.

sine ( int frequency ) : Channel
smooth ( int radius ) : Channel
smooth ( int radius, Channel mask ) : Channel
smoothFast ( ) : Channel
smoothGain ( ) : Channel
smoothWrap ( int radius ) : Channel
squareFit ( float value, int size ) : Channel
squareGrow ( float value, int size ) : Channel
sum ( ) : float
threshold ( float start, float end ) : Channel
tile ( int new_width, int new_height ) : Channel
tileDouble ( ) : Channel
toLayer ( ) : Layer
xsine ( int frequency ) : Channel

Private Methods

Méthode Description
fastFourierTransform ( float data, int size, int isign ) : void

Method Details

Channel() public méthode

public Channel ( int _Width, int _Height ) : System
_Width int
_Height int
Résultat System

HeightClamp() public méthode

public HeightClamp ( float h ) : Channel
h float
Résultat Channel

abs() public méthode

public abs ( ) : Channel
Résultat Channel

add() public méthode

public add ( float a ) : Channel
a float
Résultat Channel

addClip() public méthode

public addClip ( float add ) : Channel
add float
Résultat Channel

average() public méthode

public average ( ) : float
Résultat float

averageConnected() public méthode

public averageConnected ( float value ) : float
value float
Résultat float

boxFit() public méthode

public boxFit ( float value, int width, int height ) : Channel
value float
width int
height int
Résultat Channel

brightness() public méthode

public brightness ( float brightness ) : Channel
brightness float
Résultat Channel

bump() public méthode

public bump ( Channel bumpmap, float lx, float ly, float shadow, float light, float ambient ) : Channel
bumpmap Channel
lx float
ly float
shadow float
light float
ambient float
Résultat Channel

bumpSpecular() public méthode

public bumpSpecular ( Channel bumpmap, float lx, float ly, float lz, float shadow, float light, int specular ) : Channel
bumpmap Channel
lx float
ly float
lz float
shadow float
light float
specular int
Résultat Channel

channelAdd() public méthode

public channelAdd ( Channel channel ) : Channel
channel Channel
Résultat Channel

channelAddNoClip() public méthode

public channelAddNoClip ( Channel channel ) : Channel
channel Channel
Résultat Channel

channelAverage() public méthode

public channelAverage ( Channel channel ) : Channel
channel Channel
Résultat Channel

channelBlend() public méthode

public channelBlend ( Channel channel, Channel alpha ) : Channel
channel Channel
alpha Channel
Résultat Channel

channelBlend() public méthode

public channelBlend ( Channel channel, float alpha ) : Channel
channel Channel
alpha float
Résultat Channel

channelBrightest() public méthode

public channelBrightest ( Channel channel ) : Channel
channel Channel
Résultat Channel

channelDarkest() public méthode

public channelDarkest ( Channel channel ) : Channel
channel Channel
Résultat Channel

channelDifference() public méthode

public channelDifference ( Channel channel ) : Channel
channel Channel
Résultat Channel

channelDivide() public méthode

public channelDivide ( Channel channel ) : Channel
channel Channel
Résultat Channel

channelMultiply() public méthode

public channelMultiply ( Channel channel ) : Channel
channel Channel
Résultat Channel

channelSubtract() public méthode

public channelSubtract ( Channel channel ) : Channel
channel Channel
Résultat Channel

channelSubtractNoClip() public méthode

public channelSubtractNoClip ( Channel channel ) : Channel
channel Channel
Résultat Channel

clip() public méthode

public clip ( ) : Channel
Résultat Channel

contrast() public méthode

public contrast ( float contrast ) : Channel
contrast float
Résultat Channel

convolution() public méthode

public convolution ( float filter, float divisor, float offset ) : Channel
filter float
divisor float
offset float
Résultat Channel

copy() public méthode

public copy ( ) : Channel
Résultat Channel

count() public méthode

public count ( float value ) : int
value float
Résultat int

crop() public méthode

public crop ( int x_lo, int y_lo, int x_hi, int y_hi ) : Channel
x_lo int
y_lo int
x_hi int
y_hi int
Résultat Channel

cropWrap() public méthode

public cropWrap ( int x_lo, int y_lo, int x_hi, int y_hi ) : Channel
x_lo int
y_lo int
x_hi int
y_hi int
Résultat Channel

erode() public méthode

public erode ( float talus, int iterations ) : Channel
talus float
iterations int
Résultat Channel

erodeThermal() public méthode

public erodeThermal ( float talus, int iterations ) : Channel
talus float
iterations int
Résultat Channel

fft() public méthode

public fft ( ) : Procedurality.Channel[]
Résultat Procedurality.Channel[]

fftInv() public méthode

public fftInv ( Channel magni, Channel phase ) : Channel
magni Channel
phase Channel
Résultat Channel

fill() public méthode

public fill ( float value ) : Channel
value float
Résultat Channel

fill() public méthode

public fill ( float value, float min, float max ) : Channel
value float
min float
max float
Résultat Channel

find() public méthode

public find ( int radius, int x_start, int y_start, float value ) : int[]
radius int
x_start int
y_start int
value float
Résultat int[]

findFirst() public méthode

public findFirst ( float value ) : int[]
value float
Résultat int[]

findMax() public méthode

public findMax ( ) : float
Résultat float

findMin() public méthode

public findMin ( ) : float
Résultat float

findMinMax() public méthode

public findMinMax ( ) : float[]
Résultat float[]

findNoWrap() public méthode

public findNoWrap ( int radius, int x_start, int y_start, float value ) : int[]
radius int
x_start int
y_start int
value float
Résultat int[]

flipH() public méthode

public flipH ( ) : Channel
Résultat Channel

flipV() public méthode

public flipV ( ) : Channel
Résultat Channel

floodfill() public méthode

public floodfill ( int init_x, int init_y, float value ) : Channel
init_x int
init_y int
value float
Résultat Channel

gain() public méthode

public gain ( float gain ) : Channel
gain float
Résultat Channel

gamma() public méthode

public gamma ( float gamma ) : Channel
gamma float
Résultat Channel

gamma2() public méthode

public gamma2 ( ) : Channel
Résultat Channel

gamma4() public méthode

public gamma4 ( ) : Channel
Résultat Channel

gamma8() public méthode

public gamma8 ( ) : Channel
Résultat Channel

getChecksum() public méthode

public getChecksum ( ) : long
Résultat long

getHeight() public méthode

public getHeight ( ) : int
Résultat int

getMaxDelta() public méthode

Returns the maximum land height changes.
public getMaxDelta ( ) : float
Résultat float

getPixel() public méthode

public getPixel ( int x, int y ) : float
x int
y int
Résultat float

getPixelSafe() public méthode

public getPixelSafe ( int x, int y ) : float
x int
y int
Résultat float

getPixelWrap() public méthode

public getPixelWrap ( int x, int y ) : float
x int
y int
Résultat float

getPixels() public méthode

public getPixels ( ) : ].float[
Résultat ].float[

getWidth() public méthode

public getWidth ( ) : int
Résultat int

grow() public méthode

public grow ( float value, int radius ) : Channel
value float
radius int
Résultat Channel

invert() public méthode

public invert ( ) : Channel
Résultat Channel

largestConnected() public méthode

public largestConnected ( float value ) : Channel
value float
Résultat Channel

lineart() public méthode

public lineart ( ) : Channel
Résultat Channel

log() public méthode

public log ( ) : Channel
Résultat Channel

multiply() public méthode

public multiply ( float factor ) : Channel
factor float
Résultat Channel

normalize() public méthode

public normalize ( ) : Channel
Résultat Channel

normalize() public méthode

public normalize ( float new_min, float new_max ) : Channel
new_min float
new_max float
Résultat Channel

normalize() public méthode

public normalize ( float min, float max, float new_min, float new_max ) : Channel
min float
max float
new_min float
new_max float
Résultat Channel

normalizeSymmetric() public méthode

public normalizeSymmetric ( ) : Channel
Résultat Channel

offset() public méthode

public offset ( int x_offset, int y_offset ) : Channel
x_offset int
y_offset int
Résultat Channel

perturb() public méthode

public perturb ( Channel channel1, Channel channel2 ) : Channel
channel1 Channel
channel2 Channel
Résultat Channel

perturb() public méthode

public perturb ( Channel perturb, float magnitude ) : Channel
perturb Channel
magnitude float
Résultat Channel

place() public méthode

public place ( Channel sprite, Channel alpha, int x_offset, int y_offset ) : Channel
sprite Channel
alpha Channel
x_offset int
y_offset int
Résultat Channel

place() public méthode

public place ( Channel sprite, int x_offset, int y_offset ) : Channel
sprite Channel
x_offset int
y_offset int
Résultat Channel

placeBrightest() public méthode

public placeBrightest ( Channel sprite, int x_offset, int y_offset ) : Channel
sprite Channel
x_offset int
y_offset int
Résultat Channel

placeDarkest() public méthode

public placeDarkest ( Channel sprite, int x_offset, int y_offset ) : Channel
sprite Channel
x_offset int
y_offset int
Résultat Channel

power() public méthode

public power ( float exponent ) : Channel
exponent float
Résultat Channel

power2() public méthode

public power2 ( ) : Channel
Résultat Channel

putPixel() public méthode

public putPixel ( int x, int y, float value ) : void
x int
y int
value float
Résultat void

putPixelClip() public méthode

public putPixelClip ( int x, int y, float v ) : void
x int
y int
v float
Résultat void

putPixelSafe() public méthode

public putPixelSafe ( int x, int y, float value ) : void
x int
y int
value float
Résultat void

putPixelWrap() public méthode

public putPixelWrap ( int x, int y, float value ) : void
x int
y int
value float
Résultat void

quadJoin() public méthode

public quadJoin ( Channel channel1, Channel channel2, Channel channel3, Channel channel4 ) : Channel
channel1 Channel
channel2 Channel
channel3 Channel
channel4 Channel
Résultat Channel

quadSplit() public méthode

public quadSplit ( ) : Channel[]
Résultat Channel[]

relativeIntensity() public méthode

public relativeIntensity ( int radius ) : Channel
radius int
Résultat Channel

relativeIntensityNormalized() public méthode

public relativeIntensityNormalized ( int radius ) : Channel
radius int
Résultat Channel

rotate() public méthode

public rotate ( int degrees ) : Channel
degrees int
Résultat Channel

scale() public méthode

public scale ( int new_width, int new_height ) : Channel
new_width int
new_height int
Résultat Channel

scaleCubic() public méthode

public scaleCubic ( int new_width, int new_height ) : Channel
new_width int
new_height int
Résultat Channel

scaleDouble() public méthode

public scaleDouble ( ) : Channel
Résultat Channel

scaleFast() public méthode

public scaleFast ( int new_width, int new_height ) : Channel
new_width int
new_height int
Résultat Channel

scaleLinear() public méthode

public scaleLinear ( int new_width, int new_height ) : Channel
new_width int
new_height int
Résultat Channel

setMaxDelta() public méthode

public setMaxDelta ( float max ) : Channel
max float /// A ///
Résultat Channel

sharpen() public méthode

public sharpen ( int radius ) : Channel
radius int
Résultat Channel

shear() public méthode

public shear ( float offset ) : Channel
offset float
Résultat Channel

silt() public méthode

Smooths below-water surfaces and, optionally, adds beaches.
public silt ( float waterlevel, bool beaches ) : Channel
waterlevel float /// A ///
beaches bool /// A ///
Résultat Channel

sine() public méthode

public sine ( int frequency ) : Channel
frequency int
Résultat Channel

smooth() public méthode

public smooth ( int radius ) : Channel
radius int
Résultat Channel

smooth() public méthode

public smooth ( int radius, Channel mask ) : Channel
radius int
mask Channel
Résultat Channel

smoothFast() public méthode

public smoothFast ( ) : Channel
Résultat Channel

smoothGain() public méthode

public smoothGain ( ) : Channel
Résultat Channel

smoothWrap() public méthode

public smoothWrap ( int radius ) : Channel
radius int
Résultat Channel

squareFit() public méthode

public squareFit ( float value, int size ) : Channel
value float
size int
Résultat Channel

squareGrow() public méthode

public squareGrow ( float value, int size ) : Channel
value float
size int
Résultat Channel

sum() public méthode

public sum ( ) : float
Résultat float

threshold() public méthode

public threshold ( float start, float end ) : Channel
start float
end float
Résultat Channel

tile() public méthode

public tile ( int new_width, int new_height ) : Channel
new_width int
new_height int
Résultat Channel

tileDouble() public méthode

public tileDouble ( ) : Channel
Résultat Channel

toLayer() public méthode

public toLayer ( ) : Layer
Résultat Layer

xsine() public méthode

public xsine ( int frequency ) : Channel
frequency int
Résultat Channel

Property Details

height public_oe property

public int height
Résultat int

pixels public_oe property

public float[,] pixels
Résultat ].float[

powerof2 public_oe property

public bool powerof2
Résultat bool

width public_oe property

public int width
Résultat int