Ejemplo n.º 1
0
 public MarkupFiller(FillerContour contour, FillerStyle style)
 {
     Contour = contour;
     Markup  = Contour.Markup;
     style.OnStyleChanged = FillerChanged;
     Style = new PropertyClassValue <FillerStyle>(StyleChanged, style);
 }
Ejemplo n.º 2
0
 public override void CopyTo(FillerStyle target)
 {
     base.CopyTo(target);
     if (target is TriangulationFillerStyle triangulationTarget)
     {
         triangulationTarget.Elevation.Value = Elevation;
     }
 }
Ejemplo n.º 3
0
 public override void CopyTo(FillerStyle target)
 {
     base.CopyTo(target);
     if (target is CurbTriangulationFillerStyle curbTarget)
     {
         curbTarget.CurbSize.Value       = CurbSize;
         curbTarget.MedianCurbSize.Value = MedianCurbSize;
     }
 }
Ejemplo n.º 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,
     });
Ejemplo n.º 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;
     }
 }