Пример #1
0
 public MarkupFiller(FillerContour contour, FillerStyle style)
 {
     Contour = contour;
     Markup  = Contour.Markup;
     style.OnStyleChanged = FillerChanged;
     Style = new PropertyClassValue <FillerStyle>(StyleChanged, style);
 }
Пример #2
0
        public MarkupCrosswalk(Markup markup, MarkupCrosswalkLine line, CrosswalkStyle style, MarkupRegularLine rightBorder = null, MarkupRegularLine leftBorder = null)
        {
            Markup        = markup;
            CrosswalkLine = line;
            CrosswalkLine.TrajectoryGetter = GetTrajectory;

            RightBorder          = new PropertyClassValue <MarkupRegularLine>("RB", CrosswalkChanged, rightBorder);
            LeftBorder           = new PropertyClassValue <MarkupRegularLine>("LB", CrosswalkChanged, leftBorder);
            style.OnStyleChanged = CrosswalkChanged;
            Style = new PropertyClassValue <CrosswalkStyle>(StyleChanged, style);

            CrosswalkLine.Start.Enter.TryGetPoint(CrosswalkLine.Start.Num, MarkupPoint.PointType.Enter, out MarkupPoint startPoint);
            CrosswalkLine.End.Enter.TryGetPoint(CrosswalkLine.End.Num, MarkupPoint.PointType.Enter, out MarkupPoint endPoint);
            EnterLine = new MarkupEnterLine(Markup, startPoint, endPoint);
        }
Пример #3
0
 public MarkupLinePart(MarkupLine line, ISupportPoint from = null, ISupportPoint to = null)
 {
     Line = line;
     From = new PropertyClassValue <ISupportPoint>(RuleChanged, from);
     To   = new PropertyClassValue <ISupportPoint>(RuleChanged, to);
 }