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
Jeff Young
f97af9f254
Experimental feature to render off-board-footprint's pads to silk.
2 years ago
Jeff Young
87af115ee0
Make better use of method overrides.
2 years ago
Jeff Young
0126841c44
ADDED: 3D appearance setting for off-board silk.
2 years ago
Jeff Young
c0ce543464
Use standard KiCad abbreviations for TH and NPTH.
2 years ago
Jeff Young
7e70ceaa03
Don't trim non-physical layers to board-outline.
If the user wants a realistic render, then they'll turn off
non-physical layers entirely.
2 years ago
Marek Roszko
ee91b550d8
gl_context_mgr and gl_util belong in the gal folder
2 years ago
jean-pierre charras
a7b1448ccd
Fix a compil warning.
Fix also an incorrect comment.
2 years ago