C# Class SharpNeat.View.Graph.IOGraphPainter.PaintState

Represents data required for by painting routines.
Mostra file Open project: colgreen/sharpneat

Public Properties

Property Type Description
_backConnectionLegLength float
_connectionWeightRange float
_connectionWeightRangeHalf float
_connectionWeightToWidth float
_g System.Drawing.Graphics
_nodeDiameter int
_nodeDiameterHalf int
_nodeStateDict ConnectionPointInfo>.Dictionary
_viewportArea System.Drawing.Rectangle
_zoomFactor float

Public Methods

Method Description
GetNodeStateInfo ( GraphNode node ) : ConnectionPointInfo

Gets the state object for a given graph node. Creates the object if it does not yet exist.

PaintState ( Graphics g, Rectangle viewportArea, float zoomFactor, float connectionWeightRange ) : System

Construct with the provided Graphics painting surface and state data.

Method Details

GetNodeStateInfo() public method

Gets the state object for a given graph node. Creates the object if it does not yet exist.
public GetNodeStateInfo ( GraphNode node ) : ConnectionPointInfo
node GraphNode
return ConnectionPointInfo

PaintState() public method

Construct with the provided Graphics painting surface and state data.
public PaintState ( Graphics g, Rectangle viewportArea, float zoomFactor, float connectionWeightRange ) : System
g System.Drawing.Graphics
viewportArea System.Drawing.Rectangle
zoomFactor float
connectionWeightRange float
return System

Property Details

_backConnectionLegLength public_oe property

Length of connection legs emanating from the base of nodes when drawing connections to nodes above the source node.
public float _backConnectionLegLength
return float

_connectionWeightRange public_oe property

Range of connections weights. Used to determine width of drawn connections.
public float _connectionWeightRange
return float

_connectionWeightRangeHalf public_oe property

Use in conjunction with _connectionWeightRange to draw connections.
public float _connectionWeightRangeHalf
return float

_connectionWeightToWidth public_oe property

Uses in conjunction with _connectionWeightRange to draw connections.
public float _connectionWeightToWidth
return float

_g public_oe property

The current GDI+ painting surface.
public Graphics,System.Drawing _g
return System.Drawing.Graphics

_nodeDiameter public_oe property

Diameter of drawn nodes.
public int _nodeDiameter
return int

_nodeDiameterHalf public_oe property

Used in conjunction with _nodeDiameter to draw nodes.
public int _nodeDiameterHalf
return int

_nodeStateDict public_oe property

Dictionary containing temporary painting related state for each graph node.
public Dictionary _nodeStateDict
return ConnectionPointInfo>.Dictionary

_viewportArea public_oe property

The area being painted to. Any elements outside of this area are not visible.
public Rectangle,System.Drawing _viewportArea
return System.Drawing.Rectangle

_zoomFactor public_oe property

Scales the elements being drawn.
public float _zoomFactor
return float