/// <summary> /// /// </summary> /// <param name="gfx"></param> /// <param name="layer"></param> /// <param name="db"></param> /// <param name="r"></param> public void Draw(object gfx, Test2d.Layer layer, ImmutableArray <Test2d.ShapeProperty> db, Test2d.Record r) { foreach (var shape in layer.Shapes) { if (shape.State.Flags.HasFlag(_state.DrawShapeState.Flags)) { shape.Draw(gfx, this, 0, 0, db, r); } } }
/// <summary> /// /// </summary> /// <param name="doc"></param> /// <param name="layer"></param> /// <param name="db"></param> /// <param name="r"></param> public void Draw(object doc, Test2d.Layer layer, ImmutableArray <Test2d.ShapeProperty> db, Test2d.Record r) { var _doc = doc as DxfDocument; foreach (var shape in layer.Shapes) { if (shape.State.Flags.HasFlag(_state.DrawShapeState.Flags)) { shape.Draw(_doc, this, 0, 0, db, r); } } }