Jeff Young
402b701c9e
Formatting.
2 years ago
Alex Shvartzkop
9f63820ed4
Fix a bug in RebuildBezierToSegmentsPointsList.
2 years ago
Alex Shvartzkop
5b438d6398
Optimize makeEffectiveShapes for polygons.
2 years ago
jean-pierre charras
cbcaaa001c
fix some Coverity and compil warnings.
2 years ago
Alex Shvartzkop
a84c01b1ed
Fix properties crash when selecting libedit arc and non-EDA_SHAPE.
2 years ago
Josue
94e86a69be
Update RECT to RECTANGLE
2 years ago
Josue
6429051750
change Rectangle property: Length to Height
2 years ago
Josue
c3766bb250
Implement Length and Width for RECT
2 years ago
Josue
5061ca54e7
add length and angle properties to segment
2 years ago
Marek Roszko
cbc60d90ec
Add missing line style prop to eda_shape
2 years ago
jean-pierre charras
bc59ed08b4
EDA_SHAPE::TransformShapeToPolygon() for filled SHAPE_T::POLY: use another algo:
previously, for aClearance/width > 0, a seg of segments (width = aClearance*2) was added
to the polygon shape. This is acceptable for polygons having not a log of vertices.
It does not work fine (bad shape, extremeny long calculation time) if there are
a **lot** of vertices.
Now the polygonal shape is just inflated by width/2. Much faster and better shape.
2 years ago
Josue Huaroto
670936096e
Change behavior of polygons at the end of drawing.
2 years ago
Alex Shvartzkop
717ee350c8
Support >180 deg arcs in schematic.
2 years ago
jean-pierre charras
a16ab0aae1
Replace SHAPE_T::RECT by SHAPE_T::RECTANGLE: RECT creates a collision name
issue with a Windows header on msys2.
Change very similar to the commit 9a47b344 about class PAD_SHAPE.
No actual code change
2 years ago
Jon Evans
632e94ef81
Add a few more schematic properties
2 years ago
Jon Evans
bf2e9f8261
Properties for SCH_LINE
Also rename an incongruous setter
2 years ago
Jeff Young
c5e7d800a4
Back out earlier diamond-to-rectangle fix for one that's more targeted.
(And doesn't fail qa_pcbnew.)
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14828
2 years ago
Jeff Young
4dda7d39ab
Tranform diamonds back to rects after rotating to a cardinal orientation.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14828
2 years ago
Jeff Young
bbd6c80507
Collapse FP_* down into their PCB_* equivalents.
3 years ago
jean-pierre charras
10d4c63c31
EDA_SHAPE_DESC(): catch a std::runtime_error when emitted by
template<typename T> T Get( PROPERTY_BASE* aProperty ) to avoid a crash,
and displays in Debug mode the runtime error message.
Fixes #14347
https://gitlab.com/kicad/code/kicad/issues/14347
3 years ago
Jon Evans
1651b44ab1
Fix some PCB_SHAPE properties
Hide irrelevant position/start/end properties
for shape classes that don't use them.
3 years ago
Marek Roszko
ac94995f70
Some more wxS
3 years ago
Jon Evans
826f641dff
Properties: Add shape fill control
3 years ago
jean-pierre charras
75f1067642
GRAPHICS_CLEANER: fix bad detection of short Bezier curves that can be cleaned
eda_shape: small enhancement: when generating a polyline from the Bezier curve,
filter the last point if the last segment is shorter than the given min lenght
3 years ago
Jeff Young
ec9c6a8053
Separate creation of polygons for open and closed shapes.
This allows us to create a bounding hull from an open shape-line-chain,
which is useful for defining milled slots.
3 years ago
Jon Evans
396db7794d
Properties: add friendly names to shapes
3 years ago
Seth Hillbrand
056f45cd70
Fixup most intersecting polygon points
Remaining is the intersecting complex pad, so this keeps the error
message when drawing
Fixes https://gitlab.com/kicad/code/kicad/issues/12806
3 years ago
Jon Evans
a5d685ff5c
Handle coordinate transforms in properties system
Fixes https://gitlab.com/kicad/code/kicad/-/issues/12320
3 years ago
Jeff Young
d16b23d16e
Name shortening and line-break reduction.
3 years ago
jean-pierre charras
0a620816a8
Eeschema: edit arc: keep arc angle <= 180 degrees when moving a arc end.
3 years ago
jean-pierre charras
92f70a9fa2
Eeschema: ensure arcs are < 180 deg when creating them.
3 years ago
Jeff Young
64a6fc0fd4
Push UNITS_PROVIDER down into a low-level mixin.
This allows us to also construct cheap UNIT_PROVIDERs for specific
tasks when necessary.
3 years ago
Jeff Young
45d6b4a9fc
Readability improvements.
3 years ago
Mark Roszko
b00178adb3
Nuke base_units from orbit
3 years ago
Jeff Young
c48286b879
Fix missing variable initialization.
3 years ago
Jeff Young
281b9d405a
ADDED ability to specify where pad number (& net name) go on custom shaped pads.
Fixes https://gitlab.com/kicad/code/kicad/issues/6627
3 years ago
Jeff Young
f17a865593
Move EDA_ITEM hitTest to BOX2I.
3 years ago
Jeff Young
5679b9dbdc
Remove a few EDA_RECT instances.
3 years ago
Roberto Fernandez Bautista
029cc65b34
EDA_SHAPE: Remove m_upsideDownCoords hack (Fixes hitTest routine)
3 years ago
Maciej Suminski
af71d42307
Renamed PROPERTY_TYPE enum names to avoid a conflict on MSYS2
6 years ago
Maciej Suminski
7f00efe6cf
Properties: Fixed conditional properties using enum values in the conditions
When wxAny holds an enum, it cannot be compared with an integer due to a
missing conversion function. In such case, conditional properties
compare a raw value rather than wxAny.
6 years ago
Maciej Suminski
95fd58b25a
Properties meta-data for pcbnew classes
6 years ago
Alex
371f6d917f
Use VECTOR2I::extended_type instead of long, and int for numeric limits.
3 years ago
Alex
6d739ca9da
Improve handling of long distances
4 years ago
Jeff Young
509d233d97
Fix knockout text bounding boxes and hit testing.
Fixes https://gitlab.com/kicad/code/kicad/issues/12133
3 years ago
Jeff Young
b727bfc16d
Performance: avoid sqrt at all costs.
3 years ago
Jeff Young
d0547cbde7
Don't allow 0 line-width for unfilled shapes.
Fixes https://gitlab.com/kicad/code/kicad/issues/12010
3 years ago
Jeff Young
0953395c87
LIB_SHAPE slightly abuses SHAPE_POLY_SET by using it for line chains.
Fixes https://gitlab.com/kicad/code/kicad/issues/11956
3 years ago
Jeff Young
007906cd16
Fix a degeneracy bug in arc collisions.
This also fixes a failure to use the correct effective width for
shapes (which might, for instance, inherit their widths from schematic
defaults, netclasses, etc.).
Fixes https://gitlab.com/kicad/code/kicad/issues/11358
4 years ago
Jeff Young
9402b2aeda
Take fill into account when hit-testing arcs.
Fixes https://gitlab.com/kicad/code/kicad/issues/11305
4 years ago