예제 #1
0
        /// <summary>
        /// Convert a list of DotSpatial coordinates to .Nucleus vectors
        /// </summary>
        /// <param name="coordinates"></param>
        /// <returns></returns>
        public static NG.Vector[] Convert(IList <Coordinate> coordinates)
        {
            var result = new NG.Vector[coordinates.Count];

            for (int i = 0; i < coordinates.Count; i++)
            {
                result[i] = Convert(coordinates[i]);
            }
            return(result);
        }
예제 #2
0
 public VertexGeometry GeometryOver(FB.Vector point)
 {
     _hTR = null;
     VisualTreeHelper.HitTest(ItemsControl, new HitTestFilterCallback(HitTestFilterCallback), new HitTestResultCallback(HitTestResultCallback), new PointHitTestParameters(ToWPF.Convert(point)));
     if (_hTR != null)
     {
         FrameworkElement fE = _hTR.VisualHit as FrameworkElement;
         if (fE != null && fE.Tag != null && fE.Tag is VertexGeometry)
         {
             return((VertexGeometry)fE.Tag);
         }
     }
     return(null);
 }