private ArgbColor method_13(DrawContext context, DxfLayer layer) { int index = this.list_0[0].Elements.Count - 1; DxfMLineStyle style = this.Style; return(index < 0 || index >= style.Elements.Count ? context.GetPlotColor((DxfEntity)this) : DxfEntity.GetColor(context.Config.IndexedColors, style.Elements[index].Color, context.ByBlockColor, context.ByBlockDxfColor, layer)); }
public override void DrawInternal( DrawContext.Wireframe context, IWireframeGraphicsFactory2 graphicsFactory) { if (this.list_0.Count == 0) { return; } DxfLayer layer = this.GetLayer((DrawContext)context); int minElementCount = this.method_15(); DxfMLineStyle style = this.Style; for (int elementIndex = 0; elementIndex < style.Elements.Count; ++elementIndex) { DxfMLineStyle.Element element = style.Elements[elementIndex]; IList <Polyline4D> polylines4D; IList <IShape4D> shapes; this.GetPolylines4D((DrawContext)context, elementIndex, minElementCount, element, context.GetTransformer(), out polylines4D, out shapes); ArgbColor color = DxfEntity.GetColor(context.Config.IndexedColors, element.Color, context.ByBlockColor, context.ByBlockDxfColor, layer); if (polylines4D.Count > 0) { foreach (Polyline4D polyline4D in (IEnumerable <Polyline4D>)polylines4D) { if (polyline4D.Count <= 2) { polyline4D.Closed = false; } } Class940.smethod_3((DxfEntity)this, context, graphicsFactory, color, false, false, true, polylines4D); } if (shapes != null) { Class940.smethod_23((IPathDrawer) new Class396((DxfEntity)this, context, graphicsFactory), (IEnumerable <IShape4D>)shapes, element.Color, context.GetLineWeight((DxfEntity)this)); } } IList <Polyline4D> polylines1 = this.method_14((DrawContext)context, context.GetTransformer()); if (polylines1.Count > 0) { foreach (Polyline4D polyline4D in (IEnumerable <Polyline4D>)polylines1) { if (polyline4D.Count <= 2) { polyline4D.Closed = false; } } ArgbColor color = this.method_13((DrawContext)context, layer); Class940.smethod_3((DxfEntity)this, context, graphicsFactory, color, false, false, true, polylines1); } if (!style.IsFillOn) { return; } IList <Polyline4D> polylines2 = this.method_16(context.GetTransformer()); if (polylines2 == null || polylines2.Count <= 0) { return; } Class940.smethod_2((DxfEntity)this, context, graphicsFactory, DxfEntity.GetColor(context.Config.IndexedColors, style.FillColor, context.ByBlockColor, context.ByBlockDxfColor, this.GetLayer((DrawContext)context)), false, true, false, polylines2); }