Пример #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 override void CopyTo(FillerStyle target)
 {
     base.CopyTo(target);
     if (target is TriangulationFillerStyle triangulationTarget)
     {
         triangulationTarget.Elevation.Value = Elevation;
     }
 }
Пример #3
0
 public override void CopyTo(FillerStyle target)
 {
     base.CopyTo(target);
     if (target is CurbTriangulationFillerStyle curbTarget)
     {
         curbTarget.CurbSize.Value       = CurbSize;
         curbTarget.MedianCurbSize.Value = MedianCurbSize;
     }
 }
Пример #4
0
 public static T GetDefault <T>(StyleType type) where T : Style
 {
     return((type & StyleType.GroupMask) switch
     {
         StyleType.RegularLine when RegularLineStyle.GetDefault((RegularLineStyle.RegularLineType)(int) type) is T tStyle => tStyle,
         StyleType.StopLine when StopLineStyle.GetDefault((StopLineStyle.StopLineType)(int) type) is T tStyle => tStyle,
         StyleType.Filler when FillerStyle.GetDefault((FillerStyle.FillerType)(int) type) is T tStyle => tStyle,
         StyleType.Crosswalk when CrosswalkStyle.GetDefault((CrosswalkStyle.CrosswalkType)(int) type) is T tStyle => tStyle,
         _ => null,
     });
Пример #5
0
 public override void CopyTo(FillerStyle target)
 {
     base.CopyTo(target);
     if (target is TriangulationFillerStyle triangulationTarget)
     {
         triangulationTarget.Elevation.Value          = Elevation;
         triangulationTarget.CornerRadius.Value       = CornerRadius;
         triangulationTarget.MedianCornerRadius.Value = MedianCornerRadius;
     }
 }