Wayne Stambaugh
8f30404e42
Plot code cleaning.
4 years ago
jean-pierre charras
5f84071cfa
Gerber plotter, GERBER_PLOTTER::plotArc( SHAPE_ARC& aArc ): fix missing G75 command
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
Wayne Stambaugh
37b200cb3e
Pass wxString objects by reference instead of on the stack.
4 years ago
Wayne Stambaugh
bcd6bddfd4
Start expunging NULL.
Given that KiCad is a C++ project, we should really be using nullptr
instead of NULL.
4 years ago
david-beinder
8b3ccab0a3
Implement explicit polygon construction for most pad shapes
Fixes https://gitlab.com/kicad/code/kicad/-/issues/8650
4 years ago
jean-pierre charras
1151783a34
Gerbview: fix an issue (Debug only) with RoundRect aperture macro.
When a RoundRect aperture macro was used with a radius = 0, a wxWidget assert
was generated, due to incorrect polygonal shape to draw.
4 years ago
Mikolaj Wielgus
3d520ebe1e
Replace `~...~` overbar syntax with `~{...}`
Fixes https://gitlab.com/kicad/code/kicad/issues/8134
Fixes https://gitlab.com/kicad/code/kicad/issues/4227
5 years ago
luz paz
f968fc8719
Fix source comment / documentation typos
5 years ago
Marek Roszko
20134e4a1b
Evict some more eda_item.h includes
5 years ago
Wayne Stambaugh
08e8b17029
Minor plotter code improvements.
5 years ago
Seth Hillbrand
cccdaddd50
Adding SHAPE_ARC direct plotting
5 years ago
Seth Hillbrand
3d4ce0796e
Add Gerber plot for SHAPE_ARC and SHAPE_LINE_CHAIN
5 years ago
Marek Roszko
4df3cb912d
Remove another leaky wx/log.h header
5 years ago
jean-pierre charras
aee1593678
Fix wxWidgets alerts
Fixes #8346
https://gitlab.com/kicad/code/kicad/issues/8346
5 years ago
Ian McInerney
ecd9bf696e
Be consistent about using nullptr instead of 0
0 can be too easily overloaded into an int, so ensure we use nullptr
when we mean pointers.
5 years ago
jean-pierre charras
fc04ece458
PDF plotter: fix a incorrect item in the header.
Fixes #5593
https://gitlab.com/kicad/code/kicad/issues/5593
5 years ago
Jonathan Haas
55679be2e3
Fix some typos across the codebase
5 years ago
Jon Evans
c04e19f9ac
Include optimization: move some things from common.h to point-of-use
5 years ago
Jeff Young
a3b9e8ddb4
Round 2 of Worksheet -> Drawing Sheet.
5 years ago
Jeff Young
cad5198ab7
Worksheet -> (industry standard) Drawing Sheet.
5 years ago
Jeff Young
2ad5108e7d
Don't depend on wxWidgets dotted and dashed line styles.
Turns out they're buggy on OSX.
Fixes https://gitlab.com/kicad/code/kicad/issues/7144
5 years ago
jean-pierre charras
fabafe719d
Use aperture macro for custom pads. Optimize aperture macros for free polygons.
These aperture macros were previously used but only for chamfered round rect.
They are now also used for custom pads (previously drawn as regions).
They are also optimized, i.e. only one aperture macro is created for a given shape.
(previously, one aperture macro was created for each chamfered round rect pad.)
So now all pads are flashed.
5 years ago
jean-pierre charras
15cc368918
Gerber plotter: prepare optimization of aperture macros type free polygons.
They are used for chamfered round rect pads, and can be used for custom shaped pads.
No actual change currently, but the shape rotation of custom pads and chamfered rr pads
can be now used in gerber plots.
5 years ago
Wayne Stambaugh
2d64613bbb
Coverity fixes.
Reports 314745, 316271, and 316269.
5 years ago
jean-pierre charras
be542c05f2
Gerber output, aperture macros: better compatibility with old Gerber readers.
In some macros we are using a circle as primitive (primitive 1).
It needs 4 mandatory prms and one optional (not used by Kicad, always 0) prm.
This not used optional prm can create issues with old Gerber readers, so it is removed now.
Fixes #7047
https://gitlab.com/kicad/code/kicad/issues/7047
5 years ago
Alexis Lockwood
6f228f9dea
hpgl_plotter: correct formatting
5 years ago
Alexis Lockwood
f5b7595675
Add user coordinate support to HPGL plotter
5 years ago
Alexis Lockwood
f1aa82aad6
HPGL_PLOTTER: add missing include
5 years ago
jean-pierre charras
bd7c3447e0
Fix a few compil issues.
Round 2: Fixes #6782
https://gitlab.com/kicad/code/kicad/issues/6782
5 years ago
jean-pierre charras
34fb55dc9c
Fix a compil issue.
Fixes #6782
https://gitlab.com/kicad/code/kicad/issues/6782
5 years ago
Alexis Lockwood
4ce91d3e92
HPGL improvements and optimizations for physical plotters
- Sort HPGL plots for speed
- Reduce HPGL circle precision for tiny circles
- Teach HPGL plotter about filled rectangles
5 years ago
Alexis Lockwood
54d2748032
HPGL driver: collect graphics to plot later
This will later enable sorting the items for efficiency, which will then
facilitate things that would otherwise be impossibly slow (e.g.
switching pens)
5 years ago
Alexis Lockwood
5937b38312
HPGL: Fix bug when plotting negative line widths
5 years ago
Alexis Lockwood
a59cab24b8
HPGL: Fix missing point in custom pad outline
5 years ago
Jeff Young
5888d376a7
Handle special cases for ending overbar text.
Fixes https://gitlab.com/kicad/code/kicad/issues/6695
5 years ago
jean-pierre charras
048715ab91
Gerber output: fix incorrect creation of trapezoid apertures.
When creating 4 corners (trapezoid) apertures, the rotation parameter was
not tested, therefore shapes actually used could have incorrect rotation.
Fixes #6432
https://gitlab.com/kicad/code/kicad/issues/6432
5 years ago
Jeff Young
7933935b4a
Naming conventions.
5 years ago
Jeff Young
ec020dd19f
First-class support for filled shapes.
5 years ago
Wayne Stambaugh
4ea3914d4e
Coverity fixes.
CIDs: 312996, 305508, 305509, 305510, 312992, 312997, 312994, 312995,
312968, and 306650.
5 years ago
Jeff Young
69c1171320
Add PDFWriter debug mode (ie: uncompressed output).
Fixes https://gitlab.com/kicad/code/kicad/issues/5593
5 years ago
Marek Roszko
e928b2d8fd
Split EDA_UNITS out from common.
5 years ago
jean-pierre charras
c87faad344
Python compatibility: move DXF_PLOTTER::DXF_UNITS to DXF_UNITS in pcb_plot_params.h
Fixes #6034
https://gitlab.com/kicad/code/kicad/issues/6034
5 years ago
Seth Hillbrand
2a43b88115
Standardize PostScript capitalizaiton
5 years ago
Wayne Stambaugh
8ff51d8899
Eeschema: add schematic sheet page number.
The groundwork has now been laid for per sheet instance data. Initially
this only supports sheet page numbers but could be expanded to include
other per sheet instance information.
ADDED: Support for user defined schematic page numbers.
5 years ago
Marek Roszko
b9f1601418
Rename PLOT_MODE to OUTLINE_MODE
5 years ago
Marek Roszko
eb33c33f15
Rename EDA_DRAW_MODE_T to PLOT_MODE
5 years ago
jean-pierre charras
46d115faa7
PS plotter; fix a compil warning, and a potential bug.
5 years ago
Marek Roszko
1538d737e7
Split out FILL_T to its own header to avoid spreading eda_item everywhere
5 years ago
Marek Roszko
f59551d6ad
Remove painter.h from eda_text.h
5 years ago