Jeff Young
f4a085575a
Show friendly name in toolbar button tooltips.
(Don't require the same text to be put into the tooltip.
It's error-prone and also disallows us from having a separate
tooltip for toolbar buttons.)
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17009
2 years ago
jean-pierre charras
0afac71b27
3D viewer: fix the case of circles having a thickness > radius/2
Fixes #17035
https://gitlab.com/kicad/code/kicad/-/issues/17035
2 years ago
jean-pierre charras
9622918c31
3D view export to PNG/JPEG: ensure highlighted item under cursor is exoperted
not highlighted.
Fixes #14289
https://gitlab.com/kicad/code/kicad/-/issues/14289
2 years ago
Jon Evans
7b0bb59b37
Remove hard-coded versioned env vars in most places
2 years ago
jean-pierre charras
4c61a79e47
3D viewer: show "not covered by solder mask" graphic items with the right color.
Previously, only pads and tracks were using the gold color when not covered by
the solder mask layer.
Fixes #16892
https://gitlab.com/kicad/code/kicad/-/issues/16892
2 years ago
Alex Shvartzkop
9b11dfd4d4
Fix 3D viewer getting stuck or rendering twice when dragging, at least on GTK.
2 years ago
Jeff Young
fef404352d
Remove stale TODOs.
2 years ago
Wayne Stambaugh
92c2ddf77a
Do not parent dialogs to non top level windows in panels or widgets.
2 years ago
Marek Roszko
93b9fb9124
Fix crash switching footprints with 3dviewer OPENGL
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16802
2 years ago
Jan Wichmann
693248f60f
pcbnew: 3d viewer: disable show DNP footprints by default
2 years ago
Jeff Young
fceace93da
Remove dead code. (Coverity)
2 years ago
Marek Roszko
9a890cdba9
Kick the wildcards and file exts into a static class, export it from kicommon
2 years ago
Wayne Stambaugh
81cec494f2
Fix string grammar in 3D viewer.
2 years ago
jean-pierre charras
427de4cda6
BOARD::GetBoardPolygonOutlines(): add option to add NPTH as board holes.
Used in 3D viewer to truncate plated holes intersecting NPTH.
Fixes #16325
https://gitlab.com/kicad/code/kicad/-/issues/16325
2 years ago
jean-pierre charras
35ee0b12d1
3d_viewer_id.h: minor fix.
2 years ago
Jeff Young
df83e24eb7
Cleanup.
It's been a long time since line style was specific to plotting.
2 years ago
Alex Shvartzkop
4defa6b58f
Reduce editing timeout in 3D viewer raytracing.
2 years ago
Jeff Young
2ec3cd91fa
Nullptr safety.
2 years ago
Jeff Young
af9fc5be2f
Hack to keep 3D Viewer's "home" zoom from being too small.
2 years ago
Jeff Young
f9530d0b3f
Remove "Reset View", which does the same as "Home View".
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16115
2 years ago
Jon Evans
18833ad271
Silence a warning on macOS
2 years ago
jean-pierre charras
abcbba5635
PCB_TEXTBOX, create 3D shape: fix incorrect transform of the box, round 2:
when the box is a polygon (rotated rect by a non cardinal angle) the polygon
is not filled, so the shape is just a set of thick segments.
So we cannot use PCB_TEXTBOX::TransformShapeToPolygon to create the 3D view
Fixes #16072
https://gitlab.com/kicad/code/kicad/-/issues/16072
2 years ago
jean-pierre charras
d8498b62e0
PCB_TEXTBOX::TransformShapeToPolygon(): fix incorrect transform: when it
is a polygon (rotated rect by a non cardinal angle) the polygon is not
filled, so the shape is just a set of thick segments.
Fixes #16072
https://gitlab.com/kicad/code/kicad/-/issues/16072
2 years ago
Alex Shvartzkop
5cd1a4674f
Fix a crash in 3D viewer when changing preferences.
It was possible for OnMouseMove to come after ReloadRequest
but before DoRePaint.
Which meant m_3d_render_raytracing->Reload() has't been called yet,
thus the BVH contained invalid data.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16059
2 years ago
Ian McInerney
171458a27b
Introduce action friendly names
Friendly names can be used to display action information that is clearer
in non-hierarchical contexts (e.g. not in menus).
Fixes https://gitlab.com/kicad/code/kicad/-/issues/8075
2 years ago
Jon Evans
eb5b3db063
Add bitmap bundle support to BITMAP_SCALE
Change a bunch of buttons and toolbars to use it
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14119
2 years ago
Marek Roszko
bee6e6be01
AddMenuLanguageList should live in EDA_BASE_FRAME, its only user
2 years ago
Wayne Stambaugh
b5eee9dd7e
Coverity warning fixes.
2 years ago
Jeff Young
d5d07e64c9
Use IsShownOnScreen(), not IsShown(), if you really want to know if its visible.
4 years ago
Jeff Young
62d959ed0e
Don't assume an error location for PAD::GetEffectivePolygon().
While ERROR_INSIDE was good for plotting, 3D generation, etc., it's
not good for generating router hulls.
Also reverts part of the change to always use polygons for PNS::SOLIDs. A single shape in a SHAPE_COMPOUND will be faster (and
more accurate).
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14898
2 years ago
Alex Shvartzkop
d7863b09c5
Move CORNER_STRATEGY out of SHAPE_POLY_SET.
2 years ago
Jeff Young
6136c2438d
Make sure sorts are deterministic.
2 years ago
Jeff Young
0d51729537
Make sure sort is deterministic.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15336
2 years ago
Marek Roszko
6b12a12b3e
On second thought rename PROJECT_PCBNEW to PROJECT_PCB
2 years ago
Marek Roszko
7e8b18035f
Eliminate the conditional pcbnew/cvpcb definition of PROJECT
2 years ago
Jeff Young
51f6d38d08
Title case for menus.
2 years ago
Jeff Young
7835b8ddc7
Bring various appearance managers into line over preset editing.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15726
2 years ago
Marek Roszko
121ea99824
Move the settings path to PATHS to allow shifting other classes into kicommon
2 years ago
Marek Roszko
37479c4154
HIDPI_GL_3D_CANVAS needs CAMERA so move it over
2 years ago
Marek Roszko
669f9d795f
Trim the camera includes
2 years ago
Marek Roszko
f8e33be07f
Break out the boundary violating parts of gal into common through subclassing
2 years ago
Jeff Young
da1405ec6a
Draw off-board pads when drawing off-board silk.
2 years ago
Jeff Young
c1a988e3ff
Handle plated vs non-plated copper for copper other than pads.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/5569
2 years ago
Jeff Young
cce366bc1d
Tidy up 3D renderer display options.
2 years ago
Jeff Young
78f70b45e6
Minor readability improvements.
2 years ago
Jeff Young
4bfebb4744
Use standard names.
2 years ago
Jeff Young
a954c1d93c
Conversion safety.
2 years ago
jean-pierre charras
1f99a5caa6
3D viewer: do not rebuild the board 3D shape when footprint 3D models visibility
has changed: the 3D models visibility does not change the board shape.
2 years ago
Jeff Young
8d06a794f4
Simplify code.
DrawAllCameraCulled() can handle up to 4 knockout lists, and any
of them can be null, so don't dance around how we call it.
2 years ago
jean-pierre charras
b1ed0529d7
3D viewer: Simplify polygons before triangulation.
It reduce the risk to create bad triangulation.
Fixes #15706
https://gitlab.com/kicad/code/kicad/-/issues/15706
2 years ago