C# Class NoiseTool.Renderer

Show 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 property

public bool mNormal
return bool

mShadow public property

public bool mShadow
return bool

mTile public property

public bool mTile
return bool

max public property

public double max
return double

min public property

public double min
return double

noDispatch public property

public bool noDispatch
return bool

noiseData public property

public double[] noiseData
return double[]

pixelData public property

public byte[] pixelData
return byte[]