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