C# Class SharpNeat.View.Graph.CppnGraphPainter

Paints CPPNGraphs to a GDI+ Graphics object.
Inheritance: IOGraphPainter
Show file Open project: colgreen/sharpneat

Public Methods

Method Description
CppnGraphPainter ( IActivationFunctionLibrary activationFnLibrary ) : System

Construct with the provided activation function library. This must be the same library used by the genomes/graphs being painted. A legend of the activation functions is shown and the nodes are color coded to indicate the activation function at each node.

Protected Methods

Method Description
PaintNetwork ( IOGraph graph, PaintState state ) : void

Paints the provided IOGraph onto the provided GDI+ Graphics drawing surface.

PaintNode ( GraphNode node, PaintState state ) : void

Override that paints nodes with a fill color that represents each node's activation function.

Private Methods

Method Description
CppnGraphPainter ( ) : System
PaintLegend ( PaintState state ) : void

Method Details

CppnGraphPainter() public method

Construct with the provided activation function library. This must be the same library used by the genomes/graphs being painted. A legend of the activation functions is shown and the nodes are color coded to indicate the activation function at each node.
public CppnGraphPainter ( IActivationFunctionLibrary activationFnLibrary ) : System
activationFnLibrary IActivationFunctionLibrary
return System

PaintNetwork() protected method

Paints the provided IOGraph onto the provided GDI+ Graphics drawing surface.
protected PaintNetwork ( IOGraph graph, PaintState state ) : void
graph IOGraph
state PaintState
return void

PaintNode() protected method

Override that paints nodes with a fill color that represents each node's activation function.
protected PaintNode ( GraphNode node, PaintState state ) : void
node GraphNode
state PaintState
return void