Exemplo n.º 1
0
        public void RecalculateDashes()
        {
            var rules = MarkupLineRawRule.GetRules(RawRules);

            var dashes = new List <MarkupStyleDash>();

            foreach (var rule in rules)
            {
                var trajectoryPart = Trajectory.Cut(rule.Start, rule.End);
                var ruleDashes     = rule.LineStyle.Calculate(trajectoryPart).ToArray();

                dashes.AddRange(ruleDashes);
            }

            Dashes = dashes.ToArray();
        }
Exemplo n.º 2
0
        protected override IEnumerable <MarkupStyleDash> GetDashes()
        {
            var rules = MarkupLineRawRule <RegularLineStyle> .GetRules(RawRules);

            var dashes = new List <MarkupStyleDash>();

            foreach (var rule in rules)
            {
                var trajectoryPart = LineTrajectory.Cut(rule.Start, rule.End);
                var ruleDashes     = rule.LineStyle.Calculate(this, trajectoryPart).ToArray();

                dashes.AddRange(ruleDashes);
            }

            return(dashes);
        }