public override void LayoutSymbol(SymbolLayout Sym) { int h = 20; Sym.AddTerminal(pa, new Coord(-10, h)); Sym.AddTerminal(pc, new Coord(-10, -h)); Sym.AddTerminal(sa, new Coord(10, h)); Sym.AddTerminal(st, new Coord(10, 0)); Sym.AddTerminal(sc, new Coord(10, -h)); Sym.DrawText(() => Name, new Coord(-16, -h / 2), Alignment.Far, Alignment.Center); Sym.DrawText(() => Turns.ToString(), new Coord(-16, h / 2), Alignment.Far, Alignment.Center); h -= 4; Sym.AddWire(pa, new Coord(-10, h)); Sym.AddWire(pc, new Coord(-10, -h)); Sym.AddWire(sa, new Coord(10, h)); Sym.AddWire(sc, new Coord(10, -h)); Sym.InBounds(new Coord(-20, 0), new Coord(20, 0)); Inductor.Draw(Sym, -10, -h, h, 4, 4.0); Sym.DrawLine(EdgeType.Black, new Coord(-2, h), new Coord(-2, -h)); Sym.DrawLine(EdgeType.Black, new Coord(2, h), new Coord(2, -h)); Inductor.Draw(Sym, 10, -h, 0.0, 2, -4.0); Inductor.Draw(Sym, 10, h, 0.0, 2, -4.0); }
public override void LayoutSymbol(SymbolLayout Sym) { Sym.AddTerminal(pa, new Coord(-10, 20)); Sym.AddTerminal(pc, new Coord(-10, -20)); Sym.AddTerminal(sa, new Coord(10, 20)); Sym.AddTerminal(sc, new Coord(10, -20)); Sym.AddWire(pa, new Coord(-10, 16)); Sym.AddWire(pc, new Coord(-10, -16)); Sym.AddWire(sa, new Coord(10, 16)); Sym.AddWire(sc, new Coord(10, -16)); Sym.InBounds(new Coord(-20, 0), new Coord(20, 0)); Inductor.Draw(Sym, -10, -16.0, 16.0, 4, 4.0); Sym.DrawLine(EdgeType.Black, new Coord(-2, 16), new Coord(-2, -16)); Sym.DrawLine(EdgeType.Black, new Coord(2, 16), new Coord(2, -16)); Inductor.Draw(Sym, 10, -16.0, 16.0, 4, -4.0); Sym.DrawText(() => Name, new Coord(-16, 0), Alignment.Far, Alignment.Center); Sym.DrawText(() => Turns.ToString(), new Coord(16, 0), Alignment.Near, Alignment.Center); }