Ejemplo n.º 1
0
        private static AbLine LoadAbLinePattern(XmlNode inputNode, XmlNode lineNode)
        {
            var pattern = new AbLine { GuidancePatternType = GuidancePatternTypeEnum.AbLine };

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

            var aPointNode = pointNodes[0];
            var bPointNode = pointNodes[1];

            pattern.A = ShapeLoader.LoadPoint(aPointNode);
            pattern.B = ShapeLoader.LoadPoint(bPointNode);
            if (pattern.A == null || pattern.B == null)
                return null;

            pattern.Heading = GetHeading(inputNode.GetXmlNodeValue("@G"));
            return pattern;
        }
Ejemplo n.º 2
0
        private void ProcessAbLine(AbLine abLine)
        {
            var delta = _drawingUtil.GetDelta();

            ProcessPoints(new List<Point> {abLine.A, abLine.B}, delta);
        }
Ejemplo n.º 3
0
        private static void WriteAbLine(XmlWriter writer, AbLine abLine)
        {
            var line = new LineString { Points = new List<Point>() };
            line.Points.Add(abLine.A);
            line.Points.Add(abLine.B);

            ShapeWriter.WriteLine(writer, line, "5");
        }