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

Represents data required for by painting routines.
Afficher le fichier Open project: colgreen/sharpneat

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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 méthode

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
Résultat ConnectionPointInfo

PaintState() public méthode

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
Résultat 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
Résultat float

_connectionWeightRange public_oe property

Range of connections weights. Used to determine width of drawn connections.
public float _connectionWeightRange
Résultat float

_connectionWeightRangeHalf public_oe property

Use in conjunction with _connectionWeightRange to draw connections.
public float _connectionWeightRangeHalf
Résultat float

_connectionWeightToWidth public_oe property

Uses in conjunction with _connectionWeightRange to draw connections.
public float _connectionWeightToWidth
Résultat float

_g public_oe property

The current GDI+ painting surface.
public Graphics,System.Drawing _g
Résultat System.Drawing.Graphics

_nodeDiameter public_oe property

Diameter of drawn nodes.
public int _nodeDiameter
Résultat int

_nodeDiameterHalf public_oe property

Used in conjunction with _nodeDiameter to draw nodes.
public int _nodeDiameterHalf
Résultat int

_nodeStateDict public_oe property

Dictionary containing temporary painting related state for each graph node.
public Dictionary _nodeStateDict
Résultat 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
Résultat System.Drawing.Rectangle

_zoomFactor public_oe property

Scales the elements being drawn.
public float _zoomFactor
Résultat float