Пример #1
0
        private static AbCurve LoadAbCurvePattern(XmlNode inputNode, XmlNode lineNode)
        {
            var pattern = new AbCurve { GuidancePatternType = GuidancePatternTypeEnum.AbCurve };

            var pointNodes = lineNode.SelectNodes("PNT");
            if (pointNodes.Count == 0)
                return null;

            var line = ShapeLoader.LoadLine(pointNodes);
            if (line != null)
            {
                pattern.Shape = new List<LineString>();
                pattern.Shape.Add(line);
            }

            pattern.Heading = GetHeading(inputNode.GetXmlNodeValue("@G"));

            return pattern;
        }
Пример #2
0
        private void ProcessAbCurve(AbCurve abCurve)
        {
            var delta = _drawingUtil.GetDelta();

            foreach (var lineString in abCurve.Shape)
            {
                ProcessLineString(lineString, delta);
            }
        }
Пример #3
0
 private static void WriteAbCurve(XmlWriter writer, AbCurve abCurve)
 {
     ShapeWriter.WriteLine(writer, abCurve.Shape[0], "5");
 }