Class
AStarNode

Represents an instance of the Node class that is used by the AStarRouter.

Definition

Namespace:Telerik.Windows.Diagrams.Core.Routing.AStar

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public class AStarNode

Inheritance: objectAStarNode

Constructors

AStarNode(Point, bool, bool)

Initializes a new instance of the AStarNode class.

Declaration

cs-api-definition
public AStarNode(Point point, bool isStartOrEndWall, bool isWall)

Parameters

point

Point

The point.

isStartOrEndWall

bool

The is start wall.

isWall

bool

The is wall.

Properties

F

Gets or sets the whole path length through this point. This is the sum of G and H.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "F")]
public double F { get; set; }

Property Value

double

G

Gets or sets the actual distance from the start to the current point in the search.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "G")]
public double G { get; set; }

Property Value

double

H

Gets or sets the heuristic distance to the endpoint or goal. The smaller the value the closer to the goal.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "H")]
public double H { get; set; }

Property Value

double

IsOpen

Gets or sets the is open.

Declaration

cs-api-definition
public bool IsOpen { get; set; }

Property Value

bool

The is open.

IsSegmentOverlap

Gets or sets whether this node is over an existing connection segment.

Declaration

cs-api-definition
public bool IsSegmentOverlap { get; set; }

Property Value

bool

IsStartOrEndWall

Gets or sets whether this node is a start or end wall.

Declaration

cs-api-definition
public bool IsStartOrEndWall { get; }

Property Value

bool

The is start wall.

IsWall

Gets or sets whether this node is wall.

Declaration

cs-api-definition
public bool IsWall { get; }

Property Value

bool

The is wall.

Position

Gets or sets the position.

Declaration

cs-api-definition
public Point Position { get; }

Property Value

Point

The position.