Marek Roszko
a8613ee80f
Combine Iu2Millimeter & remove PcbMm2iu
3 years ago
Jeff Young
1eb2a39eca
Fix errant test in board items plotter.
Fixes https://gitlab.com/kicad/code/kicad/issues/11944
3 years ago
jean-pierre charras
d41e47609c
Pcbnew: fix plot issue for non filled polygons in footprints.
Fixes #11959
https://gitlab.com/kicad/code/kicad/issues/11959
4 years ago
jean-pierre charras
9db907cc70
pcbnew, plot footprint: fix typo that prevent ploting dimensions
Fixes #11860
https://gitlab.com/kicad/code/kicad/issues/11860
4 years ago
Jeff Young
fa11e1c097
Take text height into account as well as thickness for knockout margin.
Also centralizes calculation so all clients will get the same answer.
Fixes https://gitlab.com/kicad/code/kicad/issues/11636
4 years ago
Jeff Young
65185f53a1
Rotate fp zones before comparing with library versions.
Also includes some performance fixes to not copy around triangulation
data when it's not needed.
Fixes https://gitlab.com/kicad/code/kicad/issues/10143
4 years ago
jean-pierre charras
e7f379c31d
Pcbnew, Knockout texts: fix issues seen with rotated texts.
Fixes #11085
https://gitlab.com/kicad/code/kicad/issues/11085
4 years ago
Jeff Young
40fd8860fe
Plotting (and some bug fixes) for knockout text.
4 years ago
jean-pierre charras
aa0787f2b4
Gerber plotter: fix broken plot of SHAPE_LINE_CHAIN with arcs.
Also simplify SHAPE_T::POLY plot.
Fixes #10989
https://gitlab.com/kicad/code/kicad/issues/10989
4 years ago
jean-pierre charras
d2cf68bcdd
Plotters: add plot Arcs using EDA_SHAPE or center, start point and end point.
It avoid trying to calculate arc angles (start, end or arc angle) that
frequently create issues due to reverse Y axis, plot mirrored and/or
angle normalization with different criteria.
Fixes #10914
https://gitlab.com/kicad/code/kicad/issues/10914
4 years ago
Jeff Young
8ee81e0fc4
Fix plotting of PCB arcs.
4 years ago
Jeff Young
3deaf902bb
Retire the V5 zone fill algorithm.
Fixes https://gitlab.com/kicad/code/kicad/issues/10578
4 years ago
Jeff Young
7ccac79192
More wxString wide literals.
4 years ago
Jeff Young
5739505aa3
TextBoxes for PCBNew.
4 years ago
Jeff Young
9b661aea10
EDA_ANGLE for plotters.
Also fixes a compile error in the PNS Playground.
4 years ago
Jeff Young
07013d00e1
More EDA_ANGLE.
4 years ago
Jeff Young
d485eb2514
Move pads to EDA_ANGLE.
4 years ago
Jeff Young
aef2a3fca4
Default font for eeschema.
4 years ago
Marek Roszko
e4dbfcd92d
Swap out some wxSize for VECTOR2I
4 years ago
Marek Roszko
ea613cf448
Another batch of point changes
4 years ago
Marek Roszko
c4c56de708
Neurotically update position wxPoint usages
4 years ago
Marek Roszko
347e03363a
Convert wxPoint/wxSize starting from EDA_RECT usages
4 years ago
Mark Roszko
44dc602d6b
Yeet wxPoint/wxSize out of PLOTTER
4 years ago
Jeff Young
ccb94fd1a7
APIs for passing KIFONT::FONT pointers around.
Also some clean-up and bug fixes.
4 years ago
Jeff Young
86cb57f4a7
Cherry-pick TEXT_ATTRIBUTES and EDA_ANGLE from rockola/kicad-strokefont
4 years ago
Jeff Young
d649b288a6
Swap out autoplace rotation costs for private footprint layers.
Fixes https://gitlab.com/kicad/code/kicad/issues/2291
Fixes https://gitlab.com/kicad/code/kicad/issues/5391
4 years ago
Jeff Young
fa908e1f98
Dimensions for footprints.
Fixes https://gitlab.com/kicad/code/kicad/issues/8441
4 years ago
Jeff Young
f1410f0240
Line styles for PCBNew shapes.
Fixes https://gitlab.com/kicad/code/kicad/issues/2150
4 years ago
Jeff Young
b2dff6fa55
Fix solder mask plotting issues.
1) Don't plot all footprint texts for each footprint graphic item.
2) Enforce min web thickness around board shapes and board text.
3) Enforce min web thickness around footprint shapes
4) Correctly handle multi-layer zones.
(1) and (4) will get cherry-picked back to 6.0, so after rebasing
won't actually appear in this changelist anymore....
4 years ago
Jeff Young
e26341d424
Cleanup.
4 years ago
Jeff Young
2bc86fa0a8
Shapes for schematic.
ADDED arc, circle and rectangle shapes for schematic. Shapes support
line styles and fill colors.
CHANGED sheet background color in Edit Text & Graphics Properties to
fill color (and it now affects shapes).
Pushed STROKE_PARAMS down into common and moved all shapes to using it
for stroke descriptions.
4 years ago
Jeff Young
4b6bf3095a
Radial dimensions.
ADDED radial type dimensions.
Fixes https://gitlab.com/kicad/code/kicad/issues/2056
4 years ago
Jeff Young
b52529521e
Replace individual LIB_* shapes with LIB_SHAPE (based on EDA_SHAPE).
Also moves to more capable FILL_T model that can be shared.
4 years ago
Jeff Young
9b9e379aa0
Overhaul arc internal model to not over-specify information.
4 years ago
jean-pierre charras
83d7c731d3
Pcbnew, plot poly in footprint: fix a bug introduced by my commit 3316f3
Polys in footprints were not moved, rotated to the right place.
4 years ago
jean-pierre charras
3316f3998a
Rename BuildPolyPointsList() to DupPolyPointsList() and optimize code
to avoid multiple useless copies of the list of polygon corners in code.
4 years ago
Jeff Young
e6ca9837a2
Clear numbers from non-numberable pads and don't run DRC on them.
This was also the last straw on the misnamed PAD::GetName() and
PAD::SetName(), which are now PAD::GetNumber() and PAD::SetNumber().
Fixes https://gitlab.com/kicad/code/kicad/issues/9017
4 years ago
Wayne Stambaugh
46b959c3e3
Move plotter headers into include folder.
4 years ago
Wayne Stambaugh
6427197962
Remove duplicate headers in plot and associated code.
4 years ago
Jeff Young
6aaf4413b3
Fix kicad_string.h / string.cpp mismatch.
They don't define a KiCad string class, so the header file name was
somewhat misleading. But the fact that they didn't match definitely
made coding more difficult.
4 years ago
Jeff Young
f221220fe2
Rename layer ids file.
It hasn't had anything to do with colors or visibility for some time
now.
4 years ago
Wayne Stambaugh
78e5e98ea0
Pass VECTOR2I objects by reference instead of on the stack.
4 years ago
Wayne Stambaugh
89b1fdabe9
Pass COLOR4D object by reference instead of on the stack.
4 years ago
Jeff Young
0fb864d596
Pull some name changes back from 7.0 to ease merging.
4 years ago
Wayne Stambaugh
cf00319c85
More NULL expunging.
4 years ago
Jeff Young
e61822c9e0
Naming conventions and a bug fix on arc points.
4 years ago
jean-pierre charras
cd476e1728
Gerber plotter: ensure filled areas using thick outlines have a closed outline.
Fixes #8735
https://gitlab.com/kicad/code/kicad/issues/8735
5 years ago
Jeff Young
096e342386
Prefix TRACK, ARC and VIA.
5 years ago
Jeff Young
16b0147af8
Prefix DIMENSION types.
5 years ago
luz paz
f968fc8719
Fix source comment / documentation typos
5 years ago