C# Class NoiseTool.Renderer

Mostra file Open project: MadoxLabs/NoiseTool

Public Properties

Property Type Description
mNormal bool
mShadow bool
mTile bool
max double
min double
noDispatch bool
noiseData double[]
pixelData byte[]

Public Methods

Method Description
Apply ( ObservableCollection Parameters ) : void
InitData ( double w, double h ) : void
Redraw ( Adapter noise, GradientDef grad ) : System.Windows.Media.Imaging.BitmapSource
Render ( Adapter noise, GradientDef gradient, bool redraw = false ) : System.Windows.Media.Imaging.BitmapSource
Shadow ( GradientDef gradient ) : System.Windows.Media.Imaging.BitmapSource

Private Methods

Method Description
LinearInterp ( double a, double b, double f ) : double

Method Details

Apply() public method

public Apply ( ObservableCollection Parameters ) : void
Parameters ObservableCollection
return void

InitData() public method

public InitData ( double w, double h ) : void
w double
h double
return void

Redraw() public method

public Redraw ( Adapter noise, GradientDef grad ) : System.Windows.Media.Imaging.BitmapSource
noise Adapter
grad GradientDef
return System.Windows.Media.Imaging.BitmapSource

Render() public method

public Render ( Adapter noise, GradientDef gradient, bool redraw = false ) : System.Windows.Media.Imaging.BitmapSource
noise Adapter
gradient GradientDef
redraw bool
return System.Windows.Media.Imaging.BitmapSource

Shadow() public method

public Shadow ( GradientDef gradient ) : System.Windows.Media.Imaging.BitmapSource
gradient GradientDef
return System.Windows.Media.Imaging.BitmapSource

Property Details

mNormal public_oe property

public bool mNormal
return bool

mShadow public_oe property

public bool mShadow
return bool

mTile public_oe property

public bool mTile
return bool

max public_oe property

public double max
return double

min public_oe property

public double min
return double

noDispatch public_oe property

public bool noDispatch
return bool

noiseData public_oe property

public double[] noiseData
return double[]

pixelData public_oe property

public byte[] pixelData
return byte[]