Jeff Young
1535c83b88
Lay some groundwork for adding distances to DRC errors.
modified: eeschema/lib_rectangle.cpp
6 years ago
jean-pierre charras
873a633181
Gerber: fix a minor issue in OBLONG standard aperture:
- incorrect (too big) bounding box.
- HitTest did not test the exact shape.
6 years ago
Ian McInerney
13b6028e1b
Refactor all math into a new kimath library
* Split up the thirdparty code into the thirdparty folder (#3637 )
* Create a new kimath static library containing all the math functions
This is part of cleaning the build system for #1906 .
6 years ago
jean-pierre charras
baa1db031e
Fix incorrect arc bounding box calculation.
add comments to SHAPE_ARC ctor.
6 years ago
Mark Roszko
19ceb11ae7
Change more enums over to scoped enums
6 years ago
Mark Roszko
11ff16be4e
Switch to scoped enums
6 years ago
Seth Hillbrand
c4d853c1e8
SHAPE_LINE_CHAIN: Remove element access
This is the first step to allowing non-segments in the line chain.
External routines cannot be allowed to change the line chain without
going through the internal routines. To accomplish this, we remove the
Vertex() and Point() access routines and only leave the const versions.
Transformations are given for both points as well as the chain itself.
7 years ago
Seth Hillbrand
b5f021ff9f
Cleanup: Replace push_back with emplace_back
In cases where we create a new item and immediately push into a
container, the emplace idiom is faster and more efficient.
6 years ago
jean-pierre charras
71cd8c57bf
ADDED: Pcbnew, add "pin function" (pin name in eeschema) to pads.
The pin name defined in Eeschema is now available as pad info.
Useful for the board designer (the pin function is displayed in the message panel).
Needed for the Gerber P&P files.
6 years ago
jean-pierre charras
0878c7c64c
Fix typo
6 years ago
jean-pierre charras
337244d423
Gerbview: displays aperture attribute value (TA.attribute) for Regions (polygons) having no dcode
6 years ago
Jeff Young
1a7cef2950
Improve performance, commenting and API of some polygon classes.
6 years ago
Jeff Young
c2662b0e11
Retire EDA_DRAW_PANEL and legacy_wx/EDA_DRAW_FRAME.
7 years ago
Jeff Young
d6e9bdf07b
Convert remaining legacy drawing code to print code.
7 years ago
Jeff Young
fd546da640
Homogenize hit testing and selection return types.
Prep work for sharing SCH_SELECTION_TOOL with LibEdit.
7 years ago
Jeff Young
684bb62fd8
Escape slashes in labels and netnames.
Also re-allows spaces, as they can already come in through sheet
names.
Fixes: lp:1798621
* https://bugs.launchpad.net/kicad/+bug/1798621
7 years ago
jean-pierre charras
73b52f2e23
Gerbview: fix incorrect initialization of WorldUnitLength.
Fix incorrect min zoom level to show D Code texts.
7 years ago
Jeff Young
eacaa39aa2
Remove global units usage from GetSelectionText...
... and GetMsgPanelInfo.
Step 4 in the g_UserUnit eradication effort.
Also removes a couple of conversion routines that were close
enough to extinction.
(cherry picked from commit c75da51)
8 years ago
Jeff Young
b99ea159c8
Rationalize select menu texts.
Be consistent with order, formatting, etc.
Remove debug stuff such as zone timestamp and net code.
Clean up misleading pad messages.
(cherry picked from commit 2132109)
8 years ago
jean-pierre charras
7c52af2d50
Gerbview: cosmetic enhancement: add icons in Clarify menu.
8 years ago
Jon Evans
1ec217d70e
Fix hit testing for zero-width gerber items
8 years ago
Jon Evans
4e76a18d5d
Add checks against missing D-Codes in flashed Gerber items
Fixes: lp:1756710
* https://bugs.launchpad.net/kicad/+bug/1756710
8 years ago
Jon Evans
cd14525839
GerbView: More accurate selection of arc shapes
8 years ago
jean-pierre charras
a0ac1a48c2
Gerbview: fix code after renaming files
8 years ago
jean-pierre charras
6255239b52
Gerbview: rename files class_xxx to xxx according to the class names of classes defined inside the files
8 years ago
jean-pierre charras
f7c0562c8b
Gerbview: refinements in D_Code display.
Remove duplicate code between legacy and Gal canvas to calculate D_Code id draw parameters.
8 years ago
jean-pierre charras
e14a1656db
Add comments. Gerbview: in legacy mode, do not display D_Code id text when it is too small to be readable.
8 years ago
Jon Evans
cabc92bd48
Fix aperture macro and arc bounding boxes (Fixes lp:1730249)
8 years ago
Jon Evans
a1acf705e8
Fix aperture macro hit testing (partial fix of lp:1730249)
Also update various things in class_aperture_macro.cpp to take a const
parent argument so that it is callable from within GERBER_DRAW_ITEM
8 years ago
jean-pierre charras
cdb577bbbc
Gerbview: fix an issue in legacy mode (locate items was not working)
8 years ago
Jon Evans
4341c0eb2b
Change LOD cutoff for D-Codes
8 years ago
Jon Evans
256f52f27e
Use VIEW_GROUP for candidate highlighting; enable in PcbNew also
8 years ago
Jon Evans
d87c9f7ed7
Highlight selection candidates instead of using BRIGHT_BOX
8 years ago
Jon Evans
915e51e1f0
GerbView GAL support part 1: changes to existing files
- New GAL draw layers for GerbView
- Improved bounding boxes for Gerber shapes
- Switched to use of SHAPE_POLY_SET for polygons
- Add GAL methods to support selection and rendering
- Add GUI support of editing GAL options
- Rename get/setActiveLayer to Get/SetActiveLayer to match convention
8 years ago
jean-pierre charras
000ee22e39
Drill dialog: creates the directory, when the path entered in dialog does not exist.
9 years ago
Jon Evans
a52250a91e
Change from EDA_COLOR_T to COLOR4D globally; arbitrary color support
eeschema now supports arbitrary colors for all object types, and
pcbnew does in GAL canvas. When switching from GAL to legacy canvas,
pcbnew will convert colors to the nearest legacy color.
9 years ago
jean-pierre charras
4ee344e150
Gerber files: Enable net attributes options in plot Gerber dlg and fix net attribute for "no net" tracks and vias (netcode <= 0).
9 years ago
jp-charras
c8cf78398b
Gerbview: fix a crash when reading polygons with arcs.
Fix a very minor other issue (due to a minor bug in wx 3.1)
Displays the full graphic layer name of the selected item in message panel (instead of just the graphic layer number)
9 years ago
jean-pierre charras
f1226afc89
Gerbview: support of %TA.AperFunction (aperture attribute) and better support of %TO (currently work in progress) object attribute.
9 years ago
jean-pierre charras
984146c37d
Gerbview: better support of advanced X2 attributes.
9 years ago
jean-pierre charras
ff246f6365
Gerbview: Add %TO (Netlist attribute) support in X2 format. Fix a bug in a not previously very used method.
9 years ago
jean-pierre charras
947c73f23b
Gerbview: try to fix a crash (hard to reproduce) which someting happens when closing gerbview. Fix incorrect calculation of bounding boxes.
10 years ago
jean-pierre charras
2b459acfe9
Fix incorrect handling of Aperture Macros, especially when using exposure OFF in macros.
Aperture macro shapes are now drawn using polygons.
10 years ago
jean-pierre charras
368bd1477b
Gerbview: serious code cleanup (with the serious help of Mark Roszko's work on Gerbview)
10 years ago
jean-pierre charras
130c6e3639
Gerbview: more code refactoring.
10 years ago
jean-pierre charras
3b379787bc
Gerbview: move gerber_file_image_list to a separate file
10 years ago
jean-pierre charras
8c8a1238f1
Gerbview: more code cleanup. Rename class GERBER_IMAGE GERBER_FILE_IMAGE, because it handles the gerber image and the gerber file info.
10 years ago
jean-pierre charras
1c21410f1f
Gerbview: code cleanup (with the help of Mark Roszko's work)
10 years ago
Tomasz Wlostowski
63b35f40a7
Removed all dependencies on boost::polygon except for bitmap2component. Replaced almost all instances of CPOLYGONS_LIST with SHAPE_POLY_SET.
10 years ago
Maciej Suminski
d2ebf688f9
Reverted commits that remove boost::polygon dependency (need more testing).
10 years ago