Exemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="inputSegStrings"></param>
 public void ComputeNodes(IList<ISegmentString> inputSegStrings)
 {
     var intSegStrings = inputSegStrings;
     if(_isScaled)
         intSegStrings = Scale(inputSegStrings);
     _noder.ComputeNodes(intSegStrings);
 }
Exemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="inputSegStrings"></param>
        public void ComputeNodes(IList inputSegStrings)
        {
            IList intSegStrings = inputSegStrings;

            if (isScaled)
            {
                intSegStrings = Scale(inputSegStrings);
            }
            noder.ComputeNodes(intSegStrings);
        }
Exemplo n.º 3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="bufferSegStrList"></param>
        /// <param name="precisionModel"></param>
        private void ComputeNodedEdges(IList bufferSegStrList, IPrecisionModel precisionModel)
        {
            INoder noder = GetNoder(precisionModel);

            noder.ComputeNodes(bufferSegStrList);
            IList nodedSegStrings = noder.GetNodedSubstrings();

            foreach (object obj in nodedSegStrings)
            {
                SegmentString segStr   = (SegmentString)obj;
                Label         oldLabel = (Label)segStr.Data;
                Edge          edge     = new Edge(segStr.Coordinates, new Label(oldLabel));
                InsertEdge(edge);
            }
        }
Exemplo n.º 4
0
		private void ComputeNodedEdges(IList bufferSegStrList, PrecisionModel precisionModel)
		{
            INoder noder = CreateNoder(precisionModel);
            noder.ComputeNodes(bufferSegStrList);

            IList nodedSegStrings = noder.NodedSubstrings;
	
            int nCount = nodedSegStrings.Count;
			for (int i = 0; i < nCount; i++)
			{
				SegmentString segStr = (SegmentString)nodedSegStrings[i];
                Label oldLabel       = (Label)segStr.Data;
                Edge edge = new Edge(segStr.Coordinates, new Label(oldLabel));

				InsertEdge(edge);
			}
		}
 /// <summary>
 /// Checks whether the output of the wrapped noder is fully noded.
 /// Throws an exception if it is not.
 /// </summary>
 public void ComputeNodes(IList <ISegmentString> segStrings)
 {
     _noder.ComputeNodes(segStrings);
     _nodedSs = _noder.GetNodedSubstrings();
     Validate();
 }