/// <summary> /// Adds a node to the node list. /// </summary> /// <param name="node"></param> /// <returns></returns> public Node AddNode( Node node ) { return _nodes.AddNode( node ); }
} // private void LabelIncompleteNodes() /// <summary> /// Label an isolated node with its relationship to the target geometry. /// </summary> /// <param name="n"></param> /// <param name="targetIndex"></param> private void LabelIncompleteNode( Node n, int targetIndex ) { int loc = _ptLocator.Locate( n.GetCoordinate(), _arg[targetIndex].Geometry ); n.Label.SetLocation( targetIndex, loc ); } // private void LabelIncompleteNode( Node n, int targetIndex )
} // private void LabelIsolatedNodes() /// <summary> /// Label an isolated node with its relationship to the target geometry. /// </summary> /// <param name="n"></param> /// <param name="targetIndex"></param> private void LabelIsolatedNode( Node n, int targetIndex ) { int loc = _ptLocator.Locate( n.GetCoordinate(), _arg[targetIndex].Geometry ); n.Label.SetAllLocations( targetIndex, loc ); //Trace.WriteLine( n.Label.ToString() ); } // private void LabelIsolatedNode( Node n, int targetIndex )
/// <summary> /// /// </summary> /// <param name="n"></param> /// <returns></returns> public Node AddNode(Node n) { if ( !_nodeMap.ContainsKey( n.Coordinate ) ) { _nodeMap.Add( n.Coordinate, n ); return n; } else { Node node = (Node)_nodeMap[n.Coordinate]; node.MergeLabel(n); return node; } }
/// <summary> /// /// </summary> /// <param name="n"></param> public void MergeLabel( Node n ) { MergeLabel( n.Label ); }