Esempio n. 1
0
 /// <summary>
 /// Adds a node to the node list.
 /// </summary>
 /// <param name="node"></param>
 /// <returns></returns>
 public Node AddNode( Node node )
 {
     return _nodes.AddNode( node );
 }
Esempio n. 2
0
		} // 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 )
Esempio n. 3
0
		} // 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 )
Esempio n. 4
0
 /// <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;
     }
 }
Esempio n. 5
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="n"></param>
 public void MergeLabel( Node n )
 {
     MergeLabel( n.Label );
 }