Class NodeIndex
A cache for node coordinates.
Inheritance
System.Object
NodeIndex
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public sealed class NodeIndex
Constructors
NodeIndex()
Declaration
public NodeIndex()
Properties
Item[Int64]
Gets the node id at the given index.
Declaration
public long this[long idx] { get; }
Parameters
|
System.Int64
idx
|
Property Value
|
System.Int64
|
Methods
AddId(Int64)
Adds a node id to the index.
Declaration
public void AddId(long id)
Parameters
|
System.Int64
id
|
Set(Int64, UInt32)
Sets a vertex id for the given vertex.
Declaration
public void Set(long id, uint vertex)
Parameters
|
System.Int64
id
|
|
System.UInt32
vertex
|
SetIndex(Int64, Single, Single)
Sets the coordinate for the given index.
Declaration
public void SetIndex(long idx, float latitude, float longitude)
Parameters
|
System.Int64
idx
|
|
System.Single
latitude
|
|
System.Single
longitude
|
SortAndConvertIndex()
Sorts and converts the index.
Declaration
public void SortAndConvertIndex()
TryGetCoreNode(Int64, out UInt32)
Tries to get a core node and it's matching vertex.
Declaration
public bool TryGetCoreNode(long id, out uint vertex)
Parameters
|
System.Int64
id
|
|
System.UInt32
vertex
|
Returns
|
System.Boolean
|
TryGetIndex(Int64)
Gets the coordinate for the given node.
Declaration
public long TryGetIndex(long id)
Parameters
|
System.Int64
id
|
Returns
|
System.Int64
|
TryGetValue(Int64, out Single, out Single, out Boolean, out UInt32)
Gets all relevant info on the given node.
Declaration
public bool TryGetValue(long id, out float latitude, out float longitude, out bool isCore, out uint vertex)
Parameters
|
System.Int64
id
|
|
System.Single
latitude
|
|
System.Single
longitude
|
|
System.Boolean
isCore
|
|
System.UInt32
vertex
|
Returns
|
System.Boolean
|