C# Класс SharpNeat.View.Graph.IOGraphPainter.PaintState

Represents data required for by painting routines.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
_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

Открытые методы

Метод Описание
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.

Описание методов

GetNodeStateInfo() публичный Метод

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
Результат ConnectionPointInfo

PaintState() публичный Метод

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
Результат System

Описание свойств

_backConnectionLegLength публичное свойство

Length of connection legs emanating from the base of nodes when drawing connections to nodes above the source node.
public float _backConnectionLegLength
Результат float

_connectionWeightRange публичное свойство

Range of connections weights. Used to determine width of drawn connections.
public float _connectionWeightRange
Результат float

_connectionWeightRangeHalf публичное свойство

Use in conjunction with _connectionWeightRange to draw connections.
public float _connectionWeightRangeHalf
Результат float

_connectionWeightToWidth публичное свойство

Uses in conjunction with _connectionWeightRange to draw connections.
public float _connectionWeightToWidth
Результат float

_g публичное свойство

The current GDI+ painting surface.
public Graphics,System.Drawing _g
Результат System.Drawing.Graphics

_nodeDiameter публичное свойство

Diameter of drawn nodes.
public int _nodeDiameter
Результат int

_nodeDiameterHalf публичное свойство

Used in conjunction with _nodeDiameter to draw nodes.
public int _nodeDiameterHalf
Результат int

_nodeStateDict публичное свойство

Dictionary containing temporary painting related state for each graph node.
public Dictionary _nodeStateDict
Результат ConnectionPointInfo>.Dictionary

_viewportArea публичное свойство

The area being painted to. Any elements outside of this area are not visible.
public Rectangle,System.Drawing _viewportArea
Результат System.Drawing.Rectangle

_zoomFactor публичное свойство

Scales the elements being drawn.
public float _zoomFactor
Результат float